| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 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 28 matching lines...) Expand all Loading... | |
| 39 } | 39 } |
| 40 | 40 |
| 41 .sprite | 41 .sprite |
| 42 { | 42 { |
| 43 display: inline-block; | 43 display: inline-block; |
| 44 font-size: 0px; /* fix for IE6 height bug */ | 44 font-size: 0px; /* fix for IE6 height bug */ |
| 45 background-image: url(../img/sprite-main.png); | 45 background-image: url(../img/sprite-main.png); |
| 46 background-repeat: no-repeat; | 46 background-repeat: no-repeat; |
| 47 } | 47 } |
| 48 | 48 |
| 49 nav ul | |
| 50 { | |
| 51 list-style: none; | |
| 52 margin: 0; | |
| 53 padding: 0; | |
| 54 } | |
| 55 | |
| 56 nav a:link, nav a:visited | |
| 57 { | |
| 58 color: #7d7d7d; | |
| 59 text-decoration: none; | |
| 60 } | |
| 61 | |
| 62 nav a:hover | |
| 63 { | |
| 64 text-decoration: underline; | |
| 65 } | |
| 66 | |
| 67 header | |
| 68 { | |
| 69 display: block; | |
| 70 position: relative; | |
| 71 background: white; | |
| 72 border: 1px solid #d9d9d9; | |
| 73 border-top: none; | |
| 74 box-shadow: 1px 1px 0 0 #d9d9d9; | |
| 75 z-index: 1; | |
| 76 } | |
| 77 | |
| 78 header nav li | |
| 79 { | |
| 80 padding: 0px 5px; | |
| 81 } | |
| 82 | |
| 83 header nav li.selected | |
| 84 { | |
| 85 color: #db1313; | |
| 86 text-shadow: 1px 1px 1px #eee; | |
| 87 cursor: default; | |
| 88 } | |
| 89 | |
| 90 header nav li.install-link a | |
| 91 { | |
| 92 color: #048e48; | |
| 93 } | |
| 94 | |
| 95 header nav li.install-link .install-link-icon | |
| 96 { | |
| 97 display: inline-block; | |
| 98 width: 12px; | |
| 99 height: 12px; | |
| 100 background-position: -167px -13px; | |
| 101 } | |
| 102 | |
| 103 .language-entry a | |
| 104 { | |
| 105 display: block; | |
| 106 } | |
| 107 | |
| 108 #logo | |
| 109 { | |
| 110 position: absolute; | |
| 111 width: 128px; | |
| 112 height: 128px; | |
| 113 background-position: -83px -83px; | |
| 114 } | |
| 115 | |
| 116 #adblock-browser-notification | 49 #adblock-browser-notification |
| 117 { | 50 { |
| 118 text-align: center; | 51 text-align: center; |
| 119 } | 52 } |
| 120 | 53 |
| 121 #adblock-browser-notification a | 54 #adblock-browser-notification a |
| 122 { | 55 { |
| 123 font-weight: bold; | 56 font-weight: bold; |
| 124 } | 57 } |
| 125 | 58 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 288 font-weight: bold; | 221 font-weight: bold; |
| 289 margin: 32px 0px; | 222 margin: 32px 0px; |
| 290 margin: 2rem 0rem; | 223 margin: 2rem 0rem; |
| 291 } | 224 } |
| 292 | 225 |
| 293 .content h1 { font-size: 2.4em; } | 226 .content h1 { font-size: 2.4em; } |
| 294 .content h2 { font-size: 1.6em; } | 227 .content h2 { font-size: 1.6em; } |
| 295 .content h3 { font-size: 1.3em; } | 228 .content h3 { font-size: 1.3em; } |
| 296 .content h4 { font-size: 1.2em; } | 229 .content h4 { font-size: 1.2em; } |
| 297 .content h5 { font-size: 1.1em; } | 230 .content h5 { font-size: 1.1em; } |
| 231 | |
| 232 /******************************************************************************* | |
| 233 * #navbar | |
| 234 ******************************************************************************/ | |
| 235 | |
| 236 #navbar | |
| 237 { | |
| 238 height: 4em; | |
| 239 background-color: #c70d2c; | |
| 240 } | |
| 241 | |
| 242 #navbar li | |
| 243 { | |
| 244 list-style-type: none; | |
| 245 } | |
| 246 | |
| 247 /* padding provided by navbar contents */ | |
| 248 #navbar .container | |
| 249 { | |
| 250 padding: 0em; | |
| 251 } | |
| 252 | |
| 253 /* full-width under .container max-width */ | |
| 254 @media(max-width: 1199px) | |
| 255 { | |
| 256 #navbar .container | |
| 257 { | |
| 258 width: 100%; | |
| 259 } | |
| 260 } | |
| 261 | |
| 262 /* #navbar #navbar-logo | |
| 263 ******************************************************************************/ | |
| 264 | |
| 265 #navbar-logo | |
| 266 { | |
| 267 /* padding is visible in hover background-color change */ | |
| 268 padding-left: 1em; | |
| 269 padding-right: 1em; | |
| 270 color: #fff; | |
| 271 } | |
| 272 | |
| 273 #navbar-logo:hover, | |
| 274 #navbar-logo:active, | |
| 275 #navbar-logo:focus | |
| 276 { | |
| 277 background-color: #AE0013; | |
| 278 text-decoration: none; | |
| 279 } | |
| 280 | |
| 281 #navbar-logo, | |
| 282 #navbar-logo > * | |
| 283 { | |
| 284 display: block; | |
|
ire
2017/10/11 08:09:08
The display doesn't do anything since you are floa
juliandoucette
2017/10/11 11:59:37
I didn't know that :D - Thank you.
| |
| 285 float: left; | |
| 286 } | |
| 287 | |
| 288 [dir="rtl"] #navbar-logo, | |
| 289 [dir="rtl"] #navbar-logo > * | |
| 290 { | |
| 291 float: right; | |
| 292 } | |
| 293 | |
| 294 #navbar-logo img | |
| 295 { | |
| 296 height: 4em; | |
| 297 padding-top: 0.5em; | |
| 298 padding-bottom: 0.5em; | |
| 299 margin-right: 1em; | |
|
ire
2017/10/11 08:09:09
This margin-right still applies when direction is
juliandoucette
2017/10/11 11:59:36
Good catch!
| |
| 300 } | |
| 301 | |
| 302 [dir="rtl"] #navbar-logo > img | |
| 303 { | |
| 304 margin-left: 1em; | |
| 305 } | |
| 306 | |
| 307 #navbar-logo > span | |
| 308 { | |
| 309 /* full-height: 2.91 * 1.375 = ~4em */ | |
|
ire
2017/10/11 08:09:07
Helpful comments, thanks :)
juliandoucette
2017/10/11 11:59:35
You're welcome.
| |
| 310 line-height: 2.91em; | |
| 311 font-size: 1.375em; | |
| 312 } | |
| 313 | |
| 314 /* #navbar #navbar-menu-toggle | |
| 315 ******************************************************************************/ | |
| 316 | |
| 317 #navbar-menu-toggle | |
| 318 { | |
| 319 float: right; | |
| 320 padding: 1em; | |
| 321 } | |
| 322 | |
| 323 [dir="rtl"] #navbar-menu-toggle | |
| 324 { | |
| 325 float: left; | |
| 326 } | |
| 327 | |
| 328 /* show on mobile */ | |
| 329 #navbar-menu-toggle, | |
| 330 #navbar-menu-toggle > img | |
| 331 { | |
| 332 display: block; | |
| 333 } | |
| 334 | |
| 335 /* hide on desktop */ | |
| 336 @media(min-width: 992px) | |
| 337 { | |
| 338 #navbar-menu-toggle | |
| 339 { | |
| 340 display: none; | |
| 341 } | |
| 342 } | |
| 343 | |
| 344 #navbar-menu-toggle > img | |
| 345 { | |
| 346 /* plus 2em padding = 4em */ | |
| 347 height: 2em; | |
| 348 } | |
| 349 | |
| 350 #navbar-menu-toggle:hover, | |
| 351 #navbar-menu-toggle:active, | |
| 352 #navbar-menu-toggle:focus | |
| 353 { | |
| 354 background-color: #AE0013; | |
| 355 } | |
| 356 | |
| 357 /* #navbar #navbar-menu | |
| 358 ******************************************************************************/ | |
| 359 | |
| 360 #navbar-menu a | |
| 361 { | |
| 362 display: block; | |
| 363 color: #fff; | |
| 364 text-decoration: none; | |
| 365 } | |
| 366 | |
| 367 /* #navbar #navbar-menu #navbar-locale-menu | |
| 368 ******************************************************************************/ | |
| 369 | |
| 370 /* caret */ | |
| 371 #navbar-locale-selected::after | |
|
ire
2017/10/11 08:09:07
Single colon for :after
juliandoucette
2017/10/11 11:59:35
Done.
| |
| 372 { | |
| 373 display: inline-block; | |
| 374 width: 0; | |
| 375 height: 0; | |
| 376 margin-left: .255em; | |
|
ire
2017/10/11 08:09:09
"Don't omit the optional leading 0 for decimal num
juliandoucette
2017/10/11 11:59:35
Good catch. Looks like I neglected rtl too.
| |
| 377 vertical-align: .255em; | |
| 378 content: ""; | |
| 379 border-top: .3em solid; | |
| 380 border-right: .3em solid transparent; | |
| 381 border-left: .3em solid transparent; | |
| 382 } | |
| 383 | |
| 384 #navbar-locale-menu | |
| 385 { | |
| 386 display: none; | |
| 387 } | |
| 388 | |
| 389 #navbar-locale-menu.visible | |
| 390 { | |
| 391 display: block; | |
| 392 } | |
| 393 | |
| 394 #navbar-locale-menu > li > a | |
| 395 { | |
| 396 padding: 0.75em 1em; | |
| 397 } | |
| 398 | |
| 399 #navbar-locale-menu > li > a:hover, | |
| 400 #navbar-locale-menu > li > a:active, | |
| 401 #navbar-locale-menu > li > a:focus | |
| 402 { | |
| 403 background-color: #434343; | |
| 404 } | |
| 405 | |
| 406 /* #navbar #navbar-menu (desktop) | |
| 407 ******************************************************************************/ | |
| 408 | |
| 409 @media(min-width: 992px) | |
| 410 { | |
| 411 #navbar-menu | |
| 412 { | |
| 413 float: right; | |
| 414 } | |
| 415 | |
| 416 [dir="rtl"] #navbar-menu | |
| 417 { | |
| 418 float: left; | |
| 419 } | |
| 420 | |
| 421 #navbar-menu > li, | |
| 422 #navbar-menu > li > a | |
| 423 { | |
| 424 display: inline-block; | |
| 425 } | |
| 426 | |
| 427 #navbar-menu > li > a | |
| 428 { | |
| 429 padding-right: 1em; | |
| 430 padding-left: 1em; | |
| 431 line-height: 4em; | |
| 432 } | |
| 433 | |
| 434 #navbar-menu > li > a:hover, | |
| 435 #navbar-menu > li > a:active, | |
| 436 #navbar-menu > li > a:focus | |
| 437 { | |
| 438 background-color: #AE0013; | |
| 439 } | |
| 440 | |
| 441 /* #navbar #navbar-menu #navbar-locale-menu | |
| 442 ****************************************************************************/ | |
| 443 | |
| 444 #navbar-locale-menubar | |
| 445 { | |
| 446 position: relative; | |
| 447 } | |
| 448 | |
| 449 #navbar-locale-menu | |
| 450 { | |
| 451 position: absolute; | |
| 452 min-width: 16em; | |
| 453 max-height: 20em; | |
| 454 max-height: 50vh; | |
| 455 top: 100%; | |
| 456 right: 0px; | |
| 457 overflow: auto; | |
| 458 z-index: 1000; | |
|
ire
2017/10/11 08:09:09
NIT: A lower z-index (e.g. even 1 or 2) would suff
juliandoucette
2017/10/11 11:59:36
pfft
| |
| 459 background-color: #292929; | |
| 460 } | |
| 461 | |
| 462 [dir="rtl"] #navbar-locale-menu | |
| 463 { | |
| 464 right: auto; | |
| 465 left: 0px; | |
| 466 } | |
| 467 } | |
| 468 | |
| 469 /* #navbar #navbar-menu (mobile) | |
| 470 ******************************************************************************/ | |
| 471 | |
| 472 @media(max-width: 991px) | |
| 473 { | |
| 474 #navbar-menu | |
| 475 { | |
| 476 display: none; | |
| 477 float: left; | |
| 478 clear: both; | |
| 479 width: 100%; | |
| 480 background-color: #292929; | |
| 481 } | |
| 482 | |
| 483 #navbar-menu.visible | |
| 484 { | |
| 485 display: block; | |
| 486 } | |
| 487 | |
| 488 #navbar-menu li a | |
| 489 { | |
| 490 padding: 0.75em 1em; | |
| 491 } | |
| 492 | |
| 493 #navbar-menu li a:hover, | |
| 494 #navbar-menu li a:active, | |
| 495 #navbar-menu li a:focus | |
| 496 { | |
| 497 background-color: #434343; | |
| 498 } | |
| 499 } | |
| OLD | NEW |