Left: | ||
Right: |
OLD | NEW |
---|---|
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 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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: 1.2rem 0.3rem; | 59 margin: 1.2rem 0.3rem; |
60 font-family: "Source Sans Pro", sans-serif; | 60 font-family: "Source Sans Pro", sans-serif; |
61 font-size: 1.25rem; | 61 font-size: 1rem; |
62 color: #494949; | 62 line-height: 1.5rem; |
63 color: #4A4A4A; | |
63 } | 64 } |
64 | 65 |
65 h1 | 66 h1 |
66 { | 67 { |
67 font-size: 3rem; | 68 font-size: 3rem; |
68 font-weight: 300; | 69 font-weight: 300; |
69 } | 70 } |
70 | 71 |
71 h2 | 72 h2 |
72 { | 73 { |
73 font-size: 1.375rem; | 74 font-size: 1.125rem; |
74 font-weight: 700; | 75 font-weight: 700; |
75 } | 76 } |
76 | 77 |
77 a | 78 a |
78 { | 79 { |
79 color: #099CD0; | 80 color: #077CA6; |
80 text-decoration: none; | |
81 } | 81 } |
82 | 82 |
83 a:hover | 83 a:hover |
84 { | 84 { |
85 color: #5CBCE1; | 85 color: #5CBCE1; |
86 } | 86 } |
87 | 87 |
88 ul | 88 ul |
89 { | 89 { |
90 margin: 0rem; | 90 margin: 0rem; |
91 } | 91 } |
92 | 92 |
93 [aria-hidden="true"] | 93 [aria-hidden="true"] |
94 { | 94 { |
95 display: none !important; | 95 display: none !important; |
96 } | 96 } |
97 | 97 |
98 input[type="text"], | 98 input[type="text"], |
99 input[type="url"], | 99 input[type="url"], |
100 textarea, | 100 textarea, |
101 main | 101 main |
102 { | 102 { |
103 -webkit-box-sizing: border-box; | 103 -webkit-box-sizing: border-box; |
104 -moz-box-sizing: border-box; | 104 -moz-box-sizing: border-box; |
105 box-sizing: border-box; | 105 box-sizing: border-box; |
106 } | 106 } |
107 | 107 |
108 /* | 108 /* |
109 Normalization | |
110 */ | |
111 | |
112 input, | |
113 button | |
114 { | |
115 font-family: "Source Sans Pro", sans-serif; | |
ire
2017/11/14 16:55:22
Suggest: You can set the font-family to `inherit`
saroyanm
2017/11/14 19:19:00
Done.
| |
116 } | |
117 | |
118 button | |
119 { | |
120 border-radius: 0rem; | |
121 } | |
122 | |
123 /* | |
109 Buttons and links | 124 Buttons and links |
110 */ | 125 */ |
111 | 126 |
112 button, | 127 button, |
113 .button | 128 .button |
114 { | 129 { |
115 display: block; | 130 display: block; |
116 padding: 0.8rem 1.2rem; | 131 padding: 0.6rem 0.8rem; |
117 background-color: transparent; | 132 background-color: transparent; |
118 font-size: 1.125rem; | 133 font-size: 1rem; |
119 font-weight: 700; | 134 font-weight: 700; |
120 text-decoration: none; | 135 text-decoration: none; |
121 text-transform: uppercase; | 136 text-transform: uppercase; |
122 cursor: pointer; | 137 cursor: pointer; |
123 } | 138 } |
124 | 139 |
125 button.primary, | 140 button.primary, |
126 .button.primary | 141 .button.primary |
127 { | 142 { |
128 border: 0px; | 143 border: 0px; |
129 color: #FFF; | 144 color: #FFF; |
130 background-color: #099CD0; | 145 background-color: #077CA6; |
131 } | 146 } |
132 | 147 |
133 button.primary:not([disabled]):hover, | 148 button.primary:not([disabled]):hover, |
134 .button.primary:hover | 149 .button.primary:hover |
135 { | 150 { |
136 box-shadow: inset 0 0 0 3px #005D80; | 151 box-shadow: inset 0 0 0 3px #005D80; |
137 } | 152 } |
138 | 153 |
139 button.primary[disabled] | 154 button.primary[disabled] |
140 { | 155 { |
141 background-color: #5CBCE1; | 156 background-color: #5CBCE1; |
142 } | 157 } |
143 | 158 |
144 button.secondary, | 159 button.secondary, |
145 .button.secondary | 160 .button.secondary |
146 { | 161 { |
147 border: 1px solid #099CD0; | 162 border: 2px solid #077CA6; |
148 color: #099CD0; | 163 color: #077CA6; |
149 } | 164 } |
150 | 165 |
151 button.secondary:hover, | 166 button.secondary:hover, |
152 .button.secondary:hover | 167 .button.secondary:hover |
153 { | 168 { |
154 box-shadow: inset 0 0 0 2px #099CD0; | 169 box-shadow: inset 0 0 0 1px #077CA6; |
155 } | 170 } |
156 | 171 |
157 button[role="checkbox"] | 172 button[role="checkbox"] |
158 { | 173 { |
159 width: 18px; | 174 width: 1.2rem; |
160 height: 18px; | 175 height: 1.2rem; |
161 padding: 0px; | 176 padding: 0px; |
162 border: 0px; | 177 border: 0px; |
163 background-color: transparent; | 178 background-color: transparent; |
164 } | 179 } |
165 | 180 |
166 button[role="checkbox"]:not(.toggle) | 181 button[role="checkbox"]:not(.toggle) |
167 { | 182 { |
168 background-image: url(icons/checkbox.png); | 183 background-image: url(icons/checkbox.svg#off); |
169 display: inline-block; | 184 display: inline-block; |
170 } | 185 } |
171 | 186 |
172 button[role="checkbox"][aria-checked="true"]:not(.toggle) | 187 button[role="checkbox"][aria-checked="true"]:not(.toggle) |
173 { | 188 { |
174 background-position: 0px 18px; | 189 background-image: url(icons/checkbox.svg#on); |
175 } | 190 } |
176 | 191 |
177 button[role="checkbox"][disabled], | 192 button[role="checkbox"][disabled], |
178 button[role="checkbox"][aria-disabled="true"] | 193 button[role="checkbox"][aria-disabled="true"] |
179 { | 194 { |
180 border-radius: 2px; | 195 border-radius: 2px; |
181 background-color: #ccc; | 196 background-color: #ccc; |
182 } | 197 } |
183 | 198 |
184 button[role="checkbox"].toggle | 199 button[role="checkbox"].toggle |
185 { | 200 { |
186 background: url(icons/toggle.svg#on); | 201 background: url(icons/toggle.svg#on); |
187 } | 202 } |
188 | 203 |
189 button[role="checkbox"][aria-checked="false"].toggle | 204 button[role="checkbox"][aria-checked="false"].toggle |
190 { | 205 { |
191 background: url(icons/toggle.svg#off); | 206 background: url(icons/toggle.svg#off); |
192 } | 207 } |
193 | 208 |
194 button[role="checkbox"][aria-checked="true"].toggle | 209 button[role="checkbox"][aria-checked="true"].toggle |
195 { | 210 { |
196 background: url(icons/toggle.svg#on); | 211 background: url(icons/toggle.svg#on); |
197 } | 212 } |
198 | 213 |
199 button[role="checkbox"].toggle | 214 button[role="checkbox"].toggle |
200 { | 215 { |
201 background-position: initial; | 216 background-position: initial; |
202 width: 2.25rem; | 217 width: 1.9rem; |
203 height: 1.3rem; | 218 height: 1rem; |
219 vertical-align: middle; | |
204 } | 220 } |
205 | 221 |
206 button[role="checkbox"][disabled].toggle | 222 button[role="checkbox"][disabled].toggle |
207 { | 223 { |
208 background-image: none; | 224 background-image: none; |
209 } | 225 } |
210 | 226 |
211 button.delete::before | 227 button.delete::before |
212 { | 228 { |
213 background-image: url(icons/trash.svg#default); | 229 background-image: url(icons/trash.svg#default); |
(...skipping 20 matching lines...) Expand all Loading... | |
234 border: 0px; | 250 border: 0px; |
235 padding: 0px; | 251 padding: 0px; |
236 background-color: transparent; | 252 background-color: transparent; |
237 } | 253 } |
238 | 254 |
239 button.gear::before, | 255 button.gear::before, |
240 button.delete::before | 256 button.delete::before |
241 { | 257 { |
242 content: ""; | 258 content: ""; |
243 display: block; | 259 display: block; |
244 height: 1.9rem; | 260 height: 1rem; |
245 width: 1.9rem; | 261 width: 1rem; |
262 border: 0.2rem solid transparent; | |
263 background-repeat: no-repeat; | |
264 background-position: center; | |
246 } | 265 } |
247 | 266 |
248 button.link, | 267 button.link, |
249 button.list | 268 button.list |
250 { | 269 { |
251 color: #099CD0; | 270 color: #077CA6; |
252 } | 271 } |
253 | 272 |
254 button.link | 273 button.link |
255 { | 274 { |
256 border: 0px; | 275 border: 0px; |
257 background-color: transparent; | 276 background-color: transparent; |
258 font-weight: 300; | 277 font-weight: 300; |
ire
2017/11/14 16:55:22
This font weight should be the same as the body, w
saroyanm
2017/11/14 19:19:01
Done.
| |
259 font-family: inherit; | 278 font-family: inherit; |
260 text-transform: none; | 279 text-transform: none; |
261 padding: 0.2rem; | 280 padding: 0.2rem; |
262 } | 281 } |
263 | 282 |
264 button.link:hover | 283 button.link:hover |
265 { | 284 { |
266 color: #5CBCE1; | 285 color: #5CBCE1; |
267 } | 286 } |
268 | 287 |
269 button.list | 288 button.list |
270 { | 289 { |
271 border-style: solid;; | 290 border-style: solid;; |
272 border-color: #CDCDCD; | 291 border-color: #CDCDCD; |
273 border-width: 0px 1px 1px 1px; | 292 border-width: 0px 1px 1px 1px; |
274 width: 100%; | 293 width: 100%; |
275 background-color: #E1F2FA; | 294 background-color: #E1F2FA; |
276 text-align: initial; | 295 text-align: initial; |
277 } | 296 } |
278 | 297 |
279 button.list:hover | 298 button.list:hover |
280 { | 299 { |
281 box-shadow: inset 0 0 0 3px #099CD0; | 300 box-shadow: inset 0 0 0 3px #077CA6; |
ire
2017/11/14 16:55:21
NIT: Because there's no top border, the box-shadow
saroyanm
2017/11/14 19:19:01
I see, not sure what will be quick fix for this, i
ire
2017/11/15 07:00:46
I think you can have the border on all sides norma
saroyanm
2017/11/15 10:39:04
That will require to treat this lists differently,
| |
282 border-color: #099CD0; | 301 border-color: #077CA6; |
283 } | 302 } |
284 | 303 |
285 .side-controls:not(.wrap) | 304 .side-controls:not(.wrap) |
286 { | 305 { |
287 margin: 0.8rem 0rem; | 306 margin: 0.8rem 0rem; |
288 display: flex; | 307 display: flex; |
289 justify-content: flex-end; | 308 justify-content: flex-end; |
290 } | 309 } |
291 | 310 |
292 .side-controls button | 311 .side-controls button |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 width: 100%; | 343 width: 100%; |
325 } | 344 } |
326 | 345 |
327 .floating-input input:placeholder-shown ~ label, | 346 .floating-input input:placeholder-shown ~ label, |
328 .floating-input input + label, | 347 .floating-input input + label, |
329 .floating-input input:focus + label | 348 .floating-input input:focus + label |
330 { | 349 { |
331 position: absolute; | 350 position: absolute; |
332 top: 0.9rem; | 351 top: 0.9rem; |
333 left: 0.3rem; | 352 left: 0.3rem; |
334 font-size: 1.3rem; | 353 font-size: 1.3rem; |
ire
2017/11/14 16:55:22
According to the spec this should now be 1rem (alt
saroyanm
2017/11/14 19:19:00
Done.
| |
335 } | 354 } |
336 | 355 |
337 .floating-input input + label, | 356 .floating-input input + label, |
338 .floating-input input:focus + label | 357 .floating-input input:focus + label |
339 { | 358 { |
340 top: -0.5rem; | 359 top: -0.5rem; |
341 font-size: 0.9rem; | 360 font-size: 0.9rem; |
342 } | 361 } |
343 | 362 |
344 html[dir="rtl"] .floating-input input:placeholder-shown ~ label, | 363 html[dir="rtl"] .floating-input input:placeholder-shown ~ label, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
466 { | 485 { |
467 margin: 1.4rem 0rem; | 486 margin: 1.4rem 0rem; |
468 } | 487 } |
469 | 488 |
470 [role="tablist"] | 489 [role="tablist"] |
471 { | 490 { |
472 list-style: none; | 491 list-style: none; |
473 margin: 0rem; | 492 margin: 0rem; |
474 padding: 0rem; | 493 padding: 0rem; |
475 position: relative; | 494 position: relative; |
476 font-size: 1.25rem; | 495 font-size: 1rem; |
477 } | 496 } |
478 | 497 |
479 [role="tablist"] li a | 498 [role="tablist"] li a |
480 { | 499 { |
481 display: flex; | 500 display: flex; |
482 margin-top: -1px; | 501 margin-top: -1px; |
483 padding: 1rem 0.8rem; | 502 padding: 1rem 0.8rem; |
484 -moz-margin-end: -1px; | 503 -moz-margin-end: -1px; |
485 -webkit-margin-end: -1px; | 504 -webkit-margin-end: -1px; |
486 -moz-margin-start: -1px; | 505 -moz-margin-start: -1px; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
543 body[data-tab|="whitelist"] #content-whitelist, | 562 body[data-tab|="whitelist"] #content-whitelist, |
544 body[data-tab|="help"] #content-help | 563 body[data-tab|="help"] #content-help |
545 { | 564 { |
546 display: block; | 565 display: block; |
547 } | 566 } |
548 | 567 |
549 main | 568 main |
550 { | 569 { |
551 background-color: #FFFFFF; | 570 background-color: #FFFFFF; |
552 border: 1px solid #CDCDCD; | 571 border: 1px solid #CDCDCD; |
553 max-width: 46.3rem; | 572 width: 46.3rem; |
554 padding: 0px 0rem 1.4rem 0rem; | 573 padding: 0px 0rem 1.4rem 0rem; |
555 } | 574 } |
556 | 575 |
557 main > div | 576 main > div |
558 { | 577 { |
559 display: none; | 578 display: none; |
560 } | 579 } |
561 | 580 |
562 main p | 581 main p |
563 { | 582 { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
616 flex: 3; | 635 flex: 3; |
617 } | 636 } |
618 | 637 |
619 /* | 638 /* |
620 Acceptable ads | 639 Acceptable ads |
621 */ | 640 */ |
622 | 641 |
623 #acceptable-ads ul | 642 #acceptable-ads ul |
624 { | 643 { |
625 position: relative; | 644 position: relative; |
626 padding-left: 2rem; | 645 padding-left: 2.2rem; |
627 list-style: none; | 646 list-style: none; |
628 } | 647 } |
629 | 648 |
630 html[dir="rtl"] #acceptable-ads ul | 649 html[dir="rtl"] #acceptable-ads ul |
631 { | 650 { |
632 padding-left: 0rem; | 651 padding-left: 0rem; |
633 padding-right: 2rem; | 652 padding-right: 2.2rem; |
634 } | 653 } |
635 | 654 |
636 #acceptable-ads button | 655 #acceptable-ads button |
637 { | 656 { |
638 position: absolute; | 657 position: absolute; |
639 margin-top: 0.3rem; | 658 margin-top: 0.3rem; |
640 left: 0rem; | 659 left: 0rem; |
641 } | 660 } |
642 | 661 |
643 html[dir="rtl"] button | 662 html[dir="rtl"] button |
644 { | 663 { |
645 left: auto; | 664 left: auto; |
646 right: 0rem; | 665 right: 0rem; |
647 } | 666 } |
648 | 667 |
649 #acceptable-ads label | 668 #acceptable-ads label |
650 { | 669 { |
651 font-weight: 700; | 670 font-weight: 700; |
652 font-size: 1.375rem; | 671 font-size: 1rem; |
672 -moz-margin-end: 0.5rem; | |
673 -webkit-margin-end: 0.5rem; | |
653 } | 674 } |
654 | 675 |
655 #dnt | 676 #dnt |
656 { | 677 { |
657 padding: 0.8rem; | 678 padding: 0.8rem; |
658 border: 1px solid #099CD0; | 679 border: 1px solid #077CA6; |
659 } | 680 } |
660 | 681 |
661 .new | 682 .new |
662 { | 683 { |
663 display: inline-block; | 684 display: inline-block; |
664 margin: 0rem 0.5rem; | 685 padding: 0.2rem 0.5rem; |
665 padding: 0.3rem 0.6rem; | |
666 border-radius: 0.2rem; | 686 border-radius: 0.2rem; |
667 background-color: #099CD0; | 687 background-color: #077CA6; |
668 color: #FFF; | 688 color: #FFF; |
669 line-height: 100%; | 689 line-height: 100%; |
670 font-size: 1rem; | 690 font-size: 0.8rem; |
671 text-transform: uppercase; | 691 text-transform: uppercase; |
672 } | 692 } |
673 | 693 |
674 /* | 694 /* |
675 Tables | 695 Tables |
676 */ | 696 */ |
677 | 697 |
678 ul.table, | 698 ul.table, |
679 ul.list | 699 ul.list |
680 { | 700 { |
(...skipping 13 matching lines...) Expand all Loading... | |
694 { | 714 { |
695 margin: 0rem; | 715 margin: 0rem; |
696 border-style: solid; | 716 border-style: solid; |
697 border-color: #CDCDCD; | 717 border-color: #CDCDCD; |
698 border-width: 0px 1px 1px 1px; | 718 border-width: 0px 1px 1px 1px; |
699 } | 719 } |
700 | 720 |
701 .list li | 721 .list li |
702 { | 722 { |
703 padding: 0rem; | 723 padding: 0rem; |
704 margin: 0rem 0rem 1.3rem 0rem; | 724 margin-bottom: 0.8rem; |
705 } | 725 } |
706 | 726 |
707 .list li [role="checkbox"] | 727 .list li [role="checkbox"] |
708 { | 728 { |
709 flex-shrink: 0; | 729 flex-shrink: 0; |
710 } | 730 } |
711 | 731 |
712 .table li:first-of-type | 732 .table li:first-of-type |
713 { | 733 { |
714 border-top: 1px solid #CDCDCD; | 734 border-top: 1px solid #CDCDCD; |
715 } | 735 } |
716 | 736 |
717 .table.list li | 737 .table.list li |
718 { | 738 { |
719 padding: 0.5rem 1.1rem; | 739 padding: 0.5rem 1rem; |
ire
2017/11/14 16:55:21
The horizontal padding on the default tables shoul
saroyanm
2017/11/14 19:19:01
Seems like it's 1rem still ( https://bitbucket.org
| |
720 margin: 0rem; | 740 margin: 0rem; |
721 } | 741 } |
722 | 742 |
723 li .display | 743 li .display |
724 { | 744 { |
725 margin: 0rem 1rem; | 745 margin: 0rem 1rem; |
726 } | 746 } |
727 | 747 |
728 .table.list li .display | 748 .table.list li .display |
729 { | 749 { |
730 flex: 1; | 750 flex: 1; |
751 margin: 0rem; | |
731 } | 752 } |
732 | 753 |
733 .table.list li.empty-placeholder | 754 .table.list li.empty-placeholder |
734 { | 755 { |
735 padding: 1.3em 1.9em; | 756 padding: 1.3em 1.9em; |
736 } | 757 } |
737 | 758 |
738 .table.list li.empty-placeholder:not(:last-of-type) | 759 .table.list li.empty-placeholder:not(:last-of-type) |
739 { | 760 { |
740 border-bottom: 0px; | 761 border-bottom: 0px; |
741 } | 762 } |
742 | 763 |
743 #blocking-languages-table .display | 764 #blocking-languages-table .display |
744 { | 765 { |
745 font-weight: 700; | 766 font-weight: 700; |
ire
2017/11/14 16:55:22
This should be styled like the body text, i.e. 400
saroyanm
2017/11/14 19:19:00
Done.
| |
746 } | 767 } |
747 | 768 |
748 .table.list button.link | 769 .table.list button.link |
749 { | 770 { |
750 font-weight: 700; | 771 font-weight: 700; |
751 text-transform: uppercase; | 772 text-transform: uppercase; |
752 } | 773 } |
753 | 774 |
754 .table:not(.list):not(.cols) li | 775 .table:not(.list):not(.cols) li |
755 { | 776 { |
(...skipping 10 matching lines...) Expand all Loading... | |
766 .table li:first-of-type:last-of-type [data-single="visible"] | 787 .table li:first-of-type:last-of-type [data-single="visible"] |
767 { | 788 { |
768 display: block; | 789 display: block; |
769 } | 790 } |
770 | 791 |
771 .th | 792 .th |
772 { | 793 { |
773 display: flex; | 794 display: flex; |
774 } | 795 } |
775 | 796 |
776 .col4 > * | 797 .col5 > * |
777 { | 798 { |
778 display: inline-block; | 799 display: inline-block; |
779 } | 800 } |
780 | 801 |
781 .col4 | 802 .col5 |
782 { | 803 { |
783 margin: 0rem 0.9rem; | 804 margin: 0rem 1rem; |
784 } | 805 } |
785 | 806 |
786 .th .col4:nth-of-type(1), | 807 .th .col5:nth-of-type(1), |
787 .table .col4:nth-of-type(1) | 808 .table .col5:nth-of-type(1) |
788 { | 809 { |
789 flex: 2; | 810 flex: 4; |
790 } | 811 } |
791 | 812 |
792 .th .col4:nth-of-type(2), | 813 .th .col5:nth-of-type(2), |
793 .table .col4:nth-of-type(2) | 814 .table .col5:nth-of-type(2) |
794 { | 815 { |
795 flex: 3; | 816 flex: 8; |
796 } | 817 } |
797 | 818 |
798 .th .col4:nth-of-type(3), | 819 .th .col5:nth-of-type(3), |
799 .table .col4:nth-of-type(3) | 820 .table .col5:nth-of-type(3) |
800 { | 821 { |
801 flex: 2; | 822 flex: 4; |
802 } | 823 } |
803 | 824 |
804 .th .col4:nth-of-type(4), | 825 .th .col5:nth-of-type(4), |
805 .table .col4:nth-of-type(4) | 826 .table .col5:nth-of-type(4) |
806 { | 827 { |
807 flex: 1; | 828 flex: 1; |
808 } | 829 } |
809 | 830 |
810 .table.cols | 831 .th .col5:nth-of-type(5), |
832 .table .col5:nth-of-type(5) | |
811 { | 833 { |
812 font-size: 1.1rem; | 834 flex: 1; |
835 -moz-margin-start: 0; | |
836 -webkit-margin-start: 0; | |
837 -moz-margin-end: 1.8rem; | |
838 -webkit-margin-end: 1.8rem; | |
813 } | 839 } |
814 | 840 |
815 .table.cols .display | 841 .table.cols .display |
816 { | 842 { |
817 margin: 0rem; | 843 margin: 0rem; |
818 } | 844 } |
819 | 845 |
820 .table.cols li | 846 .table.cols li |
821 { | 847 { |
822 padding: 0.9rem 0rem; | 848 padding: 0.9rem 0rem; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
893 -moz-margin-end: 1rem; | 919 -moz-margin-end: 1rem; |
894 -webkit-margin-end: 1rem; | 920 -webkit-margin-end: 1rem; |
895 line-height: 1.5rem; | 921 line-height: 1.5rem; |
896 text-decoration: none; | 922 text-decoration: none; |
897 cursor: help; | 923 cursor: help; |
898 } | 924 } |
899 | 925 |
900 .tooltip::before | 926 .tooltip::before |
901 { | 927 { |
902 content: ""; | 928 content: ""; |
903 width: 1.3rem; | 929 width: 1.1rem; |
904 height: 1.3rem; | 930 height: 1.1rem; |
905 display: block; | 931 display: block; |
906 background-image: url(icons/tooltip.svg); | 932 background-image: url(icons/tooltip.svg); |
907 } | 933 } |
908 | 934 |
909 /* | 935 /* |
910 Used for translatable screen reader only conten. | 936 Used for translatable screen reader only conten. |
911 e.g.: Use instead of aria-label to avoid complex attribute value translation | 937 e.g.: Use instead of aria-label to avoid complex attribute value translation |
912 */ | 938 */ |
913 .sr-only | 939 .sr-only |
914 { | 940 { |
(...skipping 29 matching lines...) Expand all Loading... | |
944 */ | 970 */ |
945 | 971 |
946 #content-whitelist form | 972 #content-whitelist form |
947 { | 973 { |
948 display: flex; | 974 display: flex; |
949 } | 975 } |
950 | 976 |
951 #content-whitelist form input | 977 #content-whitelist form input |
952 { | 978 { |
953 flex: 1; | 979 flex: 1; |
980 height: 100%; | |
954 padding: 0.5rem 1rem; | 981 padding: 0.5rem 1rem; |
955 font-size: 1.25rem; | 982 font-size: 1rem; |
956 border: 2px solid #099CD0; | 983 border: 2px solid #077CA6; |
957 } | 984 } |
958 | 985 |
959 #content-whitelist form button | 986 #content-whitelist form button |
960 { | 987 { |
961 -moz-margin-start: 0.7rem; | 988 -moz-margin-start: 0.7rem; |
962 -webkit-margin-start: 0.7rem; | 989 -webkit-margin-start: 0.7rem; |
963 } | 990 } |
964 | 991 |
965 #whitelisting-table li | 992 #whitelisting-table li |
966 { | 993 { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1007 #custom-filters-raw | 1034 #custom-filters-raw |
1008 { | 1035 { |
1009 width: 100%; | 1036 width: 100%; |
1010 height: 23.6rem; | 1037 height: 23.6rem; |
1011 padding: 0.8rem 1.3rem; | 1038 padding: 0.8rem 1.3rem; |
1012 } | 1039 } |
1013 | 1040 |
1014 #custom-filters-raw:focus | 1041 #custom-filters-raw:focus |
1015 { | 1042 { |
1016 outline: none; | 1043 outline: none; |
1017 border: 2px solid #099CD0; | 1044 border: 2px solid #077CA6; |
1018 } | 1045 } |
1019 | 1046 |
1020 #empty-custom-filters | 1047 #empty-custom-filters |
1021 { | 1048 { |
1022 padding: 1.5rem; | 1049 padding: 1.5rem; |
1023 border: 1px solid #CDCDCD; | 1050 border: 1px solid #CDCDCD; |
1024 } | 1051 } |
1025 | 1052 |
1026 /* | 1053 /* |
1027 Context menu | 1054 Context menu |
1028 */ | 1055 */ |
1029 | 1056 |
1030 li [role="menubar"] | 1057 li [role="menubar"] |
1031 { | 1058 { |
1032 position: relative; | 1059 position: relative; |
1033 } | 1060 } |
1034 | 1061 |
1035 [role="tooltip"] | 1062 [role="tooltip"] |
1036 { | 1063 { |
1037 right: -1rem; | 1064 right: -1rem; |
1038 margin-top: 1rem; | 1065 margin-top: 1rem; |
1039 opacity: 1; | 1066 opacity: 1; |
1040 padding: 1.3rem; | 1067 padding: 1.3rem; |
ire
2017/11/14 16:55:21
According to the spec this padding should be 1rem
saroyanm
2017/11/14 19:19:00
Done, I also didn't calculate the vertical margins
| |
1041 position: absolute; | 1068 position: absolute; |
1042 -webkit-transition: opacity 200ms ease-in-out 400ms, | 1069 -webkit-transition: opacity 200ms ease-in-out 400ms, |
1043 visibility 0ms linear 400ms; | 1070 visibility 0ms linear 400ms; |
1044 transition: opacity 200ms ease-in-out 400ms, | 1071 transition: opacity 200ms ease-in-out 400ms, |
1045 visibility 0ms linear 400ms; | 1072 visibility 0ms linear 400ms; |
1046 visibility: visible; | 1073 visibility: visible; |
1047 width: 15rem; | 1074 width: 15rem; |
1048 z-index: 1; | 1075 z-index: 1; |
1049 } | 1076 } |
1050 | 1077 |
1051 html[dir="rtl"] [role="tooltip"] | 1078 html[dir="rtl"] [role="tooltip"] |
1052 { | 1079 { |
1053 right: auto; | 1080 right: auto; |
1054 left: -1rem; | 1081 left: -1rem; |
1055 } | 1082 } |
1056 | 1083 |
1057 [role="tooltip"], | 1084 [role="tooltip"], |
1058 .context-menu .content | 1085 .context-menu .content |
1059 { | 1086 { |
1060 border: 1px solid #099CD0; | 1087 border: 1px solid #077CA6; |
1061 border-radius: 3px; | 1088 border-radius: 3px; |
1062 background-color: #FFFFFF; | 1089 background-color: #FFFFFF; |
1063 } | 1090 } |
1064 | 1091 |
1065 | 1092 |
1066 .tooltip:not(:hover) > [role="tooltip"], | 1093 .tooltip:not(:hover) > [role="tooltip"], |
1067 [role="tooltip"]:hover | 1094 [role="tooltip"]:hover |
1068 { | 1095 { |
1069 visibility: hidden; | 1096 visibility: hidden; |
1070 opacity: 0; | 1097 opacity: 0; |
1071 -webkit-transition-delay: 0ms; | 1098 -webkit-transition-delay: 0ms; |
1072 transition-delay: 0ms; | 1099 transition-delay: 0ms; |
1073 } | 1100 } |
1074 | 1101 |
1075 .context-menu | 1102 .context-menu |
1076 { | 1103 { |
1077 position: absolute; | 1104 position: absolute; |
1078 right: 3rem; | 1105 right: 2.5rem; |
1079 top: -3rem; | 1106 top: -2.7rem; |
1080 z-index: 1; | 1107 z-index: 1; |
1081 visibility: hidden; | 1108 visibility: hidden; |
1082 } | 1109 } |
1083 | 1110 |
1084 html[dir="rtl"] .context-menu | 1111 html[dir="rtl"] .context-menu |
1085 { | 1112 { |
1086 right: auto; | 1113 right: auto; |
1087 left: 3rem; | 1114 left: 2.5rem; |
1088 } | 1115 } |
1089 | 1116 |
1090 .context-menu .content | 1117 .context-menu .content |
1091 { | 1118 { |
1092 padding: 0rem; | 1119 padding: 0rem; |
1093 position: relative; | 1120 position: relative; |
1094 cursor: default; | 1121 cursor: default; |
1095 } | 1122 } |
1096 | 1123 |
1097 li.show-context-menu .context-menu | 1124 li.show-context-menu .context-menu |
1098 { | 1125 { |
1099 visibility: visible; | 1126 visibility: visible; |
1100 } | 1127 } |
1101 | 1128 |
1102 [role="tooltip"]::before, | 1129 [role="tooltip"]::before, |
1103 .context-menu::before | 1130 .context-menu::before |
1104 { | 1131 { |
1105 content: ""; | 1132 content: ""; |
1106 width: 0rem; | 1133 width: 0rem; |
1107 height: 0rem; | 1134 height: 0rem; |
1108 position: absolute; | 1135 position: absolute; |
1109 } | 1136 } |
1110 | 1137 |
1111 [role="tooltip"]::before | 1138 [role="tooltip"]::before |
1112 { | 1139 { |
1113 border-left: 10px solid transparent; | 1140 border-left: 10px solid transparent; |
1114 border-right: 10px solid transparent; | 1141 border-right: 10px solid transparent; |
1115 border-bottom: 10px solid #099CD0; | 1142 border-bottom: 10px solid #077CA6; |
1116 top: -10px; | 1143 top: -10px; |
1117 right: 15px; | 1144 right: 15px; |
1118 } | 1145 } |
1119 | 1146 |
1120 html[dir="rtl"] [role="tooltip"]::before | 1147 html[dir="rtl"] [role="tooltip"]::before |
1121 { | 1148 { |
1122 right: auto; | 1149 right: auto; |
1123 left: 15px; | 1150 left: 15px; |
1124 } | 1151 } |
1125 | 1152 |
1126 .context-menu::before | 1153 .context-menu::before |
1127 { | 1154 { |
1128 border-left: 10px solid #099CD0; | 1155 border-left: 10px solid #077CA6; |
1129 border-top: 10px solid transparent; | 1156 border-top: 10px solid transparent; |
1130 border-bottom: 10px solid transparent; | 1157 border-bottom: 10px solid transparent; |
1131 top: 22px; | 1158 top: 22px; |
1132 right: -0.5rem; | 1159 right: -0.5rem; |
1133 } | 1160 } |
1134 | 1161 |
1135 html[dir="rtl"] .context-menu::before | 1162 html[dir="rtl"] .context-menu::before |
1136 { | 1163 { |
1137 border-left: 0rem; | 1164 border-left: 0rem; |
1138 border-right: 10px solid #099CD0; | 1165 border-right: 10px solid #077CA6; |
1139 right: auto; | 1166 right: auto; |
1140 left: -0.5rem; | 1167 left: -0.5rem; |
1141 } | 1168 } |
1142 | 1169 |
1143 .context-menu li[role="menuitem"] | 1170 .context-menu li[role="menuitem"] |
1144 { | 1171 { |
1145 width: 12.2rem; | 1172 width: 12.2rem; |
1146 border: 0rem; | 1173 border: 0rem; |
1147 padding: 0rem; | 1174 padding: 0rem; |
1148 } | 1175 } |
1149 | 1176 |
1150 .context-menu li[role="menuitem"] > * | 1177 .context-menu li[role="menuitem"] > * |
1151 { | 1178 { |
1152 width: 100%; | 1179 width: 100%; |
1153 display: flex; | 1180 display: flex; |
1154 border: 0rem; | 1181 border: 0rem; |
1155 padding: 1rem 0rem; | 1182 padding: 0.7rem 0rem; |
1156 color: #099CD0; | 1183 color: #077CA6; |
1157 font-size: 1.1rem; | 1184 font-size: 1rem; |
1158 font-weight: 700; | 1185 font-weight: 700; |
ire
2017/11/14 16:55:21
It looks like this should be 400 in the spec image
saroyanm
2017/11/14 19:19:01
Agree, done.
| |
1159 text-transform: none; | 1186 text-transform: none; |
1187 text-decoration: none; | |
1160 } | 1188 } |
1161 | 1189 |
1162 .context-menu li[role="menuitem"] > *:hover, | 1190 .context-menu li[role="menuitem"] > *:hover, |
1163 .context-menu li[role="menuitem"] > *:focus | 1191 .context-menu li[role="menuitem"] > *:focus |
1164 { | 1192 { |
1165 background-color: #E1F2FA; | 1193 background-color: #E1F2FA; |
1166 cursor: pointer; | 1194 cursor: pointer; |
1167 } | 1195 } |
1168 | 1196 |
1169 .context-menu li[role="menuitem"] > *::before | 1197 .context-menu li[role="menuitem"] > *::before |
ire
2017/11/15 07:00:46
The icons are not vertically aligned with the text
saroyanm
2017/11/15 10:39:04
Done.
| |
1170 { | 1198 { |
1171 content: ""; | 1199 content: ""; |
1172 height: 1.5rem; | 1200 height: 1rem; |
1173 width: 1.5rem; | 1201 width: 1rem; |
1174 margin: 0rem 1.1rem; | 1202 margin: 0rem 1.1rem; |
1175 } | 1203 } |
1176 | 1204 |
1177 .context-menu .update-subscription::before | 1205 .context-menu .update-subscription::before |
1178 { | 1206 { |
1179 background-image: url(icons/reload.svg); | 1207 background-image: url(icons/reload.svg); |
1180 } | 1208 } |
1181 | 1209 |
1182 .context-menu .website::before | 1210 .context-menu .website::before |
1183 { | 1211 { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1279 width: 50vw; | 1307 width: 50vw; |
1280 margin: auto; | 1308 margin: auto; |
1281 border-radius: 3px; | 1309 border-radius: 3px; |
1282 background-color: #FFFFFF; | 1310 background-color: #FFFFFF; |
1283 } | 1311 } |
1284 | 1312 |
1285 #dialog header | 1313 #dialog header |
1286 { | 1314 { |
1287 display: flex; | 1315 display: flex; |
1288 padding: 0.7rem 1.5rem; | 1316 padding: 0.7rem 1.5rem; |
1289 background-color: #099CD0; | 1317 background-color: #077CA6; |
1290 } | 1318 } |
1291 | 1319 |
1292 #dialog header h3 | 1320 #dialog header h3 |
ire
2017/11/14 16:55:22
It's a bit unclear from the spec how this should l
saroyanm
2017/11/14 19:19:00
Thanks for bringing this up, the agreement is to p
ire
2017/11/15 07:00:46
Acknowledged.
| |
1293 { | 1321 { |
1294 margin: 0rem; | 1322 margin: 0rem; |
1295 font-size: 1.375rem; | 1323 font-size: 1rem; |
1296 font-weight: 700; | 1324 font-weight: 700; |
1297 } | 1325 } |
1298 | 1326 |
1299 #dialog-close, | 1327 #dialog-close, |
1300 #hide-notification | 1328 #hide-notification |
1301 { | 1329 { |
1302 border: 0rem; | 1330 border: 0rem; |
1303 padding: 0rem; | 1331 padding: 0rem; |
1304 margin: 0rem; | 1332 margin: 0rem; |
1305 background-color: transparent; | 1333 background-color: transparent; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1347 [data-dialog="about"] button | 1375 [data-dialog="about"] button |
1348 { | 1376 { |
1349 margin: 1.5rem auto 1.8rem auto; | 1377 margin: 1.5rem auto 1.8rem auto; |
1350 } | 1378 } |
1351 | 1379 |
1352 [data-dialog="about"] p | 1380 [data-dialog="about"] p |
1353 { | 1381 { |
1354 margin: 0.5rem 0rem; | 1382 margin: 0.5rem 0rem; |
1355 } | 1383 } |
1356 | 1384 |
1357 #abp-version | 1385 #abp-version |
ire
2017/11/14 16:55:22
I don't think this style is needed?
saroyanm
2017/11/14 19:19:01
Done.
| |
1358 { | 1386 { |
1359 margin-bottom: 2rem; | 1387 margin-bottom: 2rem; |
1360 } | 1388 } |
1361 | 1389 |
1362 [data-dialog="import"] .side-controls | 1390 [data-dialog="import"] .side-controls |
1363 { | 1391 { |
1364 margin-top: 2.45rem; | 1392 margin-top: 2.45rem; |
1365 } | 1393 } |
1366 | 1394 |
1367 #dialog .table | 1395 #dialog .table |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1417 { | 1445 { |
1418 position: fixed; | 1446 position: fixed; |
1419 top: 0rem; | 1447 top: 0rem; |
1420 left: 0rem; | 1448 left: 0rem; |
1421 display: flex; | 1449 display: flex; |
1422 padding: 1rem 1.9rem; | 1450 padding: 1rem 1.9rem; |
1423 width: 100%; | 1451 width: 100%; |
1424 box-sizing: border-box; | 1452 box-sizing: border-box; |
1425 opacity: 0.8; | 1453 opacity: 0.8; |
1426 font-size: 1rem; | 1454 font-size: 1rem; |
1427 color: #099CD0; | 1455 color: #077CA6; |
1428 background-color: #E1F2FA; | 1456 background-color: #E1F2FA; |
1429 } | 1457 } |
1430 | 1458 |
1431 #notification strong | 1459 #notification strong |
1432 { | 1460 { |
1433 flex: 1; | 1461 flex: 1; |
1434 text-align: center; | 1462 text-align: center; |
1435 } | 1463 } |
1436 | 1464 |
1437 #hide-notification | 1465 #hide-notification |
1438 { | 1466 { |
1439 margin: 0rem 1rem; | 1467 margin: 0rem 1rem; |
1440 } | 1468 } |
1441 | 1469 |
1442 #hide-notification::after | 1470 #hide-notification::after |
1443 { | 1471 { |
1444 background-image: url(icons/delete.svg#secondary); | 1472 background-image: url(icons/delete.svg#secondary); |
1445 } | 1473 } |
1446 | 1474 |
1447 #hide-notification:hover::after | 1475 #hide-notification:hover::after |
1448 { | 1476 { |
1449 background-image: url(icons/delete.svg#secondary-hover); | 1477 background-image: url(icons/delete.svg#secondary-hover); |
1450 } | 1478 } |
OLD | NEW |