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

Powered by Google App Engine
This is Rietveld