quicklinks.css

Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/blocks/quicklinks/quicklinks.css
  2. 8.9.x core/profiles/demo_umami/themes/umami/css/components/blocks/quicklinks/quicklinks.css
  3. 11.x core/profiles/demo_umami/themes/umami/css/components/blocks/quicklinks/quicklinks.css

This file is used to style the Quick Links block.

File

core/profiles/demo_umami/themes/umami/css/components/blocks/quicklinks/quicklinks.css

View source
  1. /**
  2. * @file
  3. * This file is used to style the Quick Links block.
  4. */
  5. .quicklinks {
  6. background-color: #fff;
  7. }
  8. @media screen and (min-width: 60rem) {
  9. /* 960px */
  10. .quicklinks {
  11. padding: 2rem 0;
  12. }
  13. }
  14. /* Small */
  15. @media screen and (min-width: 30rem) {
  16. /* 480px */
  17. .quicklinks__content {
  18. display: flex;
  19. flex-wrap: wrap;
  20. }
  21. }
  22. /* Large */
  23. @media screen and (min-width: 60rem) {
  24. /* 960px */
  25. .quicklinks__content {
  26. flex-wrap: nowrap;
  27. }
  28. }
  29. .quicklinks__col {
  30. position: relative;
  31. min-height: 9rem;
  32. padding: 1.5rem 0.25rem;
  33. text-align: center;
  34. }
  35. /* Small */
  36. @media screen and (min-width: 30rem) {
  37. /* 480px */
  38. .quicklinks__col {
  39. flex-basis: 50%;
  40. padding-top: 1rem;
  41. padding-bottom: 1rem;
  42. }
  43. }
  44. .quicklinks__col::after {
  45. position: absolute;
  46. right: 10%;
  47. bottom: 0;
  48. display: block;
  49. width: 80%;
  50. height: 1px;
  51. content: "";
  52. background-color: #e6eee0;
  53. }
  54. .quicklinks__col:last-child::after {
  55. display: none;
  56. }
  57. /* Small */
  58. @media screen and (min-width: 30rem) {
  59. /* 480px */
  60. .quicklinks__col:nth-child(3)::after {
  61. display: none;
  62. }
  63. }
  64. /* Large */
  65. @media screen and (min-width: 60rem) {
  66. /* 960px */
  67. .quicklinks__col::after {
  68. position: absolute;
  69. top: 0;
  70. right: 0;
  71. display: block;
  72. width: 1px;
  73. height: 100%;
  74. content: "";
  75. background-color: #e6eee0;
  76. }
  77. .quicklinks__col:nth-child(3)::after {
  78. display: block;
  79. }
  80. }
  81. .quicklinks__img {
  82. margin-bottom: 1rem;
  83. }

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