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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 body | 48 body |
49 { | 49 { |
50 background-color: #F5F5F5; | 50 background-color: #F5F5F5; |
51 display: flex; | 51 display: flex; |
52 margin: 20px 10px; | 52 margin: 1.2em 0.3em; |
53 font-family: "Source Sans Pro", sans-serif; | 53 font-family: "Source Sans Pro", sans-serif; |
54 font-size: 14px; | 54 font-size: 20px; |
55 font-weight: 300; | |
juliandoucette
2017/08/21 14:10:35
This thin body font requires aliasing and is hard
saroyanm
2017/08/21 15:20:22
As mentioned, on other file, styleguide enhancemen
juliandoucette
2017/08/21 16:07:25
I can't find "300" or "thin" in the styleguide or
saroyanm
2017/08/21 16:46:13
Yes, it's using same fonts value assignment as Acc
juliandoucette
2017/08/22 10:10:44
Acknowledged.
I think it's worth bringing up.
| |
55 color: #494949; | 56 color: #494949; |
56 } | 57 } |
57 | 58 |
58 h1 | 59 h1 |
59 { | 60 { |
60 font-size: 24px; | 61 font-size: 3em; |
61 line-height: 1em; | |
62 font-weight: 300; | 62 font-weight: 300; |
63 } | 63 } |
64 | 64 |
65 h2 | 65 h2 |
66 { | 66 { |
67 font-size: 16px; | 67 font-size: 1.375em; |
68 font-weight: 600; | 68 font-weight: 600; |
69 } | 69 } |
70 | 70 |
71 p | |
72 { | |
73 font-weight: 300; | |
74 } | |
75 | |
76 hr | |
77 { | |
78 background-color: #CDCDCD; | |
79 border: 0px; | |
80 height: 1px; | |
81 margin: 0px; | |
82 } | |
83 | |
84 [aria-hidden="true"] | 71 [aria-hidden="true"] |
85 { | 72 { |
86 display: none !important; | 73 display: none !important; |
87 } | 74 } |
88 | 75 |
89 input[type="search"]::-webkit-search-cancel-button | |
90 { | |
91 display: none; | |
92 } | |
93 | |
94 input[type="text"], | 76 input[type="text"], |
95 input[type="search"], | 77 textarea, |
96 textarea | 78 main |
97 { | 79 { |
98 -webkit-box-sizing: border-box; | 80 -webkit-box-sizing: border-box; |
99 -moz-box-sizing: border-box; | 81 -moz-box-sizing: border-box; |
100 box-sizing: border-box; | 82 box-sizing: border-box; |
101 } | 83 } |
102 | 84 |
85 /* | |
86 Buttons and links | |
87 */ | |
88 | |
89 a, | |
90 button.link | |
91 { | |
92 text-decoration: none; | |
93 color: #099CD0; | |
94 font-size: 1.25em; | |
juliandoucette
2017/08/21 14:10:34
It seem strange to make anchors slightly larger th
saroyanm
2017/08/21 15:20:23
I agree, this is not what styleguide says.
juliandoucette
2017/08/21 16:07:25
I can't tell if you are saying that you or the sty
saroyanm
2017/08/21 16:46:13
I'm saying that I'll fix that, style guide specify
juliandoucette
2017/08/22 10:10:44
Acknowledged.
saroyanm
2017/08/23 13:35:45
Neverming I was wrong, I shouldn't style <a> here,
| |
95 cursor: pointer; | |
96 } | |
97 | |
98 button.link | |
99 { | |
100 border:none; | |
juliandoucette
2017/08/21 14:10:34
NIT: Missing space, + I thought we agreed on borde
saroyanm
2017/08/21 15:20:22
Good point.
saroyanm
2017/08/23 13:35:45
Done.
| |
101 background-color: transparent; | |
102 font-weight: 300; | |
103 font-family: inherit; | |
104 } | |
105 | |
106 button.primary, | |
juliandoucette
2017/08/21 14:10:34
These seem like styles that should apply to button
saroyanm
2017/08/21 15:20:23
It, can but in that case we should reset some styl
juliandoucette
2017/08/21 16:07:25
Do button on other parts of this page or in other
saroyanm
2017/08/21 16:46:13
Yes, they look, but if change here will break them
juliandoucette
2017/08/22 10:10:44
Acknowledged.
saroyanm
2017/08/23 13:35:46
Done.
| |
107 button.secondary, | |
108 .button.primary, | |
109 .button.secondary | |
110 { | |
111 padding: 0.8em 1.2em; | |
112 font-size: 1.125em; | |
113 font-weight: 600; | |
114 text-decoration: none; | |
115 text-transform: uppercase; | |
116 } | |
117 | |
118 button.primary, | |
119 .button.primary | |
120 { | |
121 border: none; | |
122 color: #FFF; | |
123 background-color: #0A9DD1; | |
124 cursor: pointer; | |
juliandoucette
2017/08/21 14:10:34
I think this is redundant?
saroyanm
2017/08/21 15:20:22
Why ?
juliandoucette
2017/08/21 16:07:25
I was mistaken; sorry. I thought that this style w
saroyanm
2017/08/21 16:46:13
Yes, I think it should.
saroyanm
2017/08/23 13:35:45
Done.
| |
125 } | |
126 | |
127 button.primary:hover, | |
128 .button.primary:hover | |
129 { | |
130 box-shadow: inset 0 0 0 2px #005D80; | |
131 } | |
132 | |
133 button.primary[disabled] | |
134 { | |
135 background-color: #5CBCE1; | |
136 } | |
137 | |
138 button.secondary, | |
139 .button.secondary | |
140 { | |
141 border: 1px solid #0A9DD1; | |
142 color: #099CD0; | |
143 } | |
144 | |
145 button.secondary:hover, | |
146 .button.secondary:hover | |
147 { | |
148 box-shadow: inset 0 0 0 1px #099CD0; | |
149 } | |
150 | |
103 button[role="checkbox"], | 151 button[role="checkbox"], |
104 #dialog-body .table button[role="checkbox"] | 152 #dialog-body .table button[role="checkbox"] |
105 { | 153 { |
106 width: 18px; | 154 width: 18px; |
107 height: 18px; | 155 height: 18px; |
108 margin-top: 0px; | 156 margin-top: 0px; |
109 -moz-margin-end: 20px; | 157 -moz-margin-end: 20px; |
110 -webkit-margin-end: 20px; | 158 -webkit-margin-end: 20px; |
111 padding: 0px; | 159 padding: 0px; |
112 border: none; | 160 border: none; |
113 background-color: transparent; | 161 background-color: transparent; |
114 background-position: -51px 0px; | 162 background-position: -51px 0px; |
115 } | 163 } |
116 | 164 |
117 button[role="checkbox"][aria-checked="true"], | 165 button[role="checkbox"][aria-checked="true"], |
118 #dialog-body .table button[role="checkbox"][aria-checked="true"] | 166 #dialog-body .table button[role="checkbox"][aria-checked="true"] |
119 { | 167 { |
120 background-position: -68px 0px; | 168 background-position: -68px 0px; |
121 } | 169 } |
122 | 170 |
123 #nav-sidebar | 171 /* |
172 Sidebar | |
173 */ | |
174 | |
175 #sidebar, | |
176 #sidebar .fixed, | |
177 [role="tablist"] | |
124 { | 178 { |
125 min-width: 198px; | 179 width: 13.2em; |
126 } | 180 } |
127 | 181 |
128 #nav-sidebar .fixed | 182 #sidebar |
129 { | 183 { |
130 top: 40px; | 184 flex-shrink: 0; |
131 bottom: 2px; | 185 } |
186 | |
187 #sidebar .fixed | |
188 { | |
189 top: 1.2em; | |
190 bottom: 0em; | |
132 height: auto; | 191 height: auto; |
133 position: fixed; | 192 position: fixed; |
134 } | 193 } |
135 | 194 |
136 #page-title | 195 #sidebar header |
137 { | 196 { |
138 padding: 0px 20px; | 197 text-align: right; |
198 margin-right: 2em; | |
139 } | 199 } |
140 | 200 |
141 #page-title p | 201 html[dir="rtl"] #sidebar header |
142 { | 202 { |
143 margin: 0px; | 203 margin-left: 2em; |
144 font-size: 16px; | |
145 line-height: 1em; | |
146 } | 204 } |
147 | 205 |
148 #page-title h1 | 206 #sidebar header h1 |
149 { | 207 { |
150 margin: 0px; | 208 margin: 0em; |
151 padding: 8px 0px 16px 0px; | 209 font-size: 1.2em; |
152 } | 210 } |
153 | 211 |
154 .tabs li | 212 #sidebar header h2 |
155 { | 213 { |
156 cursor: pointer; | 214 margin: 0em; |
157 display: flex; | 215 font-size: 2.2em; |
216 font-weight: 300; | |
158 } | 217 } |
159 | 218 |
160 .tabs li a | 219 html[dir="rtl"] #sidebar header |
161 { | 220 { |
162 flex: 1; | 221 text-align: left; |
163 color: inherit; | |
164 text-decoration: none; | |
165 } | 222 } |
166 | 223 |
167 .tabs.vertical | 224 #sidebar-logo |
225 { | |
226 width: 3em; | |
227 margin-bottom: 0.9em; | |
228 } | |
229 | |
230 #sidebar nav, | |
231 #sidebar footer | |
232 { | |
233 margin: 1.4em 0em; | |
234 } | |
235 | |
236 [role="tablist"] | |
168 { | 237 { |
169 list-style: none; | 238 list-style: none; |
170 margin: 0px; | 239 margin: 0px; |
171 position: relative; | 240 position: relative; |
172 padding: 0px; | 241 padding: 0px; |
173 width: 198px; | |
174 } | 242 } |
175 | 243 |
176 .tabs.vertical li | 244 [role="tablist"] li |
177 { | 245 { |
178 height: 46px; | 246 display: flex; |
179 margin-top: -1px; | 247 margin-top: -1px; |
248 padding: 1em 0px; | |
180 -moz-margin-end: -1px; | 249 -moz-margin-end: -1px; |
181 -webkit-margin-end: -1px; | 250 -webkit-margin-end: -1px; |
182 -moz-margin-start: -1px; | 251 -moz-margin-start: -1px; |
183 -webkit-margin-start: -1px; | 252 -webkit-margin-start: -1px; |
184 border-color: #CDCDCD transparent; | 253 border-color: #CDCDCD transparent; |
185 border-style: solid; | 254 border-style: solid; |
186 border-width: 1px; | 255 border-width: 1px; |
187 font-size: 16px; | |
188 font-weight: 300; | 256 font-weight: 300; |
189 line-height: 1em; | 257 cursor: pointer; |
190 } | 258 } |
191 | 259 |
192 .tabs.vertical li a, | 260 [role="tablist"] li a |
193 .tabs.vertical li span, | |
194 .tabs.vertical li::after | |
195 { | 261 { |
196 margin: auto 20px; | 262 flex: 1; |
263 color: inherit; | |
197 } | 264 } |
198 | 265 |
199 .tabs li[role="tab"]:focus | 266 [role="tablist"] li a, |
267 [role="tablist"] li span, | |
268 [role="tablist"] li::after | |
269 { | |
270 margin: 0em 0.8em; | |
271 } | |
272 | |
273 [role="tablist"] li[role="tab"]:focus, | |
274 [role="tablist"] li[role="tab"] a:focus | |
200 { | 275 { |
201 outline: none; | 276 outline: none; |
202 text-shadow: 0px 0px 1px #888; | 277 text-shadow: 0px 0px 1px #888; |
203 } | 278 } |
204 | 279 |
205 .tabs li[role="tab"][aria-selected] | 280 li[role="tab"][aria-selected] |
206 { | 281 { |
207 border-radius: 3px 0px 0px 3px; | |
208 -moz-border-start-color: #CDCDCD; | 282 -moz-border-start-color: #CDCDCD; |
209 -webkit-border-start-color: #CDCDCD; | 283 -webkit-border-start-color: #CDCDCD; |
210 font-weight: 600; | 284 font-weight: 600; |
211 background-color: #FFF; | 285 background-color: #FFF; |
212 } | 286 } |
213 | 287 |
214 html[dir="rtl"] .tabs li[role="tab"][aria-selected] | 288 #sidebar footer |
215 { | |
216 border-radius: 0px 3px 3px 0px; | |
217 } | |
218 | |
219 .tabs.vertical.bottom | |
220 { | 289 { |
221 bottom: 0px; | 290 bottom: 0px; |
222 position: absolute; | 291 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%; | 292 width: 100%; |
238 } | 293 } |
239 | 294 |
240 #nav-sidebar ul li::after | 295 #sidebar footer p |
241 { | 296 { |
242 content: ""; | 297 display: flex; |
243 min-width: 14px; | 298 justify-content: center; |
244 height: 14px; | 299 margin: 1.2em 0em; |
245 background-image: url(options-sprite.png); | |
246 } | 300 } |
247 | 301 |
248 #tab-general::after | 302 main |
249 { | 303 { |
250 background-position: -16px -18px; | 304 background-color: #FFFFFF; |
305 border: 1px solid #CDCDCD; | |
306 border-radius: 8px; | |
307 max-width: 46.3em; | |
308 padding: 0px 2em 1.4em 2em; | |
251 } | 309 } |
252 | 310 |
253 #tab-advanced::after | 311 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 { | 312 { |
276 display: none; | 313 display: none; |
277 } | 314 } |
278 | 315 |
279 #tab-share:lang(zh) + li, | 316 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 { | 317 { |
296 border-bottom: 1px solid #CDCDCD; | 318 border-bottom: 1px solid #CDCDCD; |
297 margin: 0px 0px 24px 0px; | 319 margin: 0px 0px 24px 0px; |
298 padding: 40px 0px 16px 0px; | 320 padding: 40px 0px 16px 0px; |
299 } | 321 } |
300 | 322 |
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, | 323 body[data-tab|="general"] #content-general, |
326 body[data-tab|="advanced"] #content-advanced, | 324 body[data-tab|="advanced"] #content-advanced, |
327 body[data-tab|="whitelist"] #content-whitelist, | 325 body[data-tab|="whitelist"] #content-whitelist, |
328 body[data-tab|="help"] #content-help | 326 body[data-tab|="help"] #content-help |
329 { | 327 { |
330 display: block; | 328 display: block; |
331 } | 329 } |
332 | 330 |
333 div.button | 331 div.button |
334 { | 332 { |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1004 } | 1002 } |
1005 | 1003 |
1006 #dialog h3, | 1004 #dialog h3, |
1007 #dialog label | 1005 #dialog label |
1008 { | 1006 { |
1009 font-size: 14px; | 1007 font-size: 14px; |
1010 font-weight: 600; | 1008 font-weight: 600; |
1011 margin: 0px; | 1009 margin: 0px; |
1012 } | 1010 } |
1013 | 1011 |
1014 #dialog input[type="text"], | 1012 #dialog input[type="text"] |
1015 #dialog input[type="search"] | |
1016 { | 1013 { |
1017 font-size: 16px; | 1014 font-size: 16px; |
1018 margin-top: 10px; | 1015 margin-top: 10px; |
1019 padding: 5px; | 1016 padding: 5px; |
1020 width: 100%; | 1017 width: 100%; |
1021 } | 1018 } |
1022 | 1019 |
1023 #dialog .table | 1020 #dialog .table |
1024 { | 1021 { |
1025 width: 100%; | 1022 width: 100%; |
(...skipping 11 matching lines...) Expand all Loading... | |
1037 flex: 1; | 1034 flex: 1; |
1038 font-size: 16px; | 1035 font-size: 16px; |
1039 color: #FFFFFF; | 1036 color: #FFFFFF; |
1040 } | 1037 } |
1041 | 1038 |
1042 #dialog-body .dialog-content-block | 1039 #dialog-body .dialog-content-block |
1043 { | 1040 { |
1044 padding: 12px 0px; | 1041 padding: 12px 0px; |
1045 } | 1042 } |
1046 | 1043 |
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 | 1044 #dialog .url |
1062 { | 1045 { |
1063 margin-top: 10px; | 1046 margin-top: 10px; |
1064 margin-bottom: 20px; | 1047 margin-bottom: 20px; |
1065 word-wrap: break-word; | 1048 word-wrap: break-word; |
1066 } | 1049 } |
1067 | 1050 |
1051 body:not([data-dialog="about"]) #dialog-title-about, | |
1052 body:not([data-dialog="about"]) #dialog-content-about, | |
1068 body:not([data-dialog="custom"]) #dialog-title-custom, | 1053 body:not([data-dialog="custom"]) #dialog-title-custom, |
1069 body:not([data-dialog="custom"]) #dialog-content-custom, | 1054 body:not([data-dialog="custom"]) #dialog-content-custom, |
1070 body:not([data-dialog="language-add"]) #dialog-title-language-add, | 1055 body:not([data-dialog="language-add"]) #dialog-title-language-add, |
1071 body:not([data-dialog="language-add"]) #dialog-content-language-add, | 1056 body:not([data-dialog="language-add"]) #dialog-content-language-add, |
1072 body:not([data-dialog="language-change"]) #dialog-title-language-change, | 1057 body:not([data-dialog="language-change"]) #dialog-title-language-change, |
1073 body:not([data-dialog="language-change"]) #dialog-content-language-change, | 1058 body:not([data-dialog="language-change"]) #dialog-content-language-change, |
1074 body:not([data-dialog="predefined"]) #dialog-title-predefined, | 1059 body:not([data-dialog="predefined"]) #dialog-title-predefined, |
1075 body:not([data-dialog="predefined"]) #dialog-content-predefined, | 1060 body:not([data-dialog="predefined"]) #dialog-content-predefined, |
1076 body:not([data-dialog]) #dialog | 1061 body:not([data-dialog]) #dialog |
1077 { | 1062 { |
1078 display: none; | 1063 display: none; |
1079 } | 1064 } |
OLD | NEW |