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 27 matching lines...) Expand all Loading... | |
38 @font-face | 38 @font-face |
39 { | 39 { |
40 font-family: "Source Sans Pro"; | 40 font-family: "Source Sans Pro"; |
41 src: url(fonts/SourceSansPro-Semibold.woff); | 41 src: url(fonts/SourceSansPro-Semibold.woff); |
42 /* local("Ø") forces using no local font called Source Sans Pro */ | 42 /* local("Ø") forces using no local font called Source Sans Pro */ |
43 src: local("Ø"), url(fonts/SourceSansPro-Semibold.woff) format("woff"); | 43 src: local("Ø"), url(fonts/SourceSansPro-Semibold.woff) format("woff"); |
44 font-weight: 600; | 44 font-weight: 600; |
45 font-style: normal; | 45 font-style: normal; |
46 } | 46 } |
47 | 47 |
48 html | |
49 { | |
50 font-size: 20px; | |
51 } | |
52 | |
48 body | 53 body |
49 { | 54 { |
50 background-color: #F5F5F5; | 55 background-color: #F5F5F5; |
51 display: flex; | 56 display: flex; |
52 margin: 20px 10px; | 57 margin: 1.2rem 0.3rem; |
53 font-family: "Source Sans Pro", sans-serif; | 58 font-family: "Source Sans Pro", sans-serif; |
54 font-size: 14px; | 59 font-weight: 300; |
juliandoucette
2017/08/23 18:11:11
Note: This issue is still non-blocking and unresol
saroyanm
2017/08/23 20:57:54
I'll change to 400
saroyanm
2017/08/24 17:39:44
I didn't touch the font size, as I still have a cl
| |
60 font-size: 1rem; | |
55 color: #494949; | 61 color: #494949; |
56 } | 62 } |
57 | 63 |
58 h1 | 64 h1 |
59 { | 65 { |
60 font-size: 24px; | 66 font-size: 3rem; |
61 line-height: 1em; | |
62 font-weight: 300; | 67 font-weight: 300; |
63 } | 68 } |
64 | 69 |
65 h2 | 70 h2 |
66 { | 71 { |
67 font-size: 16px; | 72 font-size: 1.375rem; |
68 font-weight: 600; | 73 font-weight: 600; |
69 } | 74 } |
70 | 75 |
71 p | 76 p |
72 { | 77 { |
73 font-weight: 300; | 78 font-weight: 300; |
74 } | 79 } |
75 | 80 |
76 hr | |
77 { | |
78 background-color: #CDCDCD; | |
79 border: 0px; | |
80 height: 1px; | |
81 margin: 0px; | |
82 } | |
83 | |
84 [aria-hidden="true"] | 81 [aria-hidden="true"] |
85 { | 82 { |
86 display: none !important; | 83 display: none !important; |
87 } | 84 } |
88 | 85 |
89 input[type="search"]::-webkit-search-cancel-button | |
90 { | |
91 display: none; | |
92 } | |
93 | |
94 input[type="text"], | 86 input[type="text"], |
95 input[type="search"], | 87 textarea, |
96 textarea | 88 main |
97 { | 89 { |
98 -webkit-box-sizing: border-box; | 90 -webkit-box-sizing: border-box; |
99 -moz-box-sizing: border-box; | 91 -moz-box-sizing: border-box; |
100 box-sizing: border-box; | 92 box-sizing: border-box; |
101 } | 93 } |
102 | 94 |
95 /* | |
96 Buttons and links | |
97 */ | |
98 | |
99 button, | |
100 .button | |
101 { | |
102 padding: 0.8rem 1.2rem; | |
103 font-size: 1.125rem; | |
104 font-weight: 600; | |
105 text-decoration: none; | |
106 text-transform: uppercase; | |
107 cursor: pointer; | |
108 } | |
109 | |
110 button.primary, | |
111 .button.primary | |
112 { | |
113 border: 0px; | |
114 color: #FFF; | |
115 background-color: #0A9DD1; | |
116 } | |
117 | |
118 button.primary:hover, | |
119 .button.primary:hover | |
120 { | |
121 box-shadow: inset 0 0 0 2px #005D80; | |
122 } | |
123 | |
124 button.primary[disabled] | |
125 { | |
126 background-color: #5CBCE1; | |
127 } | |
128 | |
129 button.secondary, | |
130 .button.secondary | |
131 { | |
132 border: 1px solid #0A9DD1; | |
133 color: #099CD0; | |
134 } | |
135 | |
136 button.secondary:hover, | |
137 .button.secondary:hover | |
138 { | |
139 box-shadow: inset 0 0 0 1px #099CD0; | |
140 } | |
141 | |
103 button[role="checkbox"], | 142 button[role="checkbox"], |
104 #dialog-body .table button[role="checkbox"] | 143 #dialog-body .table button[role="checkbox"] |
105 { | 144 { |
106 width: 18px; | 145 width: 18px; |
107 height: 18px; | 146 height: 18px; |
108 margin-top: 0px; | 147 margin-top: 0px; |
109 -moz-margin-end: 20px; | 148 -moz-margin-end: 20px; |
110 -webkit-margin-end: 20px; | 149 -webkit-margin-end: 20px; |
111 padding: 0px; | 150 padding: 0px; |
112 border: none; | 151 border: 0px; |
113 background-color: transparent; | 152 background-color: transparent; |
114 background-position: -51px 0px; | 153 background-position: -51px 0px; |
115 } | 154 } |
116 | 155 |
117 button[role="checkbox"][aria-checked="true"], | 156 button[role="checkbox"][aria-checked="true"], |
118 #dialog-body .table button[role="checkbox"][aria-checked="true"] | 157 #dialog-body .table button[role="checkbox"][aria-checked="true"] |
119 { | 158 { |
120 background-position: -68px 0px; | 159 background-position: -68px 0px; |
121 } | 160 } |
122 | 161 |
123 #nav-sidebar | 162 button.link |
124 { | 163 { |
125 min-width: 198px; | 164 border: 0px; |
165 background-color: transparent; | |
166 font-weight: 300; | |
167 font-family: inherit; | |
168 color: #099CD0; | |
169 text-transform: none; | |
170 padding: 0.2rem; | |
126 } | 171 } |
127 | 172 |
128 #nav-sidebar .fixed | 173 /* |
174 Sidebar | |
175 */ | |
176 | |
177 #sidebar, | |
178 #sidebar .fixed, | |
179 [role="tablist"] | |
129 { | 180 { |
130 top: 40px; | 181 width: 13.2rem; |
131 bottom: 2px; | 182 } |
183 | |
184 #sidebar | |
185 { | |
186 flex-shrink: 0; | |
187 } | |
188 | |
189 #sidebar .fixed | |
190 { | |
191 top: 1.2rem; | |
192 bottom: 0rem; | |
132 height: auto; | 193 height: auto; |
133 position: fixed; | 194 position: fixed; |
134 } | 195 } |
135 | 196 |
136 #page-title | 197 #sidebar header |
137 { | 198 { |
138 padding: 0px 20px; | 199 text-align: right; |
200 margin-right: 2rem; | |
139 } | 201 } |
140 | 202 |
141 #page-title p | 203 html[dir="rtl"] #sidebar header |
142 { | 204 { |
143 margin: 0px; | 205 margin-left: 2rem; |
144 font-size: 16px; | |
145 line-height: 1em; | |
146 } | 206 } |
147 | 207 |
148 #page-title h1 | 208 #sidebar header h1 |
149 { | 209 { |
150 margin: 0px; | 210 margin: 0rem; |
151 padding: 8px 0px 16px 0px; | 211 font-size: 1.5rem; |
152 } | 212 } |
153 | 213 |
154 .tabs li | 214 #sidebar header p |
155 { | 215 { |
156 cursor: pointer; | 216 margin: 0rem; |
157 display: flex; | 217 font-size: 2.4rem; |
158 } | 218 } |
159 | 219 |
160 .tabs li a | 220 html[dir="rtl"] #sidebar header |
161 { | 221 { |
162 flex: 1; | 222 text-align: left; |
163 color: inherit; | |
164 text-decoration: none; | |
165 } | 223 } |
166 | 224 |
167 .tabs.vertical | 225 #sidebar-logo |
226 { | |
227 width: 3rem; | |
228 margin-bottom: 0.7rem; | |
229 } | |
230 | |
231 #sidebar nav, | |
232 #sidebar footer | |
233 { | |
234 margin: 1.4rem 0rem; | |
235 } | |
236 | |
237 [role="tablist"] | |
168 { | 238 { |
169 list-style: none; | 239 list-style: none; |
170 margin: 0px; | 240 margin: 0px; |
171 position: relative; | 241 position: relative; |
172 padding: 0px; | 242 padding: 0px; |
173 width: 198px; | 243 font-size: 1.25rem; |
174 } | 244 } |
175 | 245 |
176 .tabs.vertical li | 246 [role="tablist"] li a |
177 { | 247 { |
178 height: 46px; | 248 display: flex; |
179 margin-top: -1px; | 249 margin-top: -1px; |
250 padding: 1rem 0.8rem; | |
180 -moz-margin-end: -1px; | 251 -moz-margin-end: -1px; |
181 -webkit-margin-end: -1px; | 252 -webkit-margin-end: -1px; |
182 -moz-margin-start: -1px; | 253 -moz-margin-start: -1px; |
183 -webkit-margin-start: -1px; | 254 -webkit-margin-start: -1px; |
184 border-color: #CDCDCD transparent; | 255 border-color: #CDCDCD transparent; |
185 border-style: solid; | 256 border-style: solid; |
186 border-width: 1px; | 257 border-width: 1px; |
187 font-size: 16px; | 258 text-decoration: none; |
188 font-weight: 300; | 259 color: inherit; |
189 line-height: 1em; | 260 cursor: pointer; |
190 } | 261 } |
191 | 262 |
192 .tabs.vertical li a, | 263 [role="tablist"] a[role="tab"]:focus |
193 .tabs.vertical li span, | |
194 .tabs.vertical li::after | |
195 { | |
196 margin: auto 20px; | |
197 } | |
198 | |
199 .tabs li[role="tab"]:focus | |
200 { | 264 { |
201 outline: none; | 265 outline: none; |
202 text-shadow: 0px 0px 1px #888; | 266 text-shadow: 0px 0px 1px #888; |
203 } | 267 } |
204 | 268 |
205 .tabs li[role="tab"][aria-selected] | 269 li a[role="tab"][aria-selected] |
206 { | 270 { |
207 border-radius: 3px 0px 0px 3px; | |
208 -moz-border-start-color: #CDCDCD; | 271 -moz-border-start-color: #CDCDCD; |
209 -webkit-border-start-color: #CDCDCD; | 272 -webkit-border-start-color: #CDCDCD; |
210 font-weight: 600; | 273 font-weight: 600; |
211 background-color: #FFF; | 274 background-color: #FFF; |
212 } | 275 } |
213 | 276 |
214 html[dir="rtl"] .tabs li[role="tab"][aria-selected] | 277 #sidebar footer |
215 { | |
216 border-radius: 0px 3px 3px 0px; | |
217 } | |
218 | |
219 .tabs.vertical.bottom | |
220 { | 278 { |
221 bottom: 0px; | 279 bottom: 0px; |
222 position: absolute; | 280 position: absolute; |
223 } | |
224 | |
225 .tabs.vertical.bottom li:first-child | |
226 { | |
227 border-top: 0px; | |
228 } | |
229 | |
230 #tab-contribute | |
231 { | |
232 border-bottom: none; | |
233 } | |
234 | |
235 #nav-sidebar ul li span | |
236 { | |
237 width: 100%; | 281 width: 100%; |
238 } | 282 } |
239 | 283 |
240 #nav-sidebar ul li::after | 284 #sidebar footer p |
241 { | 285 { |
242 content: ""; | 286 display: flex; |
243 min-width: 14px; | 287 justify-content: center; |
244 height: 14px; | 288 margin: 1.2rem 0rem; |
245 background-image: url(options-sprite.png); | |
246 } | 289 } |
247 | 290 |
248 #tab-general::after | 291 main |
249 { | 292 { |
250 background-position: -16px -18px; | 293 background-color: #FFFFFF; |
294 border: 1px solid #CDCDCD; | |
295 max-width: 46.3rem; | |
juliandoucette
2017/08/23 18:11:11
Note: The spec doesn't seem to say anything about
juliandoucette
2017/08/23 18:11:11
Note: I didn't re-calculate all of the horizontal
saroyanm
2017/08/23 20:57:54
Not sure what you mean, but it's border-box elemen
saroyanm
2017/08/23 20:57:55
It does -> https://bytebucket.org/adblockplus/spec
juliandoucette
2017/08/23 22:00:46
Yes. I was referring to my previous comment where
| |
296 padding: 0px 2rem 1.4rem 2rem; | |
251 } | 297 } |
252 | 298 |
253 #tab-advanced::after | 299 main > div |
254 { | |
255 background-position: -46px -18px; | |
256 } | |
257 | |
258 #tab-help::after | |
259 { | |
260 background-position: -1px -18px; | |
261 } | |
262 | |
263 #tab-share::after | |
264 { | |
265 background-position: -61px -18px; | |
266 } | |
267 | |
268 #tab-contribute::after | |
269 { | |
270 background-position: -31px -18px; | |
271 } | |
272 | |
273 #tab-share:lang(zh), | |
274 #tab-share[hidden] | |
275 { | 300 { |
276 display: none; | 301 display: none; |
277 } | 302 } |
278 | 303 |
279 #tab-share:lang(zh) + li, | 304 main h1 |
280 #tab-share[hidden] + li | |
281 { | |
282 border-top: none; | |
283 } | |
284 | |
285 #content | |
286 { | |
287 background-color: #FFFFFF; | |
288 border: 1px solid #CDCDCD; | |
289 border-radius: 8px; | |
290 width: 840px; | |
291 padding: 0px 60px 40px 60px; | |
292 } | |
293 | |
294 #content h1 | |
295 { | 305 { |
296 border-bottom: 1px solid #CDCDCD; | 306 border-bottom: 1px solid #CDCDCD; |
297 margin: 0px 0px 24px 0px; | 307 margin: 0px 0px 24px 0px; |
298 padding: 40px 0px 16px 0px; | 308 padding: 40px 0px 16px 0px; |
299 } | 309 } |
300 | 310 |
301 #link-version | |
302 { | |
303 display: flex; | |
304 margin: 12px 20px; | |
305 color: #3A7BA6; | |
306 text-decoration: none; | |
307 } | |
308 | |
309 #abp-version | |
310 { | |
311 -moz-margin-start: 5px; | |
312 -webkit-margin-start: 5px; | |
313 } | |
314 | |
315 #content-wrapper | |
316 { | |
317 position: relative; | |
318 } | |
319 | |
320 #content-wrapper > div | |
321 { | |
322 display: none; | |
323 } | |
324 | |
325 body[data-tab|="general"] #content-general, | 311 body[data-tab|="general"] #content-general, |
326 body[data-tab|="advanced"] #content-advanced, | 312 body[data-tab|="advanced"] #content-advanced, |
327 body[data-tab|="whitelist"] #content-whitelist, | 313 body[data-tab|="whitelist"] #content-whitelist, |
328 body[data-tab|="help"] #content-help | 314 body[data-tab|="help"] #content-help |
329 { | 315 { |
330 display: block; | 316 display: block; |
331 } | 317 } |
332 | 318 |
333 div.button | 319 div.button |
334 { | 320 { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
494 .controls > div | 480 .controls > div |
495 { | 481 { |
496 display: flex; | 482 display: flex; |
497 position: relative; | 483 position: relative; |
498 } | 484 } |
499 | 485 |
500 .controls button, | 486 .controls button, |
501 #dialog-close | 487 #dialog-close |
502 { | 488 { |
503 display: flex; | 489 display: flex; |
504 border: none; | 490 border: 0px; |
505 padding: 0px; | 491 padding: 0px; |
506 align-items: center; | 492 align-items: center; |
507 background: none; | 493 background: none; |
508 cursor: pointer; | 494 cursor: pointer; |
509 } | 495 } |
510 | 496 |
511 .controls button span:not(.icon) | 497 .controls button span:not(.icon) |
512 { | 498 { |
513 -moz-margin-start: 16px; | 499 -moz-margin-start: 16px; |
514 -webkit-margin-start: 16px; | 500 -webkit-margin-start: 16px; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
824 | 810 |
825 div.context-menu > div a::before | 811 div.context-menu > div a::before |
826 { | 812 { |
827 vertical-align: middle; | 813 vertical-align: middle; |
828 height: 16px; | 814 height: 16px; |
829 width: 16px; | 815 width: 16px; |
830 } | 816 } |
831 | 817 |
832 div.context-menu > div a:last-child | 818 div.context-menu > div a:last-child |
833 { | 819 { |
834 border: none; | 820 border: 0px; |
835 } | 821 } |
836 | 822 |
837 .context-menu .update-subscription::before | 823 .context-menu .update-subscription::before |
838 { | 824 { |
839 background-position: -38px -31px; | 825 background-position: -38px -31px; |
840 } | 826 } |
841 | 827 |
842 .context-menu .website::before | 828 .context-menu .website::before |
843 { | 829 { |
844 background-position: -33px -47px; | 830 background-position: -33px -47px; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1004 } | 990 } |
1005 | 991 |
1006 #dialog h3, | 992 #dialog h3, |
1007 #dialog label | 993 #dialog label |
1008 { | 994 { |
1009 font-size: 14px; | 995 font-size: 14px; |
1010 font-weight: 600; | 996 font-weight: 600; |
1011 margin: 0px; | 997 margin: 0px; |
1012 } | 998 } |
1013 | 999 |
1014 #dialog input[type="text"], | 1000 #dialog input[type="text"] |
1015 #dialog input[type="search"] | |
1016 { | 1001 { |
1017 font-size: 16px; | 1002 font-size: 16px; |
1018 margin-top: 10px; | 1003 margin-top: 10px; |
1019 padding: 5px; | 1004 padding: 5px; |
1020 width: 100%; | 1005 width: 100%; |
1021 } | 1006 } |
1022 | 1007 |
1023 #dialog .table | 1008 #dialog .table |
1024 { | 1009 { |
1025 width: 100%; | 1010 width: 100%; |
(...skipping 11 matching lines...) Expand all Loading... | |
1037 flex: 1; | 1022 flex: 1; |
1038 font-size: 16px; | 1023 font-size: 16px; |
1039 color: #FFFFFF; | 1024 color: #FFFFFF; |
1040 } | 1025 } |
1041 | 1026 |
1042 #dialog-body .dialog-content-block | 1027 #dialog-body .dialog-content-block |
1043 { | 1028 { |
1044 padding: 12px 0px; | 1029 padding: 12px 0px; |
1045 } | 1030 } |
1046 | 1031 |
1047 #dialog-body button | |
1048 { | |
1049 background-color: #F5F5F5; | |
1050 border: none; | |
1051 color: #3A7BA6; | |
1052 cursor: pointer; | |
1053 display: block; | |
1054 font-family: inherit; | |
1055 margin-top: 8px; | |
1056 padding: 10px 16px; | |
1057 text-align: initial; | |
1058 width: 100%; | |
1059 } | |
1060 | |
1061 #dialog .url | 1032 #dialog .url |
1062 { | 1033 { |
1063 margin-top: 10px; | 1034 margin-top: 10px; |
1064 margin-bottom: 20px; | 1035 margin-bottom: 20px; |
1065 word-wrap: break-word; | 1036 word-wrap: break-word; |
1066 } | 1037 } |
1067 | 1038 |
1039 body:not([data-dialog="about"]) #dialog-title-about, | |
1040 body:not([data-dialog="about"]) #dialog-content-about, | |
1068 body:not([data-dialog="custom"]) #dialog-title-custom, | 1041 body:not([data-dialog="custom"]) #dialog-title-custom, |
1069 body:not([data-dialog="custom"]) #dialog-content-custom, | 1042 body:not([data-dialog="custom"]) #dialog-content-custom, |
1070 body:not([data-dialog="language-add"]) #dialog-title-language-add, | 1043 body:not([data-dialog="language-add"]) #dialog-title-language-add, |
1071 body:not([data-dialog="language-change"]) #dialog-title-language-change, | 1044 body:not([data-dialog="language-change"]) #dialog-title-language-change, |
1072 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia log-content-language-add, | 1045 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia log-content-language-add, |
1073 body:not([data-dialog="language-add"]) #dialog-body button.add, | 1046 body:not([data-dialog="language-add"]) #dialog-body button.add, |
1074 body:not([data-dialog="language-change"]) #dialog-body button.change, | 1047 body:not([data-dialog="language-change"]) #dialog-body button.change, |
1075 body:not([data-dialog="predefined"]) #dialog-title-predefined, | 1048 body:not([data-dialog="predefined"]) #dialog-title-predefined, |
1076 body:not([data-dialog="predefined"]) #dialog-content-predefined, | 1049 body:not([data-dialog="predefined"]) #dialog-content-predefined, |
1077 body:not([data-dialog]) #dialog | 1050 body:not([data-dialog]) #dialog |
1078 { | 1051 { |
1079 display: none; | 1052 display: none; |
1080 } | 1053 } |
OLD | NEW |