footer.css

Same filename in this branch
  1. 10 core/themes/olivero/css/components/footer.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
  2. 9 core/themes/olivero/css/components/footer.css
  3. 8.9.x core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
  4. 11.x core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
  5. 11.x core/themes/olivero/css/components/footer.css

This file is used to style the footer.

It styles the footer as a global component; it does not style individual footer items, such as a menu, which are styled by their own CSS files.

File

core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css

View source
  1. /**
  2. * @file
  3. * This file is used to style the footer.
  4. *
  5. * It styles the footer as a global component; it does not style individual
  6. * footer items, such as a menu, which are styled by their own CSS files.
  7. */
  8. .footer {
  9. padding: 2rem 4%;
  10. text-align: center;
  11. color: #fff;
  12. background-color: #5f635d;
  13. font-size: 0.9rem;
  14. }
  15. .region-footer {
  16. display: flex;
  17. flex-direction: column;
  18. gap: 1.28rem;
  19. }
  20. /* Large */
  21. @media screen and (min-width: 60rem) {
  22. /* 960px */
  23. .footer {
  24. text-align: left; /* LTR */
  25. }
  26. [dir="rtl"] .footer {
  27. text-align: right;
  28. }
  29. .region-footer {
  30. flex-direction: row;
  31. justify-content: space-between;
  32. gap: 0;
  33. }
  34. }
  35. /* Extra large + side margins */
  36. @media screen and (min-width: 80rem) {
  37. /* 1200px (large) + 80px (side margins) = 1280px */
  38. .footer {
  39. padding: 2rem 0;
  40. }
  41. }
  42. :where(.footer) a {
  43. color: #fff;
  44. background-color: inherit;
  45. font-weight: 400;
  46. }
  47. :where(.footer) a:active,
  48. :where(.footer) a:focus,
  49. :where(.footer) a:hover {
  50. outline-color: #fff;
  51. background-color: #000;
  52. }
  53. @media screen and (min-width: 60rem) {
  54. .block-type-footer-promo-block {
  55. overflow: hidden;
  56. flex-basis: 60%;
  57. }
  58. .block-system-menu-blockfooter {
  59. flex-basis: 25%;
  60. }
  61. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.