Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: skin/desktop-options.css

Issue 29674584: Issue 5549 - Implement missing error handlings for custom filter lists (Closed)
Left Patch Set: fixed linting typos Created Jan. 23, 2018, 10:46 a.m.
Right Patch Set: changed custom-filters-edit-area to custom-filters-control as suggested Created Feb. 5, 2018, 9:05 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « messageResponder.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 @font-face 18 @font-face
saroyanm 2018/01/23 15:26:06 Any Idea what causes this diff showing change on e
a.giammarchi 2018/01/23 15:43:19 Visual Studio Code sometimes is very dumb and caus
19 { 19 {
20 font-family: "Source Sans Pro"; 20 font-family: "Source Sans Pro";
21 src: url(fonts/SourceSansPro-Light.woff); 21 src: url(fonts/SourceSansPro-Light.woff);
22 /* local("Ø") forces using no local font called Source Sans Pro */ 22 /* local("Ø") forces using no local font called Source Sans Pro */
23 src: local("Ø"), url(fonts/SourceSansPro-Light.woff) format("woff"); 23 src: local("Ø"), url(fonts/SourceSansPro-Light.woff) format("woff");
24 font-weight: 300; 24 font-weight: 300;
25 font-style: normal; 25 font-style: normal;
26 } 26 }
27 27
28 @font-face 28 @font-face
29 { 29 {
30 font-family: "Source Sans Pro"; 30 font-family: "Source Sans Pro";
31 src: url(fonts/SourceSansPro-Regular.woff); 31 src: url(fonts/SourceSansPro-Regular.woff);
32 /* local("Ø") forces using no local font called Source Sans Pro */ 32 /* local("Ø") forces using no local font called Source Sans Pro */
33 src: local("Ø"), url(fonts/SourceSansPro-Regular.woff) format("woff"); 33 src: local("Ø"), url(fonts/SourceSansPro-Regular.woff) format("woff");
34 font-style: normal; 34 font-style: normal;
35 } 35 }
36 36
37 @font-face 37 @font-face
38 { 38 {
39 font-family: "Source Sans Pro"; 39 font-family: "Source Sans Pro";
40 src: url(fonts/SourceSansPro-bold.woff); 40 src: url(fonts/SourceSansPro-bold.woff);
41 /* local("Ø") forces using no local font called Source Sans Pro */ 41 /* local("Ø") forces using no local font called Source Sans Pro */
42 src: local("Ø"), url(fonts/SourceSansPro-bold.woff) format("woff"); 42 src: local("Ø"), url(fonts/SourceSansPro-bold.woff) format("woff");
43 font-weight: 700; 43 font-weight: 700;
44 font-style: normal; 44 font-style: normal;
45 } 45 }
46 46
47 html 47 html
48 { 48 {
49 font-size: 16px; 49 font-size: 16px;
50 } 50 }
51 51
52 body 52 body
53 { 53 {
54 background-color: #F3F3F3; 54 background-color: #F3F3F3;
55 display: flex; 55 display: flex;
56 justify-content: center; 56 justify-content: center;
57 /* We force vertical scrollbars to keep the content centered */ 57 /* We force vertical scrollbars to keep the content centered */
58 overflow-y: scroll; 58 overflow-y: scroll;
59 margin: 1rem 0.3rem; 59 margin: 1rem 0.3rem;
60 font-family: "Source Sans Pro", sans-serif; 60 font-family: "Source Sans Pro", sans-serif;
61 font-size: 1rem; 61 font-size: 1rem;
62 line-height: 1.3rem; 62 line-height: 1.3rem;
63 color: #4A4A4A; 63 color: #4A4A4A;
64 } 64 }
65 65
66 h1 66 h1
67 { 67 {
68 font-size: 3rem; 68 font-size: 3rem;
69 font-weight: 300; 69 font-weight: 300;
70 line-height: 3rem; 70 line-height: 3rem;
71 } 71 }
72 72
73 h2 73 h2
74 { 74 {
75 font-size: 1.125rem; 75 font-size: 1.125rem;
76 font-weight: 700; 76 font-weight: 700;
77 } 77 }
78 78
79 a 79 a
80 { 80 {
81 color: #077CA6; 81 color: #077CA6;
82 } 82 }
83 83
84 a:hover 84 a:hover
85 { 85 {
86 color: #5CBCE1; 86 color: #5CBCE1;
87 } 87 }
88 88
89 ul 89 ul
90 { 90 {
91 margin: 0rem; 91 margin: 0rem;
92 } 92 }
93 93
94 main h3 94 main h3
95 { 95 {
96 margin-top: 0rem; 96 margin-top: 0rem;
97 margin-bottom: 0.5rem; 97 margin-bottom: 0.5rem;
98 } 98 }
99 99
100 [aria-hidden="true"] 100 [aria-hidden="true"]
101 { 101 {
102 display: none !important; 102 display: none !important;
103 } 103 }
104 104
105 input[type="text"], 105 input[type="text"],
106 input[type="url"], 106 input[type="url"],
107 textarea, 107 textarea,
108 main 108 main
109 { 109 {
110 -webkit-box-sizing: border-box; 110 -webkit-box-sizing: border-box;
111 -moz-box-sizing: border-box; 111 -moz-box-sizing: border-box;
112 box-sizing: border-box; 112 box-sizing: border-box;
113 } 113 }
114 114
115 /* 115 /*
116 Normalization 116 Normalization
117 */
118
119 input,
120 button
121 {
122 font-family: inherit;
123 }
124
125 button
126 {
127 border-radius: 0rem;
128 }
129
130 /*
131 Buttons and links
132 */
133
134 button,
135 .button
136 {
137 display: block;
138 padding: 0.6rem 0.8rem;
139 background-color: transparent;
140 font-size: 1rem;
141 font-weight: 700;
142 text-decoration: none;
143 text-transform: uppercase;
144 cursor: pointer;
145 }
146
147 /* Ignore .icon to avoid overriding "specific" (primary, secondary) styles */
148 button.primary:not(.icon),
149 .button.primary:not(.icon)
150 {
151 border: 0px;
152 color: #FFF;
153 background-color: #077CA6;
154 }
155
156 button.primary:not([disabled]):not(.icon):hover,
157 .button.primary:not(.icon):hover
158 {
159 box-shadow: inset 0 0 0 3px #005D80;
160 }
161
162 button.primary[disabled]:not(.icon)
163 {
164 background-color: #5CBCE1;
165 }
166
167 button.secondary:not(.icon),
168 .button.secondary:not(.icon)
169 {
170 border: 2px solid #077CA6;
171 color: #077CA6;
172 }
173
174 button.secondary:not(.icon):hover,
175 .button.secondary:not(.icon):hover
176 {
177 box-shadow: inset 0 0 0 1px #077CA6;
178 }
179
180 button.link,
181 button.list
182 {
183 color: #077CA6;
184 }
185
186 button.link
187 {
188 border: 0px;
189 background-color: transparent;
190 font-weight: 400;
191 font-family: inherit;
192 text-transform: none;
193 text-decoration: underline;
194 padding: 0.2rem;
195 }
196
197 button.link:hover
198 {
199 color: #5CBCE1;
200 }
201
202 button.list
203 {
204 border-style: solid;
205 border-color: #CDCDCD;
206 border-width: 1px;
207 width: 100%;
208 background-color: #E1F2FA;
209 text-align: initial;
210 }
211
212 button.list:hover
213 {
214 box-shadow: inset 0 0 0 3px #077CA6;
215 border-color: #077CA6;
216 }
217
218 .side-controls:not(.wrap)
219 {
220 margin: 0.8rem 0rem;
221 display: flex;
222 align-self: center;
223 justify-content: flex-end;
224 }
225
226 .side-controls button
227 {
228 margin: 0rem;
229 -moz-margin-start: 1rem;
230 -webkit-margin-start: 1rem;
231 }
232
233 .side-controls.wrap button
234 {
235 margin: 0.6rem 0rem;
236 -moz-margin-start: auto;
237 -webkit-margin-start: auto;
238 }
239
240 /*
241 icons
242 */
243
244 .icon
245 {
246 border: 0px;
247 padding: 0px;
248 background-color: transparent;
249 }
250
251 .icon:hover
252 {
253 box-shadow: none;
254 }
255
256 .icon::before
257 {
258 content: "";
259 display: block;
260 border: 0.2rem solid transparent;
261 background-repeat: no-repeat;
262 }
263
264 button[role="checkbox"].icon::before
265 {
266 width: 1.2rem;
267 height: 1.2rem;
268 padding: 0px;
269 }
270
271 button[role="checkbox"][disabled].icon:not(.toggle)::before,
272 button[role="checkbox"][aria-disabled="true"].icon:not(.toggle)::before
273 {
274 border: 0rem;
275 margin: 0.2rem;
276 border-radius: 2px;
277 background-color: #ccc;
278 }
279
280 button[role="checkbox"].icon:not(.toggle)::before
281 {
282 /* Using ?query as a workaround to chromium bug #643716 */
283 background-image: url(icons/checkbox.svg?off#off);
284 }
285
286 button[role="checkbox"][aria-checked="true"].icon:not(.toggle)::before
287 {
288 background-image: url(icons/checkbox.svg?on#on);
289 }
290
291 button[role="checkbox"].icon.toggle::before
292 {
293 background-image: url(icons/toggle.svg?on#on);
294 }
295
296 button[role="checkbox"][aria-checked="false"].icon.toggle::before
297 {
298 background-image: url(icons/toggle.svg?off#off);
299 }
300
301 button[role="checkbox"].icon.toggle::before
302 {
303 width: 1.9rem;
304 height: 1rem;
305 }
306
307 button[role="checkbox"][disabled].icon.toggle::before
308 {
309 background: none;
310 }
311
312 .icon.delete::before
313 {
314 background-image: url(icons/trash.svg?default#default);
315 }
316
317 .icon.delete:hover::before
318 {
319 background-image: url(icons/trash.svg?hover#hover);
320 }
321
322 .icon.gear::before
323 {
324 background-image: url(icons/gear.svg?default#default);
325 }
326
327 .icon.gear:hover::before
328 {
329 background-image: url(icons/gear.svg?hover#hover);
330 }
331
332 .icon.gear::before,
333 .icon.delete::before
334 {
335 height: 1rem;
336 width: 1rem;
337 }
338
339 [data-validation] .floating-input input:focus:invalid ~ .icon.attention::before
340 {
341 background-image: url(icons/attention.svg);
342 }
343
344 [data-validation] .floating-input input:valid ~ .icon.attention::before
345 {
346 top: 0.5rem;
347 background-image: url(icons/checkmark.svg?approved#approved);
348 }
349
350 .context-menu .icon.update-subscription::before
351 {
352 background-image: url(icons/reload.svg);
353 }
354
355 .context-menu .icon.website::before
356 {
357 background-image: url(icons/globe.svg);
358 }
359
360 .context-menu .icon.source::before
361 {
362 background-image: url(icons/code.svg);
363 }
364
365 .context-menu .icon.delete::before
366 {
367 background-image: url(icons/trash.svg?default#default);
368 }
369
370 .close.icon::before
371 {
372 height: 1rem;
373 width: 1rem;
374 }
375
376 .icon.close.primary::before
377 {
378 background-image: url(icons/delete.svg?primary#primary);
379 }
380
381 .icon.close.primary:hover::before
382 {
383 background-image: url(icons/delete.svg?primary-hover#primary-hover);
384 }
385
386 .icon.close.secondary::before
387 {
388 background-image: url(icons/delete.svg?secondary#secondary);
389 }
390
391 .icon.close.tertiary::before
392 {
393 background-image: url(icons/delete.svg?tertiary#tertiary);
394 }
395
396 .icon.close.secondary:hover::before
397 {
398 background-image: url(icons/delete.svg?secondary-hover#secondary-hover);
399 }
400
401 .icon.close.tertiary:hover::before
402 {
403 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover);
404 }
405
406 .tooltip::before
407 {
408 width: 1.1rem;
409 height: 1.1rem;
410 }
411
412 .icon.tooltip::before
413 {
414 background-image: url(icons/tooltip.svg);
415 }
416
417 #dialog .table.list li button.icon::before
418 {
419 width: 1.3rem;
420 height: 1.3rem;
421 margin: 0rem;
422 border: 0rem;
423 background-image: none;
424 }
425
426 #dialog .table.list li button[aria-checked="true"].icon::before
427 {
428 background-image: url(icons/checkmark.svg?default#default);
429 }
430
431 #social ul li .icon::before
432 {
433 margin: 0em auto;
434 width: 2.5rem;
435 height: 2.5rem;
436 }
437
438 .icon#twitter::before
439 {
440 background-image: url("social/twitter.svg");
441 }
442
443 .icon#facebook::before
444 {
445 background-image: url("social/facebook.svg");
446 }
447
448 .icon#google-plus::before
449 {
450 background-image: url("social/googleplus.svg");
451 }
452
453 /*
454 Forms
455 */
456
457 .floating-input
458 {
459 position: relative;
460 padding-top: 0.7rem;
461 margin: 1.8rem 0rem 0.5rem 0rem;
462 }
463
464 .floating-input input
465 {
466 border-color: #CDCDCD;
467 border-width: 0px 0px 1px 0px;
468 outline: none;
469 font-size: 1rem;
470 padding: 5px;
471 width: 100%;
472 }
473
474 .floating-input input:placeholder-shown ~ label,
475 .floating-input input + label,
476 .floating-input input:focus + label
477 {
478 position: absolute;
479 top: 0.9rem;
480 left: 0.3rem;
481 font-size: 1rem;
482 }
483
484 .floating-input input + label,
485 .floating-input input:focus + label
486 {
487 top: -0.5rem;
488 font-size: 0.9rem;
489 }
490
491 html[dir="rtl"] .floating-input input:placeholder-shown ~ label,
492 html[dir="rtl"] .floating-input input ~ label,
493 html[dir="rtl"] .floating-input input:focus ~ label
494 {
495 right: 0.3rem;
496 left: auto;
497 }
498
499 [data-validation] .floating-input input:focus:invalid
500 {
501 border-color: #C11D27;
502 }
503
504 [data-validation] .floating-input input:focus:invalid ~ .attention::before,
505 [data-validation] .floating-input input:valid ~ .attention::before
506 {
507 position: absolute;
508 margin: 0.3rem;
509 height: 1.5rem;
510 width: 1.5rem;
511 top: 0.3rem;
512 right: 0rem;
513 }
514
515 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attent ion::before,
516 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::bef ore
517 {
518 left: 0rem;
519 right: auto;
520 }
521
522 [data-validation] .floating-input input ~ .error-msg
523 {
524 margin-top: 0.5rem;
525 color: #C11D27;
526 display: block;
527 visibility: hidden;
528 }
529
530 [data-validation] .floating-input input:focus:invalid ~ .error-msg
531 {
532 visibility: visible;
533 }
534
535 /*
536 Sidebar
537 */
538
539 #sidebar,
540 #sidebar .fixed,
541 [role="tablist"]
542 {
543 width: 14.3rem;
544 }
545
546 #sidebar
547 {
548 flex-shrink: 0;
549 }
550
551 #sidebar .fixed
552 {
553 top: 1.2rem;
554 bottom: 0rem;
555 height: auto;
556 }
557
558 #sidebar header
559 {
560 text-align: right;
561 margin-right: 2rem;
562 }
563
564 html[dir="rtl"] #sidebar header
565 {
566 margin-left: 2rem;
567 }
568
569 #sidebar header h1
570 {
571 margin: 0rem;
572 font-size: 1.5rem;
573 line-height: 2rem;
574 }
575
576 #sidebar header h1 strong
577 {
578 font-weight: 700;
579 }
580
581 #sidebar header p
582 {
583 margin: 0rem;
584 font-size: 1.8rem;
585 line-height: 2.6rem;
586 }
587
588 html[dir="rtl"] #sidebar header
589 {
590 text-align: left;
591 }
592
593 #sidebar-logo
594 {
595 width: 3rem;
596 margin-bottom: 0.7rem;
597 }
598
599 #sidebar nav,
600 #sidebar footer
601 {
602 margin: 1.4rem 0rem;
603 }
604
605 [role="tablist"]
606 {
607 list-style: none;
608 margin: 0rem;
609 padding: 0rem;
610 position: relative;
611 font-size: 1rem;
612 }
613
614 [role="tablist"] li a
615 {
616 display: flex;
617 margin-top: -1px;
618 padding: 1rem 0.8rem;
619 -moz-margin-end: -1px;
620 -webkit-margin-end: -1px;
621 -moz-margin-start: -1px;
622 -webkit-margin-start: -1px;
623 border-color: #CDCDCD transparent;
624 border-style: solid;
625 border-width: 1px;
626 text-decoration: none;
627 color: inherit;
628 cursor: pointer;
629 }
630
631 li a[role="tab"][aria-selected]
632 {
633 -moz-border-start-color: #CDCDCD;
634 -webkit-border-start-color: #CDCDCD;
635 font-weight: 700;
636 background-color: #FFF;
637 }
638
639 #sidebar footer
640 {
641 width: 100%;
642 }
643
644 #sidebar footer p
645 {
646 display: flex;
647 justify-content: center;
648 margin: 1rem 0rem;
649 }
650
651 /* This is a stopgap solution of footer overlapping tabs on low resolutions */
652 @media (min-height: 37rem)
653 {
654 #sidebar .fixed
655 {
656 position: fixed;
657 }
658
659 #sidebar footer
660 {
661 bottom: 0px;
662 position: absolute;
663 }
664 }
665
666 /*
667 Main content
668 */
669
670 body[data-tab|="general"] #content-general,
671 body[data-tab|="advanced"] #content-advanced,
672 body[data-tab|="whitelist"] #content-whitelist,
673 body[data-tab|="help"] #content-help
674 {
675 display: block;
676 }
677
678 main
679 {
680 background-color: #FFFFFF;
681 border: 1px solid #CDCDCD;
682 width: 46.3rem;
683 padding: 0px 0rem 1.4rem 0rem;
684 }
685
686 main > div
687 {
688 display: none;
689 }
690
691 main p
692 {
693 margin: 0.8rem 0rem;
694 }
695
696 /*
697 Sections
698 */
699
700 [role="tabpanel"] > section,
701 [role="tabpanel"] > .section
702 {
703 padding: 1.4rem 2rem;
704 border-top: 1px solid #CDCDCD;
705 }
706
707 [role="tabpanel"] > header h1,
708 [role="tabpanel"] > header p
709 {
710 padding: 0rem 2rem;
711 margin: 1.4rem 0rem;
712 }
713
714 section h2,
715 .section h2
716 {
717 margin: 0rem;
718 }
719
720 section h2
721 {
722 text-transform: uppercase;
723 }
724
725 section,
726 .section
727 {
728 clear: both;
729 }
730
731 section.cols
732 {
733 display: flex;
734 }
735
736 section.cols > *:first-child
737 {
738 flex: 1;
739 -moz-margin-end: 2rem;
740 -webkit-margin-end: 2rem;
741 }
742
743 section.cols > *:last-child
744 {
745 flex: 3;
746 }
747
748 /*
749 Acceptable ads
750 */
751
752 #tracking-warning
753 {
754 position: relative;
755 padding: 1.5rem;
756 margin-bottom: 1rem;
757 border: 2px solid #ffd7a3;
758 background-color: #fefbe3;
759 }
760
761 #acceptable-ads:not(.show-warning) #tracking-warning
762 {
763 display: none;
764 }
765
766 #hide-tracking-warning
767 {
768 position: absolute;
769 right: 0.8rem;
770 top: 0.8rem;
771 }
772
773 html[dir="rtl"] #hide-tracking-warning
774 {
775 left: 1rem;
776 right: auto;
777 }
778
779 #tracking-warning .link
780 {
781 color: inherit;
782 text-decoration: underline;
783 font-weight: 700;
784 }
785
786 #acceptable-ads ul
787 {
788 position: relative;
789 padding-left: 2.2rem;
790 list-style: none;
791 }
792
793 html[dir="rtl"] #acceptable-ads ul
794 {
795 padding-left: 0rem;
796 padding-right: 2.2rem;
797 }
798
799 #acceptable-ads ul button
800 {
801 position: absolute;
802 left: 0rem;
803 }
804
805 html[dir="rtl"] button
806 {
807 left: auto;
808 right: 0rem;
809 }
810
811 #acceptable-ads label
812 {
813 font-weight: 700;
814 font-size: 1rem;
815 -moz-margin-end: 0.5rem;
816 -webkit-margin-end: 0.5rem;
817 }
818
819 #dnt
820 {
821 padding: 0.8rem;
822 border: 1px solid #077CA6;
823 }
824
825 .new
826 {
827 display: inline-block;
828 padding: 0.2rem 0.5rem;
829 border-radius: 0.2rem;
830 background-color: #077CA6;
831 color: #FFF;
832 line-height: 100%;
833 font-size: 0.8rem;
834 text-transform: uppercase;
835 }
836
837 /*
838 Tables
839 */
840
841 ul.table,
842 ul.list
843 {
844 list-style: none;
845 margin: 0rem;
846 padding: 0rem;
847 }
848
849 .table li,
850 .list li
851 {
852 display: flex;
853 align-items: center;
854 }
855
856 .table li
857 {
858 margin: 0rem;
859 border-style: solid;
860 border-color: #CDCDCD;
861 border-width: 0px 1px 1px 1px;
862 }
863
864 .list li
865 {
866 padding: 0rem;
867 margin-bottom: 0.8rem;
868 }
869
870 .list li [role="checkbox"]
871 {
872 flex-shrink: 0;
873 }
874
875 .table li:first-of-type
876 {
877 border-top: 1px solid #CDCDCD;
878 }
879
880 .table.list li
881 {
882 padding: 0.5rem 1rem;
883 margin: 0rem;
884 }
885
886 .table.list.bottom-control li:last-of-type
887 {
888 border-bottom: 0px;
889 }
890
891 .list li > span
892 {
893 margin: 0rem 1rem;
894 }
895
896 .table.list li > span
897 {
898 flex: 1;
899 margin: 0rem;
900 }
901
902 .table.list li.empty-placeholder
903 {
904 padding: 1rem 1.4rem;
905 }
906
907 .table.list li.empty-placeholder:not(:last-of-type)
908 {
909 border-bottom: 0px;
910 }
911
912 .table.list button.link
913 {
914 font-weight: 700;
915 text-transform: uppercase;
916 text-decoration: none;
917 }
918
919 .table:not(.list):not(.cols) li
920 {
921 padding-top: 0px;
922 padding-bottom: 6px;
923 }
924
925 .table li [data-single="visible"],
926 .table li:first-of-type:last-of-type [data-single="hidden"]
927 {
928 display: none;
929 }
930
931 .table li:first-of-type:last-of-type [data-single="visible"]
932 {
933 display: block;
934 }
935
936 .th
937 {
938 display: flex;
939 }
940
941 .col5 > *
942 {
943 display: inline-block;
944 vertical-align: middle;
945 }
946
947 .cols .col5
948 {
949 margin: 0rem 1rem;
950 }
951
952 .th .col5:nth-of-type(1),
953 .table .col5:nth-of-type(1)
954 {
955 flex: 4;
956 }
957
958 .th .col5:nth-of-type(2),
959 .table .col5:nth-of-type(2)
960 {
961 flex: 8;
962 }
963
964 .th .col5:nth-of-type(3),
965 .table .col5:nth-of-type(3)
966 {
967 flex: 4;
968 }
969
970 .th .col5:nth-of-type(4),
971 .table .col5:nth-of-type(4)
972 {
973 flex: 1;
974 }
975
976 .th .col5:nth-of-type(5),
977 .table .col5:nth-of-type(5)
978 {
979 flex: 1;
980 -moz-margin-start: 0;
981 -webkit-margin-start: 0;
982 -moz-margin-end: 1.8rem;
983 -webkit-margin-end: 1.8rem;
984 }
985
986 .table.cols > span
987 {
988 margin: 0rem;
989 }
990
991 .table.cols li
992 {
993 padding: 0.5rem 0rem;
994 }
995
996 .table.cols .state
997 {
998 -moz-margin-start: 1rem;
999 -webkit-margin-start: 1rem;
1000 }
1001
1002 .table.cols .gear
1003 {
1004 margin: 0rem
1005 }
1006
1007 #dialog .table.list li
1008 {
1009 display: block;
1010 border-width: 1px 0px 0px 0px;
1011 padding: 0rem;
1012 }
1013
1014 #dialog .table.list li:first-of-type
1015 {
1016 border: 0px;
1017 }
1018
1019 #dialog .table.list li button
1020 {
1021 display: flex;
1022 background-image: none;
1023 width: 100%;
1024 height: auto;
1025 padding: 1.1rem 1rem;
1026 }
1027
1028 #dialog .table.list li button:hover,
1029 #dialog .table.list li button:focus
1030 {
1031 background-color: #E1F2FA;
1032 }
1033
1034 #dialog .table.list li button[aria-checked="true"],
1035 .table.list li .dimmed
1036 {
1037 color: #BBB;
1038 }
1039
1040 #dialog .table.list li button > span
1041 {
1042 flex: none;
1043 margin: 0rem 0.8rem;
1044 text-transform: none;
1045 font-weight: 400;
1046 }
1047
1048 /*
1049 Tooltips
1050 */ 117 */
1051 118
1052 .tooltip 119 input,
1053 { 120 button
1054 position: relative; 121 {
1055 margin: 0rem; 122 font-family: inherit;
1056 -moz-margin-end: 1rem; 123 }
1057 -webkit-margin-end: 1rem; 124
1058 line-height: 1.5rem; 125 button
1059 text-decoration: none; 126 {
1060 cursor: help; 127 border-radius: 0rem;
1061 } 128 }
1062 129
1063 /* 130 /*
1064 Used for translatable screen reader only content. 131 Buttons and links
1065 e.g.: Use instead of aria-label to avoid complex attribute value translation
1066 */ 132 */
1067 .sr-only 133
1068 { 134 button,
1069 position: absolute; 135 .button
1070 overflow: hidden; 136 {
1071 clip: rect(0, 0, 0, 0); 137 display: block;
1072 width: 1px; 138 padding: 0.6rem 0.8rem;
1073 height: 1px; 139 background-color: transparent;
1074 margin: -1px; 140 font-size: 1rem;
1075 padding: 0px; 141 font-weight: 700;
1076 border: 0px; 142 text-decoration: none;
1077 } 143 text-transform: uppercase;
1078 144 cursor: pointer;
1079 /* 145 }
1080 General tab content 146
147 /* Ignore .icon to avoid overriding "specific" (primary, secondary) styles */
148 button.primary:not(.icon),
149 .button.primary:not(.icon)
150 {
151 border: 0px;
152 color: #FFF;
153 background-color: #077CA6;
154 }
155
156 button.primary:not([disabled]):not(.icon):hover,
157 .button.primary:not(.icon):hover
158 {
159 box-shadow: inset 0 0 0 3px #005D80;
160 }
161
162 button.primary[disabled]:not(.icon)
163 {
164 background-color: #5CBCE1;
165 }
166
167 button.secondary:not(.icon),
168 .button.secondary:not(.icon)
169 {
170 border: 2px solid #077CA6;
171 color: #077CA6;
172 }
173
174 button.secondary:not(.icon):hover,
175 .button.secondary:not(.icon):hover
176 {
177 box-shadow: inset 0 0 0 1px #077CA6;
178 }
179
180 button.link,
181 button.list
182 {
183 color: #077CA6;
184 }
185
186 button.link
187 {
188 border: 0px;
189 background-color: transparent;
190 font-weight: 400;
191 font-family: inherit;
192 text-transform: none;
193 text-decoration: underline;
194 padding: 0.2rem;
195 }
196
197 button.link:hover
198 {
199 color: #5CBCE1;
200 }
201
202 button.list
203 {
204 border-style: solid;
205 border-color: #CDCDCD;
206 border-width: 1px;
207 width: 100%;
208 background-color: #E1F2FA;
209 text-align: initial;
210 }
211
212 button.list:hover
213 {
214 box-shadow: inset 0 0 0 3px #077CA6;
215 border-color: #077CA6;
216 }
217
218 .side-controls:not(.wrap)
219 {
220 margin: 0.8rem 0rem;
221 display: flex;
222 align-self: center;
223 justify-content: flex-end;
224 }
225
226 .side-controls button
227 {
228 margin: 0rem;
229 -moz-margin-start: 1rem;
230 -webkit-margin-start: 1rem;
231 }
232
233 .side-controls.wrap button
234 {
235 margin: 0.6rem 0rem;
236 -moz-margin-start: auto;
237 -webkit-margin-start: auto;
238 }
239
240 /*
241 icons
1081 */ 242 */
1082 243
1083 #blocking-languages-dialog-table 244 .icon
1084 { 245 {
1085 border-bottom: none; 246 border: 0px;
1086 } 247 padding: 0px;
1087 248 background-color: transparent;
1088 .button-add, .cancel-button 249 }
1089 { 250
1090 background-color: transparent; 251 .icon:hover
1091 border: 0px; 252 {
1092 color: #3A7BA6; 253 box-shadow: none;
1093 cursor: pointer; 254 }
1094 } 255
1095 256 .icon::before
1096 /* 257 {
1097 Whitelist tab 258 content: "";
1098 */ 259 display: block;
1099 260 border: 0.2rem solid transparent;
1100 #content-whitelist form 261 background-repeat: no-repeat;
1101 { 262 }
1102 display: flex; 263
1103 } 264 button[role="checkbox"].icon::before
1104 265 {
1105 #content-whitelist form input 266 width: 1.2rem;
1106 { 267 height: 1.2rem;
1107 flex: 1; 268 padding: 0px;
1108 height: 100%; 269 }
1109 padding: 0.5rem 1rem; 270
1110 font-size: 1rem; 271 button[role="checkbox"][disabled].icon:not(.toggle)::before,
1111 border: 2px solid #077CA6; 272 button[role="checkbox"][aria-disabled="true"].icon:not(.toggle)::before
1112 } 273 {
1113 274 border: 0rem;
1114 #content-whitelist form button 275 margin: 0.2rem;
1115 { 276 border-radius: 2px;
1116 -moz-margin-start: 0.7rem; 277 background-color: #ccc;
1117 -webkit-margin-start: 0.7rem; 278 }
1118 } 279
1119 280 button[role="checkbox"].icon:not(.toggle)::before
1120 #whitelisting-table li 281 {
1121 { 282 /* Using ?query as a workaround to chromium bug #643716 */
1122 padding-left: 1.4rem; 283 background-image: url(icons/checkbox.svg?off#off);
1123 padding-right: 1.4rem; 284 }
1124 border-left: 0rem; 285
1125 border-right: 0rem; 286 button[role="checkbox"][aria-checked="true"].icon:not(.toggle)::before
1126 } 287 {
1127 288 background-image: url(icons/checkbox.svg?on#on);
1128 /* 289 }
1129 Advanced tab content 290
291 button[role="checkbox"].icon.toggle::before
292 {
293 background-image: url(icons/toggle.svg?on#on);
294 }
295
296 button[role="checkbox"][aria-checked="false"].icon.toggle::before
297 {
298 background-image: url(icons/toggle.svg?off#off);
299 }
300
301 button[role="checkbox"].icon.toggle::before
302 {
303 width: 1.9rem;
304 height: 1rem;
305 }
306
307 button[role="checkbox"][disabled].icon.toggle::before
308 {
309 background: none;
310 }
311
312 .icon.delete::before
313 {
314 background-image: url(icons/trash.svg?default#default);
315 }
316
317 .icon.delete:hover::before
318 {
319 background-image: url(icons/trash.svg?hover#hover);
320 }
321
322 .icon.gear::before
323 {
324 background-image: url(icons/gear.svg?default#default);
325 }
326
327 .icon.gear:hover::before
328 {
329 background-image: url(icons/gear.svg?hover#hover);
330 }
331
332 .icon.gear::before,
333 .icon.delete::before
334 {
335 height: 1rem;
336 width: 1rem;
337 }
338
339 [data-validation] .floating-input input:focus:invalid ~ .icon.attention::before
340 {
341 background-image: url(icons/attention.svg);
342 }
343
344 [data-validation] .floating-input input:valid ~ .icon.attention::before
345 {
346 top: 0.5rem;
347 background-image: url(icons/checkmark.svg?approved#approved);
348 }
349
350 .context-menu .icon.update-subscription::before
351 {
352 background-image: url(icons/reload.svg);
353 }
354
355 .context-menu .icon.website::before
356 {
357 background-image: url(icons/globe.svg);
358 }
359
360 .context-menu .icon.source::before
361 {
362 background-image: url(icons/code.svg);
363 }
364
365 .context-menu .icon.delete::before
366 {
367 background-image: url(icons/trash.svg?default#default);
368 }
369
370 .close.icon::before
371 {
372 height: 1rem;
373 width: 1rem;
374 }
375
376 .icon.close.primary::before
377 {
378 background-image: url(icons/delete.svg?primary#primary);
379 }
380
381 .icon.close.primary:hover::before
382 {
383 background-image: url(icons/delete.svg?primary-hover#primary-hover);
384 }
385
386 .icon.close.secondary::before
387 {
388 background-image: url(icons/delete.svg?secondary#secondary);
389 }
390
391 .icon.close.tertiary::before
392 {
393 background-image: url(icons/delete.svg?tertiary#tertiary);
394 }
395
396 .icon.close.secondary:hover::before
397 {
398 background-image: url(icons/delete.svg?secondary-hover#secondary-hover);
399 }
400
401 .icon.close.tertiary:hover::before
402 {
403 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover);
404 }
405
406 .tooltip::before
407 {
408 width: 1.1rem;
409 height: 1.1rem;
410 }
411
412 .icon.tooltip::before
413 {
414 background-image: url(icons/tooltip.svg);
415 }
416
417 #dialog .table.list li button.icon::before
418 {
419 width: 1.3rem;
420 height: 1.3rem;
421 margin: 0rem;
422 border: 0rem;
423 background-image: none;
424 }
425
426 #dialog .table.list li button[aria-checked="true"].icon::before
427 {
428 background-image: url(icons/checkmark.svg?default#default);
429 }
430
431 #social ul li .icon::before
432 {
433 margin: 0em auto;
434 width: 2.5rem;
435 height: 2.5rem;
436 }
437
438 .icon#twitter::before
439 {
440 background-image: url("social/twitter.svg");
441 }
442
443 .icon#facebook::before
444 {
445 background-image: url("social/facebook.svg");
446 }
447
448 .icon#google-plus::before
449 {
450 background-image: url("social/googleplus.svg");
451 }
452
453 /*
454 Forms
1130 */ 455 */
1131 456
1132 #all-filter-lists-table li.show-message .last-update, 457 .floating-input
1133 #all-filter-lists-table li:not(.show-message) .message, 458 {
1134 #custom-filters:not([data-mode="empty"]) #empty-custom-filters, 459 position: relative;
1135 #custom-filters[data-mode="empty"] #custom-filters-raw, 460 padding-top: 0.7rem;
1136 #custom-filters:not([data-mode="write"]) #custom-filters-raw-controls, 461 margin: 1.8rem 0rem 0.5rem 0rem;
1137 #custom-filters:not([data-mode="read"]) #custom-filters-edit, 462 }
1138 #custom-filters-edit-filters, 463
1139 #link-filters-on-edit-error, 464 .floating-input input
1140 .state span, 465 {
1141 #acceptable-ads:not(.show-dnt-notification) #dnt 466 border-color: #CDCDCD;
1142 { 467 border-width: 0px 0px 1px 0px;
1143 display: none; 468 outline: none;
1144 } 469 font-size: 1rem;
1145 470 padding: 5px;
1146 #all-filter-lists-table button[role="checkbox"][aria-checked="true"] + .state # state-active, 471 width: 100%;
1147 #all-filter-lists-table button[role="checkbox"][aria-checked="false"] + .state #state-disabled, 472 }
1148 #link-filters-on-edit-error.visible 473
1149 { 474 .floating-input input:placeholder-shown ~ label,
1150 display: inline; 475 .floating-input input + label,
1151 } 476 .floating-input input:focus + label
1152 477 {
1153 #all-filter-lists-table 478 position: absolute;
1154 { 479 top: 0.9rem;
1155 margin-bottom: 0.8rem; 480 left: 0.3rem;
1156 } 481 font-size: 1rem;
1157 482 }
1158 #custom-filters-edit { 483
1159 white-space: nowrap; 484 .floating-input input + label,
1160 } 485 .floating-input input:focus + label
1161 486 {
1162 #custom-filters-edit-area { 487 top: -0.5rem;
1163 display: flex; 488 font-size: 0.9rem;
1164 width: 100%; 489 }
1165 } 490
1166 491 html[dir="rtl"] .floating-input input:placeholder-shown ~ label,
1167 /* 492 html[dir="rtl"] .floating-input input ~ label,
1168 avoid doubled margin glitchy behavior 493 html[dir="rtl"] .floating-input input:focus ~ label
1169 as shown in visual specifications 494 {
495 right: 0.3rem;
496 left: auto;
497 }
498
499 [data-validation] .floating-input input:focus:invalid
500 {
501 border-color: #C11D27;
502 }
503
504 [data-validation] .floating-input input:focus:invalid ~ .attention::before,
505 [data-validation] .floating-input input:valid ~ .attention::before
506 {
507 position: absolute;
508 margin: 0.3rem;
509 height: 1.5rem;
510 width: 1.5rem;
511 top: 0.3rem;
512 right: 0rem;
513 }
514
515 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti on::before,
516 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo re
517 {
518 left: 0rem;
519 right: auto;
520 }
521
522 [data-validation] .floating-input input ~ .error-msg
523 {
524 margin-top: 0.5rem;
525 color: #C11D27;
526 display: block;
527 visibility: hidden;
528 }
529
530 [data-validation] .floating-input input:focus:invalid ~ .error-msg
531 {
532 visibility: visible;
533 }
534
535 /*
536 Sidebar
1170 */ 537 */
1171 #custom-filters-edit-area .side-controls .side-controls { 538
1172 margin: 0; 539 #sidebar,
1173 } 540 #sidebar .fixed,
1174 541 [role="tablist"]
1175 /* 542 {
1176 visibility: hidden; 543 width: 14.3rem;
1177 preserves the flex-box meaning, 544 }
1178 keeping buttons on the right. 545
546 #sidebar
547 {
548 flex-shrink: 0;
549 }
550
551 #sidebar .fixed
552 {
553 top: 1.2rem;
554 bottom: 0rem;
555 height: auto;
556 }
557
558 #sidebar header
559 {
560 text-align: right;
561 margin-right: 2rem;
562 }
563
564 html[dir="rtl"] #sidebar header
565 {
566 margin-left: 2rem;
567 }
568
569 #sidebar header h1
570 {
571 margin: 0rem;
572 font-size: 1.5rem;
573 line-height: 2rem;
574 }
575
576 #sidebar header h1 strong
577 {
578 font-weight: 700;
579 }
580
581 #sidebar header p
582 {
583 margin: 0rem;
584 font-size: 1.8rem;
585 line-height: 2.6rem;
586 }
587
588 html[dir="rtl"] #sidebar header
589 {
590 text-align: left;
591 }
592
593 #sidebar-logo
594 {
595 width: 3rem;
596 margin-bottom: 0.7rem;
597 }
598
599 #sidebar nav,
600 #sidebar footer
601 {
602 margin: 1.4rem 0rem;
603 }
604
605 [role="tablist"]
606 {
607 list-style: none;
608 margin: 0rem;
609 padding: 0rem;
610 position: relative;
611 font-size: 1rem;
612 }
613
614 [role="tablist"] li a
615 {
616 display: flex;
617 margin-top: -1px;
618 padding: 1rem 0.8rem;
619 -moz-margin-end: -1px;
620 -webkit-margin-end: -1px;
621 -moz-margin-start: -1px;
622 -webkit-margin-start: -1px;
623 border-color: #CDCDCD transparent;
624 border-style: solid;
625 border-width: 1px;
626 text-decoration: none;
627 color: inherit;
628 cursor: pointer;
629 }
630
631 li a[role="tab"][aria-selected]
632 {
633 -moz-border-start-color: #CDCDCD;
634 -webkit-border-start-color: #CDCDCD;
635 font-weight: 700;
636 background-color: #FFF;
637 }
638
639 #sidebar footer
640 {
641 width: 100%;
642 }
643
644 #sidebar footer p
645 {
646 display: flex;
647 justify-content: center;
648 margin: 1rem 0rem;
649 }
650
651 /* This is a stopgap solution of footer overlapping tabs on low resolutions */
652 @media (min-height: 37rem)
653 {
654 #sidebar .fixed
655 {
656 position: fixed;
657 }
658
659 #sidebar footer
660 {
661 bottom: 0px;
662 position: absolute;
663 }
664 }
665
666 /*
667 Main content
1179 */ 668 */
1180 #custom-filters-edit-error { 669
1181 visibility: hidden; 670 body[data-tab|="general"] #content-general,
1182 display: flex; 671 body[data-tab|="advanced"] #content-advanced,
1183 align-self: center; 672 body[data-tab|="whitelist"] #content-whitelist,
1184 justify-content: flex-start; 673 body[data-tab|="help"] #content-help
1185 font-weight: bold; 674 {
1186 } 675 display: block;
1187 676 }
1188 #custom-filters-edit-error.warning, 677
1189 #custom-filters-edit-filters 678 main
1190 { 679 {
1191 color: #C11D26; 680 background-color: #FFFFFF;
1192 padding: 0.2rem 0.8rem; 681 border: 1px solid #CDCDCD;
1193 } 682 width: 46.3rem;
1194 683 padding: 0px 0rem 1.4rem 0rem;
1195 #custom-filters-edit-error.warning { 684 }
1196 visibility: visible; 685
1197 } 686 main > div
1198 687 {
1199 #custom-filters-edit-filters { 688 display: none;
1200 display: block; 689 }
1201 white-space: pre; 690
1202 overflow: auto; 691 main p
1203 } 692 {
1204 693 margin: 0.8rem 0rem;
1205 #custom-filters-edit-filters.many { 694 }
1206 border: 1px solid silver; 695
1207 max-height: 6.2rem; 696 /*
1208 } 697 Sections
1209
1210 #custom-filters-raw
1211 {
1212 width: 100%;
1213 height: 23.6rem;
1214 padding: 0.8rem;
1215 }
1216
1217 #custom-filters-raw:focus
1218 {
1219 outline: none;
1220 border: 2px solid #077CA6;
1221 }
1222
1223 #custom-filters-raw.warning
1224 {
1225 outline: none;
1226 border: 2px solid #C11D26;
1227 }
1228
1229 #empty-custom-filters
1230 {
1231 padding: 1.5rem;
1232 border: 1px solid #CDCDCD;
1233 }
1234
1235 /*
1236 Context menu
1237 */
1238
1239 li [role="menubar"]
1240 {
1241 position: relative;
1242 }
1243
1244 [role="tooltip"]
1245 {
1246 right: -0.8rem;
1247 margin-top: 0.8rem;
1248 opacity: 1;
1249 padding: 0.2rem 1rem;
1250 position: absolute;
1251 -webkit-transition: opacity 200ms ease-in-out 400ms,
1252 visibility 0ms linear 400ms;
1253 transition: opacity 200ms ease-in-out 400ms,
1254 visibility 0ms linear 400ms;
1255 visibility: visible;
1256 width: 15rem;
1257 z-index: 1;
1258 }
1259
1260 html[dir="rtl"] [role="tooltip"]
1261 {
1262 right: auto;
1263 left: -0.8rem;
1264 }
1265
1266 [role="tooltip"],
1267 .context-menu .content
1268 {
1269 border: 1px solid #077CA6;
1270 border-radius: 3px;
1271 background-color: #FFFFFF;
1272 }
1273
1274
1275 .tooltip:not(:hover) > [role="tooltip"],
1276 [role="tooltip"]:hover
1277 {
1278 visibility: hidden;
1279 opacity: 0;
1280 -webkit-transition-delay: 0ms;
1281 transition-delay: 0ms;
1282 }
1283
1284 .context-menu
1285 {
1286 position: absolute;
1287 right: 2.5rem;
1288 top: -2rem;
1289 z-index: 1;
1290 visibility: hidden;
1291 }
1292
1293 html[dir="rtl"] .context-menu
1294 {
1295 right: auto;
1296 left: 2.5rem;
1297 }
1298
1299 .context-menu .content
1300 {
1301 padding: 0rem;
1302 position: relative;
1303 cursor: default;
1304 }
1305
1306 li.show-context-menu .context-menu
1307 {
1308 visibility: visible;
1309 }
1310
1311 [role="tooltip"]::before,
1312 .context-menu::before
1313 {
1314 content: "";
1315 width: 0rem;
1316 height: 0rem;
1317 position: absolute;
1318 }
1319
1320 [role="tooltip"]::before
1321 {
1322 border-left: 10px solid transparent;
1323 border-right: 10px solid transparent;
1324 border-bottom: 10px solid #077CA6;
1325 top: -10px;
1326 right: 15px;
1327 }
1328
1329 html[dir="rtl"] [role="tooltip"]::before
1330 {
1331 right: auto;
1332 left: 15px;
1333 }
1334
1335 .context-menu::before
1336 {
1337 border-left: 10px solid #077CA6;
1338 border-top: 10px solid transparent;
1339 border-bottom: 10px solid transparent;
1340 top: 22px;
1341 right: -0.5rem;
1342 }
1343
1344 html[dir="rtl"] .context-menu::before
1345 {
1346 border-left: 0rem;
1347 border-right: 10px solid #077CA6;
1348 right: auto;
1349 left: -0.5rem;
1350 }
1351
1352 .context-menu li[role="menuitem"]
1353 {
1354 width: 12.2rem;
1355 border: 0rem;
1356 padding: 0rem;
1357 }
1358
1359 .context-menu li[role="menuitem"] > *
1360 {
1361 width: 100%;
1362 display: flex;
1363 border: 0rem;
1364 padding: 0.7rem 0rem;
1365 color: #077CA6;
1366 align-items: center;
1367 font-size: 1rem;
1368 font-weight: 400;
1369 text-transform: none;
1370 text-decoration: none;
1371 }
1372
1373 .context-menu li[role="menuitem"] > *:hover,
1374 .context-menu li[role="menuitem"] > *:focus
1375 {
1376 background-color: #E1F2FA;
1377 cursor: pointer;
1378 }
1379
1380 .context-menu li[role="menuitem"] .icon::before
1381 {
1382 height: 1rem;
1383 width: 1rem;
1384 margin: 0rem 1.1rem;
1385 border: 0rem;
1386 }
1387
1388 /*
1389 Help tab content
1390 */ 698 */
1391 699
1392 html:not([lang="zh"]) #social-chinese, 700 [role="tabpanel"] > section,
1393 html[lang="zh"] #social-general 701 [role="tabpanel"] > .section
1394 { 702 {
1395 display: none; 703 padding: 1.4rem 2rem;
1396 } 704 border-top: 1px solid #CDCDCD;
1397 705 }
1398 #social ul 706
1399 { 707 [role="tabpanel"] > header h1,
1400 list-style: none; 708 [role="tabpanel"] > header p
1401 padding: 0px; 709 {
1402 } 710 padding: 0rem 2rem;
1403 711 margin: 1.4rem 0rem;
1404 #social ul li 712 }
1405 { 713
1406 display: inline-block; 714 section h2,
1407 margin-right: 1rem; 715 .section h2
1408 -moz-margin-end: 1rem; 716 {
1409 -webkit-margin-end: 1rem; 717 margin: 0rem;
1410 } 718 }
1411 719
1412 #social ul li a 720 section h2
1413 { 721 {
1414 display: block; 722 text-transform: uppercase;
1415 text-align: center; 723 }
1416 text-decoration: none; 724
1417 } 725 section,
1418 726 .section
1419 /* 727 {
1420 Dialog 728 clear: both;
729 }
730
731 section.cols
732 {
733 display: flex;
734 }
735
736 section.cols > *:first-child
737 {
738 flex: 1;
739 -moz-margin-end: 2rem;
740 -webkit-margin-end: 2rem;
741 }
742
743 section.cols > *:last-child
744 {
745 flex: 3;
746 }
747
748 /*
749 Acceptable ads
1421 */ 750 */
1422 751
1423 #dialog-background 752 #tracking-warning
1424 { 753 {
1425 display: none; 754 position: relative;
1426 position: fixed; 755 padding: 1.5rem;
1427 top: 0px; 756 margin-bottom: 1rem;
1428 right: 0px; 757 border: 2px solid #ffd7a3;
1429 bottom: 0px; 758 background-color: #fefbe3;
1430 left: 0px; 759 }
1431 z-index: 2; 760
1432 background-color: #000; 761 #acceptable-ads:not(.show-warning) #tracking-warning
1433 opacity: 0.7; 762 {
1434 } 763 display: none;
1435 764 }
1436 body[data-dialog] #dialog-background 765
1437 { 766 #hide-tracking-warning
1438 display: block; 767 {
1439 } 768 position: absolute;
1440 769 right: 0.8rem;
1441 #dialog 770 top: 0.8rem;
1442 { 771 }
1443 position: fixed; 772
1444 top: 100px; 773 html[dir="rtl"] #hide-tracking-warning
1445 left: 0px; 774 {
1446 right: 0px; 775 left: 1rem;
1447 z-index: 2; 776 right: auto;
1448 width: 50vw; 777 }
1449 margin: auto; 778
1450 border-radius: 3px; 779 #tracking-warning .link
1451 background-color: #FFFFFF; 780 {
1452 } 781 color: inherit;
1453 782 text-decoration: underline;
1454 #dialog header 783 font-weight: 700;
1455 { 784 }
1456 display: flex; 785
1457 padding: 0.7rem 1.5rem; 786 #acceptable-ads ul
1458 background-color: #077CA6; 787 {
1459 } 788 position: relative;
1460 789 padding-left: 2.2rem;
1461 #dialog header h3 790 list-style: none;
1462 { 791 }
1463 margin: 0rem; 792
1464 font-size: 1rem; 793 html[dir="rtl"] #acceptable-ads ul
1465 font-weight: 700; 794 {
1466 } 795 padding-left: 0rem;
1467 796 padding-right: 2.2rem;
1468 .close 797 }
1469 { 798
1470 margin: 0rem; 799 #acceptable-ads ul button
1471 cursor: pointer; 800 {
1472 } 801 position: absolute;
1473 802 left: 0rem;
1474 #dialog #dialog-body 803 }
1475 { 804
1476 max-height: 60vh; 805 html[dir="rtl"] button
1477 overflow: auto; 806 {
1478 } 807 left: auto;
1479 808 right: 0rem;
1480 .dialog-content 809 }
1481 { 810
1482 margin: 1rem 1.8rem; 811 #acceptable-ads label
1483 } 812 {
1484 813 font-weight: 700;
1485 [data-dialog="language-change"] .dialog-content, 814 font-size: 1rem;
1486 [data-dialog="language-add"] .dialog-content 815 -moz-margin-end: 0.5rem;
1487 { 816 -webkit-margin-end: 0.5rem;
1488 margin: 0rem; 817 }
1489 } 818
1490 819 #dnt
1491 [data-dialog="about"] .dialog-content 820 {
1492 { 821 padding: 0.8rem;
1493 text-align: center; 822 border: 1px solid #077CA6;
1494 } 823 }
1495 824
1496 [data-dialog="about"] .content button 825 .new
1497 { 826 {
1498 margin: 1.5rem auto 1.8rem auto; 827 display: inline-block;
1499 } 828 padding: 0.2rem 0.5rem;
1500 829 border-radius: 0.2rem;
1501 [data-dialog="about"] p 830 background-color: #077CA6;
1502 { 831 color: #FFF;
1503 margin: 0.5rem 0rem; 832 line-height: 100%;
1504 } 833 font-size: 0.8rem;
1505 834 text-transform: uppercase;
1506 [data-dialog="import"] .side-controls 835 }
1507 { 836
1508 margin-top: 2.45rem; 837 /*
1509 } 838 Tables
1510
1511 #dialog .table
1512 {
1513 width: 100%;
1514 }
1515
1516 #dialog .section:not(:first-child)
1517 {
1518 margin-top: 24px;
1519 }
1520
1521 #dialog-title
1522 {
1523 flex: 1;
1524 font-size: 16px;
1525 color: #FFFFFF;
1526 }
1527
1528 #dialog-body .dialog-content-block
1529 {
1530 padding: 12px 0px;
1531 }
1532
1533 #dialog .url
1534 {
1535 margin-top: 10px;
1536 margin-bottom: 20px;
1537 word-wrap: break-word;
1538 }
1539
1540 body:not([data-dialog="about"]) #dialog-title-about,
1541 body:not([data-dialog="about"]) #dialog-content-about,
1542 body:not([data-dialog="import"]) #dialog-title-import,
1543 body:not([data-dialog="import"]) #dialog-content-import,
1544 body:not([data-dialog="language-add"]) #dialog-title-language-add,
1545 body:not([data-dialog="language-change"]) #dialog-title-language-change,
1546 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #di alog-content-language-add,
1547 body:not([data-dialog="language-add"]) #dialog-body button.add,
1548 body:not([data-dialog="language-change"]) #dialog-body button.change,
1549 body:not([data-dialog="predefined"]) #dialog-title-predefined,
1550 body:not([data-dialog="predefined"]) #dialog-content-predefined,
1551 body:not([data-dialog]) #dialog
1552 {
1553 display: none;
1554 }
1555
1556 /*
1557 Notification
1558 */ 839 */
1559 840
1560 #notification 841 ul.table,
1561 { 842 ul.list
1562 position: fixed; 843 {
1563 top: 0rem; 844 list-style: none;
1564 left: 0rem; 845 margin: 0rem;
1565 display: flex; 846 padding: 0rem;
1566 padding: 1rem 1.9rem; 847 }
1567 width: 100%; 848
1568 box-sizing: border-box; 849 .table li,
1569 opacity: 0.8; 850 .list li
1570 font-size: 1rem; 851 {
1571 color: #077CA6; 852 display: flex;
1572 background-color: #E1F2FA; 853 align-items: center;
1573 } 854 }
1574 855
1575 #notification strong 856 .table li
1576 { 857 {
1577 flex: 1; 858 margin: 0rem;
1578 text-align: center; 859 border-style: solid;
1579 } 860 border-color: #CDCDCD;
1580 861 border-width: 0px 1px 1px 1px;
862 }
863
864 .list li
865 {
866 padding: 0rem;
867 margin-bottom: 0.8rem;
868 }
869
870 .list li [role="checkbox"]
871 {
872 flex-shrink: 0;
873 }
874
875 .table li:first-of-type
876 {
877 border-top: 1px solid #CDCDCD;
878 }
879
880 .table.list li
881 {
882 padding: 0.5rem 1rem;
883 margin: 0rem;
884 }
885
886 .table.list.bottom-control li:last-of-type
887 {
888 border-bottom: 0px;
889 }
890
891 .list li > span
892 {
893 margin: 0rem 1rem;
894 }
895
896 .table.list li > span
897 {
898 flex: 1;
899 margin: 0rem;
900 }
901
902 .table.list li.empty-placeholder
903 {
904 padding: 1rem 1.4rem;
905 }
906
907 .table.list li.empty-placeholder:not(:last-of-type)
908 {
909 border-bottom: 0px;
910 }
911
912 .table.list button.link
913 {
914 font-weight: 700;
915 text-transform: uppercase;
916 text-decoration: none;
917 }
918
919 .table:not(.list):not(.cols) li
920 {
921 padding-top: 0px;
922 padding-bottom: 6px;
923 }
924
925 .table li [data-single="visible"],
926 .table li:first-of-type:last-of-type [data-single="hidden"]
927 {
928 display: none;
929 }
930
931 .table li:first-of-type:last-of-type [data-single="visible"]
932 {
933 display: block;
934 }
935
936 .th
937 {
938 display: flex;
939 }
940
941 .col5 > *
942 {
943 display: inline-block;
944 vertical-align: middle;
945 }
946
947 .cols .col5
948 {
949 margin: 0rem 1rem;
950 }
951
952 .th .col5:nth-of-type(1),
953 .table .col5:nth-of-type(1)
954 {
955 flex: 4;
956 }
957
958 .th .col5:nth-of-type(2),
959 .table .col5:nth-of-type(2)
960 {
961 flex: 8;
962 }
963
964 .th .col5:nth-of-type(3),
965 .table .col5:nth-of-type(3)
966 {
967 flex: 4;
968 }
969
970 .th .col5:nth-of-type(4),
971 .table .col5:nth-of-type(4)
972 {
973 flex: 1;
974 }
975
976 .th .col5:nth-of-type(5),
977 .table .col5:nth-of-type(5)
978 {
979 flex: 1;
980 -moz-margin-start: 0;
981 -webkit-margin-start: 0;
982 -moz-margin-end: 1.8rem;
983 -webkit-margin-end: 1.8rem;
984 }
985
986 .table.cols > span
987 {
988 margin: 0rem;
989 }
990
991 .table.cols li
992 {
993 padding: 0.5rem 0rem;
994 }
995
996 .table.cols .state
997 {
998 -moz-margin-start: 1rem;
999 -webkit-margin-start: 1rem;
1000 }
1001
1002 .table.cols .gear
1003 {
1004 margin: 0rem
1005 }
1006
1007 #dialog .table.list li
1008 {
1009 display: block;
1010 border-width: 1px 0px 0px 0px;
1011 padding: 0rem;
1012 }
1013
1014 #dialog .table.list li:first-of-type
1015 {
1016 border: 0px;
1017 }
1018
1019 #dialog .table.list li button
1020 {
1021 display: flex;
1022 background-image: none;
1023 width: 100%;
1024 height: auto;
1025 padding: 1.1rem 1rem;
1026 }
1027
1028 #dialog .table.list li button:hover,
1029 #dialog .table.list li button:focus
1030 {
1031 background-color: #E1F2FA;
1032 }
1033
1034 #dialog .table.list li button[aria-checked="true"],
1035 .table.list li .dimmed
1036 {
1037 color: #BBB;
1038 }
1039
1040 #dialog .table.list li button > span
1041 {
1042 flex: none;
1043 margin: 0rem 0.8rem;
1044 text-transform: none;
1045 font-weight: 400;
1046 }
1047
1048 /*
1049 Tooltips
1050 */
1051
1052 .tooltip
1053 {
1054 position: relative;
1055 margin: 0rem;
1056 -moz-margin-end: 1rem;
1057 -webkit-margin-end: 1rem;
1058 line-height: 1.5rem;
1059 text-decoration: none;
1060 cursor: help;
1061 }
1062
1063 /*
1064 Used for translatable screen reader only content.
1065 e.g.: Use instead of aria-label to avoid complex attribute value translation
1066 */
1067 .sr-only
1068 {
1069 position: absolute;
1070 overflow: hidden;
1071 clip: rect(0, 0, 0, 0);
1072 width: 1px;
1073 height: 1px;
1074 margin: -1px;
1075 padding: 0px;
1076 border: 0px;
1077 }
1078
1079 /*
1080 General tab content
1081 */
1082
1083 #blocking-languages-dialog-table
1084 {
1085 border-bottom: none;
1086 }
1087
1088 .button-add, .cancel-button
1089 {
1090 background-color: transparent;
1091 border: 0px;
1092 color: #3A7BA6;
1093 cursor: pointer;
1094 }
1095
1096 /*
1097 Whitelist tab
1098 */
1099
1100 #content-whitelist form
1101 {
1102 display: flex;
1103 }
1104
1105 #content-whitelist form input
1106 {
1107 flex: 1;
1108 height: 100%;
1109 padding: 0.5rem 1rem;
1110 font-size: 1rem;
1111 border: 2px solid #077CA6;
1112 }
1113
1114 #content-whitelist form button
1115 {
1116 -moz-margin-start: 0.7rem;
1117 -webkit-margin-start: 0.7rem;
1118 }
1119
1120 #whitelisting-table li
1121 {
1122 padding-left: 1.4rem;
1123 padding-right: 1.4rem;
1124 border-left: 0rem;
1125 border-right: 0rem;
1126 }
1127
1128 /*
1129 Advanced tab content
1130 */
1131
1132 #all-filter-lists-table li.show-message .last-update,
1133 #all-filter-lists-table li:not(.show-message) .message,
1134 #custom-filters:not([data-mode="empty"]) #empty-custom-filters,
1135 #custom-filters[data-mode="empty"] #custom-filters-raw,
1136 #custom-filters:not([data-mode="write"]) #custom-filters-raw-controls,
1137 #custom-filters:not([data-mode="read"]) #custom-filters-edit,
1138 #custom-filters-error,
1139 .state span,
1140 #acceptable-ads:not(.show-dnt-notification) #dnt
1141 {
1142 display: none;
1143 }
1144
1145 #all-filter-lists-table button[role="checkbox"][aria-checked="true"] + .state #s tate-active,
1146 #all-filter-lists-table button[role="checkbox"][aria-checked="false"] + .state # state-disabled
1147 {
1148 display: inline;
1149 }
1150
1151 #all-filter-lists-table
1152 {
1153 margin-bottom: 0.8rem;
1154 }
1155
1156 #custom-filters-edit
1157 {
1158 white-space: nowrap;
1159 }
1160
1161 #custom-filters-control
1162 {
1163 display: flex;
1164 width: 100%;
1165 }
1166
1167 /*
1168 avoid doubled margin glitchy behavior
1169 as shown in visual specifications
1170 */
1171 #custom-filters-control .side-controls .side-controls
1172 {
1173 margin: 0;
1174 }
1175
1176 /*
1177 visibility: hidden;
1178 preserves the flex-box meaning,
1179 keeping buttons on the right.
1180 */
1181 #custom-filters-edit-error
1182 {
1183 visibility: hidden;
1184 display: flex;
1185 align-self: center;
1186 justify-content: flex-start;
1187 font-weight: bold;
1188 }
1189
1190 #custom-filters.warning #custom-filters-edit-error,
1191 #custom-filters-error
1192 {
1193 color: #C11D26;
1194 padding: 0.2rem 0.8rem;
1195 }
1196
1197 #custom-filters.warning #custom-filters-edit-error
1198 {
1199 visibility: visible;
1200 }
1201
1202 #custom-filters-error
1203 {
1204 display: block;
1205 list-style: none;
1206 white-space: pre;
1207 overflow: auto;
1208 }
1209
1210 #custom-filters-error.many
1211 {
1212 border: 1px solid silver;
1213 max-height: 6.2rem;
1214 }
1215
1216 #custom-filters-raw
1217 {
1218 width: 100%;
1219 height: 23.6rem;
1220 padding: 0.8rem;
1221 }
1222
1223 #custom-filters-raw:focus
1224 {
1225 outline: none;
1226 border: 2px solid #077CA6;
1227 }
1228
1229 #custom-filters.warning #custom-filters-raw
1230 {
1231 outline: none;
1232 border: 2px solid #C11D26;
1233 }
1234
1235 #empty-custom-filters
1236 {
1237 padding: 1.5rem;
1238 border: 1px solid #CDCDCD;
1239 }
1240
1241 /*
1242 Context menu
1243 */
1244
1245 li [role="menubar"]
1246 {
1247 position: relative;
1248 }
1249
1250 [role="tooltip"]
1251 {
1252 right: -0.8rem;
1253 margin-top: 0.8rem;
1254 opacity: 1;
1255 padding: 0.2rem 1rem;
1256 position: absolute;
1257 -webkit-transition: opacity 200ms ease-in-out 400ms,
1258 visibility 0ms linear 400ms;
1259 transition: opacity 200ms ease-in-out 400ms,
1260 visibility 0ms linear 400ms;
1261 visibility: visible;
1262 width: 15rem;
1263 z-index: 1;
1264 }
1265
1266 html[dir="rtl"] [role="tooltip"]
1267 {
1268 right: auto;
1269 left: -0.8rem;
1270 }
1271
1272 [role="tooltip"],
1273 .context-menu .content
1274 {
1275 border: 1px solid #077CA6;
1276 border-radius: 3px;
1277 background-color: #FFFFFF;
1278 }
1279
1280
1281 .tooltip:not(:hover) > [role="tooltip"],
1282 [role="tooltip"]:hover
1283 {
1284 visibility: hidden;
1285 opacity: 0;
1286 -webkit-transition-delay: 0ms;
1287 transition-delay: 0ms;
1288 }
1289
1290 .context-menu
1291 {
1292 position: absolute;
1293 right: 2.5rem;
1294 top: -2rem;
1295 z-index: 1;
1296 visibility: hidden;
1297 }
1298
1299 html[dir="rtl"] .context-menu
1300 {
1301 right: auto;
1302 left: 2.5rem;
1303 }
1304
1305 .context-menu .content
1306 {
1307 padding: 0rem;
1308 position: relative;
1309 cursor: default;
1310 }
1311
1312 li.show-context-menu .context-menu
1313 {
1314 visibility: visible;
1315 }
1316
1317 [role="tooltip"]::before,
1318 .context-menu::before
1319 {
1320 content: "";
1321 width: 0rem;
1322 height: 0rem;
1323 position: absolute;
1324 }
1325
1326 [role="tooltip"]::before
1327 {
1328 border-left: 10px solid transparent;
1329 border-right: 10px solid transparent;
1330 border-bottom: 10px solid #077CA6;
1331 top: -10px;
1332 right: 15px;
1333 }
1334
1335 html[dir="rtl"] [role="tooltip"]::before
1336 {
1337 right: auto;
1338 left: 15px;
1339 }
1340
1341 .context-menu::before
1342 {
1343 border-left: 10px solid #077CA6;
1344 border-top: 10px solid transparent;
1345 border-bottom: 10px solid transparent;
1346 top: 22px;
1347 right: -0.5rem;
1348 }
1349
1350 html[dir="rtl"] .context-menu::before
1351 {
1352 border-left: 0rem;
1353 border-right: 10px solid #077CA6;
1354 right: auto;
1355 left: -0.5rem;
1356 }
1357
1358 .context-menu li[role="menuitem"]
1359 {
1360 width: 12.2rem;
1361 border: 0rem;
1362 padding: 0rem;
1363 }
1364
1365 .context-menu li[role="menuitem"] > *
1366 {
1367 width: 100%;
1368 display: flex;
1369 border: 0rem;
1370 padding: 0.7rem 0rem;
1371 color: #077CA6;
1372 align-items: center;
1373 font-size: 1rem;
1374 font-weight: 400;
1375 text-transform: none;
1376 text-decoration: none;
1377 }
1378
1379 .context-menu li[role="menuitem"] > *:hover,
1380 .context-menu li[role="menuitem"] > *:focus
1381 {
1382 background-color: #E1F2FA;
1383 cursor: pointer;
1384 }
1385
1386 .context-menu li[role="menuitem"] .icon::before
1387 {
1388 height: 1rem;
1389 width: 1rem;
1390 margin: 0rem 1.1rem;
1391 border: 0rem;
1392 }
1393
1394 /*
1395 Help tab content
1396 */
1397
1398 html:not([lang="zh"]) #social-chinese,
1399 html[lang="zh"] #social-general
1400 {
1401 display: none;
1402 }
1403
1404 #social ul
1405 {
1406 list-style: none;
1407 padding: 0px;
1408 }
1409
1410 #social ul li
1411 {
1412 display: inline-block;
1413 -moz-margin-end: 1rem;
1414 -webkit-margin-end: 1rem;
1415 }
1416
1417 #social ul li a
1418 {
1419 display: block;
1420 text-align: center;
1421 text-decoration: none;
1422 }
1423
1424 /*
1425 Dialog
1426 */
1427
1428 #dialog-background
1429 {
1430 display: none;
1431 position: fixed;
1432 top: 0px;
1433 right: 0px;
1434 bottom: 0px;
1435 left: 0px;
1436 z-index: 2;
1437 background-color: #000;
1438 opacity: 0.7;
1439 }
1440
1441 body[data-dialog] #dialog-background
1442 {
1443 display: block;
1444 }
1445
1446 #dialog
1447 {
1448 position: fixed;
1449 top: 100px;
1450 left: 0px;
1451 right: 0px;
1452 z-index: 2;
1453 width: 50vw;
1454 margin: auto;
1455 border-radius: 3px;
1456 background-color: #FFFFFF;
1457 }
1458
1459 #dialog header
1460 {
1461 display: flex;
1462 padding: 0.7rem 1.5rem;
1463 background-color: #077CA6;
1464 }
1465
1466 #dialog header h3
1467 {
1468 margin: 0rem;
1469 font-size: 1rem;
1470 font-weight: 700;
1471 }
1472
1473 .close
1474 {
1475 margin: 0rem;
1476 cursor: pointer;
1477 }
1478
1479 #dialog #dialog-body
1480 {
1481 max-height: 60vh;
1482 overflow: auto;
1483 }
1484
1485 .dialog-content
1486 {
1487 margin: 1rem 1.8rem;
1488 }
1489
1490 [data-dialog="language-change"] .dialog-content,
1491 [data-dialog="language-add"] .dialog-content
1492 {
1493 margin: 0rem;
1494 }
1495
1496 [data-dialog="about"] .dialog-content
1497 {
1498 text-align: center;
1499 }
1500
1501 [data-dialog="about"] .content button
1502 {
1503 margin: 1.5rem auto 1.8rem auto;
1504 }
1505
1506 [data-dialog="about"] p
1507 {
1508 margin: 0.5rem 0rem;
1509 }
1510
1511 [data-dialog="import"] .side-controls
1512 {
1513 margin-top: 2.45rem;
1514 }
1515
1516 #dialog .table
1517 {
1518 width: 100%;
1519 }
1520
1521 #dialog .section:not(:first-child)
1522 {
1523 margin-top: 24px;
1524 }
1525
1526 #dialog-title
1527 {
1528 flex: 1;
1529 font-size: 16px;
1530 color: #FFFFFF;
1531 }
1532
1533 #dialog-body .dialog-content-block
1534 {
1535 padding: 12px 0px;
1536 }
1537
1538 #dialog .url
1539 {
1540 margin-top: 10px;
1541 margin-bottom: 20px;
1542 word-wrap: break-word;
1543 }
1544
1545 body:not([data-dialog="about"]) #dialog-title-about,
1546 body:not([data-dialog="about"]) #dialog-content-about,
1547 body:not([data-dialog="import"]) #dialog-title-import,
1548 body:not([data-dialog="import"]) #dialog-content-import,
1549 body:not([data-dialog="language-add"]) #dialog-title-language-add,
1550 body:not([data-dialog="language-change"]) #dialog-title-language-change,
1551 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia log-content-language-add,
1552 body:not([data-dialog="language-add"]) #dialog-body button.add,
1553 body:not([data-dialog="language-change"]) #dialog-body button.change,
1554 body:not([data-dialog="predefined"]) #dialog-title-predefined,
1555 body:not([data-dialog="predefined"]) #dialog-content-predefined,
1556 body:not([data-dialog]) #dialog
1557 {
1558 display: none;
1559 }
1560
1561 /*
1562 Notification
1563 */
1564
1565 #notification
1566 {
1567 position: fixed;
1568 top: 0rem;
1569 left: 0rem;
1570 display: flex;
1571 padding: 1rem 1.9rem;
1572 width: 100%;
1573 box-sizing: border-box;
1574 opacity: 0.8;
1575 font-size: 1rem;
1576 color: #077CA6;
1577 background-color: #E1F2FA;
1578 }
1579
1580 #notification strong
1581 {
1582 flex: 1;
1583 text-align: center;
1584 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld