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

Delta Between Two Patch Sets: 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
Left Patch Set: Detailed refactor after rebase (see comments) Created Oct. 10, 2017, 5:33 p.m.
Right Patch Set: Addressed comments Created Oct. 11, 2017, 11:59 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | static/css/main-desktop.css » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 * 1 *
2 { 2 {
3 font-family: Arial, sans; 3 font-family: Arial, sans;
4 font-size: 16px; 4 font-size: 16px;
5 } 5 }
6 6
7 body 7 body
8 { 8 {
9 margin: 0; 9 margin: 0;
10 line-height: 1.5; 10 line-height: 1.5;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 margin: 4px 0; 94 margin: 4px 0;
95 } 95 }
96 96
97 #footer-main 97 #footer-main
98 { 98 {
99 display: block; 99 display: block;
100 background: white; 100 background: white;
101 box-shadow: 0 -1px 0 0 #b5b4b0, 0 -2px 0 0 #e4e1dc; 101 box-shadow: 0 -1px 0 0 #b5b4b0, 0 -2px 0 0 #e4e1dc;
102 padding: 0; 102 padding: 0;
103 line-height: 1; 103 line-height: 1;
104
105 /* Disable the sticky footer in IE6/7 */
106 .position: relative;
107 .bottom: 220px;
108 } 104 }
109 105
110 #footer-main nav h1, #footer-main nav li 106 #footer-main nav h1, #footer-main nav li
111 { 107 {
112 color: #444444; 108 color: #444444;
113 border-bottom: 1px solid #dedede; 109 border-bottom: 1px solid #dedede;
114 } 110 }
115 111
116 #footer-main h1 112 #footer-main h1
117 { 113 {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 height: 4em; 238 height: 4em;
243 background-color: #c70d2c; 239 background-color: #c70d2c;
244 } 240 }
245 241
246 #navbar li 242 #navbar li
247 { 243 {
248 list-style-type: none; 244 list-style-type: none;
249 } 245 }
250 246
251 /* padding provided by navbar contents */ 247 /* padding provided by navbar contents */
252 #navbar .container 248 .navbar-container
253 { 249 {
254 padding: 0em; 250 width: 1170px;
251 margin: 0 auto;
255 } 252 }
256 253
257 /* full-width under .container max-width */ 254 /* full-width under .container max-width */
258 @media(max-width: 1199px) 255 @media(max-width: 1199px)
259 { 256 {
260 #navbar .container 257 .navbar-container
261 { 258 {
262 width: 100%; 259 width: 100%;
263 } 260 }
264 } 261 }
265 262
266 /* #navbar #navbar-logo 263 /* #navbar #navbar-logo
267 ******************************************************************************/ 264 ******************************************************************************/
268 265
269 #navbar-logo 266 #navbar-logo
270 { 267 {
271 /* padding is visible in hover background-color change */ 268 /* padding is visible in hover background-color change */
272 padding-left: 1em; 269 padding: 0em 1em;
273 padding-right: 1em;
274 color: #fff; 270 color: #fff;
275 } 271 }
276 272
277 #navbar-logo:hover, 273 #navbar-logo:hover,
278 #navbar-logo:active, 274 #navbar-logo:active,
279 #navbar-logo:focus 275 #navbar-logo:focus
280 { 276 {
281 background-color: #AE0013; 277 background-color: #AE0013;
282 text-decoration: none; 278 text-decoration: none;
283 } 279 }
284 280
285 #navbar-logo, 281 #navbar-logo,
286 #navbar-logo > * 282 #navbar-logo > *
287 { 283 {
288 display: block;
289 float: left; 284 float: left;
290 } 285 }
291 286
292 [dir="rtl"] #navbar-logo, 287 [dir="rtl"] #navbar-logo,
293 [dir="rtl"] #navbar-logo > * 288 [dir="rtl"] #navbar-logo > *
294 { 289 {
295 float: right; 290 float: right;
296 } 291 }
297 292
298 #navbar-logo img 293 #navbar-logo img
299 { 294 {
300 height: 4em; 295 height: 4em;
301 padding-top: 0.5em; 296 padding: 0.5em 0em;
302 padding-bottom: 0.5em; 297 margin: 0em 1em 0em 0em;
303 margin-right: 1em;
304 } 298 }
305 299
306 [dir="rtl"] #navbar-logo > img 300 [dir="rtl"] #navbar-logo > img
307 { 301 {
308 margin-left: 1em; 302 margin: 0em 0em 0em 1em;
309 } 303 }
310 304
311 #navbar-logo > span 305 #navbar-logo > span
312 { 306 {
313 /* full-height: 2.91 * 1.375 = ~4em */ 307 /* full-height: 2.91 * 1.375 = ~4em */
314 line-height: 2.91em; 308 line-height: 2.91em;
315 font-size: 1.375em; 309 font-size: 1.375em;
316 } 310 }
317 311
318 /* #navbar #navbar-menu-toggle 312 /* #navbar #navbar-menu-toggle
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 { 359 {
366 display: block; 360 display: block;
367 color: #fff; 361 color: #fff;
368 text-decoration: none; 362 text-decoration: none;
369 } 363 }
370 364
371 /* #navbar #navbar-menu #navbar-locale-menu 365 /* #navbar #navbar-menu #navbar-locale-menu
372 ******************************************************************************/ 366 ******************************************************************************/
373 367
374 /* caret */ 368 /* caret */
375 #navbar-locale-selected::after 369 #navbar-locale-selected:after
376 { 370 {
377 display: inline-block; 371 display: inline-block;
378 width: 0; 372 width: 0;
379 height: 0; 373 height: 0;
380 margin-left: .255em; 374 margin: 0em 0em 0em 0.255em;
381 vertical-align: .255em; 375 vertical-align: .255em;
382 content: ""; 376 content: "";
383 border-top: .3em solid; 377 border-top: .3em solid;
384 border-right: .3em solid transparent; 378 border-right: .3em solid transparent;
385 border-left: .3em solid transparent; 379 border-left: .3em solid transparent;
386 } 380 }
387 381
382 [dir="rtl"] #navbar-locale-selected:after
383 {
384 margin: 0em 0.255em 0em 0em;
385 }
386
388 #navbar-locale-menu 387 #navbar-locale-menu
389 { 388 {
390 display: none; 389 display: none;
391 } 390 }
392 391
393 #navbar-locale-menu.visible 392 #navbar-locale-menu.visible
394 { 393 {
395 display: block; 394 display: block;
396 } 395 }
397 396
(...skipping 25 matching lines...) Expand all
423 } 422 }
424 423
425 #navbar-menu > li, 424 #navbar-menu > li,
426 #navbar-menu > li > a 425 #navbar-menu > li > a
427 { 426 {
428 display: inline-block; 427 display: inline-block;
429 } 428 }
430 429
431 #navbar-menu > li > a 430 #navbar-menu > li > a
432 { 431 {
433 padding-right: 1em; 432 padding: 0em 1em;
434 padding-left: 1em;
435 line-height: 4em; 433 line-height: 4em;
436 } 434 }
437 435
438 #navbar-menu > li > a:hover, 436 #navbar-menu > li > a:hover,
439 #navbar-menu > li > a:active, 437 #navbar-menu > li > a:active,
440 #navbar-menu > li > a:focus 438 #navbar-menu > li > a:focus
441 { 439 {
442 background-color: #AE0013; 440 background-color: #AE0013;
443 } 441 }
444 442
445 /* #navbar #navbar-menu #navbar-locale-menu 443 /* #navbar #navbar-menu #navbar-locale-menu
446 ****************************************************************************/ 444 ****************************************************************************/
447 445
448 #navbar-locale-menubar 446 #navbar-locale-menubar
449 { 447 {
450 position: relative; 448 position: relative;
451 } 449 }
452 450
453 #navbar-locale-menu 451 #navbar-locale-menu
454 { 452 {
455 position: absolute; 453 position: absolute;
456 min-width: 16em; 454 min-width: 16em;
457 max-height: 20em; 455 max-height: 20em;
458 max-height: 50vh; 456 max-height: 50vh;
459 top: 100%; 457 top: 100%;
460 right: 0px; 458 right: 0px;
461 overflow: auto; 459 overflow: auto;
462 z-index: 1000; 460 z-index: 9001;
463 background-color: #292929; 461 background-color: #292929;
464 } 462 }
465 463
466 [dir="rtl"] #navbar-locale-menu 464 [dir="rtl"] #navbar-locale-menu
467 { 465 {
468 right: auto; 466 right: auto;
469 left: 0px; 467 left: 0px;
470 } 468 }
471 } 469 }
472 470
(...skipping 21 matching lines...) Expand all
494 padding: 0.75em 1em; 492 padding: 0.75em 1em;
495 } 493 }
496 494
497 #navbar-menu li a:hover, 495 #navbar-menu li a:hover,
498 #navbar-menu li a:active, 496 #navbar-menu li a:active,
499 #navbar-menu li a:focus 497 #navbar-menu li a:focus
500 { 498 {
501 background-color: #434343; 499 background-color: #434343;
502 } 500 }
503 } 501 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld