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 29 matching lines...) Expand all Loading... | |
40 font-family: "Source Sans Pro"; | 40 font-family: "Source Sans Pro"; |
41 src: url(fonts/SourceSansPro-bold.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-bold.woff) format("woff"); | 43 src: local("Ø"), url(fonts/SourceSansPro-bold.woff) format("woff"); |
44 font-weight: 700; | 44 font-weight: 700; |
45 font-style: normal; | 45 font-style: normal; |
46 } | 46 } |
47 | 47 |
48 html | 48 html |
49 { | 49 { |
50 font-size: 20px; | 50 font-size: 16px; |
51 } | 51 } |
52 | 52 |
53 body | 53 body |
54 { | 54 { |
55 background-color: #F5F5F5; | 55 background-color: #F3F3F3; |
56 display: flex; | 56 display: flex; |
57 margin: 1.2rem 0.3rem; | 57 margin: 1.2rem 0.3rem; |
58 font-family: "Source Sans Pro", sans-serif; | 58 font-family: "Source Sans Pro", sans-serif; |
59 font-weight: 300; | 59 font-weight: 400; |
juliandoucette
2017/09/12 22:45:36
NIT: I think 400 is the default across browsers.
saroyanm
2017/09/13 15:26:37
Acknowledged.
saroyanm
2017/09/13 16:47:58
Done.
| |
60 font-size: 1rem; | 60 font-size: 1.25rem; |
61 color: #494949; | 61 color: #494949; |
62 } | 62 } |
63 | 63 |
64 h1 | 64 h1 |
65 { | 65 { |
66 font-size: 3rem; | 66 font-size: 3rem; |
67 font-weight: 300; | 67 font-weight: 300; |
68 } | 68 } |
69 | 69 |
70 h2 | 70 h2 |
71 { | 71 { |
72 font-size: 1.375rem; | 72 font-size: 1.375rem; |
73 font-weight: 700; | 73 font-weight: 700; |
74 } | 74 } |
75 | 75 |
76 p | 76 a |
77 { | 77 { |
78 font-weight: 300; | 78 color: #099CD0; |
79 text-decoration: none; | |
80 } | |
81 | |
82 a:hover | |
83 { | |
84 color: #5CBCE1; | |
85 } | |
86 | |
87 ul | |
88 { | |
89 margin: 0rem; | |
79 } | 90 } |
80 | 91 |
81 [aria-hidden="true"] | 92 [aria-hidden="true"] |
82 { | 93 { |
83 display: none !important; | 94 display: none !important; |
84 } | 95 } |
85 | 96 |
86 input[type="text"], | 97 input[type="text"], |
87 textarea, | 98 textarea, |
88 main | 99 main |
89 { | 100 { |
90 -webkit-box-sizing: border-box; | 101 -webkit-box-sizing: border-box; |
91 -moz-box-sizing: border-box; | 102 -moz-box-sizing: border-box; |
92 box-sizing: border-box; | 103 box-sizing: border-box; |
93 } | 104 } |
94 | 105 |
95 /* | 106 /* |
96 Buttons and links | 107 Buttons and links |
97 */ | 108 */ |
98 | 109 |
99 button, | 110 button, |
100 .button | 111 .button |
101 { | 112 { |
113 display: block; | |
102 padding: 0.8rem 1.2rem; | 114 padding: 0.8rem 1.2rem; |
115 background-color: transparent; | |
103 font-size: 1.125rem; | 116 font-size: 1.125rem; |
104 font-weight: 700; | 117 font-weight: 700; |
105 text-decoration: none; | 118 text-decoration: none; |
106 text-transform: uppercase; | 119 text-transform: uppercase; |
107 cursor: pointer; | 120 cursor: pointer; |
108 } | 121 } |
109 | 122 |
110 button.primary, | 123 button.primary, |
111 .button.primary | 124 .button.primary |
112 { | 125 { |
113 border: 0px; | 126 border: 0px; |
114 color: #FFF; | 127 color: #FFF; |
115 background-color: #0A9DD1; | 128 background-color: #099CD0; |
116 } | 129 } |
117 | 130 |
118 button.primary:hover, | 131 button.primary:not([disabled]):hover, |
119 .button.primary:hover | 132 .button.primary:hover |
120 { | 133 { |
121 box-shadow: inset 0 0 0 2px #005D80; | 134 box-shadow: inset 0 0 0 3px #005D80; |
122 } | 135 } |
123 | 136 |
124 button.primary[disabled] | 137 button.primary[disabled] |
125 { | 138 { |
126 background-color: #5CBCE1; | 139 background-color: #5CBCE1; |
127 } | 140 } |
128 | 141 |
129 button.secondary, | 142 button.secondary, |
130 .button.secondary | 143 .button.secondary |
131 { | 144 { |
132 border: 1px solid #0A9DD1; | 145 border: 1px solid #099CD0; |
133 color: #099CD0; | 146 color: #099CD0; |
134 } | 147 } |
135 | 148 |
136 button.secondary:hover, | 149 button.secondary:hover, |
137 .button.secondary:hover | 150 .button.secondary:hover |
138 { | 151 { |
139 box-shadow: inset 0 0 0 4px #099CD0; | 152 box-shadow: inset 0 0 0 2px #099CD0; |
140 } | 153 } |
141 | 154 |
142 button[role="checkbox"], | 155 button[role="checkbox"] |
143 #dialog-body .table button[role="checkbox"] | |
144 { | 156 { |
145 width: 18px; | 157 width: 18px; |
146 height: 18px; | 158 height: 18px; |
147 margin-top: 0px; | |
148 -moz-margin-end: 20px; | |
149 -webkit-margin-end: 20px; | |
150 padding: 0px; | 159 padding: 0px; |
151 border: 0px; | 160 border: 0px; |
152 background-color: transparent; | 161 background-color: transparent; |
153 background-position: -51px 0px; | 162 background-position: -51px 0px; |
154 } | 163 } |
155 | 164 |
156 button[role="checkbox"][aria-checked="true"], | 165 button[role="checkbox"][aria-checked="true"]:not(.toggle) |
157 #dialog-body .table button[role="checkbox"][aria-checked="true"] | |
158 { | 166 { |
159 background-position: -68px 0px; | 167 background-position: -68px 0px; |
160 } | 168 } |
161 | 169 |
170 button[role="checkbox"][disabled] | |
171 { | |
172 border-radius: 2px; | |
173 background-color: #ccc; | |
174 } | |
175 | |
176 button[role="checkbox"].toggle | |
177 { | |
178 background: url(icons/toggle.svg#on); | |
179 } | |
180 | |
181 button[role="checkbox"][aria-checked="false"].toggle | |
182 { | |
183 background: url(icons/toggle.svg#off); | |
184 } | |
185 | |
186 button[role="checkbox"][aria-checked="true"].toggle | |
187 { | |
188 background: url(icons/toggle.svg#on); | |
189 } | |
190 | |
191 button[role="checkbox"].toggle | |
192 { | |
193 background-position: initial; | |
194 width: 2.3rem; | |
195 height: 1.3rem; | |
196 } | |
197 | |
198 button[role="checkbox"][disabled].toggle | |
199 { | |
200 background-image: none; | |
201 } | |
202 | |
203 button.delete::before | |
204 { | |
205 -webkit-mask: url(icons/trash.svg); | |
saroyanm
2017/09/06 19:02:56
Note: I'm using masks currently as it's the most q
juliandoucette
2017/09/12 22:45:38
Acknowledged.
| |
206 mask: url(icons/trash.svg); | |
207 } | |
208 | |
209 button.gear::before | |
210 { | |
211 -webkit-mask: url(icons/gear.svg); | |
212 mask: url(icons/gear.svg); | |
213 } | |
214 | |
215 button.gear, | |
juliandoucette
2017/09/12 22:45:38
NIT/Suggest: button.icon
saroyanm
2017/09/13 15:26:37
We already specified .icon which loads png sprite,
| |
216 button.delete | |
217 { | |
218 border: 0px; | |
219 padding: 0px; | |
220 background-color: transparent; | |
221 } | |
222 | |
223 button.gear::before, | |
224 button.delete::before | |
225 { | |
226 content: ""; | |
227 display: block; | |
228 height: 1.9rem; | |
229 width: 1.9rem; | |
230 background-color: #099DD1; | |
231 } | |
232 | |
233 button.gear:hover::before, | |
234 button.delete:hover::before | |
235 { | |
236 background-color: #5CBCE1; | |
237 } | |
238 | |
239 button.gear:hover, | |
240 button.delete:hover | |
241 { | |
242 background-position: -61px -51px; | |
243 } | |
244 | |
245 button.link, | |
246 button.list | |
247 { | |
248 color: #099CD0; | |
249 } | |
250 | |
162 button.link | 251 button.link |
163 { | 252 { |
164 border: 0px; | 253 border: 0px; |
165 background-color: transparent; | 254 background-color: transparent; |
166 font-weight: 300; | 255 font-weight: 300; |
167 font-family: inherit; | 256 font-family: inherit; |
168 color: #099CD0; | |
169 text-transform: none; | 257 text-transform: none; |
170 padding: 0.2rem; | 258 padding: 0.2rem; |
171 } | 259 } |
172 | 260 |
261 button.list | |
262 { | |
263 border-style: solid;; | |
264 border-color: #CDCDCD; | |
265 border-width: 0px 1px 1px 1px; | |
266 width: 100%; | |
267 background-color: #E1F2FA; | |
268 text-align: initial; | |
269 } | |
270 | |
271 button.list:hover | |
272 { | |
273 box-shadow: inset 0 0 0 3px #099CD0; | |
274 border-color: #099CD0; | |
275 } | |
276 | |
173 /* | 277 /* |
174 Sidebar | 278 Sidebar |
175 */ | 279 */ |
176 | 280 |
177 #sidebar, | 281 #sidebar, |
178 #sidebar .fixed, | 282 #sidebar .fixed, |
179 [role="tablist"] | 283 [role="tablist"] |
180 { | 284 { |
181 width: 13.2rem; | 285 width: 13.2rem; |
182 } | 286 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 | 339 |
236 #sidebar nav, | 340 #sidebar nav, |
237 #sidebar footer | 341 #sidebar footer |
238 { | 342 { |
239 margin: 1.4rem 0rem; | 343 margin: 1.4rem 0rem; |
240 } | 344 } |
241 | 345 |
242 [role="tablist"] | 346 [role="tablist"] |
243 { | 347 { |
244 list-style: none; | 348 list-style: none; |
245 margin: 0px; | 349 margin: 0rem; |
350 padding: 0rem; | |
246 position: relative; | 351 position: relative; |
247 padding: 0px; | |
248 font-size: 1.25rem; | 352 font-size: 1.25rem; |
249 } | 353 } |
250 | 354 |
251 [role="tablist"] li a | 355 [role="tablist"] li a |
252 { | 356 { |
253 display: flex; | 357 display: flex; |
254 margin-top: -1px; | 358 margin-top: -1px; |
255 padding: 1rem 0.8rem; | 359 padding: 1rem 0.8rem; |
256 -moz-margin-end: -1px; | 360 -moz-margin-end: -1px; |
257 -webkit-margin-end: -1px; | 361 -webkit-margin-end: -1px; |
(...skipping 28 matching lines...) Expand all Loading... | |
286 width: 100%; | 390 width: 100%; |
287 } | 391 } |
288 | 392 |
289 #sidebar footer p | 393 #sidebar footer p |
290 { | 394 { |
291 display: flex; | 395 display: flex; |
292 justify-content: center; | 396 justify-content: center; |
293 margin: 1.2rem 0rem; | 397 margin: 1.2rem 0rem; |
294 } | 398 } |
295 | 399 |
296 main | 400 /* |
297 { | 401 Main content |
298 background-color: #FFFFFF; | 402 */ |
299 border: 1px solid #CDCDCD; | |
300 max-width: 46.3rem; | |
301 padding: 0px 2rem 1.4rem 2rem; | |
302 } | |
303 | |
304 main > div | |
305 { | |
306 display: none; | |
307 } | |
308 | |
309 main h1 | |
310 { | |
311 border-bottom: 1px solid #CDCDCD; | |
312 margin: 0px 0px 24px 0px; | |
313 padding: 40px 0px 16px 0px; | |
314 } | |
315 | 403 |
316 body[data-tab|="general"] #content-general, | 404 body[data-tab|="general"] #content-general, |
317 body[data-tab|="advanced"] #content-advanced, | 405 body[data-tab|="advanced"] #content-advanced, |
318 body[data-tab|="whitelist"] #content-whitelist, | 406 body[data-tab|="whitelist"] #content-whitelist, |
319 body[data-tab|="help"] #content-help | 407 body[data-tab|="help"] #content-help |
320 { | 408 { |
321 display: block; | 409 display: block; |
322 } | 410 } |
323 | 411 |
324 div.button | 412 main |
325 { | 413 { |
326 cursor: pointer; | 414 background-color: #FFFFFF; |
415 border: 1px solid #CDCDCD; | |
416 max-width: 46.3rem; | |
417 padding: 0px 0rem 1.4rem 0rem; | |
418 } | |
419 | |
420 main > div | |
juliandoucette
2017/09/12 22:45:38
NIT: This could use some explanation via comment (
| |
421 { | |
422 display: none; | |
423 } | |
424 | |
425 main p | |
426 { | |
427 margin: 0.8rem 0rem; | |
428 } | |
429 | |
430 /* | |
431 Sections | |
432 */ | |
433 | |
434 [role="tabpanel"] > section, | |
435 [role="tabpanel"] > .section | |
436 { | |
437 padding: 2rem; | |
438 border-top: 1px solid #CDCDCD; | |
439 } | |
440 | |
441 [role="tabpanel"] > h1, | |
juliandoucette
2017/09/12 22:45:37
Note: You would have to update these selectors acc
saroyanm
2017/09/13 15:26:36
Acknowledged.
saroyanm
2017/09/13 16:47:59
Done.
| |
442 [role="tabpanel"] > p | |
443 { | |
444 padding: 0rem 2rem; | |
445 margin: 1.4rem 0rem; | |
446 } | |
447 | |
448 section h2, | |
449 .section h2 | |
450 { | |
451 margin: 0rem; | |
452 } | |
453 | |
454 section, | |
455 .section | |
456 { | |
457 clear: both; | |
458 } | |
459 | |
460 section.cols | |
461 { | |
327 display: flex; | 462 display: flex; |
328 } | 463 } |
329 | 464 |
330 .table | 465 section.cols > *:first-child |
466 { | |
467 flex: 1; | |
468 -moz-margin-end: 2rem; | |
469 -webkit-margin-end: 2rem; | |
470 } | |
471 | |
472 section.cols > *:last-child | |
473 { | |
474 flex: 3; | |
475 } | |
476 | |
477 /* | |
478 Acceptable ads | |
479 */ | |
480 | |
481 #acceptable-ads | |
482 { | |
483 background-color: #F3F3F3; | |
484 } | |
485 | |
486 #acceptable-ads > div | |
487 { | |
488 position: relative; | |
489 padding: 1.5rem; | |
490 padding-left: 3.3rem; | |
491 padding-right: 0.9rem; | |
492 border: 1px solid #CDCDCD; | |
493 border-width: 0px 1px 1px 1px; | |
494 } | |
495 | |
496 #acceptable-ads > div:first-of-type | |
497 { | |
498 border-top: 1px solid #CDCDCD; | |
499 } | |
500 | |
501 #acceptable-ads > div > p:last-of-type | |
502 { | |
503 margin-bottom: 0rem; | |
504 } | |
505 | |
506 #acceptable-ads > div input | |
507 { | |
508 position: absolute; | |
509 left: 0rem; | |
510 margin: 0.25rem 0.9rem; | |
511 width: 1.3rem; | |
512 height: 1.3rem; | |
513 } | |
514 | |
515 #acceptable-ads > div label | |
516 { | |
517 font-weight: 700; | |
518 font-size: 1.375rem; | |
519 } | |
520 | |
521 #dnt | |
522 { | |
523 padding: 0.8rem; | |
524 border: 1px solid #099CD0; | |
525 } | |
526 | |
527 /* | |
528 Tables | |
529 */ | |
530 | |
531 ul.table, | |
juliandoucette
2017/09/12 22:45:38
Note: See related comment in new-options.html
saroyanm
2017/09/13 15:26:37
See comment on the other file.
| |
532 ul.list | |
331 { | 533 { |
332 list-style: none; | 534 list-style: none; |
333 margin: 0px; | 535 margin: 0rem; |
334 padding: 0px; | 536 padding: 0rem; |
335 position: relative; | 537 } |
538 | |
539 .table li, | |
540 .list li | |
541 { | |
542 display: flex; | |
543 align-items: center; | |
336 } | 544 } |
337 | 545 |
338 .table li | 546 .table li |
339 { | 547 { |
340 display: flex; | 548 margin: 0rem; |
341 align-items: center; | 549 border-style: solid; |
342 padding: 12px 16px; | 550 border-color: #CDCDCD; |
343 border-radius: 3px; | 551 border-width: 0px 1px 1px 1px; |
344 } | 552 } |
345 | 553 |
346 .table.list | 554 .list li |
347 { | 555 { |
348 border-bottom: 1px solid #CDCDCD; | 556 padding: 0rem; |
557 margin: 0rem 0rem 1.3rem 0rem; | |
558 } | |
559 | |
560 .table li:first-of-type | |
561 { | |
562 border-top: 1px solid #CDCDCD; | |
563 } | |
564 | |
565 .table.list li | |
566 { | |
567 padding: 0.5rem 1.1rem; | |
568 margin: 0rem; | |
569 } | |
570 | |
571 li .display | |
572 { | |
573 margin: 0rem 1rem; | |
349 } | 574 } |
350 | 575 |
351 .table.list li .display | 576 .table.list li .display |
352 { | 577 { |
353 flex: 1; | 578 flex: 1; |
354 line-height: 16px; | 579 } |
355 overflow: hidden; | 580 |
356 text-overflow: ellipsis; | 581 .table.list li.empty-placeholder |
juliandoucette
2017/09/12 22:45:36
I wasn't able to find this in the HTML. Does it on
saroyanm
2017/09/13 15:26:37
We are adding the placeholder when the table is em
| |
357 white-space: nowrap; | 582 { |
583 padding: 1.3em 1.9em; | |
584 } | |
585 | |
586 .table.list li.empty-placeholder:not(:last-of-type) | |
587 { | |
588 border-bottom: 0px; | |
589 } | |
590 | |
591 #blocking-languages-table .display | |
juliandoucette
2017/09/12 22:45:36
NIT: Why the name "display"?
saroyanm
2017/09/13 15:26:37
We might revisit if we will only use this for filt
| |
592 { | |
593 font-weight: 700; | |
594 } | |
595 | |
596 .table.list button.link | |
597 { | |
598 font-weight: 700; | |
599 text-transform: uppercase; | |
600 } | |
601 | |
602 .table.list button.link:hover | |
juliandoucette
2017/09/12 22:45:37
NIT/Suggest: Make this less specific (button.link:
saroyanm
2017/09/13 15:26:36
Acknowledged.
saroyanm
2017/09/13 16:47:58
Done.
| |
603 { | |
604 color: #5CBCE1; | |
358 } | 605 } |
359 | 606 |
360 .table:not(.list):not(.cols) li | 607 .table:not(.list):not(.cols) li |
361 { | 608 { |
362 padding-top: 0px; | 609 padding-top: 0px; |
363 padding-bottom: 6px; | 610 padding-bottom: 6px; |
364 } | 611 } |
365 | 612 |
366 .table li.empty-placeholder | |
367 { | |
368 background-color: #F5F5F5; | |
369 } | |
370 | |
371 .table li [data-single="visible"], | 613 .table li [data-single="visible"], |
372 .table li:first-of-type:last-of-type [data-single="hidden"] | 614 .table li:first-of-type:last-of-type [data-single="hidden"] |
373 { | 615 { |
374 display: none; | 616 display: none; |
375 } | 617 } |
376 | 618 |
377 .table li:first-of-type:last-of-type [data-single="visible"] | 619 .table li:first-of-type:last-of-type [data-single="visible"] |
378 { | 620 { |
379 display: block; | 621 display: block; |
380 } | 622 } |
381 | 623 |
382 .table label | 624 .th |
383 { | 625 { |
384 vertical-align: top; | 626 display: flex; |
627 } | |
628 | |
629 .col4 > * | |
630 { | |
631 display: inline-block; | |
632 } | |
633 | |
634 .col4 | |
635 { | |
636 margin: 0rem 0.9rem; | |
637 } | |
638 | |
639 .th .col4:nth-of-type(1), | |
640 .table .col4:nth-of-type(1) | |
641 { | |
642 flex: 2; | |
643 } | |
644 | |
645 .th .col4:nth-of-type(2), | |
646 .table .col4:nth-of-type(2) | |
647 { | |
648 flex: 3; | |
649 } | |
650 | |
651 .th .col4:nth-of-type(3), | |
652 .table .col4:nth-of-type(3) | |
653 { | |
654 flex: 2; | |
655 } | |
656 | |
657 .th .col4:nth-of-type(4), | |
658 .table .col4:nth-of-type(4) | |
659 { | |
660 flex: 1; | |
385 } | 661 } |
386 | 662 |
387 .table.cols | 663 .table.cols |
388 { | 664 { |
389 border-bottom: 1px solid #CDCDCD; | 665 font-size: 1.1rem; |
390 border-top: 1px solid #CDCDCD; | |
391 } | 666 } |
392 | 667 |
393 button[role="checkbox"][disabled] | 668 .table.cols .display |
juliandoucette
2017/09/12 22:45:36
NIT: See comment above RE: display
| |
394 { | 669 { |
395 border-radius: 2px; | 670 margin: 0rem; |
396 background-color: #ccc; | |
397 } | 671 } |
398 | 672 |
399 .table button.delete | 673 .table.cols li |
400 { | 674 { |
401 background-color: transparent; | 675 padding: 0.9rem 0rem; |
402 background-position: -50px -51px; | |
403 border: 0px; | |
404 height: 10px; | |
405 padding: 0px; | |
406 cursor: pointer; | |
407 width: 10px; | |
408 } | 676 } |
409 | 677 |
410 .table button.delete:hover | 678 .table.cols .state |
411 { | 679 { |
412 background-position: -61px -51px; | 680 -moz-margin-start: 1.1rem; |
juliandoucette
2017/09/12 22:45:37
NIT: Vendor prefixes? (applies elsewhere too)
saroyanm
2017/09/13 15:26:38
This probably make sense to address separately as
| |
681 -webkit-margin-start: 1.1rem; | |
413 } | 682 } |
414 | 683 |
415 .icon, | 684 .table.cols .gear |
juliandoucette
2017/09/12 22:45:37
NIT: This doesn't seem to make a difference in Fir
saroyanm
2017/09/13 15:26:37
I think this style need to be specific to the "ico
| |
416 button[role="checkbox"], | 685 { |
417 #dialog-body .table button[role="checkbox"], | 686 margin: 0rem |
418 .table button.delete, | 687 } |
419 #dialog-close::before, | 688 |
420 #all-filter-lists-table .arrow, | 689 #dialog .table.list li |
421 .context-menu .content a::before | 690 { |
691 display: block; | |
692 border-width: 1px 0px 0px 0px; | |
693 padding: 0rem; | |
694 } | |
695 | |
696 #dialog .table.list li:first-of-type | |
697 { | |
698 border: 0px; | |
699 } | |
700 | |
701 #dialog .table.list li button | |
702 { | |
703 display: flex; | |
704 background-image: none; | |
705 width: 100%; | |
706 height: auto; | |
707 padding: 1.1rem 1rem; | |
708 } | |
709 | |
710 #dialog .table.list li button:hover, | |
711 #dialog .table.list li button:focus | |
712 { | |
713 background-color: #E1F2FA; | |
714 } | |
715 | |
716 #dialog .table.list li button[aria-checked="true"] | |
717 { | |
718 color: #BBB; | |
719 } | |
720 | |
721 #dialog .table.list li button[aria-checked="true"]::before | |
722 { | |
723 content: ""; | |
724 width: 1.3rem; | |
725 height: 1.3rem; | |
726 background-color: #BBB; | |
727 -webkit-mask: url(icons/checkmark.svg); | |
728 mask: url(icons/checkmark.svg); | |
729 margin: 0rem; | |
730 } | |
731 | |
732 #dialog .table.list li button .display | |
juliandoucette
2017/09/12 22:45:38
NIT: See comment above about .display
| |
733 { | |
734 flex: none; | |
735 margin: 0rem 0.8rem; | |
736 text-transform: none; | |
737 } | |
738 | |
739 /* | |
740 Tooltips | |
741 */ | |
742 | |
743 .tooltip | |
juliandoucette
2017/09/12 22:45:38
NIT: It's confusing that you call this tooltip. It
saroyanm
2017/09/13 15:26:38
tooltip is within the the "tooltip" container, I'l
| |
744 { | |
745 display: inline-block; | |
746 position: relative; | |
747 margin: 0rem; | |
748 -moz-margin-end: 1rem; | |
749 -webkit-margin-end: 1rem; | |
750 | |
751 line-height: 1.3rem; | |
752 text-decoration: none; | |
juliandoucette
2017/09/12 22:45:37
NIT: I wasn't able to find where text-decoration:
saroyanm
2017/09/13 15:26:37
We probably have link inside of the tooltip.
| |
753 cursor: default; | |
juliandoucette
2017/09/12 22:45:37
NIT/Suggest: cursor: help (obviously)
saroyanm
2017/09/13 15:26:38
We will revisit that separately after the style gu
| |
754 } | |
755 | |
756 .tooltip::before | |
757 { | |
758 content: ""; | |
759 width: 1.3rem; | |
760 height: 1.3rem; | |
761 display: block; | |
762 background-color: #099DD1; | |
763 -webkit-mask: url(icons/tooltip.svg); | |
764 mask: url(icons/tooltip.svg); | |
765 } | |
766 | |
767 button[role="checkbox"]:not(.toggle) | |
422 { | 768 { |
423 background-image: url(options-sprite.png); | 769 background-image: url(options-sprite.png); |
424 display: inline-block; | 770 display: inline-block; |
425 } | 771 } |
426 | 772 |
427 .icon-add, | |
428 .icon-update | |
429 { | |
430 height: 16px; | |
431 width: 16px; | |
432 cursor: pointer; | |
433 } | |
434 | |
435 .icon-add | |
436 { | |
437 background-position: -1px -1px; | |
438 } | |
439 | |
440 .icon-update | |
441 { | |
442 background-position: -35px -1px; | |
443 } | |
444 | |
445 .icon-enter | |
446 { | |
447 height: 8px; | |
448 width: 8px; | |
449 cursor: pointer; | |
450 } | |
451 | |
452 #dialog-close::before | |
453 { | |
454 content: ""; | |
455 height: 12px; | |
456 width: 12px; | |
457 } | |
458 | |
459 #dialog-body button::before | |
460 { | |
461 background-position: 0px -42px; | |
462 content: ""; | |
463 cursor: pointer; | |
464 height: 11px; | |
465 vertical-align: middle; | |
466 width: 7px; | |
467 -moz-margin-end: 12px; | |
468 -webkit-margin-end: 12px; | |
469 } | |
470 | |
471 .controls | |
472 { | |
473 padding-top: 14px; | |
474 margin-left: 16px; | |
475 margin-right: 16px; | |
476 } | |
477 | |
478 .controls.mode-edit | |
479 { | |
480 -moz-margin-end: 0px; | |
481 -webkit-margin-end: 0px; | |
482 } | |
483 | |
484 .controls > div | |
485 { | |
486 display: flex; | |
487 position: relative; | |
488 } | |
489 | |
490 .controls button, | |
491 #dialog-close | |
492 { | |
493 display: flex; | |
494 border: 0px; | |
495 padding: 0px; | |
496 align-items: center; | |
497 background: none; | |
498 cursor: pointer; | |
499 } | |
500 | |
501 .controls button span:not(.icon) | |
502 { | |
503 -moz-margin-start: 16px; | |
504 -webkit-margin-start: 16px; | |
505 color: #3A7BA6; | |
506 vertical-align: top; | |
507 } | |
508 | |
509 /* | 773 /* |
510 Used for translatable screen reader only conten. | 774 Used for translatable screen reader only conten. |
511 e.g.: Use instead of aria-label to avoid complex attribute value translation | 775 e.g.: Use instead of aria-label to avoid complex attribute value translation |
512 */ | 776 */ |
513 .sr-only | 777 .sr-only |
514 { | 778 { |
515 position: absolute; | 779 position: absolute; |
516 overflow: hidden; | 780 overflow: hidden; |
517 clip: rect(0, 0, 0, 0); | 781 clip: rect(0, 0, 0, 0); |
518 width: 1px; | 782 width: 1px; |
519 height: 1px; | 783 height: 1px; |
520 margin: -1px; | 784 margin: -1px; |
521 padding: 0px; | 785 padding: 0px; |
522 border: 0px; | 786 border: 0px; |
523 } | 787 } |
524 | 788 |
525 /* | 789 /* |
526 General tab content | 790 General tab content |
527 */ | 791 */ |
528 | 792 |
529 #blocking-languages-dialog-table | 793 #blocking-languages-dialog-table |
530 { | 794 { |
531 border-bottom: none; | 795 border-bottom: none; |
532 } | 796 } |
533 | 797 |
534 #blocking-languages, | |
535 #acceptable-ads | |
536 { | |
537 -moz-margin-end: 40px; | |
538 -webkit-margin-end: 40px; | |
539 } | |
540 | |
541 #whitelisting .controls.mode-edit > button, | |
542 #whitelisting .controls:not(.mode-edit) > div | |
543 { | |
544 display: none; | |
545 } | |
546 | |
547 #whitelisting .controls input[type="text"] | |
548 { | |
549 border: 0px; | |
550 border-bottom: 1px solid #A1A1A1; | |
551 -moz-padding-end: 25px; | |
552 -webkit-padding-end: 25px; | |
553 -moz-margin-start: 14px; | |
554 -webkit-margin-start: 14px; | |
555 outline: 0px; | |
556 padding-bottom: 5px; | |
557 vertical-align: text-bottom; | |
558 width: 100%; | |
559 } | |
560 | |
561 #whitelisting .controls .button-add span | |
562 { | |
563 -moz-margin-start: 5px; | |
564 -webkit-margin-start: 5px; | |
565 } | |
566 | |
567 #whitelisting .button-add | |
568 { | |
569 -moz-margin-start: 32px; | |
570 -webkit-margin-start: 32px; | |
571 } | |
572 | |
573 #whitelisting-add-button + span | |
574 { | |
575 flex: 1; | |
576 } | |
577 | |
578 .icon-enter | |
579 { | |
580 background-position: -19px -33px; | |
581 position: absolute; | |
582 bottom: 9px; | |
583 -moz-margin-start: -20px; | |
584 -webkit-margin-start: -20px; | |
585 } | |
586 | |
587 .button-add, .cancel-button | 798 .button-add, .cancel-button |
588 { | 799 { |
589 background-color: transparent; | 800 background-color: transparent; |
590 border: 0px; | 801 border: 0px; |
591 color: #3A7BA6; | 802 color: #3A7BA6; |
592 cursor: pointer; | 803 cursor: pointer; |
593 } | 804 } |
594 | 805 |
595 /* | 806 /* |
807 Whitelist tab | |
808 */ | |
809 | |
810 #content-whitelist form | |
811 { | |
812 display: flex; | |
813 } | |
814 | |
815 #content-whitelist form input | |
816 { | |
817 flex: 1; | |
818 padding: 0.5rem 1rem; | |
819 font-size: 1.25rem; | |
820 border: 2px solid #099CD0; | |
821 } | |
822 | |
823 #content-whitelist form button | |
824 { | |
825 -moz-margin-start: 0.7rem; | |
826 -webkit-margin-start: 0.7rem; | |
827 } | |
828 | |
829 #whitelisting-table li | |
830 { | |
831 border-left: 0rem; | |
832 border-right: 0rem; | |
833 } | |
834 | |
835 /* | |
596 Advanced tab content | 836 Advanced tab content |
597 */ | 837 */ |
598 | 838 |
599 #all-filter-lists-table li.show-message .last-update, | 839 #all-filter-lists-table li.show-message .last-update, |
600 #all-filter-lists-table li:not(.show-message) .message, | 840 #all-filter-lists-table li:not(.show-message) .message, |
601 #custom-filters:not([data-mode="empty"]) #empty-custom-filters, | 841 #custom-filters:not([data-mode="empty"]) #empty-custom-filters, |
602 #custom-filters[data-mode="empty"] #custom-filters-raw, | 842 #custom-filters[data-mode="empty"] #custom-filters-raw, |
603 #custom-filters:not([data-mode="write"]) #custom-filters-raw-controls, | 843 #custom-filters:not([data-mode="write"]) #custom-filters-raw-controls, |
604 #custom-filters:not([data-mode="read"]) #custom-filters-edit, | 844 #custom-filters:not([data-mode="read"]) #custom-filters-edit, |
605 .state span, | 845 .state span, |
606 #acceptable-ads:not(.show-dnt-notification) #dnt | 846 #acceptable-ads:not(.show-dnt-notification) #dnt |
607 { | 847 { |
608 display: none; | 848 display: none; |
609 } | 849 } |
610 | 850 |
611 #all-filter-lists-table | |
612 { | |
613 display: inline-block; | |
614 } | |
615 | |
616 #all-filter-lists-table | |
617 { | |
618 display: inline-block; | |
619 } | |
620 | |
621 #all-filter-lists-table li > div | |
622 { | |
623 display: flex; | |
624 width: 330px; | |
625 } | |
626 | |
627 #all-filter-lists-table li span.display | |
628 { | |
629 cursor: pointer; | |
630 } | |
631 | |
632 #all-filter-lists-table button[role="checkbox"][aria-checked="true"] + .state #s tate-active | 851 #all-filter-lists-table button[role="checkbox"][aria-checked="true"] + .state #s tate-active |
633 { | 852 { |
634 display: inline; | 853 display: inline; |
635 } | 854 } |
636 | 855 |
637 #all-filter-lists-table button[role="checkbox"][aria-checked="false"] + .state # state-disabled | 856 #all-filter-lists-table button[role="checkbox"][aria-checked="false"] + .state # state-disabled |
638 { | 857 { |
639 display: inline; | 858 display: inline; |
640 } | 859 } |
641 | 860 |
642 #all-filter-lists-table .controls | 861 #all-filter-lists-table |
643 { | 862 { |
644 padding-top: 0px; | 863 margin-bottom: 1.5rem; |
645 border-top: none; | |
646 } | 864 } |
647 | 865 |
648 #all-filter-lists-table .controls button | 866 #custom-filters-raw ~ button, |
juliandoucette
2017/09/12 22:45:36
NIT: Why not just #custom-filters button?
saroyanm
2017/09/13 15:26:37
I'll wrap the buttons.
saroyanm
2017/09/13 16:47:58
Done.
| |
867 #all-filter-lists-table ~ button | |
649 { | 868 { |
650 margin-top: 14px; | 869 margin: 0.8rem 0rem; |
870 -moz-margin-start: auto; | |
871 -webkit-margin-start: auto; | |
651 } | 872 } |
652 | 873 |
653 #all-filter-lists-table .arrow | 874 #custom-filters h3 |
juliandoucette
2017/09/12 22:45:36
NIT: It seems like this could fit into section h3,
saroyanm
2017/09/13 15:26:37
We need to target this specifically because of the
| |
654 { | 875 { |
655 width: 6px; | 876 margin: 0rem; |
656 height: 4px; | |
657 background-position: -1px -54px; | |
658 cursor: pointer; | |
659 } | |
660 | |
661 #all-filter-lists-table li:last-of-type a | |
662 { | |
663 color: #3A7BA6; | |
664 text-decoration: none; | |
665 cursor: pointer; | |
666 } | |
667 | |
668 #all-filter-lists-table li:last-of-type > span:last-child | |
669 { | |
670 -webkit-margin-start: auto; | |
671 -moz-margin-start: auto; | |
672 } | |
673 | |
674 #custom-filters-raw-controls | |
675 { | |
676 justify-content: space-between; | |
677 } | 877 } |
678 | 878 |
679 #custom-filters-raw | 879 #custom-filters-raw |
680 { | 880 { |
681 width: 100%; | 881 width: 100%; |
682 height: 100%; | 882 height: 23.6rem; |
683 padding: 2px 16px; | 883 padding: 0.8rem 1.3rem; |
juliandoucette
2017/09/12 22:45:37
Note: I think the difference between x and y here
saroyanm
2017/09/13 15:26:36
Style guide error.
| |
884 } | |
885 | |
886 #custom-filters-raw:focus | |
887 { | |
888 outline: none; | |
889 border: 2px solid #099CD0; | |
890 } | |
891 | |
892 #custom-filters-raw-controls | |
juliandoucette
2017/09/12 22:45:37
NIT: Looks like you're missing some margin-top her
saroyanm
2017/09/13 15:26:36
Acknowledged.
saroyanm
2017/09/13 16:47:58
Done.
| |
893 { | |
894 display: flex; | |
895 justify-content: flex-end; | |
896 } | |
897 | |
898 #custom-filters-raw-controls button | |
899 { | |
900 -moz-margin-start: 1rem; | |
901 -webkit-margin-start: 1rem; | |
902 } | |
903 | |
904 #empty-custom-filters | |
905 { | |
906 padding: 1.5rem; | |
907 border: 1px solid #CDCDCD; | |
684 } | 908 } |
685 | 909 |
686 /* | 910 /* |
687 Tooltips | 911 Context menu |
688 */ | 912 */ |
689 | |
690 .tooltip | |
691 { | |
692 display: inline-block; | |
693 position: relative; | |
694 margin: 0px 4px; | |
695 border-bottom: dashed 1px; | |
696 height: 15px; | |
697 color: #3A7BA6; | |
698 font-size: 12px; | |
699 line-height: 19px; | |
700 text-decoration: none; | |
701 font-weight: 400; | |
702 cursor: default; | |
703 } | |
704 | 913 |
705 li [role="menubar"] | 914 li [role="menubar"] |
706 { | 915 { |
707 position: relative; | 916 position: relative; |
708 } | 917 } |
709 | 918 |
710 .context-menu | 919 [role="tooltip"] |
711 { | 920 { |
712 display: inline-block; | 921 right: -1rem; |
713 position: relative; | 922 margin-top: 1rem; |
714 border-bottom: none; | |
715 } | |
716 | |
717 .context-menu a | |
718 { | |
719 vertical-align: middle; | |
720 white-space: nowrap; | |
721 color: #FFF; | |
722 } | |
723 | |
724 #content-advanced .tooltip | |
725 { | |
726 -moz-margin-start: 8px; | |
727 -webkit-margin-start: 8px; | |
728 } | |
729 | |
730 div[role="tooltip"] | |
731 { | |
732 background-color: rgba(45, 45, 45, 0.95); | |
733 border-radius: 3px; | |
734 color: #FFF; | |
735 font-size: 14px; | |
736 font-weight: 400; | |
737 left: -20px; | |
738 line-height: 18px; | |
739 margin-top: 14px; | |
740 opacity: 1; | 923 opacity: 1; |
741 padding: 20px; | 924 padding: 1.3rem; |
742 position: absolute; | 925 position: absolute; |
743 -webkit-transition: opacity 200ms ease-in-out 400ms, | 926 -webkit-transition: opacity 200ms ease-in-out 400ms, |
744 visibility 0ms linear 400ms; | 927 visibility 0ms linear 400ms; |
745 transition: opacity 200ms ease-in-out 400ms, | 928 transition: opacity 200ms ease-in-out 400ms, |
746 visibility 0ms linear 400ms; | 929 visibility 0ms linear 400ms; |
747 visibility: visible; | 930 visibility: visible; |
748 width: 400px; | 931 width: 15rem; |
juliandoucette
2017/09/12 22:45:36
NIT: It's not clear where this width comes from
saroyanm
2017/09/13 15:26:36
eyepick
| |
749 z-index: 1; | 932 z-index: 1; |
750 } | 933 } |
751 | 934 |
752 .tooltip:not(:hover) > div[role="tooltip"], | 935 html[dir="rtl"] [role="tooltip"] |
753 div[role="tooltip"]:hover | 936 { |
937 right: auto; | |
938 left: -1rem; | |
939 } | |
940 | |
941 [role="tooltip"], | |
942 .context-menu .content | |
943 { | |
944 border: 1px solid #099CD0; | |
945 border-radius: 3px; | |
946 background-color: #FFFFFF; | |
947 } | |
948 | |
949 | |
950 .tooltip:not(:hover) > [role="tooltip"], | |
951 [role="tooltip"]:hover | |
754 { | 952 { |
755 visibility: hidden; | 953 visibility: hidden; |
756 opacity: 0; | 954 opacity: 0; |
757 -webkit-transition-delay: 0ms; | 955 -webkit-transition-delay: 0ms; |
758 transition-delay: 0ms; | 956 transition-delay: 0ms; |
759 } | 957 } |
760 | 958 |
761 div[role="tooltip"]::before, | 959 .context-menu |
762 div.context-menu::before | |
763 { | |
764 background-image: url(options-sprite.png); | |
765 background-position: -8px -42px; | |
766 content: ""; | |
767 height: 6px; | |
768 position: absolute; | |
769 top: -6px; | |
770 width: 14px; | |
771 left: 30px; | |
772 } | |
773 | |
774 div.context-menu | |
775 { | 960 { |
776 position: absolute; | 961 position: absolute; |
777 top: 16px; | 962 right: 3rem; |
963 top: -3rem; | |
778 z-index: 1; | 964 z-index: 1; |
779 visibility: hidden; | 965 visibility: hidden; |
780 } | 966 } |
781 | 967 |
782 div.context-menu::before | 968 html[dir="rtl"] .context-menu |
783 { | 969 { |
784 left: -4px; | 970 right: auto; |
971 left: 3rem; | |
785 } | 972 } |
786 | 973 |
787 html[dir="rtl"] div.context-menu::before | 974 .context-menu .content |
788 { | 975 { |
789 left: inherit; | 976 padding: 0rem; |
790 right: -4px; | |
791 } | |
792 | |
793 div.context-menu .content | |
794 { | |
795 position: relative; | 977 position: relative; |
796 left: calc(-50% + 2px); | |
797 border-radius: 3px; | |
798 padding: 4px 10px; | |
799 background-color: rgba(45, 45, 45, 0.95); | |
800 cursor: default; | 978 cursor: default; |
801 } | 979 } |
802 | 980 |
803 html[dir="rtl"] div.context-menu .content | 981 li.show-context-menu .context-menu |
804 { | |
805 left: inherit; | |
806 right: -50%; | |
807 } | |
808 | |
809 li.show-context-menu div.context-menu | |
810 { | 982 { |
811 visibility: visible; | 983 visibility: visible; |
812 } | 984 } |
813 | 985 |
814 div.context-menu > div a::before | 986 [role="tooltip"]::before, |
987 .context-menu::before | |
815 { | 988 { |
816 content: ""; | 989 content: ""; |
817 -moz-margin-end: 8px; | 990 width: 0rem; |
818 -webkit-margin-end: 8px; | 991 height: 0rem; |
992 position: absolute; | |
819 } | 993 } |
820 | 994 |
821 div.context-menu > div a | 995 [role="tooltip"]::before |
822 { | 996 { |
823 display: block; | 997 border-left: 10px solid transparent; |
824 padding: 7px 4px; | 998 border-right: 10px solid transparent; |
saroyanm
2017/09/06 19:02:57
Note: I used this solution until we will have asse
juliandoucette
2017/09/12 22:45:38
Acknowledged.
| |
825 border-bottom: 1px solid #CDCDCD; | 999 border-bottom: 10px solid #099CD0; |
826 text-decoration: none; | 1000 top: -10px; |
827 cursor: pointer; | 1001 right: 15px; |
828 vertical-align: middle; | |
829 } | 1002 } |
830 | 1003 |
831 div.context-menu > div a::before | 1004 html[dir="rtl"] [role="tooltip"]::before |
832 { | 1005 { |
833 vertical-align: middle; | 1006 right: auto; |
834 height: 16px; | 1007 left: 15px; |
835 width: 16px; | |
836 } | 1008 } |
837 | 1009 |
838 div.context-menu > div a:last-child | 1010 .context-menu::before |
839 { | 1011 { |
840 border: 0px; | 1012 border-left: 10px solid #099CD0; |
1013 border-top: 10px solid transparent; | |
1014 border-bottom: 10px solid transparent; | |
1015 top: 22px; | |
1016 right: -0.5rem; | |
1017 } | |
1018 | |
1019 html[dir="rtl"] .context-menu::before | |
1020 { | |
1021 border-left: 0rem; | |
1022 border-right: 10px solid #099CD0; | |
1023 right: auto; | |
1024 left: -0.5rem; | |
1025 } | |
1026 | |
1027 .context-menu li[role="menuitem"] | |
1028 { | |
1029 width: 12.2rem; | |
1030 border: 0rem; | |
1031 padding: 0rem; | |
1032 } | |
1033 | |
1034 .context-menu li[role="menuitem"] > * | |
1035 { | |
1036 width: 100%; | |
1037 display: flex; | |
1038 border: 0rem; | |
1039 padding: 1rem 0rem; | |
1040 color: #099CD0; | |
1041 font-size: 1.1rem; | |
1042 font-weight: 400; | |
1043 text-transform: none; | |
1044 } | |
1045 | |
1046 .context-menu li[role="menuitem"] > *:hover, | |
1047 .context-menu li[role="menuitem"] > *:focus | |
1048 { | |
1049 background-color: #E1F2FA; | |
1050 cursor: pointer; | |
1051 } | |
1052 | |
1053 .context-menu li[role="menuitem"] > *::before | |
1054 { | |
1055 content: ""; | |
1056 height: 1.5rem; | |
1057 width: 1.5rem; | |
1058 background-color: #099DD1; | |
1059 margin: 0rem 1.1rem; | |
841 } | 1060 } |
842 | 1061 |
843 .context-menu .update-subscription::before | 1062 .context-menu .update-subscription::before |
844 { | 1063 { |
845 background-position: -38px -31px; | 1064 -webkit-mask: url(icons/reload.svg); |
1065 mask: url(icons/reload.svg); | |
846 } | 1066 } |
847 | 1067 |
848 .context-menu .website::before | 1068 .context-menu .website::before |
849 { | 1069 { |
850 background-position: -33px -47px; | 1070 -webkit-mask: url(icons/globe.svg); |
1071 mask: url(icons/globe.svg); | |
851 } | 1072 } |
852 | 1073 |
853 .context-menu .source::before | 1074 .context-menu .source::before |
854 { | 1075 { |
855 background-position: -53px -34px; | 1076 -webkit-mask: url(icons/code.svg); |
1077 mask: url(icons/code.svg); | |
856 } | 1078 } |
857 | 1079 |
858 .context-menu .delete::before | 1080 .context-menu .delete::before |
859 { | 1081 { |
860 background-position: -71px -34px; | 1082 -webkit-mask: url(icons/trash.svg); |
861 } | 1083 mask: url(icons/trash.svg); |
862 | |
863 div[role="tooltip"] img | |
864 { | |
865 float: left; | |
866 height: 64px; | |
867 margin-top: -2px; | |
868 margin-bottom: 10px; | |
869 width: 64px; | |
870 -moz-margin-end: 10px; | |
871 -webkit-margin-end: 10px; | |
872 } | |
873 | |
874 html[dir="rtl"] div[role="tooltip"] img | |
875 { | |
876 float: right; | |
877 } | |
878 | |
879 div[role="tooltip"] p | |
880 { | |
881 font-weight: 400; | |
882 margin: 0px; | |
883 } | |
884 | |
885 div[role="tooltip"] p:not(:first-of-type) | |
886 { | |
887 margin-top: 18px; | |
888 } | |
889 | |
890 div[role="tooltip"] .notes | |
891 { | |
892 border-top: 1px solid #717171; | |
893 font-size: 12px; | |
894 margin-top: 14px; | |
895 padding-top: 14px; | |
896 } | |
897 | |
898 div[role="tooltip"] .notes p | |
899 { | |
900 font-weight: 300; | |
901 } | 1084 } |
902 | 1085 |
903 /* | 1086 /* |
904 Help tab content | 1087 Help tab content |
905 */ | 1088 */ |
906 | 1089 |
907 html:not([lang="zh"]) #social-chinese, | 1090 html:not([lang="zh"]) #social-chinese, |
908 html[lang="zh"] #social-general | 1091 html[lang="zh"] #social-general |
909 { | 1092 { |
910 display: none; | 1093 display: none; |
911 } | 1094 } |
912 | 1095 |
913 #social ul | 1096 #social ul |
914 { | 1097 { |
915 list-style: none; | 1098 list-style: none; |
1099 padding: 0px; | |
916 } | 1100 } |
917 | 1101 |
918 #social ul li | 1102 #social ul li |
919 { | 1103 { |
920 display: inline-block; | 1104 display: inline-block; |
1105 -moz-margin-end: 1rem; | |
1106 -webkit-margin-end: 1rem; | |
921 } | 1107 } |
922 | 1108 |
923 #social ul li a | 1109 #social ul li a |
924 { | 1110 { |
925 display: block; | 1111 display: block; |
926 text-align: center; | 1112 text-align: center; |
927 } | 1113 } |
928 | 1114 |
929 #social ul li a::before | 1115 #social ul li a::before |
930 { | 1116 { |
(...skipping 29 matching lines...) Expand all Loading... | |
960 | 1146 |
961 #dialog-background | 1147 #dialog-background |
962 { | 1148 { |
963 display: none; | 1149 display: none; |
964 position: fixed; | 1150 position: fixed; |
965 top: 0px; | 1151 top: 0px; |
966 right: 0px; | 1152 right: 0px; |
967 bottom: 0px; | 1153 bottom: 0px; |
968 left: 0px; | 1154 left: 0px; |
969 z-index: 2; | 1155 z-index: 2; |
970 background-color: white; | 1156 background-color: #000; |
971 opacity: 0.7; | 1157 opacity: 0.7; |
972 } | 1158 } |
973 | 1159 |
974 body[data-dialog] #dialog-background | 1160 body[data-dialog] #dialog-background |
975 { | 1161 { |
976 display: block; | 1162 display: block; |
977 } | 1163 } |
978 | 1164 |
979 #dialog | 1165 #dialog |
980 { | 1166 { |
981 position: fixed; | 1167 position: fixed; |
982 top: 100px; | 1168 top: 100px; |
983 left: 0px; | 1169 left: 0px; |
984 right: 0px; | 1170 right: 0px; |
985 z-index: 2; | 1171 z-index: 2; |
986 width: 400px; | 1172 width: 50vw; |
987 margin: auto; | 1173 margin: auto; |
988 border-radius: 3px; | 1174 border-radius: 3px; |
989 border: 2px solid #4D9D4B; | |
990 background-color: #FFFFFF; | 1175 background-color: #FFFFFF; |
991 } | 1176 } |
992 | 1177 |
993 #dialog header | 1178 #dialog header |
994 { | 1179 { |
995 display: flex; | 1180 display: flex; |
996 min-height: 25px; | 1181 padding: 0.7rem 1.5rem; |
997 padding: 10px; | 1182 background-color: #099CD0; |
998 background-color: #4D9D4B; | |
999 } | 1183 } |
1000 | 1184 |
1001 #dialog-close | 1185 #dialog header h3 |
1002 { | 1186 { |
1003 -moz-border-start: 1px solid #25612B; | 1187 margin: 0rem; |
1004 -webkit-border-start: 1px solid #25612B; | 1188 font-size: 1.375rem; |
1005 color: #0F660F; | 1189 font-weight: 700; |
1006 display: inline-block; | |
1007 height: 20px; | |
1008 font-size: 15px; | |
1009 -moz-padding-start: 10px; | |
1010 -webkit-padding-start: 10px; | |
1011 } | 1190 } |
1012 | 1191 |
1013 #dialog-close::before | 1192 #dialog-close, |
juliandoucette
2017/09/12 22:45:38
NIT/Suggest: This could have something in common w
| |
1193 #hide-notification | |
1014 { | 1194 { |
1015 background-position: -10px -33px; | 1195 border: 0rem; |
1196 padding: 0rem; | |
1197 margin: 0rem; | |
1198 background-color: transparent; | |
1016 cursor: pointer; | 1199 cursor: pointer; |
1017 height: 8px; | 1200 } |
1018 width: 8px; | 1201 |
1019 vertical-align: middle; | 1202 #dialog-close::before, |
juliandoucette
2017/09/12 22:45:38
NIT: Why you are adding this background image ::be
saroyanm
2017/09/13 15:26:36
Acknowledged. I'll address this separately.
| |
1020 -moz-margin-end: 6px; | 1203 #hide-notification::after |
1021 -webkit-margin-end: 6px; | 1204 { |
1205 content: ""; | |
1206 display: block; | |
1207 height: 1rem; | |
1208 width: 1rem; | |
1209 border: 0rem; | |
1210 background-color: #FFF; | |
1211 -webkit-mask: url(icons/delete.svg); | |
1212 mask: url(icons/delete.svg); | |
1213 } | |
1214 | |
1215 #dialog-close:hover::before | |
1216 { | |
1217 background-color: #000; | |
1022 } | 1218 } |
1023 | 1219 |
1024 #dialog #dialog-body | 1220 #dialog #dialog-body |
1025 { | 1221 { |
1026 margin: 4px 24px; | 1222 max-height: 50vh; |
1223 overflow: auto; | |
1027 } | 1224 } |
1028 | 1225 |
1029 #dialog h3, | 1226 .dialog-content |
1227 { | |
1228 margin: 1rem 1.8rem; | |
1229 } | |
1230 | |
1231 #dialog-body button | |
1232 { | |
1233 -moz-margin-start: auto; | |
1234 -webkit-margin-start: auto; | |
1235 } | |
1236 | |
1237 [data-dialog="language-change"] .dialog-content, | |
1238 [data-dialog="language-add"] .dialog-content | |
1239 { | |
1240 margin: 0rem; | |
1241 } | |
1242 | |
1243 [data-dialog="about"] .dialog-content | |
1244 { | |
1245 text-align: center; | |
1246 } | |
1247 | |
1248 [data-dialog="about"] button | |
1249 { | |
1250 margin: 1.5rem auto 1.8rem auto; | |
1251 } | |
1252 | |
1253 #abp-version | |
1254 { | |
1255 margin-bottom: 2rem; | |
1256 } | |
1257 | |
1030 #dialog label | 1258 #dialog label |
1031 { | 1259 { |
1032 font-size: 14px; | 1260 font-size: 0.9rem; |
1033 font-weight: 600; | 1261 font-weight: 400; |
1034 margin: 0px; | 1262 margin: 0px; |
1035 } | 1263 } |
1036 | 1264 |
1037 #dialog input[type="text"] | 1265 #dialog input[type="text"] |
1038 { | 1266 { |
1039 font-size: 16px; | 1267 border-style: solid;; |
juliandoucette
2017/09/12 22:45:36
NIT: The default border-style is solid? And you ha
saroyanm
2017/09/13 15:26:36
Acknowledged.
saroyanm
2017/09/13 16:47:58
Done.
| |
1040 margin-top: 10px; | 1268 border-color: #CDCDCD; |
1269 border-width: 0px 0px 1px 0px; | |
1270 font-size: 1.3rem; | |
1041 padding: 5px; | 1271 padding: 5px; |
1042 width: 100%; | 1272 width: 100%; |
1043 } | 1273 } |
1044 | 1274 |
1045 #dialog .table | 1275 #dialog .table |
1046 { | 1276 { |
1047 width: 100%; | 1277 width: 100%; |
1048 } | 1278 } |
1049 | 1279 |
1050 #dialog .section:not(:first-child) | 1280 #dialog .section:not(:first-child) |
1051 { | 1281 { |
1052 margin-top: 24px; | 1282 margin-top: 24px; |
1053 } | 1283 } |
1054 | 1284 |
1055 #dialog-title | 1285 #dialog-title |
1056 { | 1286 { |
1057 -moz-margin-start: 16px; | |
1058 -webkit-margin-start: 16px; | |
1059 flex: 1; | 1287 flex: 1; |
1060 font-size: 16px; | 1288 font-size: 16px; |
1061 color: #FFFFFF; | 1289 color: #FFFFFF; |
1062 } | 1290 } |
1063 | 1291 |
1064 #dialog-body .dialog-content-block | 1292 #dialog-body .dialog-content-block |
1065 { | 1293 { |
1066 padding: 12px 0px; | 1294 padding: 12px 0px; |
1067 } | 1295 } |
1068 | 1296 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1109 } | 1337 } |
1110 | 1338 |
1111 #notification strong | 1339 #notification strong |
1112 { | 1340 { |
1113 flex: 1; | 1341 flex: 1; |
1114 text-align: center; | 1342 text-align: center; |
1115 } | 1343 } |
1116 | 1344 |
1117 #hide-notification | 1345 #hide-notification |
1118 { | 1346 { |
1119 border: 0rem; | |
1120 padding: 0rem; | |
1121 margin: 0rem 1rem; | 1347 margin: 0rem 1rem; |
1122 background-color: transparent; | |
1123 cursor: pointer; | |
1124 } | 1348 } |
1125 | 1349 |
1126 #hide-notification::after | 1350 #hide-notification::after |
1127 { | 1351 { |
1128 content: ""; | |
1129 display: block; | |
1130 height: 1rem; | |
1131 width: 1rem; | |
1132 border: 0rem; | |
1133 background-color: #099DD1; | 1352 background-color: #099DD1; |
1134 -webkit-mask: url(delete.svg); | |
1135 mask: url(delete.svg); | |
1136 } | 1353 } |
1137 | 1354 |
1138 #hide-notification:hover::after | 1355 #hide-notification:hover::after |
1139 { | 1356 { |
1140 background-color: #5CBCE1; | 1357 background-color: #5CBCE1; |
1141 } | 1358 } |
OLD | NEW |