promoted-items.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/views/promoted-items.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/components/views/promoted-items.css
  3. 11.x core/profiles/demo_umami/themes/umami/css/components/views/promoted-items.css

This file is used to style the 'Promoted Items' view.

File

core/profiles/demo_umami/themes/umami/css/components/views/promoted-items.css

View source
  1. /**
  2. * @file
  3. * This file is used to style the 'Promoted Items' view.
  4. */
  5. .view-promoted-items--single {
  6. display: grid;
  7. gap: 14px;
  8. padding-block: 1rem 2rem;
  9. }
  10. /* Small */
  11. @media screen and (min-width: 30rem) {
  12. /* 480px */
  13. .view-promoted-items--single {
  14. padding-block: 2rem 3rem;
  15. }
  16. }
  17. /* Large */
  18. @media screen and (min-width: 60rem) {
  19. /* 960px */
  20. .view-promoted-items--single {
  21. grid-template-columns: repeat(2, 1fr);
  22. }
  23. }
  24. .view-promoted-items--double .view-content {
  25. display: grid;
  26. gap: 14px;
  27. }
  28. /* Small */
  29. @media screen and (min-width: 30rem) {
  30. /* 480px */
  31. .view-promoted-items--double .view-content {
  32. grid-template-columns: repeat(2, 1fr);
  33. }
  34. }
  35. .view-promoted-items--single .attachment-after,
  36. .view-promoted-items--single .views-element-container,
  37. .view-promoted-items--single .views-element-container,
  38. .view-promoted-items--double,
  39. .view-promoted-items--double .view-content,
  40. .view-promoted-items--double .umami-card {
  41. block-size: 100%;
  42. }

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