|
323 | 323 | } |
324 | 324 |
|
325 | 325 | /* Sidebar title and GitHub links font and color */ |
326 | | -.md-nav__title * { |
| 326 | +.md-nav__title { |
327 | 327 | font-family: 'Cutive', serif; |
328 | 328 | } |
329 | 329 |
|
|
333 | 333 |
|
334 | 334 | /* Site name */ |
335 | 335 | .site-name { |
336 | | - font-size: 20px; |
337 | | - padding-bottom: 8px; |
338 | | -} |
339 | | - |
340 | | -.small .site-name { |
341 | | - padding-bottom: 0; |
342 | | -} |
343 | | - |
344 | | -/* Sidebar title block */ |
345 | | -.sidebar-title-block { |
346 | | - margin-bottom: 24px; |
347 | | -} |
348 | | - |
349 | | -.small .sidebar-title-block { |
350 | | - height: fit-content; |
351 | | - min-height: 60px; |
352 | | - margin-bottom: 42px; |
| 336 | + font-size: 22px; |
353 | 337 | } |
354 | 338 |
|
355 | 339 | /* Version number */ |
356 | 340 | .version-number { |
357 | 341 | overflow-wrap: anywhere; |
358 | 342 | font-size: 12px; |
359 | 343 | font-weight: normal; |
360 | | -} |
361 | | - |
362 | | -.small .version-number { |
363 | | - padding-top: 10px; |
364 | | - justify-content: space-between; |
365 | | - display: grid; |
| 344 | + margin-top: 0.2rem; |
366 | 345 | } |
367 | 346 |
|
368 | 347 | /* GitHub sidebar links */ |
|
374 | 353 | color: light-dark(#084AFF, #526CFE); |
375 | 354 | } |
376 | 355 |
|
377 | | -.small .github-link-block { |
378 | | - margin-top: 16px; |
| 356 | +.github-link-block a:first-child .github-links { |
| 357 | + margin-top: 0.8rem; |
| 358 | + margin-bottom: 0.2rem; |
379 | 359 | } |
380 | 360 |
|
381 | 361 | .github-link-block a:last-child .github-links { |
382 | | - margin-top: 8px; |
383 | | - margin-bottom: 16px; |
| 362 | + margin-bottom: 0.6rem; |
| 363 | +} |
| 364 | + |
| 365 | +.small .github-link-block a:first-child .github-links { |
| 366 | + margin-top: 0.4rem; |
| 367 | +} |
| 368 | + |
| 369 | +.small .github-link-block a:last-child .github-links { |
| 370 | + margin-bottom: 0.4rem; |
384 | 371 | } |
385 | 372 |
|
386 | 373 | /* Shows the logo in the sidebar */ |
387 | 374 | .md-nav__title .md-nav__button { |
388 | 375 | display: unset; |
389 | 376 | } |
390 | 377 |
|
391 | | -.mobile-site-name { |
| 378 | +/* Style the sidebar title block on primary pages and in sidebar drawer */ |
| 379 | +.small .sidebar-title-block { |
| 380 | + display: flex; |
| 381 | + flex-flow: nowrap row; |
| 382 | + align-items: center; |
| 383 | +} |
| 384 | + |
| 385 | +.small .sidebar-title-block-name { |
| 386 | + align-items: start; |
| 387 | +} |
| 388 | + |
| 389 | +.sidebar-logo { |
| 390 | + margin-bottom: 0.8em; |
| 391 | + margin-top: 0.8em; |
| 392 | + margin-right: 0.2rem; |
| 393 | +} |
| 394 | + |
| 395 | +/* Embiggen homepage logo */ |
| 396 | +.md-nav__title .md-nav__button.md-logo img { |
| 397 | + height: unset; |
| 398 | +} |
| 399 | + |
| 400 | +/* Embiggen sidebar drawer logo and match sidebar */ |
| 401 | +.md-nav__title.small .md-nav__button.md-logo img { |
| 402 | + height: unset; |
| 403 | + max-width: unset; |
| 404 | + width: 74px; |
| 405 | +} |
| 406 | + |
| 407 | +/* The menu button for the sidebar drawer to display the sidebar on smaller displays */ |
| 408 | +.mobile-drawer-button-site-name { |
392 | 409 | font-family: Cutive, "serif"; |
393 | 410 | font-size: 16px; |
394 | 411 | display: inline-block; |
395 | 412 | vertical-align: middle; |
396 | 413 | } |
397 | 414 |
|
398 | | -.mobile-version-number { |
| 415 | +.mobile-drawer-button-version-number { |
399 | 416 | font-size: 12px; |
400 | 417 | display: inline-block; |
401 | 418 | vertical-align: middle; |
402 | 419 | padding-top: 4px; |
403 | 420 | padding-left: 4px; |
404 | 421 | } |
405 | 422 |
|
406 | | -.mobile-sidebar-drawer { |
| 423 | +.mobile-sidebar-drawer-menu-bar { |
407 | 424 | color: light-dark(#000000, #FFFFFF); |
408 | 425 | background-color: light-dark(#F8F9FB, #4E4F52); |
409 | 426 | } |
410 | 427 |
|
411 | 428 | /* Adjustments for larger displays */ |
412 | 429 | @media screen and (min-width: 1220px) { |
413 | | - .md-nav__title .md-nav__button.md-logo img { |
414 | | - height: unset; |
415 | | - padding-bottom: 1rem; |
416 | | - } |
417 | | - |
418 | | - .md-nav__title.small .sidebar-logo img { |
419 | | - height: 80px !important; |
420 | | - float: left; |
421 | | - padding-left: 4px; |
422 | | - padding-right: 8px; |
423 | | - padding-bottom: 0 !important; |
424 | | - width: 74px; |
425 | | - margin-bottom: 10px; |
| 430 | + /* Hide menu bar when not needed */ |
| 431 | + .mobile-sidebar-drawer-menu-bar { |
| 432 | + display: none; |
426 | 433 | } |
427 | 434 |
|
428 | | - .mobile-site-name, .mobile-version-number { |
429 | | - display: none; |
| 435 | + .sidebar-title-block-name { |
| 436 | + display: flex; |
| 437 | + flex-flow: nowrap column; |
| 438 | + align-items: center; |
430 | 439 | } |
431 | 440 | } |
432 | 441 |
|
|
440 | 449 | background-color: light-dark(#F8F9FB, #4E4F52); |
441 | 450 | } |
442 | 451 |
|
443 | | - .md-nav--primary .md-nav__title .md-nav__icon { |
444 | | - position: relative; |
445 | | - } |
446 | | - |
447 | 452 | .md-nav--primary .md-nav__title { |
448 | 453 | padding-top: 16px; |
449 | 454 | } |
|
453 | 458 | padding: 0; |
454 | 459 | } |
455 | 460 |
|
456 | | - .md-nav__title .md-nav__button.md-logo img { |
457 | | - padding-bottom: 10px; |
458 | | - height: 60px; |
459 | | - } |
460 | | - |
| 461 | + /* Position of left sidebar */ |
461 | 462 | .md-sidebar.md-sidebar--secondary { |
462 | 463 | top: 66px !important; |
463 | 464 | } |
464 | 465 |
|
| 466 | + /* Sidebar drawer header styling */ |
465 | 467 | .sidebar-logo { |
466 | | - height: 80px !important; |
467 | | - float: left; |
468 | | - padding-left: 4px; |
469 | | - padding-right: 8px; |
470 | | - padding-bottom: 0 !important; |
471 | | - width: 74px; |
472 | | - margin-bottom: 10px; |
| 468 | + margin-right: 0.2rem; |
473 | 469 | } |
474 | 470 |
|
475 | 471 | .sidebar-title-block { |
476 | | - height: fit-content; |
477 | | - min-height: 60px; |
478 | | - margin-bottom: 42px; |
| 472 | + display: flex; |
| 473 | + flex-flow: nowrap row; |
| 474 | + align-items: center; |
| 475 | + } |
| 476 | + |
| 477 | + .md-nav__title .md-nav__button.md-logo img { |
| 478 | + height: unset; |
| 479 | + max-width: unset; |
| 480 | + width: 74px; |
479 | 481 | } |
480 | 482 | } |
481 | 483 |
|
|
0 commit comments