You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

653 lines
14 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
7 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
7 years ago
7 years ago
10 years ago
10 years ago
7 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************************************************************
  2. uMatrix - a browser extension to black/white list requests.
  3. Copyright (C) 2014-present Raymond Hill
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see {http://www.gnu.org/licenses/}.
  14. Home: https://github.com/gorhill/uMatrix
  15. */
  16. body {
  17. background-color: white;
  18. border: 0;
  19. float: left;
  20. font: 14px httpsb,sans-serif;
  21. margin: 0;
  22. min-height: 16em;
  23. min-width: 32em;
  24. opacity: 1;
  25. overflow-x: hidden;
  26. overflow-y: auto;
  27. padding: 0;
  28. position: relative;
  29. }
  30. *:focus {
  31. outline: none;
  32. }
  33. a {
  34. color: inherit;
  35. text-decoration: none;
  36. }
  37. .fa-icon:hover {
  38. background-color: #eee;
  39. }
  40. #version {
  41. font-size: 10px;
  42. font-weight: normal;
  43. }
  44. #gotoDashboard {
  45. background-color: #444;
  46. border: 0;
  47. color: #bbb;
  48. cursor: pointer;
  49. display: block;
  50. font-size: 12px;
  51. line-height: 12px;
  52. margin: 0;
  53. padding: 3px 0;
  54. position: relative;
  55. text-align: center;
  56. }
  57. .paneHead {
  58. background-color: white;
  59. left: 0;
  60. padding: 0;
  61. position: fixed;
  62. right: 0;
  63. top: 0;
  64. z-index: 100;
  65. }
  66. .paneContent {
  67. padding-top: 5.5em;
  68. }
  69. .paneHead > a:first-child {
  70. background-color: #444;
  71. border: 0;
  72. border-bottom: 1px solid white;
  73. color: #bbb;
  74. cursor: pointer;
  75. display: block;
  76. font-family: sans-serif;
  77. line-height: 12px;
  78. margin: 0;
  79. padding: 2px 0;
  80. text-align: center;
  81. }
  82. #toolbarContainer {
  83. display: flex;
  84. justify-content: space-between;
  85. }
  86. .toolbar {
  87. border: 0;
  88. display: inline-flex;
  89. margin: 0;
  90. padding: 0;
  91. }
  92. .toolbar .fa-icon {
  93. cursor: pointer;
  94. font-size: 150%;
  95. padding: 0.3em 0.4em;
  96. }
  97. .toolbar .fa-icon.scopeRel {
  98. fill: #24c;
  99. }
  100. body[data-scope="*"] .toolbar .fa-icon.scopeRel {
  101. fill: #000;
  102. }
  103. body .toolbar button {
  104. background-color: white;
  105. border: 0;
  106. color: black;
  107. cursor: pointer;
  108. margin: 0;
  109. padding: 0.2em 0.2em 0.1em 0.2em;
  110. position: relative;
  111. }
  112. body .toolbar button:hover {
  113. background-color: #eee;
  114. }
  115. body .toolbar button.disabled {
  116. color: #ccc;
  117. }
  118. #mtxSwitch_matrix-off.switchTrue {
  119. color: #a00;
  120. fill: #a00;
  121. }
  122. #mtxSwitches > li {
  123. align-items: center;
  124. color: #888;
  125. display: flex;
  126. }
  127. #mtxSwitches > li.switchTrue {
  128. color: #000;
  129. }
  130. #mtxSwitches > li > svg {
  131. display: inline;
  132. height: 1em;
  133. margin-right: 0.4em;
  134. width: 1.5em;
  135. }
  136. #mtxSwitches > li > svg * {
  137. fill-opacity: 1;
  138. opacity: 1;
  139. stroke: none;
  140. }
  141. #mtxSwitches > li.relevant > svg .dot {
  142. fill: #aaa;
  143. }
  144. #mtxSwitches > li.switchTrue.relevant > svg .dot {
  145. fill: #eee;
  146. }
  147. #mtxSwitches > li > svg .off,
  148. #mtxSwitches > li.switchTrue > svg .on,
  149. #mtxSwitches > li.relevant > svg .dot {
  150. display: block;
  151. }
  152. #mtxSwitches > li > svg .on,
  153. #mtxSwitches > li > svg .dot,
  154. #mtxSwitches > li.switchTrue > svg .off {
  155. display: none;
  156. }
  157. #mtxSwitches > li > span[data-i18n] {
  158. flex-grow: 1;
  159. }
  160. #mtxSwitches > li > a {
  161. color: #000;
  162. opacity: 0;
  163. }
  164. #mtxSwitches > li:hover > a {
  165. opacity: 0.1;
  166. }
  167. #mtxSwitches > li > a:hover {
  168. opacity: 0.8;
  169. }
  170. .dropdown-menu-capture {
  171. background-color: rgba(0,0,0,0.2);
  172. border: 0;
  173. bottom: 0;
  174. display: none;
  175. left: 0;
  176. margin: 0;
  177. padding: 0;
  178. position: fixed;
  179. right: 0;
  180. top: 0;
  181. z-index: 300;
  182. }
  183. .dropdown-menu-capture.dropdown-menu-centered > .dropdown-menu {
  184. left: 4em;
  185. right: 4em;
  186. }
  187. .dropdown-menu-capture.show {
  188. display: block;
  189. }
  190. .dropdown-menu {
  191. border: 0;
  192. display: inline-block;
  193. margin: 0;
  194. padding: 3px 0 0 0;
  195. position: absolute;
  196. white-space: normal;
  197. }
  198. .dropdown-menu > ul {
  199. margin: 0;
  200. border: 0;
  201. border: 1px solid #ccc;
  202. border-radius: 4px;
  203. padding: 0;
  204. background-color: white;
  205. list-style-type: none;
  206. }
  207. .dropdown-menu > ul > li.dropdown-menu-entry {
  208. border: 0;
  209. color: black;
  210. cursor: pointer;
  211. margin: 0;
  212. padding: 0.2em 0.25em;
  213. white-space: nowrap;
  214. }
  215. .dropdown-menu > ul > li.dropdown-menu-entry:hover {
  216. background: #eee;
  217. }
  218. .dropdown-menu > ul > li.dropdown-menu-entry-divider {
  219. border-top: 1px solid #ccc;
  220. margin: 0.5em 0;
  221. }
  222. .dropdown-menu.show {
  223. display: block;
  224. }
  225. button > span.badge {
  226. background-color: rgba(240,240,240,0.75);
  227. bottom: 1px;
  228. color: #000;
  229. display: inline-block;
  230. font-size: 40%;
  231. padding: 1px 1px;
  232. pointer-events: none;
  233. position: absolute;
  234. right: 1px;
  235. }
  236. button.disabled > span.badge {
  237. display: none;
  238. }
  239. #buttonPresets + .dropdown-menu {
  240. position: fixed;
  241. left: 10vw;
  242. width: 80vw;
  243. }
  244. #dropDownMenuRecipes > .dropdown-menu > ul {
  245. max-height: 70vh;
  246. min-width: 50vw;
  247. overflow: auto;
  248. }
  249. #dropDownMenuRecipes li > ul {
  250. margin-left: 1em;
  251. padding: 0;
  252. }
  253. .recipe {
  254. list-style-type: none;
  255. white-space: nowrap;
  256. }
  257. .recipe > div {
  258. align-items: baseline;
  259. display: flex;
  260. justify-content: space-between;
  261. }
  262. .recipe > div > span {
  263. color: #888;
  264. fill: #888;
  265. }
  266. .recipe > div > span:hover {
  267. color: #000;
  268. fill: #000;
  269. }
  270. .recipe .expander {
  271. display: inline-block;
  272. padding: 0.4em;
  273. width: 0.8em;
  274. }
  275. .recipe .expander::before {
  276. content: '+';
  277. font-family: sans-serif;
  278. }
  279. .recipe.expanded .expander::before {
  280. content: '\2212';
  281. }
  282. .recipe .name {
  283. color: #000;
  284. cursor: default;
  285. flex-grow: 1;
  286. padding: 0.4em 0;
  287. }
  288. .recipe .importer,
  289. .recipe .committer {
  290. cursor: pointer;
  291. display: none;
  292. font-size: 100%;
  293. padding-right: 0.5em;
  294. text-align: center;
  295. }
  296. .recipe.mustImport .importer,
  297. .recipe.mustCommit:not(.mustImport) .committer {
  298. display: inline-block;
  299. }
  300. .recipe:hover {
  301. background-color: #eef;
  302. }
  303. .recipe .ruleset {
  304. display: none;
  305. font: smaller monospace;
  306. padding: 0 0.5em 0.5em 2em;
  307. white-space: pre;
  308. }
  309. .recipe.expanded .ruleset {
  310. display: block;
  311. }
  312. body .toolbar .scopeRel {
  313. color: #24c;
  314. }
  315. body[data-scope="*"] .toolbar .scopeRel {
  316. color: #000;
  317. }
  318. body[data-scope="*"] .toolbar .scopeRel.disabled {
  319. color: #ccc;
  320. }
  321. .matrix {
  322. text-align: left;
  323. }
  324. .matRow {
  325. white-space: nowrap;
  326. }
  327. .matCell {
  328. margin: 1px 1px 0 0;
  329. border: 1px dotted rgba(0,0,0,0.2);
  330. padding: 6px 1px 3px 1px;
  331. display: inline-block;
  332. box-sizing: content-box;
  333. -moz-box-sizing: content-box;
  334. width: 2.6em;
  335. white-space: nowrap;
  336. text-align: center;
  337. line-height: 110%;
  338. position: relative;
  339. }
  340. #matHead {
  341. border-top: 1px dotted #ccc;
  342. padding-top: 1px;
  343. margin: 1px 0 0 0;
  344. }
  345. .paneHead .matCell:nth-child(2) {
  346. letter-spacing: -0.3px;
  347. }
  348. .paneContent .matrix .matRow > .matCell:first-child {
  349. font-weight: 100;
  350. }
  351. .paneContent .matrix .matRow > .matCell:first-child > b {
  352. font-weight: normal;
  353. }
  354. /* RFC 3987 Internationalized Resource Identifiers (IRIs) -- 4.4 */
  355. .matrix .matRow > .matCell:first-child {
  356. direction: ltr;
  357. text-align: right;
  358. unicode-bidi: embed;
  359. width: 16em;
  360. }
  361. .matrix .matGroup.g4 .matRow.ro > .matCell:first-child {
  362. direction: inherit;
  363. }
  364. .matrix .matRow.l2 > .matCell:first-child {
  365. margin-left: 1px;
  366. width: calc(16em - 1px);
  367. }
  368. .matrix .matRow > .matCell:hover {
  369. border-style: solid;
  370. }
  371. .matrix .matGroup .matSection {
  372. margin: 2px 0 0 0;
  373. border: 0;
  374. padding: 0;
  375. /* background-color: rgba(0,0,0,0.05); */
  376. }
  377. .matrix .matGroup.g0 .matSection:first-child {
  378. margin-top: 0;
  379. }
  380. .matrix .matGroup.g4 .matSection:first-child {
  381. margin-top: 0;
  382. }
  383. /* Collapsing of domains */
  384. .matrix .matSection .matRow.meta {
  385. display: none;
  386. }
  387. .matrix .matSection.collapsible.collapsed .matRow.meta {
  388. display: block;
  389. }
  390. .matrix .matSection.collapsible.collapsed .matRow.l1:not(.meta) {
  391. display: none;
  392. }
  393. .matrix .matSection.collapsible.collapsed .matRow.l2.collapsible {
  394. display: none;
  395. }
  396. /* Collapsing of blacklisted */
  397. .matrix .g4Meta {
  398. margin: 0;
  399. padding: 0;
  400. border: 0;
  401. height: 6px;
  402. background: url('../img/matrix-group-hide.png') no-repeat center top,
  403. url('../img/matrix-group-hline.png') repeat-x center top 3px;
  404. opacity: 0.2;
  405. cursor: pointer;
  406. }
  407. .matrix .g4Meta:hover {
  408. opacity: 0.4;
  409. }
  410. .matrix .g4Meta.g4Collapsed {
  411. background: url('../img/matrix-group-show.png') no-repeat center top,
  412. url('../img/matrix-group-hline.png') repeat-x center top 3px;
  413. }
  414. .matrix .g4Meta.g4Collapsed ~ .matSection {
  415. display: none;
  416. }
  417. body.powerOff .matrix .g4Meta.g4Collapsed ~ .matSection {
  418. display: block;
  419. }
  420. .matrix .g4Meta ~ .matRow.ro {
  421. display: none;
  422. }
  423. .matrix .g4Meta.g4Collapsed ~ .matRow.ro {
  424. display: block;
  425. }
  426. body.powerOff .matrix .g4Meta.g4Collapsed ~ .matRow.ro {
  427. display: none;
  428. }
  429. .matrix .matGroup .g4Meta + *,.matrix .matGroup .g4Meta + * + * {
  430. margin-top: 0;
  431. padding-top: 0;
  432. }
  433. /* Cell coloring */
  434. .t81 {
  435. color: white;
  436. background-color: #c00;
  437. }
  438. .t82 {
  439. color: white;
  440. background-color: #080;
  441. }
  442. .t1 {
  443. border-color: #debaba;
  444. color: black;
  445. background-color: #f8d0d0;
  446. }
  447. .t2 {
  448. border-color: #bad6ba;
  449. color: black;
  450. background-color: #d0f0d0;
  451. }
  452. .matCell.p81 {
  453. background-image: url('../img/permanent-black-small.png');
  454. background-repeat: no-repeat;
  455. background-position: -1px -1px;
  456. }
  457. .matCell.p82 {
  458. background-image: url('../img/permanent-white-small.png');
  459. background-repeat: no-repeat;
  460. background-position: -1px -1px;
  461. }
  462. /* Cell coloring for color blind-friendly (hopefully) */
  463. body.colorblind .t81 {
  464. color: white;
  465. background-color: rgb(0, 19, 110);
  466. }
  467. body.colorblind .t82 {
  468. border-color: rgb(255, 194, 57);
  469. color: black;
  470. background-color: rgb(255, 194, 57);
  471. }
  472. body.colorblind .t1 {
  473. border-color: rgba(0, 19, 110, 0.3);
  474. color: black;
  475. background-color: rgba(0, 19, 110, 0.2);
  476. }
  477. body.colorblind .t2 {
  478. border-color: rgba(255, 194, 57, 0.3);
  479. color: black;
  480. background-color: rgba(255, 194, 57, 0.2);
  481. }
  482. body.colorblind .matCell.p81 {
  483. background-image: url('../img/permanent-black-small-cb.png');
  484. }
  485. body.colorblind .matCell.p82 {
  486. background-image: url('../img/permanent-white-small-cb.png');
  487. }
  488. .matRow.rw .matCell {
  489. cursor: pointer;
  490. }
  491. body.powerOff .matRow.rw .matCell {
  492. cursor: auto;
  493. opacity: 0.6;
  494. }
  495. .top {
  496. font-weight: bold;
  497. }
  498. #cellHotspots {
  499. margin: 0;
  500. border: 0;
  501. padding: 0;
  502. position: absolute;
  503. left: 0;
  504. top: 0;
  505. width: 100%;
  506. height: 100%;
  507. z-index: 10;
  508. }
  509. #whitelist, #blacklist {
  510. margin: 0;
  511. border: 0;
  512. padding: 0;
  513. position: absolute;
  514. left: 0;
  515. width: 100%;
  516. height: 50%;
  517. background: transparent;
  518. }
  519. #whitelist {
  520. top: 0;
  521. }
  522. #blacklist {
  523. top: 50%;
  524. }
  525. body.powerOff #whitelist, body.powerOff #blacklist {
  526. display: none;
  527. }
  528. .rw .matCell.t1 #whitelist:hover {
  529. background-color: #080;
  530. opacity: 0.25;
  531. }
  532. body.colorblind .rw .matCell.t1 #whitelist:hover,
  533. body.colorblind .rw .matCell.t2 #whitelist:hover {
  534. background-color: rgb(255, 194, 57);
  535. opacity: 0.6;
  536. }
  537. .rw .matCell.t2 #whitelist:hover {
  538. background-color: #080;
  539. opacity: 0.25;
  540. }
  541. .matCell.t81 #whitelist:hover {
  542. background-color: transparent;
  543. }
  544. .matCell.t82 #whitelist:hover {
  545. background-color: transparent;
  546. }
  547. .rw .matCell.t1 #blacklist:hover {
  548. background-color: #c00;
  549. opacity: 0.25;
  550. }
  551. body.colorblind .rw .matCell.t1 #blacklist:hover,
  552. body.colorblind .rw .matCell.t2 #blacklist:hover {
  553. background-color: rgb(0, 19, 110);
  554. opacity: 0.4;
  555. }
  556. .rw .matCell.t2 #blacklist:hover {
  557. background-color: #c00;
  558. opacity: 0.25;
  559. }
  560. .matCell.t81 #blacklist:hover {
  561. background-color: transparent;
  562. }
  563. .matCell.t82 #blacklist:hover {
  564. background-color: transparent;
  565. }
  566. #domainOnly {
  567. align-items: center;
  568. background-color: white;
  569. border: 1px solid #ccc;
  570. border-radius: 3px;
  571. bottom: -20%;
  572. color: black;
  573. cursor: pointer;
  574. display: none;
  575. fill: black;
  576. font-size: 100%;
  577. left: 20%;
  578. margin: 0;
  579. opacity: 0.25;
  580. padding: 3px;
  581. position: absolute;
  582. z-index: 10000;
  583. }
  584. .matSection.collapsed #domainOnly,
  585. #matHead.collapsed #domainOnly {
  586. transform: rotate(0.5turn);
  587. transform-origin: center;
  588. }
  589. .matSection.collapsible .matRow.l1 .matCell:nth-of-type(1):hover #domainOnly,
  590. #matHead.collapsible .matRow .matCell:nth-of-type(1):hover #domainOnly {
  591. display: inline-flex;
  592. }
  593. #domainOnly:hover {
  594. opacity: 1;
  595. }
  596. /* No data was found for the tab */
  597. body.noTabFound .paneHead,
  598. body.noTabFound .paneContent {
  599. display: none;
  600. }
  601. body.noTabFound #noTabFound {
  602. align-items: center;
  603. color: gray;
  604. display: flex;
  605. font-size: xx-large;
  606. height: 100vh;
  607. justify-content: center;
  608. }
  609. /* Mobile-friendly rules */
  610. body.hConstrained {
  611. overflow-x: auto;
  612. }
  613. body.hConstrained .paneHead {
  614. left: auto;
  615. position: absolute;
  616. right: auto;
  617. width: 100%;
  618. }
  619. body[data-touch="true"] .matCell {
  620. line-height: 200%;
  621. }