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. 23, 2015, 6:09 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;
243 left: 0;
244 z-index: 2;
245 }
246
247 #content-wrapper
248 {
249 position: relative;
250 }
251
252 #content-wrapper > div,
253 #blocking-list > div
254 {
255 display: none;
256 }
257
258 div.button
259 {
260 cursor: pointer;
261 display: flex;
262 }
263
264 .table
265 {
266 list-style: none;
267 margin: 0px;
268 padding: 0px;
269 position: relative;
270 width: 400px;
271 }
272
273 .table li
274 {
275 display: flex;
276 padding: 14px 0px;
277 -webkit-padding-start: 16px;
278 -moz-padding-start: 16px;
279 }
280
281 .table.list li:nth-child(odd)
282 {
283 background-color: #F5F5F5;
284 }
285
286 .table.list li .display
287 {
288 flex: 1;
289 }
290
291 .table.cols li:nth-child(even)
292 {
293 background-color: #F5F5F5;
294 }
295
296 #blocking-list-own .table
297 {
298 height: 290px;
299 overflow: auto;
300 width: auto;
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 padding-left: 38px;
328 }
329
330 #further-blocking .table
331 {
332 height: 290px;
333 overflow: auto;
334 }
335
336 .table::-webkit-scrollbar
337 {
338 padding-right: 10px;
339 width: 5px;
340 }
341
342 .table::-webkit-scrollbar-thumb
343 {
344 background-color: #CDCDCD;
345 border-radius: 5px;
346 padding: 0px 40px;
347 }
348
349 .table::-webkit-scrollbar-thumb:hover
350 {
351 background-color: #A1A1A1;
352 }
353
354 .table input[type=checkbox]
355 {
356 display:none;
357 }
358
359 .table input[type=checkbox] + span
360 {
361 background-position: -51px 0px;
362 height: 18px;
363 -moz-margin-end: 20px;
364 -webkit-margin-end: 20px;
365 padding: 0px 0px 0px 0px;
366 width: 18px;
367 }
368
369 .table input[type=checkbox]:checked + span
370 {
371 background-position: -68px 0px;
372 height: 18px;
373 padding: 0px;
374 width: 18px;
375 }
376
377 .table button.delete
378 {
379 background-color: transparent;
380 background-position: -9px -32px;
381 border: 0px;
382 height: 10px;
383 margin-top: 5px;
384 -moz-margin-end: 20px;
385 -webkit-margin-end: 20px;
386 padding: 0px;
387 cursor: pointer;
388 width: 10px;
389 }
390
391 .table .popular
392 {
393 color: #1E8728;
394 font-size: 12px;
395 -moz-padding-end: 12px;
396 -webkit-padding-end: 12px;
397 }
398
399 .tabs.horizontal
400 {
401 margin-bottom: 0px;
402 padding: 0px;
403 }
404
405 .tabs.horizontal li
406 {
407 border-bottom: 1px solid #A1A1A1;
408 display: inline-block;
409 color: #3A7BA6;
410 padding: 10px 0px 11px 0px;
411 text-align: center;
412 width: 50%;
413 }
414
415 .tabs.horizontal li.active
416 {
417 border-bottom: 2px solid #1E8728;
418 color: black;
419 font-weight: bold;
420 padding-bottom: 10px;
421 }
422
423 .icon, .table input[type=checkbox] + span, .table button.delete,
424 #content-help a:before, #modal-close:before
425 {
426 background-image: url(options-sprite.png);
427 display: inline-block;
428 }
429
430 .icon-add
431 {
432 background-position: -0px -0px;
433 cursor: pointer;
434 height: 18px;
435 width: 18px;
436 }
437
438 .icon-update
439 {
440 background-position: -34px -0px;
441 cursor: pointer;
442 height: 18px;
443 width: 18px;
444 }
445
446 .icon-edit
447 {
448 background-position: -17px -0px;
449 cursor: pointer;
450 height: 18px;
451 width: 18px;
452 }
453
454 .icon-arrow,
455 #content-help a:before
456 {
457 background-position: 0px -42px;
458 content: "";
459 cursor: pointer;
460 height: 11px;
461 vertical-align: middle;
462 width: 7px;
463 }
464
465 .controls
466 {
467 margin-top: 8px;
468 -moz-margin-start: 16px;
469 -webkit-margin-start: 16px;
470 position: relative;
471 }
472
473 .controls > div
474 {
475 display: flex;
476 }
477
478 #whitelisting .controls
479 {
480 -moz-margin-start: 12px;
481 -webkit-margin-start: 12px;
482 }
483
484 #whitelisting .controls input[type=text],
485 #whitelisting .controls input[type=text]:focus
486 {
487 border: 0px;
488 border-bottom: 1px solid #A1A1A1;
489 -moz-padding-end: 25px;
490 -webkit-padding-end: 25px;
491 -moz-margin-start: 14px;
492 -webkit-margin-start: 14px;
493 outline: 0px;
494 padding-bottom: 5px;
495 vertical-align: text-bottom;
496 width: 330px;
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 .text-blue
520 {
521 color: #3A7BA6;
522 display: inline-block;
523 -moz-margin-start: 15px;
524 -webkit-margin-start: 15px;
525 vertical-align: top;
526 }
527
528 #content-help
529 {
530 counter-reset: section;
531 }
532
533 #content-help h1:before
534 {
535 counter-increment: section;
536 content: counter(section) ". ";
537 }
538
539 #content-help a
540 {
541 color: #3A7BA6;
542 display: inline-block;
543 text-decoration: none;
544 -moz-margin-end: 16px;
545 -webkit-margin-end: 16px;
546 vertical-align: top;
547 }
548
549 #content-help a:before
550 {
551 -moz-margin-end: 6px;
552 -webkit-margin-end: 6px;
553 }
554
555 .nav-link
556 {
557 -moz-margin-start: 12px;
558 -webkit-margin-start: 12px;
559 color: #3A7BA6;
560 }
561
562 #blocking-list-own input[type=text],
563 #blocking-list-own input[type=text]:focus
564 {
565 border: 0px;
566 border-bottom: 1px solid;
567 border-top: 1px solid;
568 border-color: #1E8728;
569 box-sizing: border-box;
570 height: 25px;
571 outline: 0px;
572 padding-left: 10px;
573 width: 100%;
574 }
575
576 .icon-enter-blue
577 {
578 background-position: -28px -85px;
579 cursor: pointer;
580 height: 10px;
581 margin: 0px 0px -2px 2px;
582 width: 10px;
583 }
584
585 #blocking-list-own .input-control
586 {
587 position: absolute;
588 bottom: 5px;
589 right: 10px;
590 }
591
592 #blocking-list-own .input-separator
593 {
594 display: inline-block;
595 border-right: 1px solid #CDCDCD;
596 height: 15px;
597 margin: 0px 4px -4px 0px;
598 width: 1px;
599 }
600
601 #blocking-list-own .input-btn-text
602 {
603 font-size: 12px;
604 }
605
606 .icon-enter
607 {
608 background-position: -18px -85px;
609 cursor: pointer;
610 height: 10px;
611 position: absolute;
612 top: 2px;
613 -moz-margin-start: -20px;
614 -webkit-margin-start: -20px;
615 width: 10px;
616 }
617
618 .button-add, .cancelbtn
619 {
620 background-color: transparent;
621 border: 0px;
622 color: #3A7BA6;
623 cursor: pointer;
624 }
625
626 .controls .button-add span
627 {
628 -moz-margin-start: 5px !important;
629 -webkit-margin-start: 5px !important;
630 }
631
632 #other-language .button-add
633 {
634 -webkit-border-end: 1px solid #CDCDCD;
635 -moz-border-end: 1px solid #CDCDCD;
636 -webkit-padding-end: 10px;
637 -moz-padding-end: 10px;
638 -webkit-padding-start: 0px;
639 -moz-padding-start: 0px;
640 }
641
642 #other-language .display
643 {
644 -webkit-margin-start: 10px;
645 -moz-margin-start: 10px;
646 }
647
648 #whitelisting .button-add
649 {
650 -moz-margin-start: 32px;
651 -webkit-margin-start: 32px;
652 }
653
654 #whitelisting-add-btn + span
655 {
656 flex: 1;
657 }
658
659 .cancelbtn
660 {
661 float: right;
662 }
663
664 .highlighted, #block-element-explanation a
665 {
666 border-bottom: dotted 2px;
667 color: #3A7BA6;
668 font-size: 12px;
669 text-decoration: none;
670 }
671
672 #content-advanced .highlighted
673 {
674 -moz-margin-start: 8px;
675 -webkit-margin-start: 8px;
676 }
677
678 #block-element-explanation a
679 {
680 color: black;
681 border-bottom-color: #3A7BA6;
682 font-weight: bold;
683 padding-left: 0px !important;
684 }
685
686 #modal
687 {
688 background-color: #FFFFFF;
689 border: 2px solid #4D9D4B;
690 border-radius: 3px;
691 left:50%;
692 top:50%;
693 margin:0 auto;
694 margin-left:-200px;
695 margin-top:-200px;
696 position:absolute;
697 z-index: 2;
698 visibility: hidden;
699 width: 400px;
700 }
701
702 #modal header
703 {
704 background-color: #4D9D4B;
705 display: flex;
706 height: 25px;
707 padding: 10px;
708 }
709
710 #modal-close
711 {
712 -moz-border-start: 1px solid #25612B;
713 -webkit-border-start: 1px solid #25612B;
714 color: #0F660F;
715 display: inline-block;
716 height: 20px;
717 font-size: 15px;
718 -moz-padding-start: 10px;
719 -webkit-padding-start: 10px;
720 }
721
722 #modal-close:before
723 {
724 background-position: -9px -32px;
725 content: "";
726 cursor: pointer;
727 height: 12px;
728 width: 12px;
729 vertical-align: middle;
730 -moz-margin-end: 6px;
731 -webkit-margin-end: 6px;
732 }
733
734 #modal .content
735 {
736 margin: 4px 24px;
737 }
738
739 #modal h3
740 {
741 font-size: 14px;
742 margin: 0px;
743 }
744
745 #modal .content input[type=text]
746 {
747 -webkit-box-sizing: border-box;
748 -moz-box-sizing: border-box;
749 box-sizing: border-box;
750 font-size: 16px;
751 margin-top: 10px;
752 padding: 5px;
753 width: 100%;
754 }
755
756 #modal .table
757 {
758 width: 100%;
759 }
760
761 #modal #other-language .table
762 {
763 height: 200px;
764 overflow: auto;
765 }
766
767 #modal .section:not(:first-child)
768 {
769 margin-top: 24px;
770 }
771
772 #modal .close-wrapper
773 {
774 margin-right: 16px !important;
775 }
776
777 #modal-title
778 {
779 -moz-margin-start: 16px;
780 -webkit-margin-start: 16px;
781 flex: 1;
782 font-size: 16px;
783 color: #FFFFFF;
784 }
785
786 #modal .content > div > div
787 {
788 padding: 12px 0px;
789 }
790
791 #modal-content > div
792 {
793 display: none;
794 }
795
796 #modal .btn-wrapper
797 {
798 background-color: #F5F5F5;
799 margin-top: 8px;
800 padding: 10px 16px;
801 cursor: pointer;
802 width: auto;
803 }
804
805 #modal .btn-wrapper .text-blue
806 {
807 margin-left: 12px;
808 }
OLDNEW
« options.html ('K') | « options.js ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld