Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: skin/options.css

Issue 6088024630755328: issue 1526 - Implement new options page design for Chrome/Opera/Safari (Closed)
Patch Set: Created Jan. 28, 2015, 3:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 body
19 {
20 background-color: #F5F5F5;
21 display: flex;
22 font-family: 'Source Sans Pro', sans-serif;
23 font-size: 14px;
24 white-space: nowrap;
25 }
26
27 h1
28 {
29 font-size: 24px;
30 font-weight: 100;
31 }
32
33 h2
34 {
35 font-size: 16px;
36 font-weight: 500;
37 }
38
39 p
40 {
41 font-weight: 100;
42 }
43 hr
44 {
45 background-color: #CDCDCD;
46 border: 0px;
47 height: 1px;
48 margin: 0px;
49 }
50
51 .option-name
52 {
53 display: flex;
54 }
55
56 .option-name > *
57 {
58 -moz-margin-end: 6px;
59 -webkit-margin-end: 6px;
60 }
61
62 #nav-sidebar
63 {
64 position: relative;
65 padding: 0px 0px 16px 0px;
66 -moz-padding-start: 10px;
67 -webkit-padding-start: 10px;
68 min-width: 198px;
69 }
70
71 #nav-sidebar .fixed
72 {
73 height: 100%;
74 position: fixed;
75 }
76
77 #blocking-languages,
78 #acceptable-ads
79 {
80 -moz-padding-end: 40px;
81 -webkit-padding-end: 40px;
82 }
83
84 #page-title
85 {
86 -webkit-margin-start: 10px;
87 -moz-margin-start: 10px;
88 }
89
90 #page-title p
91 {
92 margin: 0px;
93 padding: 40px 0px 0px 0px;
94 font-size: 16px;
95 }
96
97 #page-title h1
98 {
99 margin: 0px;
100 padding: 8px 0px 16px 0px;
101 }
102
103 .flex-container
104 {
105 display: flex;
106 flex-flow: row wrap;
107 }
108
109 .tabs li
110 {
111 cursor: pointer;
112 display: flex;
113 }
114
115 .tabs li span:first-child
116 {
117 flex: 1;
118 }
119
120 .tabs.vertical
121 {
122 list-style: none;
123 margin: 0px;
124 position: relative;
125 padding: 0px;
126 width: 198px;
127 }
128
129 .tabs.vertical li
130 {
131 border-color: #CDCDCD;
132 border-style: solid;
133 border-width: 1px 0px 0px 0px;
134 font-size: 16px;
135 font-weight: 100;
136 padding: 16px 0px;
137 -moz-padding-end: 20px;
138 -webkit-padding-end: 20px;
139 -moz-padding-start: 11px;
140 -webkit-padding-start: 11px;
141 }
142
143 .tabs.vertical li.active + li
144 {
145 border-width: 0px;
146 }
147
148 .tabs.vertical li:last-child
149 {
150 border-bottom-width: 1px !important;
151 }
152
153 .tabs.vertical li.active
154 {
155 background-color: #FFFFFF;
156 border-radius: 3px 0px 0px 3px;
157 border-width: 1px;
158 -moz-border-end: 0px;
159 -webkit-border-end: 0px;
160 font-weight: 900;
161 -moz-margin-end: -1px;
162 -webkit-margin-end: -1px;
163 -moz-padding-start: 10px;
164 -webkit-padding-start: 10px;
165 position: relative;
166 }
167
168 .tabs.vertical.bottom
169 {
170 bottom: 0px;
171 position: absolute;
172 }
173
174 .tabs.vertical.bottom li:first-child
175 {
176 border-top: 0px;
177 }
178
179 .tabs.vertical .icon
180 {
181 margin: 2px 0px 0px 0px;
182 }
183
184 #tab-general .icon
185 {
186 background-position: -15px -17px;
187 height: 16px;
188 width: 16px;
189 }
190
191 #tab-advanced .icon
192 {
193 background-position: -45px -18px;
194 height: 16px;
195 width: 16px;
196 }
197
198 #tab-help .icon
199 {
200 background-position: 0px -17px;
201 height: 16px;
202 width: 16px;
203 }
204
205 #tab-share .icon
206 {
207 background-position: -60px -17px;
208 height: 16px;
209 width: 16px;
210 }
211
212 #tab-donate .icon
213 {
214 background-position: -30px -17px;
215 height: 16px;
216 width: 16px;
217 }
218
219 #tab-content
220 {
221 background-color: #FFFFFF;
222 border: 1px solid #CDCDCD;
223 border-radius: 8px;
224 padding: 0px 60px 40px 60px;
225 width: 960px;
226 }
227
228 #tab-content h1
229 {
230 border-bottom: 1px solid #CDCDCD;
231 margin: 0px;
232 padding: 40px 0px 16px 0px;
233 }
234
235 #modal-background
236 {
237 background-color: white;
238 position: absolute;
239 opacity: 0.7;
240 top: 0px;
241 right: 0;
242 bottom: 0px;
Sebastian Noack 2015/02/11 07:44:07 Nit: You omitted unit for left/right but not for t
saroyanm 2015/02/13 10:57:11 Done.
243 left: 0;
244 z-index: 2;
245 }
246
247 #content-wrapper
248 {
249 position: relative;
250 }
251
252 #content-wrapper > div:not(.active),
253 #blocking-list > div:not(.active)
254 {
255 display: none;
256 }
257
258 body.modal-active #modal,
259 body.modal-active #modal-background
260 {
261 display: block;
262 }
263
264 div.button
265 {
266 cursor: pointer;
267 display: flex;
268 }
269
270 .table
271 {
272 list-style: none;
273 margin: 0px;
274 padding: 0px;
275 position: relative;
276 width: 400px;
277 }
278
279 .table li
280 {
281 display: flex;
282 padding: 14px 0px;
283 -webkit-padding-start: 16px;
284 -moz-padding-start: 16px;
285 }
286
287 .table.list li:nth-child(odd)
288 {
289 background-color: #F5F5F5;
290 }
291
292 .table.list li .display
293 {
294 flex: 1;
295 }
296
297 .table.cols li:nth-child(even)
298 {
299 background-color: #F5F5F5;
300 }
301
302 #blocking-list-own .table
303 {
304 height: 290px;
305 overflow: auto;
306 width: auto;
307 }
308
309 .table label
310 {
311 vertical-align: top;
312 }
313
314 .table.cols span
315 {
316 display: inline-block;
317 width: 30%;
318 }
319
320 .table.cols .col-name
321 {
322 border-bottom: 1px solid #CDCDCD;
323 }
324
325 .table.cols .col-name span
326 {
327 display: inline-block;
328 width: 30%;
329 }
330
331 .table.cols .col-name span:first-child
332 {
333 padding-left: 38px;
Sebastian Noack 2015/02/11 07:44:07 This should be rigth for right-to-left languages.
saroyanm 2015/02/13 10:57:11 Done.
334 }
335
336 #further-blocking .table
337 {
338 height: 290px;
339 overflow: auto;
340 }
341
342 .table::-webkit-scrollbar
343 {
344 padding-right: 10px;
Sebastian Noack 2015/02/11 07:44:07 This should be left for right-to-left languages. S
saroyanm 2015/02/13 10:57:11 Done.
345 width: 5px;
346 }
347
348 .table::-webkit-scrollbar-thumb
349 {
350 background-color: #CDCDCD;
351 border-radius: 5px;
352 padding: 0px 40px;
353 }
354
355 .table::-webkit-scrollbar-thumb:hover
356 {
357 background-color: #A1A1A1;
358 }
359
360 .table input[type=checkbox]
361 {
362 margin-top: 0px;
363 -moz-margin-end: 20px;
364 -webkit-margin-end: 20px;
365 padding: 0px 0px 0px 0px;
366 visibility: hidden;
367 }
368
369 .table input[type=checkbox]:before
370 {
371 content:"";
372 background-position: -51px 0px;
373 height: 18px;
374 width: 18px;
375 visibility: visible;
376 }
377
378 .table input[type=checkbox]:checked:before
379 {
380 content:"";
381 background-position: -68px 0px;
382 height: 18px;
383 padding: 0px;
384 width: 18px;
385 visibility: visible;
386 }
387
388 .table button.delete
389 {
390 background-color: transparent;
391 background-position: -9px -32px;
392 border: 0px;
393 height: 10px;
394 margin-top: 5px;
395 -moz-margin-end: 20px;
396 -webkit-margin-end: 20px;
397 padding: 0px;
398 cursor: pointer;
399 width: 10px;
400 }
401
402 .table .popular
403 {
404 color: #1E8728;
405 font-size: 12px;
406 -moz-padding-end: 12px;
407 -webkit-padding-end: 12px;
408 }
409
410 .tabs.horizontal
411 {
412 margin-bottom: 0px;
413 padding: 0px;
414 }
415
416 .tabs.horizontal li
417 {
418 border-bottom: 1px solid #A1A1A1;
419 display: inline-block;
420 color: #3A7BA6;
421 padding: 10px 0px 11px 0px;
422 text-align: center;
423 width: 50%;
424 }
425
426 .tabs.horizontal li.active
427 {
428 border-bottom: 2px solid #1E8728;
429 color: black;
430 font-weight: bold;
431 padding-bottom: 10px;
432 }
433
434 .icon, .table input[type=checkbox]:before, .table button.delete,
435 #content-help a:before, #modal-close:before
436 {
437 background-image: url(options-sprite.png);
438 display: inline-block;
439 }
440
441 .icon-add
442 {
443 background-position: -0px -0px;
444 cursor: pointer;
445 height: 18px;
446 width: 18px;
447 }
448
449 .icon-update
450 {
451 background-position: -34px -0px;
452 cursor: pointer;
453 height: 18px;
454 width: 18px;
455 }
456
457 .icon-edit
458 {
459 background-position: -17px -0px;
460 cursor: pointer;
461 height: 18px;
462 width: 18px;
463 }
464
465 .icon-arrow,
466 #content-help a:before
467 {
468 background-position: 0px -42px;
469 content: "";
470 cursor: pointer;
471 height: 11px;
472 vertical-align: middle;
473 width: 7px;
474 }
475
476 .controls
477 {
478 border-top: 1px solid #CDCDCD;
479 padding-top: 8px;
480 -moz-padding-start: 16px;
481 -webkit-padding-start: 16px;
482 position: relative;
483 }
484
485 .controls > div
486 {
487 display: flex;
488 }
489
490 #whitelisting .controls
491 {
492 -moz-padding-start: 12px;
493 -webkit-padding-start: 12px;
494 }
495
496 #whitelisting .controls input[type=text],
497 #whitelisting .controls input[type=text]:focus
498 {
499 border: 0px;
500 border-bottom: 1px solid #A1A1A1;
501 -moz-padding-end: 25px;
502 -webkit-padding-end: 25px;
503 -moz-margin-start: 14px;
504 -webkit-margin-start: 14px;
505 outline: 0px;
506 padding-bottom: 5px;
507 vertical-align: text-bottom;
508 width: 330px;
509 }
510
511 .controls button,
512 #modal-close
513 {
514 background: none;
515 border: none;
516 cursor: pointer;
517 display: block;
518 padding: 0;
519 }
520
521 .controls button span:not(.icon)
522 {
523 color: #3A7BA6;
524 display: inline-block;
525 -moz-margin-start: 15px;
526 -webkit-margin-start: 15px;
527 padding-top: 1px;
528 vertical-align: top;
529 }
530
531 #blocking-list-own .controls
532 {
533 padding: 0px;
534 border: none;
535 }
536
537 #modal .btn-wrapper span:not(.icon)
538 {
539 color: #3A7BA6;
540 display: inline-block;
541 -moz-margin-start: 15px;
542 -webkit-margin-start: 15px;
543 vertical-align: top;
544 }
545
546 #content-help
547 {
548 counter-reset: section;
549 }
550
551 #content-help h1:before
552 {
553 counter-increment: section;
554 content: counter(section) ". ";
555 }
556
557 #content-help a
558 {
559 color: #3A7BA6;
560 display: inline-block;
561 text-decoration: none;
562 -moz-margin-end: 16px;
563 -webkit-margin-end: 16px;
564 vertical-align: top;
565 }
566
567 #content-help a:before
568 {
569 -moz-margin-end: 6px;
570 -webkit-margin-end: 6px;
571 }
572
573 .nav-link
574 {
575 -moz-margin-start: 12px;
576 -webkit-margin-start: 12px;
577 color: #3A7BA6;
578 }
579
580 #blocking-list-own input[type=text],
581 #blocking-list-own input[type=text]:focus
582 {
583 border: 0px;
584 border-bottom: 1px solid;
585 border-top: 1px solid;
586 border-color: #1E8728;
587 box-sizing: border-box;
588 height: 25px;
589 outline: 0px;
590 padding-left: 10px;
Sebastian Noack 2015/02/11 07:44:07 This should be rigth for right-to-left languages.
saroyanm 2015/02/13 10:57:11 Done.
591 width: 100%;
592 }
593
594 .icon-enter-blue
595 {
596 background-position: -28px -85px;
597 cursor: pointer;
598 height: 10px;
599 margin: 0px 0px -2px 2px;
600 width: 10px;
601 }
602
603 #blocking-list-own .input-control
604 {
605 position: absolute;
606 bottom: 5px;
607 right: 10px;
Sebastian Noack 2015/02/11 07:44:07 This should be left for right-to-left languages. S
saroyanm 2015/02/13 10:57:11 Done.
608 }
609
610 #blocking-list-own .input-separator
611 {
612 display: inline-block;
613 border-right: 1px solid #CDCDCD;
Sebastian Noack 2015/02/11 07:44:07 This should be left for right-to-left languages. S
saroyanm 2015/02/13 10:57:11 Done.
614 height: 15px;
615 margin: 0px 4px -4px 0px;
616 width: 1px;
617 }
618
619 #blocking-list-own .input-btn-text
620 {
621 font-size: 12px;
622 }
623
624 .icon-enter
625 {
626 background-position: -18px -85px;
627 cursor: pointer;
628 height: 10px;
629 position: absolute;
630 top: 10px;
631 -moz-margin-start: -20px;
632 -webkit-margin-start: -20px;
633 width: 10px;
634 }
635
636 .button-add, .cancelbtn
637 {
638 background-color: transparent;
639 border: 0px;
640 color: #3A7BA6;
641 cursor: pointer;
642 }
643
644 .controls .button-add span
645 {
646 -moz-margin-start: 5px !important;
647 -webkit-margin-start: 5px !important;
648 }
649
650 #other-language .button-add
651 {
652 -webkit-border-end: 1px solid #CDCDCD;
653 -moz-border-end: 1px solid #CDCDCD;
654 -webkit-padding-end: 10px;
655 -moz-padding-end: 10px;
656 -webkit-padding-start: 0px;
657 -moz-padding-start: 0px;
658 }
659
660 #other-language .display
661 {
662 -webkit-margin-start: 10px;
663 -moz-margin-start: 10px;
664 }
665
666 #whitelisting .button-add
667 {
668 -moz-margin-start: 32px;
669 -webkit-margin-start: 32px;
670 }
671
672 #whitelisting-add-btn + span
673 {
674 flex: 1;
675 }
676
677 .cancelbtn
678 {
679 float: right;
Sebastian Noack 2015/02/11 07:44:07 The whole point of using flexbox was to not use fl
saroyanm 2015/02/13 10:57:11 Done.
680 }
681
682 .tooltip, #block-element-explanation a
683 {
684 border-bottom: dotted 2px;
685 color: #3A7BA6;
686 font-size: 12px;
687 text-decoration: none;
688 }
689
690 #content-advanced .tooltip
691 {
692 -moz-margin-start: 8px;
693 -webkit-margin-start: 8px;
694 }
695
696 #block-element-explanation a
697 {
698 color: black;
699 border-bottom-color: #3A7BA6;
700 font-weight: bold;
701 padding-left: 0px !important;
Sebastian Noack 2015/02/11 07:44:07 This should be rigth for right-to-left languages.
saroyanm 2015/02/13 10:57:11 Done.
702 }
703
704 #modal
705 {
706 background-color: #FFFFFF;
707 border: 2px solid #4D9D4B;
708 border-radius: 3px;
709 left:50%;
710 top:50%;
711 margin:0 auto;
712 margin-left:-200px;
Sebastian Noack 2015/02/11 07:44:07 This hack is obosolete when using flexbox. In orde
saroyanm 2015/02/13 10:57:11 Done.
713 margin-top:-200px;
714 position:absolute;
715 z-index: 2;
716 display: none;
717 width: 400px;
718 }
719
720 #modal header
721 {
722 background-color: #4D9D4B;
723 display: flex;
724 height: 25px;
725 padding: 10px;
726 }
727
728 #modal-close
729 {
730 -moz-border-start: 1px solid #25612B;
731 -webkit-border-start: 1px solid #25612B;
732 color: #0F660F;
733 display: inline-block;
734 height: 20px;
735 font-size: 15px;
736 -moz-padding-start: 10px;
737 -webkit-padding-start: 10px;
738 }
739
740 #modal-close:before
741 {
742 background-position: -9px -32px;
743 content: "";
744 cursor: pointer;
745 height: 12px;
746 width: 12px;
747 vertical-align: middle;
748 -moz-margin-end: 6px;
749 -webkit-margin-end: 6px;
750 }
751
752 #modal .content
753 {
754 margin: 4px 24px;
755 }
756
757 #modal h3
758 {
759 font-size: 14px;
760 margin: 0px;
761 }
762
763 #modal .content input[type=text]
764 {
765 -webkit-box-sizing: border-box;
766 -moz-box-sizing: border-box;
767 box-sizing: border-box;
768 font-size: 16px;
769 margin-top: 10px;
770 padding: 5px;
771 width: 100%;
772 }
773
774 #modal .table
775 {
776 width: 100%;
777 }
778
779 #modal #other-language .table
780 {
781 height: 200px;
782 overflow: auto;
783 }
784
785 #modal .section:not(:first-child)
786 {
787 margin-top: 24px;
788 }
789
790 #modal .close-wrapper
791 {
792 margin-right: 16px !important;
Sebastian Noack 2015/02/11 07:44:07 This should be left for right-to-left languages. S
saroyanm 2015/02/13 10:57:11 Done.
793 }
794
795 #modal-title
796 {
797 -moz-margin-start: 16px;
798 -webkit-margin-start: 16px;
799 flex: 1;
800 font-size: 16px;
801 color: #FFFFFF;
802 }
803
804 #modal .content > div > div
805 {
806 padding: 12px 0px;
807 }
808
809 #modal-content > div
810 {
811 display: none;
812 }
813
814 #modal-content > div.active
815 {
816 display: block;
817 }
818
819 #modal .btn-wrapper
820 {
821 background-color: #F5F5F5;
822 margin-top: 8px;
823 padding: 10px 16px;
824 cursor: pointer;
825 width: auto;
826 }
OLDNEW
« options.js ('K') | « options.js ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld