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