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

Side by Side Diff: skin/options.css

Issue 29321240: Issue 2359 - Polished design of options page sidebar (Closed)
Patch Set: Created July 9, 2015, 4:41 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 | « skin/fonts/SourceSansPro-Semibold.woff ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 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 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 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/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 @font-face
19 {
20 font-family: "Source Sans Pro";
21 src: url(fonts/SourceSansPro-Light.woff) format("woff");
22 font-weight: 300;
23 font-style: normal;
24 }
25
26 @font-face
27 {
28 font-family: "Source Sans Pro";
29 src: url(fonts/SourceSansPro-Regular.woff) format("woff");
30 font-weight: 400;
31 font-style: normal;
32 }
33
34 @font-face
35 {
36 font-family: "Source Sans Pro";
37 src: url(fonts/SourceSansPro-Semibold.woff) format("woff");
38 font-weight: 600;
39 font-style: normal;
40 }
41
18 body 42 body
19 { 43 {
20 background-color: #F5F5F5; 44 background-color: #F5F5F5;
21 display: flex; 45 display: flex;
46 margin: 20px 10px;
22 font-family: "Source Sans Pro", sans-serif; 47 font-family: "Source Sans Pro", sans-serif;
23 font-size: 14px; 48 font-size: 14px;
24 white-space: nowrap;
25 } 49 }
26 50
27 h1 51 h1
28 { 52 {
29 font-size: 24px; 53 font-size: 24px;
30 font-weight: 100; 54 line-height: 1em;
55 font-weight: 300;
31 } 56 }
32 57
33 h2 58 h2
34 { 59 {
35 font-size: 16px; 60 font-size: 16px;
36 font-weight: 500; 61 font-weight: 600;
37 } 62 }
38 63
39 p 64 p
40 { 65 {
41 font-weight: 100; 66 font-weight: 300;
42 } 67 }
43 68
44 hr 69 hr
45 { 70 {
46 background-color: #CDCDCD; 71 background-color: #CDCDCD;
47 border: 0px; 72 border: 0px;
48 height: 1px; 73 height: 1px;
49 margin: 0px; 74 margin: 0px;
50 } 75 }
51 76
52 input[type="search"]::-webkit-search-cancel-button 77 input[type="search"]::-webkit-search-cancel-button
53 { 78 {
54 display: none; 79 display: none;
55 } 80 }
56 81
57 .option-name 82 .option-name
58 { 83 {
59 display: flex; 84 display: flex;
60 } 85 }
61 86
62 .option-name > * 87 .option-name > *
63 { 88 {
64 -moz-margin-end: 6px; 89 -moz-margin-end: 6px;
65 -webkit-margin-end: 6px; 90 -webkit-margin-end: 6px;
66 } 91 }
67 92
68 #nav-sidebar 93 #nav-sidebar
69 { 94 {
70 position: relative;
71 padding: 0px 0px 16px 0px;
72 -moz-padding-start: 10px;
73 -webkit-padding-start: 10px;
74 min-width: 198px; 95 min-width: 198px;
75 } 96 }
76 97
77 #nav-sidebar .fixed 98 #nav-sidebar .fixed
78 { 99 {
79 height: 100%; 100 top: 40px;
101 bottom: 2px;
102 height: auto;
80 position: fixed; 103 position: fixed;
81 } 104 }
82 105
83 #page-title 106 #page-title
84 { 107 {
85 -webkit-margin-start: 10px; 108 padding: 0px 20px;
86 -moz-margin-start: 10px;
87 } 109 }
88 110
89 #page-title p 111 #page-title p
90 { 112 {
91 margin: 0px; 113 margin: 0px;
92 padding: 40px 0px 0px 0px;
93 font-size: 16px; 114 font-size: 16px;
115 line-height: 1em;
94 } 116 }
95 117
96 #page-title h1 118 #page-title h1
97 { 119 {
98 margin: 0px; 120 margin: 0px;
99 padding: 8px 0px 16px 0px; 121 padding: 8px 0px 16px 0px;
100 } 122 }
101 123
102 .flex-container 124 .flex-container
103 { 125 {
104 display: flex; 126 display: flex;
105 flex-flow: row wrap; 127 flex-flow: row wrap;
106 } 128 }
107 129
108 .tabs li 130 .tabs li
109 { 131 {
110 cursor: pointer; 132 cursor: pointer;
111 display: flex; 133 display: flex;
112 } 134 }
113 135
114 .tabs li a:first-child 136 .tabs li a
115 { 137 {
116 flex: 1; 138 flex: 1;
117 color: inherit; 139 color: inherit;
118 text-decoration: none; 140 text-decoration: none;
119 } 141 }
120 142
121 .tabs.vertical 143 .tabs.vertical
122 { 144 {
123 list-style: none; 145 list-style: none;
124 margin: 0px; 146 margin: 0px;
125 position: relative; 147 position: relative;
126 padding: 0px; 148 padding: 0px;
127 width: 198px; 149 width: 198px;
128 } 150 }
129 151
130 .tabs.vertical li 152 .tabs.vertical li
131 { 153 {
132 border-color: #CDCDCD; 154 border-color: #CDCDCD transparent;
133 border-style: solid; 155 border-style: solid;
134 border-width: 1px 0px 0px 0px; 156 border-width: 1px;
135 font-size: 16px; 157 font-size: 16px;
136 font-weight: 100; 158 font-weight: 300;
137 padding: 16px 0px; 159 line-height: 1em;
138 -moz-padding-end: 20px; 160 margin-top: -1px;
139 -webkit-padding-end: 20px; 161 padding: 14px 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 } 162 }
156 163
157 body[data-tab="general"] #tab-general, 164 body[data-tab="general"] #tab-general,
158 body[data-tab="advanced"] #tab-advanced, 165 body[data-tab="advanced"] #tab-advanced,
159 body[data-tab="help"] #tab-help 166 body[data-tab="help"] #tab-help
160 { 167 {
161 background-color: #FFFFFF; 168 background-color: #FFFFFF;
162 border-radius: 3px 0px 0px 3px; 169 border-radius: 3px 0px 0px 3px;
163 border-width: 1px; 170 border-width: 1px;
164 -moz-border-end: 0px; 171 font-weight: 600;
165 -webkit-border-end: 0px; 172 -moz-border-start-color: #CDCDCD;
166 font-weight: 900; 173 -webkit-border-start-color: #CDCDCD;
167 -moz-margin-end: -1px; 174 -moz-margin-end: -1px;
168 -webkit-margin-end: -1px; 175 -webkit-margin-end: -1px;
169 -moz-padding-start: 10px; 176 -moz-margin-start: -1px;
170 -webkit-padding-start: 10px; 177 -webkit-margin-start: -1px;
171 position: relative; 178 -moz-padding-end: 21px;
179 -webkit-padding-end: 21px;
180 -moz-padding-start: 21px;
saroyanm 2015/07/09 17:48:14 I assume you are not using "padding: 14px 20px;" n
Thomas Greiner 2015/07/10 09:48:14 Exactly, unfortunately there's no nice way to hand
181 -webkit-padding-start: 21px;
182 }
183
184 html[dir="rtl"] body[data-tab="general"] #tab-general,
185 html[dir="rtl"] body[data-tab="advanced"] #tab-advanced,
186 html[dir="rtl"] body[data-tab="help"] #tab-help
187 {
188 border-radius: 0px 3px 3px 0px;
172 } 189 }
173 190
174 .tabs.vertical.bottom 191 .tabs.vertical.bottom
175 { 192 {
176 bottom: 0px; 193 bottom: 0px;
177 position: absolute; 194 position: absolute;
178 } 195 }
179 196
180 .tabs.vertical.bottom li:first-child 197 .tabs.vertical.bottom li:first-child
181 { 198 {
182 border-top: 0px; 199 border-top: 0px;
183 } 200 }
184 201
185 .tabs.vertical .icon 202 #tab-contribute
186 { 203 {
187 margin: 2px 0px 0px 0px; 204 border-bottom: none;
205 }
206
207 #nav-sidebar ul li .icon
208 {
209 height: 14px;
210 width: 14px;
188 } 211 }
189 212
190 #tab-general .icon 213 #tab-general .icon
191 { 214 {
192 background-position: -15px -17px; 215 background-position: -16px -18px;
193 height: 16px;
194 width: 16px;
195 } 216 }
196 217
197 #tab-advanced .icon 218 #tab-advanced .icon
198 { 219 {
199 background-position: -45px -18px; 220 background-position: -46px -18px;
200 height: 16px;
201 width: 16px;
202 } 221 }
203 222
204 #tab-help .icon 223 #tab-help .icon
205 { 224 {
206 background-position: 0px -17px; 225 background-position: -1px -18px;
207 height: 16px;
208 width: 16px;
209 } 226 }
210 227
211 #tab-share .icon 228 #tab-share .icon
212 { 229 {
213 background-position: -60px -17px; 230 background-position: -61px -18px;
214 height: 16px;
215 width: 16px;
216 } 231 }
217 232
218 #tab-contribute .icon 233 #tab-contribute .icon
219 { 234 {
220 background-position: -30px -17px; 235 background-position: -31px -18px;
221 height: 16px;
222 width: 16px;
223 } 236 }
224 237
225 #tab-content 238 #tab-content
226 { 239 {
227 background-color: #FFFFFF; 240 background-color: #FFFFFF;
228 border: 1px solid #CDCDCD; 241 border: 1px solid #CDCDCD;
229 border-radius: 8px; 242 border-radius: 8px;
230 padding: 0px 60px 40px 60px; 243 padding: 0px 60px 40px 60px;
231 width: 960px; 244 width: 960px;
232 } 245 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 color: #3A7BA6; 432 color: #3A7BA6;
420 padding: 10px 0px 11px 0px; 433 padding: 10px 0px 11px 0px;
421 text-align: center; 434 text-align: center;
422 width: 50%; 435 width: 50%;
423 } 436 }
424 437
425 .tabs.horizontal li.active 438 .tabs.horizontal li.active
426 { 439 {
427 border-bottom: 2px solid #1E8728; 440 border-bottom: 2px solid #1E8728;
428 color: black; 441 color: black;
429 font-weight: bold; 442 font-weight: 600;
430 padding-bottom: 10px; 443 padding-bottom: 10px;
431 } 444 }
432 445
433 .icon, .table input[type="checkbox"]::before, .table button.delete, 446 .icon, .table input[type="checkbox"]::before, .table button.delete,
434 #content-help a::before, #dialog-close::before 447 #content-help a::before, #dialog-close::before
435 { 448 {
436 background-image: url(options-sprite.png); 449 background-image: url(options-sprite.png);
437 display: inline-block; 450 display: inline-block;
438 } 451 }
439 452
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 #content-advanced .tooltip 675 #content-advanced .tooltip
663 { 676 {
664 -moz-margin-start: 8px; 677 -moz-margin-start: 8px;
665 -webkit-margin-start: 8px; 678 -webkit-margin-start: 8px;
666 } 679 }
667 680
668 #block-element-explanation a 681 #block-element-explanation a
669 { 682 {
670 color: black; 683 color: black;
671 border-bottom-color: #3A7BA6; 684 border-bottom-color: #3A7BA6;
672 font-weight: bold; 685 font-weight: 600;
673 -moz-padding-start: 0px; 686 -moz-padding-start: 0px;
674 -webkit-padding-start: 0px; 687 -webkit-padding-start: 0px;
675 } 688 }
676 689
677 /* 690 /*
678 Help tab content 691 Help tab content
679 */ 692 */
680 693
681 #content-help 694 #content-help
682 { 695 {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 -moz-padding-end: 10px; 889 -moz-padding-end: 10px;
877 -webkit-padding-start: 0px; 890 -webkit-padding-start: 0px;
878 -moz-padding-start: 0px; 891 -moz-padding-start: 0px;
879 } 892 }
880 893
881 #other-language .display 894 #other-language .display
882 { 895 {
883 -webkit-margin-start: 10px; 896 -webkit-margin-start: 10px;
884 -moz-margin-start: 10px; 897 -moz-margin-start: 10px;
885 } 898 }
OLDNEW
« no previous file with comments | « skin/fonts/SourceSansPro-Semibold.woff ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld