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: Fixed adjustment of sidebar icons in sprite Created July 10, 2015, 11:48 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
« no previous file with comments | « skin/fonts/SourceSansPro-Semibold.woff ('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
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);
22 /* local("Ø") forces using no local font called Source Sans Pro */
23 src: local("Ø"), url(fonts/SourceSansPro-Light.woff) format("woff");
24 font-weight: 300;
25 font-style: normal;
26 }
27
28 @font-face
29 {
30 font-family: "Source Sans Pro";
31 src: url(fonts/SourceSansPro-Regular.woff);
32 /* local("Ø") forces using no local font called Source Sans Pro */
33 src: local("Ø"), url(fonts/SourceSansPro-Regular.woff) format("woff");
34 font-weight: 400;
35 font-style: normal;
36 }
37
38 @font-face
39 {
40 font-family: "Source Sans Pro";
41 src: url(fonts/SourceSansPro-Semibold.woff);
42 /* local("Ø") forces using no local font called Source Sans Pro */
43 src: local("Ø"), url(fonts/SourceSansPro-Semibold.woff) format("woff");
44 font-weight: 600;
45 font-style: normal;
46 }
47
18 body 48 body
19 { 49 {
20 background-color: #F5F5F5; 50 background-color: #F5F5F5;
21 display: flex; 51 display: flex;
52 margin: 20px 10px;
22 font-family: "Source Sans Pro", sans-serif; 53 font-family: "Source Sans Pro", sans-serif;
23 font-size: 14px; 54 font-size: 14px;
24 white-space: nowrap;
25 } 55 }
26 56
27 h1 57 h1
28 { 58 {
29 font-size: 24px; 59 font-size: 24px;
30 font-weight: 100; 60 line-height: 1em;
61 font-weight: 300;
31 } 62 }
32 63
33 h2 64 h2
34 { 65 {
35 font-size: 16px; 66 font-size: 16px;
36 font-weight: 500; 67 font-weight: 600;
37 } 68 }
38 69
39 p 70 p
40 { 71 {
41 font-weight: 100; 72 font-weight: 300;
42 } 73 }
43 74
44 hr 75 hr
45 { 76 {
46 background-color: #CDCDCD; 77 background-color: #CDCDCD;
47 border: 0px; 78 border: 0px;
48 height: 1px; 79 height: 1px;
49 margin: 0px; 80 margin: 0px;
50 } 81 }
51 82
52 input[type="search"]::-webkit-search-cancel-button 83 input[type="search"]::-webkit-search-cancel-button
53 { 84 {
54 display: none; 85 display: none;
55 } 86 }
56 87
57 .option-name 88 .option-name
58 { 89 {
59 display: flex; 90 display: flex;
60 } 91 }
61 92
62 .option-name > * 93 .option-name > *
63 { 94 {
64 -moz-margin-end: 6px; 95 -moz-margin-end: 6px;
65 -webkit-margin-end: 6px; 96 -webkit-margin-end: 6px;
66 } 97 }
67 98
68 #nav-sidebar 99 #nav-sidebar
69 { 100 {
70 position: relative;
71 padding: 0px 0px 16px 0px;
72 -moz-padding-start: 10px;
73 -webkit-padding-start: 10px;
74 min-width: 198px; 101 min-width: 198px;
75 } 102 }
76 103
77 #nav-sidebar .fixed 104 #nav-sidebar .fixed
78 { 105 {
79 height: 100%; 106 top: 40px;
107 bottom: 2px;
108 height: auto;
80 position: fixed; 109 position: fixed;
81 } 110 }
82 111
83 #page-title 112 #page-title
84 { 113 {
85 -webkit-margin-start: 10px; 114 padding: 0px 20px;
86 -moz-margin-start: 10px;
87 } 115 }
88 116
89 #page-title p 117 #page-title p
90 { 118 {
91 margin: 0px; 119 margin: 0px;
92 padding: 40px 0px 0px 0px;
93 font-size: 16px; 120 font-size: 16px;
121 line-height: 1em;
94 } 122 }
95 123
96 #page-title h1 124 #page-title h1
97 { 125 {
98 margin: 0px; 126 margin: 0px;
99 padding: 8px 0px 16px 0px; 127 padding: 8px 0px 16px 0px;
100 } 128 }
101 129
102 .flex-container 130 .flex-container
103 { 131 {
104 display: flex; 132 display: flex;
105 flex-flow: row wrap; 133 flex-flow: row wrap;
106 } 134 }
107 135
108 .tabs li 136 .tabs li
109 { 137 {
110 cursor: pointer; 138 cursor: pointer;
111 display: flex; 139 display: flex;
112 } 140 }
113 141
114 .tabs li a:first-child 142 .tabs li a
115 { 143 {
116 flex: 1; 144 flex: 1;
117 color: inherit; 145 color: inherit;
118 text-decoration: none; 146 text-decoration: none;
119 } 147 }
120 148
121 .tabs.vertical 149 .tabs.vertical
122 { 150 {
123 list-style: none; 151 list-style: none;
124 margin: 0px; 152 margin: 0px;
125 position: relative; 153 position: relative;
126 padding: 0px; 154 padding: 0px;
127 width: 198px; 155 width: 198px;
128 } 156 }
129 157
130 .tabs.vertical li 158 .tabs.vertical li
131 { 159 {
132 border-color: #CDCDCD; 160 border-color: #CDCDCD transparent;
133 border-style: solid; 161 border-style: solid;
134 border-width: 1px 0px 0px 0px; 162 border-width: 1px;
135 font-size: 16px; 163 font-size: 16px;
136 font-weight: 100; 164 font-weight: 300;
137 padding: 16px 0px; 165 line-height: 1em;
138 -moz-padding-end: 20px; 166 margin-top: -1px;
139 -webkit-padding-end: 20px; 167 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 } 168 }
156 169
157 body[data-tab="general"] #tab-general, 170 body[data-tab="general"] #tab-general,
158 body[data-tab="advanced"] #tab-advanced, 171 body[data-tab="advanced"] #tab-advanced,
159 body[data-tab="help"] #tab-help 172 body[data-tab="help"] #tab-help
160 { 173 {
161 background-color: #FFFFFF; 174 background-color: #FFFFFF;
162 border-radius: 3px 0px 0px 3px; 175 border-radius: 3px 0px 0px 3px;
163 border-width: 1px; 176 border-width: 1px;
164 -moz-border-end: 0px; 177 font-weight: 600;
165 -webkit-border-end: 0px; 178 -moz-border-start-color: #CDCDCD;
166 font-weight: 900; 179 -webkit-border-start-color: #CDCDCD;
167 -moz-margin-end: -1px; 180 -moz-margin-end: -1px;
168 -webkit-margin-end: -1px; 181 -webkit-margin-end: -1px;
169 -moz-padding-start: 10px; 182 -moz-margin-start: -1px;
170 -webkit-padding-start: 10px; 183 -webkit-margin-start: -1px;
171 position: relative; 184 -moz-padding-end: 21px;
185 -webkit-padding-end: 21px;
186 -moz-padding-start: 21px;
187 -webkit-padding-start: 21px;
188 }
189
190 html[dir="rtl"] body[data-tab="general"] #tab-general,
191 html[dir="rtl"] body[data-tab="advanced"] #tab-advanced,
192 html[dir="rtl"] body[data-tab="help"] #tab-help
193 {
194 border-radius: 0px 3px 3px 0px;
172 } 195 }
173 196
174 .tabs.vertical.bottom 197 .tabs.vertical.bottom
175 { 198 {
176 bottom: 0px; 199 bottom: 0px;
177 position: absolute; 200 position: absolute;
178 } 201 }
179 202
180 .tabs.vertical.bottom li:first-child 203 .tabs.vertical.bottom li:first-child
181 { 204 {
182 border-top: 0px; 205 border-top: 0px;
183 } 206 }
184 207
185 .tabs.vertical .icon 208 #tab-contribute
186 { 209 {
187 margin: 2px 0px 0px 0px; 210 border-bottom: none;
211 }
212
213 #nav-sidebar ul li .icon
214 {
215 height: 14px;
216 width: 14px;
188 } 217 }
189 218
190 #tab-general .icon 219 #tab-general .icon
191 { 220 {
192 background-position: -15px -17px; 221 background-position: -16px -18px;
193 height: 16px;
194 width: 16px;
195 } 222 }
196 223
197 #tab-advanced .icon 224 #tab-advanced .icon
198 { 225 {
199 background-position: -45px -18px; 226 background-position: -46px -18px;
200 height: 16px;
201 width: 16px;
202 } 227 }
203 228
204 #tab-help .icon 229 #tab-help .icon
205 { 230 {
206 background-position: 0px -17px; 231 background-position: -1px -18px;
207 height: 16px;
208 width: 16px;
209 } 232 }
210 233
211 #tab-share .icon 234 #tab-share .icon
212 { 235 {
213 background-position: -60px -17px; 236 background-position: -61px -18px;
214 height: 16px;
215 width: 16px;
216 } 237 }
217 238
218 #tab-contribute .icon 239 #tab-contribute .icon
219 { 240 {
220 background-position: -30px -17px; 241 background-position: -31px -18px;
221 height: 16px;
222 width: 16px;
223 } 242 }
224 243
225 #tab-content 244 #tab-content
226 { 245 {
227 background-color: #FFFFFF; 246 background-color: #FFFFFF;
228 border: 1px solid #CDCDCD; 247 border: 1px solid #CDCDCD;
229 border-radius: 8px; 248 border-radius: 8px;
230 padding: 0px 60px 40px 60px; 249 padding: 0px 60px 40px 60px;
231 width: 960px; 250 width: 960px;
232 } 251 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 color: #3A7BA6; 438 color: #3A7BA6;
420 padding: 10px 0px 11px 0px; 439 padding: 10px 0px 11px 0px;
421 text-align: center; 440 text-align: center;
422 width: 50%; 441 width: 50%;
423 } 442 }
424 443
425 .tabs.horizontal li.active 444 .tabs.horizontal li.active
426 { 445 {
427 border-bottom: 2px solid #1E8728; 446 border-bottom: 2px solid #1E8728;
428 color: black; 447 color: black;
429 font-weight: bold; 448 font-weight: 600;
430 padding-bottom: 10px; 449 padding-bottom: 10px;
431 } 450 }
432 451
433 .icon, .table input[type="checkbox"]::before, .table button.delete, 452 .icon, .table input[type="checkbox"]::before, .table button.delete,
434 #content-help a::before, #dialog-close::before 453 #content-help a::before, #dialog-close::before
435 { 454 {
436 background-image: url(options-sprite.png); 455 background-image: url(options-sprite.png);
437 display: inline-block; 456 display: inline-block;
438 } 457 }
439 458
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 #content-advanced .tooltip 681 #content-advanced .tooltip
663 { 682 {
664 -moz-margin-start: 8px; 683 -moz-margin-start: 8px;
665 -webkit-margin-start: 8px; 684 -webkit-margin-start: 8px;
666 } 685 }
667 686
668 #block-element-explanation a 687 #block-element-explanation a
669 { 688 {
670 color: black; 689 color: black;
671 border-bottom-color: #3A7BA6; 690 border-bottom-color: #3A7BA6;
672 font-weight: bold; 691 font-weight: 600;
673 -moz-padding-start: 0px; 692 -moz-padding-start: 0px;
674 -webkit-padding-start: 0px; 693 -webkit-padding-start: 0px;
675 } 694 }
676 695
677 /* 696 /*
678 Help tab content 697 Help tab content
679 */ 698 */
680 699
681 #content-help 700 #content-help
682 { 701 {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 -moz-padding-end: 10px; 895 -moz-padding-end: 10px;
877 -webkit-padding-start: 0px; 896 -webkit-padding-start: 0px;
878 -moz-padding-start: 0px; 897 -moz-padding-start: 0px;
879 } 898 }
880 899
881 #other-language .display 900 #other-language .display
882 { 901 {
883 -webkit-margin-start: 10px; 902 -webkit-margin-start: 10px;
884 -moz-margin-start: 10px; 903 -moz-margin-start: 10px;
885 } 904 }
OLDNEW
« no previous file with comments | « skin/fonts/SourceSansPro-Semibold.woff ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld