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

Side by Side Diff: static/css/main.css

Issue 29551738: Issue 5634 - Replaced logo and refactored navbar width and colors (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Removed merge artifact Created Oct. 6, 2017, 4:19 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 | « static/css/index-mobile.css ('k') | static/css/main-desktop.css » ('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 * Base styles 2 * Base styles
3 ******************************************************************************/ 3 ******************************************************************************/
4 html { 4 html {
5 color: #212121; 5 color: #212121;
6 background-color: #fff; 6 background-color: #fff;
7 font-family: sans-serif; 7 font-family: sans-serif;
8 line-height: 1.5; } 8 line-height: 1.5; }
9 9
10 /** 10 /**
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 width: 33.333333%; } 85 width: 33.333333%; }
86 .two-thirds { 86 .two-thirds {
87 width: 66.666667%; } 87 width: 66.666667%; }
88 .one-fourth { 88 .one-fourth {
89 width: 25%; } 89 width: 25%; }
90 .three-fourths { 90 .three-fourths {
91 width: 75%; } } 91 width: 75%; } }
92 92
93 * 93 *
94 { 94 {
95 font-family: Arial, sans; 95 font-family: 'Source Sans Pro', sans-serif;
96 font-size: 16px; 96 font-size: 16px;
97 } 97 }
98 98
99 body 99 body
100 { 100 {
101 margin: 0; 101 margin: 0;
102 line-height: 1.5; 102 line-height: 1.5;
103 } 103 }
104 104
105 a img 105 a img
(...skipping 25 matching lines...) Expand all
131 } 131 }
132 132
133 .sprite 133 .sprite
134 { 134 {
135 display: inline-block; 135 display: inline-block;
136 font-size: 0px; /* fix for IE6 height bug */ 136 font-size: 0px; /* fix for IE6 height bug */
137 background-image: url(../img/sprite-main.png); 137 background-image: url(../img/sprite-main.png);
138 background-repeat: no-repeat; 138 background-repeat: no-repeat;
139 } 139 }
140 140
141 nav ul 141 /*******************************************************************************
142 { 142 * #navbar
143 list-style: none; 143 ******************************************************************************/
144 margin: 0; 144
145 padding: 0; 145 #navbar
146 } 146 {
147 147 height: 4em;
148 nav a:link, nav a:visited 148 background-color: #c70d2c;
149 { 149 }
150 color: #7d7d7d; 150
151 #navbar ul
152 {
153 margin: 0em;
154 padding: 0em;
155 }
156
157 #navbar li
158 {
159 list-style-type: none;
160 }
161
162 #navbar .container
163 {
164 padding: 0em;
165 }
166
167 @media(max-width: 1199px)
168 {
169 #navbar .container
170 {
171 width: 100%;
172 }
173 }
174
175 /* #navbar #logo
176 ******************************************************************************/
177
178 #logo
179 {
180 padding-left: 1em;
181 padding-right: 1em;
182 color: #fff;
183 }
184
185 #logo:hover,
186 #logo:active,
187 #logo:focus
188 {
189 background-color: #AE0013;
151 text-decoration: none; 190 text-decoration: none;
152 } 191 }
153 192
154 nav a:hover 193 #logo,
155 { 194 #logo > *
156 text-decoration: underline;
157 }
158
159 header
160 { 195 {
161 display: block; 196 display: block;
162 position: relative; 197 float: left;
163 background: white; 198 }
164 border: 1px solid #d9d9d9; 199
165 border-top: none; 200 [dir="rtl"] #logo,
166 box-shadow: 1px 1px 0 0 #d9d9d9; 201 [dir="rtl"] #logo > *
167 z-index: 1; 202 {
168 } 203 float: right;
169 204 }
170 header nav li 205
171 { 206 #logo img
172 padding: 0px 5px; 207 {
173 } 208 height: 3em;
174 209 padding-top: 0.5em;
175 header nav li.selected 210 padding-bottom: 0.5em;
176 { 211 margin-right: 1em;
177 color: #db1313; 212 }
178 text-shadow: 1px 1px 1px #eee; 213
179 cursor: default; 214 [dir="rtl"] #logo > img
180 } 215 {
181 216 margin-left: 1em;
182 header nav li.install-link a 217 }
183 { 218
184 color: #048e48; 219 #logo > span
185 } 220 {
186 221 line-height: 2.909090em;
187 header nav li.install-link .install-link-icon 222 font-size: 1.375em;
223 }
224
225 /* #navbar #menu-toggle
226 ******************************************************************************/
227
228 #menu-toggle
229 {
230 display: block;
231 }
232
233 #menu-toggle,
234 #menu-toggle > img
235 {
236 float: right;
237 }
238
239 [dir="rtl"] #menu-toggle,
240 [dir="rtl"] #menu-toggle > img
241 {
242 float: left;
243 }
244
245 #menu-toggle > img
188 { 246 {
189 display: inline-block; 247 display: inline-block;
190 width: 12px; 248 height: 2em;
191 height: 12px; 249 padding: 1em 1em;
192 background-position: -167px -13px; 250 }
193 } 251
194 252 #menu-toggle:hover,
195 .language-entry a 253 #menu-toggle:active,
196 { 254 #menu-toggle:focus
197 display: block; 255 {
198 } 256 background-color: #AE0013;
199 257 }
200 #logo 258
201 { 259 @media(min-width: 992px)
202 position: absolute; 260 {
203 width: 128px; 261 #menu-toggle
204 height: 128px; 262 {
205 background-position: -83px -83px; 263 display: none;
264 }
265 }
266
267 /* #navbar #navbar-menu
268 ******************************************************************************/
269
270 #navbar-menu a
271 {
272 color: #fff;
273 text-decoration: none;
274 }
275
276 /* #navbar #navbar-menu (desktop)
277 ******************************************************************************/
278
279 @media(min-width: 992px)
280 {
281 #navbar-menu
282 {
283 float: right;
284 }
285
286 [dir="rtl"] #navbar-menu
287 {
288 float: left;
289 }
290
291 #navbar-menu > li,
292 #navbar-menu > li > a
293 {
294 display: inline-block;
295 }
296
297 #navbar-menu > li > a
298 {
299 padding-right: 1em;
300 padding-left: 1em;
301 line-height: 4em;
302 }
303
304 #navbar-menu > li > a:hover,
305 #navbar-menu > li > a:active,
306 #navbar-menu > li > a:focus
307 {
308 background-color: #AE0013;
309 }
310
311 /* #navbar #navbar-menu #locale-menu
312 ****************************************************************************/
313
314 #locale-menubar
315 {
316 position: relative;
317 }
318
319 #locale-menu
320 {
321 position: absolute;
322 display: none;
323 min-width: 16em;
324 max-height: 20em;
325 max-height: 50vh;
326 top: 100%;
327 right: 0px;
328 overflow: auto;
329 z-index: 1000;
330 background-color: #292929;
331 }
332
333 [dir="rtl"] #locale-menu
334 {
335 right: auto;
336 left: 0px;
337 }
338
339 #locale-menu.visible
340 {
341 display: block;
342 }
343
344 #locale-menu > li,
345 #locale-menu > li > a
346 {
347 display: block;
348 white-space: nowrap;
349 }
350
351 #locale-menu > li > a
352 {
353 padding-left: 1em;
354 padding-right: 1em;
355 line-height: 3em;
356 text-decoration: none;
357 }
358
359 #locale-menu > li > a:hover,
360 #locale-menu > li > a:active,
361 #locale-menu > li > a:focus
362 {
363 background-color: #434343;
364 }
365
366 /* caret */
367 #locale-selected::after
368 {
369 display: inline-block;
370 width: 0;
371 height: 0;
372 margin-left: .255em;
373 vertical-align: .255em;
374 content: "";
375 border-top: .3em solid;
376 border-right: .3em solid transparent;
377 border-left: .3em solid transparent;
378 }
379 }
380
381 /* #navbar #navbar-menu (mobile)
382 ******************************************************************************/
383
384 @media(max-width: 991px)
385 {
386 #navbar-menu
387 {
388 display: none;
389 float: left;
390 background-color: #292929;
391 }
392
393 #navbar-menu.visible,
394 #navbar-menu li,
395 #navbar-menu li a
396 {
397 display: block;
398 }
399
400 #navbar-menu li a
401 {
402 line-height: 3em;
403 padding-left: 1em;
404 padding-right: 1em;
405 }
406
407 #navbar-menu li a:hover,
408 #navbar-menu li a:active,
409 #navbar-menu li a:focus
410 {
411 background-color: #434343;
412 }
413
414 /* locales appear inline in mobile menu */
415 #locale-menu li,
416 #locale-menu a
417 {
418 display: inline-block;
419 }
420
421 /* selected locale does not appear in mobile menu */
422 #navbar-menu #locale-selected
423 {
424 display: none;
425 }
206 } 426 }
207 427
208 #content h1 428 #content h1
209 { 429 {
210 font-size: 30px; 430 font-size: 30px;
211 } 431 }
212 432
213 #content h2 433 #content h2
214 { 434 {
215 font-weight: bold; 435 font-weight: bold;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 595
376 [dir="ltr"] .alert 596 [dir="ltr"] .alert
377 { 597 {
378 border-left: 5px solid #d14841; 598 border-left: 5px solid #d14841;
379 } 599 }
380 600
381 [dir="rtl"] .alert 601 [dir="rtl"] .alert
382 { 602 {
383 border-right: 5px solid #d14841; 603 border-right: 5px solid #d14841;
384 } 604 }
OLDNEW
« no previous file with comments | « static/css/index-mobile.css ('k') | static/css/main-desktop.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld