pre-header.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/regions/pre-header/pre-header.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/components/regions/pre-header/pre-header.css
  3. 11.x core/profiles/demo_umami/themes/umami/css/components/regions/pre-header/pre-header.css

This file is used to style the pre-header.

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

File

core/profiles/demo_umami/themes/umami/css/components/regions/pre-header/pre-header.css

View source
  1. /**
  2. * @file
  3. * This file is used to style the pre-header.
  4. *
  5. * It styles the pre-header as a global component; it does not style individual
  6. * pre-header items, such as search, which are styled by their own CSS files.
  7. */
  8. .region-pre-header {
  9. display: flex;
  10. flex-wrap: wrap;
  11. align-items: center;
  12. justify-content: space-between;
  13. padding: 0.75rem 4%;
  14. border-bottom: 1px solid #e6eee0;
  15. }
  16. /* Medium */
  17. @media screen and (min-width: 48rem) {
  18. /* 768px */
  19. .region-pre-header {
  20. padding-top: 0;
  21. padding-bottom: 0;
  22. }
  23. }
  24. /* Extra large + side margins */
  25. @media screen and (min-width: 80rem) {
  26. /* 1200px (large) + 80px (side margins) = 1280px */
  27. .region-pre-header {
  28. padding: 0;
  29. }
  30. }

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