You are here

hero.css in Drupal 10

Same filename and directory in other branches
  1. 9 core/themes/olivero/css/components/hero.css

Main Hero.

File

core/themes/olivero/css/components/hero.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Main Hero.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .hero__content {
  20. grid-column: 1 / 7
  21. }
  22. @media (min-width: 43.75rem) {
  23. .hero__content { /* 700px */
  24. grid-column: 3 / 13
  25. }
  26. }
  27. @media (min-width: 62.5rem) {
  28. .hero__content {
  29. grid-column: 3 / 11
  30. }
  31. }
  32. .hero__img {
  33. grid-column: 1 / 7;
  34. margin-top: var(--sp2);
  35. margin-bottom: var(--sp2)
  36. }
  37. .hero__img img {
  38. width: 100%;
  39. }
  40. @media (min-width: 31.25rem) {
  41. .hero__img {
  42. margin-top: var(--sp3);
  43. margin-bottom: var(--sp3)
  44. }
  45. }
  46. @media (min-width: 43.75rem) {
  47. .hero__img {
  48. grid-column: 1 / 15;
  49. margin-top: var(--sp4);
  50. margin-bottom: var(--sp4)
  51. }
  52. }
  53. @media (min-width: 62.5rem) {
  54. .hero__img {
  55. grid-column: 2 / 14
  56. }
  57. }