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

Side by Side Diff: skin/desktop-options.css

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

Powered by Google App Engine
This is Rietveld