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 20 matching lines...) Expand all Loading... |
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-weight: 400; | 34 font-weight: 400; |
35 font-style: normal; | 35 font-style: normal; |
36 } | 36 } |
37 | 37 |
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-bold.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-bold.woff) format("woff"); |
44 font-weight: 600; | 44 font-weight: 700; |
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; |
| 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: 700; |
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: 700; |
| 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 4px #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 h1 strong |
155 { | 215 { |
156 cursor: pointer; | 216 font-weight: 700; |
157 display: flex; | |
158 } | 217 } |
159 | 218 |
160 .tabs li a | 219 #sidebar header p |
161 { | 220 { |
162 flex: 1; | 221 margin: 0rem; |
163 color: inherit; | 222 font-size: 2.4rem; |
164 text-decoration: none; | |
165 } | 223 } |
166 | 224 |
167 .tabs.vertical | 225 html[dir="rtl"] #sidebar header |
| 226 { |
| 227 text-align: left; |
| 228 } |
| 229 |
| 230 #sidebar-logo |
| 231 { |
| 232 width: 3rem; |
| 233 margin-bottom: 0.7rem; |
| 234 } |
| 235 |
| 236 #sidebar nav, |
| 237 #sidebar footer |
| 238 { |
| 239 margin: 1.4rem 0rem; |
| 240 } |
| 241 |
| 242 [role="tablist"] |
168 { | 243 { |
169 list-style: none; | 244 list-style: none; |
170 margin: 0px; | 245 margin: 0px; |
171 position: relative; | 246 position: relative; |
172 padding: 0px; | 247 padding: 0px; |
173 width: 198px; | 248 font-size: 1.25rem; |
174 } | 249 } |
175 | 250 |
176 .tabs.vertical li | 251 [role="tablist"] li a |
177 { | 252 { |
178 height: 46px; | 253 display: flex; |
179 margin-top: -1px; | 254 margin-top: -1px; |
| 255 padding: 1rem 0.8rem; |
180 -moz-margin-end: -1px; | 256 -moz-margin-end: -1px; |
181 -webkit-margin-end: -1px; | 257 -webkit-margin-end: -1px; |
182 -moz-margin-start: -1px; | 258 -moz-margin-start: -1px; |
183 -webkit-margin-start: -1px; | 259 -webkit-margin-start: -1px; |
184 border-color: #CDCDCD transparent; | 260 border-color: #CDCDCD transparent; |
185 border-style: solid; | 261 border-style: solid; |
186 border-width: 1px; | 262 border-width: 1px; |
187 font-size: 16px; | 263 text-decoration: none; |
188 font-weight: 300; | 264 color: inherit; |
189 line-height: 1em; | 265 cursor: pointer; |
190 } | 266 } |
191 | 267 |
192 .tabs.vertical li a, | 268 [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 { | 269 { |
201 outline: none; | 270 outline: none; |
202 text-shadow: 0px 0px 1px #888; | 271 text-shadow: 0px 0px 1px #888; |
203 } | 272 } |
204 | 273 |
205 .tabs li[role="tab"][aria-selected] | 274 li a[role="tab"][aria-selected] |
206 { | 275 { |
207 border-radius: 3px 0px 0px 3px; | |
208 -moz-border-start-color: #CDCDCD; | 276 -moz-border-start-color: #CDCDCD; |
209 -webkit-border-start-color: #CDCDCD; | 277 -webkit-border-start-color: #CDCDCD; |
210 font-weight: 600; | 278 font-weight: 700; |
211 background-color: #FFF; | 279 background-color: #FFF; |
212 } | 280 } |
213 | 281 |
214 html[dir="rtl"] .tabs li[role="tab"][aria-selected] | 282 #sidebar footer |
215 { | |
216 border-radius: 0px 3px 3px 0px; | |
217 } | |
218 | |
219 .tabs.vertical.bottom | |
220 { | 283 { |
221 bottom: 0px; | 284 bottom: 0px; |
222 position: absolute; | 285 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%; | 286 width: 100%; |
238 } | 287 } |
239 | 288 |
240 #nav-sidebar ul li::after | 289 #sidebar footer p |
241 { | 290 { |
242 content: ""; | 291 display: flex; |
243 min-width: 14px; | 292 justify-content: center; |
244 height: 14px; | 293 margin: 1.2rem 0rem; |
245 background-image: url(options-sprite.png); | |
246 } | 294 } |
247 | 295 |
248 #tab-general::after | 296 main |
249 { | 297 { |
250 background-position: -16px -18px; | 298 background-color: #FFFFFF; |
| 299 border: 1px solid #CDCDCD; |
| 300 max-width: 46.3rem; |
| 301 padding: 0px 2rem 1.4rem 2rem; |
251 } | 302 } |
252 | 303 |
253 #tab-advanced::after | 304 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 { | 305 { |
276 display: none; | 306 display: none; |
277 } | 307 } |
278 | 308 |
279 #tab-share:lang(zh) + li, | 309 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 { | 310 { |
296 border-bottom: 1px solid #CDCDCD; | 311 border-bottom: 1px solid #CDCDCD; |
297 margin: 0px 0px 24px 0px; | 312 margin: 0px 0px 24px 0px; |
298 padding: 40px 0px 16px 0px; | 313 padding: 40px 0px 16px 0px; |
299 } | 314 } |
300 | 315 |
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, | 316 body[data-tab|="general"] #content-general, |
326 body[data-tab|="advanced"] #content-advanced, | 317 body[data-tab|="advanced"] #content-advanced, |
327 body[data-tab|="whitelist"] #content-whitelist, | 318 body[data-tab|="whitelist"] #content-whitelist, |
328 body[data-tab|="help"] #content-help | 319 body[data-tab|="help"] #content-help |
329 { | 320 { |
330 display: block; | 321 display: block; |
331 } | 322 } |
332 | 323 |
333 div.button | 324 div.button |
334 { | 325 { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 .controls > div | 484 .controls > div |
494 { | 485 { |
495 display: flex; | 486 display: flex; |
496 position: relative; | 487 position: relative; |
497 } | 488 } |
498 | 489 |
499 .controls button, | 490 .controls button, |
500 #dialog-close | 491 #dialog-close |
501 { | 492 { |
502 display: flex; | 493 display: flex; |
503 border: none; | 494 border: 0px; |
504 padding: 0px; | 495 padding: 0px; |
505 align-items: center; | 496 align-items: center; |
506 background: none; | 497 background: none; |
507 cursor: pointer; | 498 cursor: pointer; |
508 } | 499 } |
509 | 500 |
510 .controls button span:not(.icon) | 501 .controls button span:not(.icon) |
511 { | 502 { |
512 -moz-margin-start: 16px; | 503 -moz-margin-start: 16px; |
513 -webkit-margin-start: 16px; | 504 -webkit-margin-start: 16px; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 830 |
840 div.context-menu > div a::before | 831 div.context-menu > div a::before |
841 { | 832 { |
842 vertical-align: middle; | 833 vertical-align: middle; |
843 height: 16px; | 834 height: 16px; |
844 width: 16px; | 835 width: 16px; |
845 } | 836 } |
846 | 837 |
847 div.context-menu > div a:last-child | 838 div.context-menu > div a:last-child |
848 { | 839 { |
849 border: none; | 840 border: 0px; |
850 } | 841 } |
851 | 842 |
852 .context-menu .update-subscription::before | 843 .context-menu .update-subscription::before |
853 { | 844 { |
854 background-position: -38px -31px; | 845 background-position: -38px -31px; |
855 } | 846 } |
856 | 847 |
857 .context-menu .website::before | 848 .context-menu .website::before |
858 { | 849 { |
859 background-position: -33px -47px; | 850 background-position: -33px -47px; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 } | 1027 } |
1037 | 1028 |
1038 #dialog h3, | 1029 #dialog h3, |
1039 #dialog label | 1030 #dialog label |
1040 { | 1031 { |
1041 font-size: 14px; | 1032 font-size: 14px; |
1042 font-weight: 600; | 1033 font-weight: 600; |
1043 margin: 0px; | 1034 margin: 0px; |
1044 } | 1035 } |
1045 | 1036 |
1046 #dialog input[type="text"], | 1037 #dialog input[type="text"] |
1047 #dialog input[type="search"] | |
1048 { | 1038 { |
1049 font-size: 16px; | 1039 font-size: 16px; |
1050 margin-top: 10px; | 1040 margin-top: 10px; |
1051 padding: 5px; | 1041 padding: 5px; |
1052 width: 100%; | 1042 width: 100%; |
1053 } | 1043 } |
1054 | 1044 |
1055 #dialog .table | 1045 #dialog .table |
1056 { | 1046 { |
1057 width: 100%; | 1047 width: 100%; |
(...skipping 11 matching lines...) Expand all Loading... |
1069 flex: 1; | 1059 flex: 1; |
1070 font-size: 16px; | 1060 font-size: 16px; |
1071 color: #FFFFFF; | 1061 color: #FFFFFF; |
1072 } | 1062 } |
1073 | 1063 |
1074 #dialog-body .dialog-content-block | 1064 #dialog-body .dialog-content-block |
1075 { | 1065 { |
1076 padding: 12px 0px; | 1066 padding: 12px 0px; |
1077 } | 1067 } |
1078 | 1068 |
1079 #dialog-body button | |
1080 { | |
1081 background-color: #F5F5F5; | |
1082 border: none; | |
1083 color: #3A7BA6; | |
1084 cursor: pointer; | |
1085 display: block; | |
1086 font-family: inherit; | |
1087 margin-top: 8px; | |
1088 padding: 10px 16px; | |
1089 text-align: initial; | |
1090 width: 100%; | |
1091 } | |
1092 | |
1093 #dialog .url | 1069 #dialog .url |
1094 { | 1070 { |
1095 margin-top: 10px; | 1071 margin-top: 10px; |
1096 margin-bottom: 20px; | 1072 margin-bottom: 20px; |
1097 word-wrap: break-word; | 1073 word-wrap: break-word; |
1098 } | 1074 } |
1099 | 1075 |
| 1076 body:not([data-dialog="about"]) #dialog-title-about, |
| 1077 body:not([data-dialog="about"]) #dialog-content-about, |
1100 body:not([data-dialog="custom"]) #dialog-title-custom, | 1078 body:not([data-dialog="custom"]) #dialog-title-custom, |
1101 body:not([data-dialog="custom"]) #dialog-content-custom, | 1079 body:not([data-dialog="custom"]) #dialog-content-custom, |
1102 body:not([data-dialog="language-add"]) #dialog-title-language-add, | 1080 body:not([data-dialog="language-add"]) #dialog-title-language-add, |
1103 body:not([data-dialog="language-change"]) #dialog-title-language-change, | 1081 body:not([data-dialog="language-change"]) #dialog-title-language-change, |
1104 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia
log-content-language-add, | 1082 body:not([data-dialog="language-add"]):not([data-dialog="language-change"]) #dia
log-content-language-add, |
1105 body:not([data-dialog="language-add"]) #dialog-body button.add, | 1083 body:not([data-dialog="language-add"]) #dialog-body button.add, |
1106 body:not([data-dialog="language-change"]) #dialog-body button.change, | 1084 body:not([data-dialog="language-change"]) #dialog-body button.change, |
1107 body:not([data-dialog="predefined"]) #dialog-title-predefined, | 1085 body:not([data-dialog="predefined"]) #dialog-title-predefined, |
1108 body:not([data-dialog="predefined"]) #dialog-content-predefined, | 1086 body:not([data-dialog="predefined"]) #dialog-content-predefined, |
1109 body:not([data-dialog]) #dialog | 1087 body:not([data-dialog]) #dialog |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 border: 0rem; | 1132 border: 0rem; |
1155 background-color: #099DD1; | 1133 background-color: #099DD1; |
1156 -webkit-mask: url(delete.svg); | 1134 -webkit-mask: url(delete.svg); |
1157 mask: url(delete.svg); | 1135 mask: url(delete.svg); |
1158 } | 1136 } |
1159 | 1137 |
1160 #hide-notification:hover::after | 1138 #hide-notification:hover::after |
1161 { | 1139 { |
1162 background-color: #5CBCE1; | 1140 background-color: #5CBCE1; |
1163 } | 1141 } |
OLD | NEW |