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 12, 2015, 2:01 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
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 #blocking-languages,
84 #acceptable-ads
85 {
86 -moz-padding-end: 40px;
87 -webkit-padding-end: 40px;
88 }
89
90 #page-title
91 {
92 -webkit-margin-start: 10px;
93 -moz-margin-start: 10px;
94 }
95
96 #page-title p
97 {
98 margin: 0px;
99 padding: 40px 0px 0px 0px;
100 font-size: 16px;
101 }
102
103 #page-title h1
104 {
105 margin: 0px;
106 padding: 8px 0px 16px 0px;
107 }
108
109 .flex-container
110 {
111 display: flex;
112 flex-flow: row wrap;
113 }
114
115 .tabs li
116 {
117 cursor: pointer;
118 display: flex;
119 }
120
121 .tabs li span:first-child
122 {
123 flex: 1;
124 }
125
126 .tabs.vertical
127 {
128 list-style: none;
129 margin: 0px;
130 position: relative;
131 padding: 0px;
132 width: 198px;
133 }
134
135 .tabs.vertical li
136 {
137 border-color: #CDCDCD;
138 border-style: solid;
139 border-width: 1px 0px 0px 0px;
140 font-size: 16px;
141 font-weight: 100;
142 padding: 16px 0px;
143 -moz-padding-end: 20px;
144 -webkit-padding-end: 20px;
145 -moz-padding-start: 11px;
146 -webkit-padding-start: 11px;
147 }
148
149 body[data-tab="general"] #tab-general + li,
150 body[data-tab="advanced"] #tab-advanced + li,
151 body[data-tab="help"] #tab-help + li
152 {
153 border-width: 0px;
154 }
155
156 #tab-help,
157 body[data-tab="advanced"] #tab-advanced + li
158 {
159 border-bottom-width: 1px;
160 }
161
162 body[data-tab="general"] #tab-general,
163 body[data-tab="advanced"] #tab-advanced,
164 body[data-tab="help"] #tab-help
165 {
166 background-color: #FFFFFF;
167 border-radius: 3px 0px 0px 3px;
168 border-width: 1px;
169 -moz-border-end: 0px;
170 -webkit-border-end: 0px;
171 font-weight: 900;
172 -moz-margin-end: -1px;
173 -webkit-margin-end: -1px;
174 -moz-padding-start: 10px;
175 -webkit-padding-start: 10px;
176 position: relative;
177 }
178
179 .tabs.vertical.bottom
180 {
181 bottom: 0px;
182 position: absolute;
183 }
184
185 .tabs.vertical.bottom li:first-child
186 {
187 border-top: 0px;
188 }
189
190 .tabs.vertical .icon
191 {
192 margin: 2px 0px 0px 0px;
193 }
194
195 #tab-general .icon
196 {
197 background-position: -15px -17px;
198 height: 16px;
199 width: 16px;
200 }
201
202 #tab-advanced .icon
203 {
204 background-position: -45px -18px;
205 height: 16px;
206 width: 16px;
207 }
208
209 #tab-help .icon
210 {
211 background-position: 0px -17px;
212 height: 16px;
213 width: 16px;
214 }
215
216 #tab-share .icon
217 {
218 background-position: -60px -17px;
219 height: 16px;
220 width: 16px;
221 }
222
223 #tab-donate .icon
224 {
225 background-position: -30px -17px;
226 height: 16px;
227 width: 16px;
228 }
229
230 #tab-content
231 {
232 background-color: #FFFFFF;
233 border: 1px solid #CDCDCD;
234 border-radius: 8px;
235 padding: 0px 60px 40px 60px;
236 width: 960px;
237 }
238
239 #tab-content h1
240 {
241 border-bottom: 1px solid #CDCDCD;
242 margin: 0px;
243 padding: 40px 0px 16px 0px;
244 }
245
246 .nav-link
247 {
248 -moz-margin-start: 12px;
249 -webkit-margin-start: 12px;
250 color: #3A7BA6;
251 }
252
253 #content-wrapper
254 {
255 position: relative;
256 }
257
258 #content-wrapper > div
259 {
260 display: none;
261 }
262
263 body[data-tab="general"] #content-general,
264 body[data-tab="advanced"] #content-advanced,
265 body[data-tab="help"] #content-help
266 {
267 display: block;
268 }
269
270 div.button
271 {
272 cursor: pointer;
273 display: flex;
274 }
275
276 .table
277 {
278 list-style: none;
279 margin: 0px;
280 padding: 0px;
281 position: relative;
282 width: 400px;
283 }
284
285 .table li
286 {
287 display: flex;
288 padding: 14px 0px;
289 -webkit-padding-start: 16px;
290 -moz-padding-start: 16px;
291 }
292
293 .table.list li .display
294 {
295 flex: 1;
296 }
297
298 .table.list li:nth-child(odd)
299 {
300 background-color: #F5F5F5;
301 }
302
303 .table.cols li:nth-child(even)
304 {
305 background-color: #F5F5F5;
306 }
307
308 .table label
309 {
310 vertical-align: top;
311 }
312
313 .table.cols span
314 {
315 display: inline-block;
316 width: 30%;
317 }
318
319 .table.cols .col-name
320 {
321 border-bottom: 1px solid #CDCDCD;
322 }
323
324 .table.cols .col-name span
325 {
326 display: inline-block;
327 width: 30%;
328 }
329
330 .table.cols .col-name span:first-child
331 {
332 -webkit-padding-start: 38px;
333 -moz-padding-start: 38px;
334 }
335
336 #custom-wrapper
337 {
338 width: 400px;
339 height: 290px;
340 overflow: auto;
341 }
342
343 #custom-wrapper .table
344 {
345 width: 100%;
346 }
347
348 .table::-webkit-scrollbar,
349 #custom-wrapper::-webkit-scrollbar
350 {
351 -webkit-padding-end: 10px;
352 width: 5px;
353 }
354
355 .table::-webkit-scrollbar-thumb,
356 #custom-wrapper::-webkit-scrollbar-thumb
357 {
358 background-color: #CDCDCD;
359 border-radius: 5px;
360 padding: 0px 40px;
361 }
362
363 .table::-webkit-scrollbar-thumb:hover,
364 #custom-wrapper::-webkit-scrollbar-thumb:hover
365 {
366 background-color: #A1A1A1;
367 }
368
369 .table input[type="checkbox"]
370 {
371 margin-top: 0px;
372 -moz-margin-end: 20px;
373 -webkit-margin-end: 20px;
374 padding: 0px 0px 0px 0px;
375 visibility: hidden;
376 }
377
378 .table input[type="checkbox"]::before
379 {
380 content: "";
381 background-position: -51px 0px;
382 height: 18px;
383 width: 18px;
384 visibility: visible;
385 }
386
387 .table input[type="checkbox"]:checked::before
388 {
389 content: "";
390 background-position: -68px 0px;
391 height: 18px;
392 padding: 0px;
393 width: 18px;
394 visibility: visible;
395 }
396
397 .table button.delete
398 {
399 background-color: transparent;
400 background-position: -9px -32px;
401 border: 0px;
402 height: 10px;
403 margin-top: 5px;
404 -moz-margin-end: 20px;
405 -webkit-margin-end: 20px;
406 padding: 0px;
407 cursor: pointer;
408 width: 10px;
409 }
410
411 .table .popular
412 {
413 color: #1E8728;
414 font-size: 12px;
415 -moz-padding-end: 12px;
416 -webkit-padding-end: 12px;
417 }
418
419 .tabs.horizontal
420 {
421 margin-bottom: 0px;
422 padding: 0px;
423 }
424
425 .tabs.horizontal li
426 {
427 border-bottom: 1px solid #A1A1A1;
428 display: inline-block;
429 color: #3A7BA6;
430 padding: 10px 0px 11px 0px;
431 text-align: center;
432 width: 50%;
433 }
434
435 .tabs.horizontal li.active
436 {
437 border-bottom: 2px solid #1E8728;
438 color: black;
439 font-weight: bold;
440 padding-bottom: 10px;
441 }
442
443 .icon, .table input[type="checkbox"]::before, .table button.delete,
444 #content-help a::before, #modal-close::before
445 {
446 background-image: url(options-sprite.png);
447 display: inline-block;
448 }
449
450 .icon-add
451 {
452 background-position: -0px -0px;
453 cursor: pointer;
454 height: 18px;
455 width: 18px;
456 }
457
458 .icon-update
459 {
460 background-position: -34px -0px;
461 cursor: pointer;
462 height: 18px;
463 width: 18px;
464 }
465
466 .icon-edit
467 {
468 background-position: -17px -0px;
469 cursor: pointer;
470 height: 18px;
471 width: 18px;
472 }
473
474 .icon-arrow,
475 #content-help a::before
476 {
477 background-position: 0px -42px;
478 content: "";
479 cursor: pointer;
480 height: 11px;
481 vertical-align: middle;
482 width: 7px;
483 }
484
485 .controls
486 {
487 border-top: 1px solid #CDCDCD;
488 padding-top: 8px;
489 -moz-padding-start: 16px;
490 -webkit-padding-start: 16px;
491 position: relative;
492 }
493
494 .controls > div
495 {
496 display: flex;
497 }
498
499 .controls button,
500 #modal-close
501 {
502 background: none;
503 border: none;
504 cursor: pointer;
505 display: block;
506 padding: 0;
507 }
508
509 .controls button span:not(.icon)
510 {
511 color: #3A7BA6;
512 display: inline-block;
513 -moz-margin-start: 15px;
514 -webkit-margin-start: 15px;
515 padding-top: 1px;
516 vertical-align: top;
517 }
518
519 /*
520 General tab content
Felix Dahlke 2015/06/07 21:09:59 Seems like there's some stuff above that belongs b
saroyanm 2015/06/09 15:29:13 Done.
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 Modal
701 */
702
703 #modal-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-modal] #modal-background
717 {
718 display: block;
719 }
720
721 #modal
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 #modal header
737 {
738 background-color: #4D9D4B;
739 display: flex;
740 height: 25px;
741 padding: 10px;
742 }
743
744 #modal-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 #modal-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 #modal #modal-body
769 {
770 margin: 4px 24px;
771 }
772
773 #modal h3
774 {
775 font-size: 14px;
776 margin: 0px;
777 }
778
779 #modal input[type="text"],
780 #modal 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 #modal .table
792 {
793 width: 100%;
794 }
795
796 #modal #other-language .table
797 {
798 height: 200px;
799 overflow: auto;
800 }
801
802 #modal .section:not(:first-child)
803 {
804 margin-top: 24px;
805 }
806
807 #modal-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 #modal-title > span
817 {
818 display: none;
819 }
820
821 body[data-modal="customlist"] #modal-title-customlist,
822 body[data-modal="language"] #modal-title-language
823 {
824 display: inline;
825 }
826
827 #modal-body .modal-content-block
828 {
829 padding: 12px 0px;
830 }
831
832 #modal-body .modal-content
833 {
834 display: none;
835 }
836
837 #modal .button-wrapper
838 {
839 background-color: #F5F5F5;
840 margin-top: 8px;
841 padding: 10px 16px;
842 cursor: pointer;
843 width: auto;
844 }
845
846 #modal .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-modal="customlist"] #modal-content-customlist,
856 body[data-modal="language"] #modal-content-language,
857 body[data-modal] #modal
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

Powered by Google App Engine
This is Rietveld