base.css

Same filename in this branch
  1. 10 core/profiles/demo_umami/themes/umami/css/base.css
  2. 10 core/misc/dialog/off-canvas/css/base.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/base.css
  2. 9 core/themes/olivero/css/base/base.css
  3. 8.9.x core/profiles/demo_umami/themes/umami/css/base.css
  4. 8.9.x core/assets/vendor/jquery.ui/themes/base/base.css
  5. 11.x core/profiles/demo_umami/themes/umami/css/base.css
  6. 11.x core/misc/dialog/off-canvas/css/base.css
  7. 11.x core/themes/olivero/css/base/base.css

Generic base elements.

File

core/themes/olivero/css/base/base.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. * Generic base elements.
  10. */
  11. *,
  12. *::before,
  13. *::after {
  14. box-sizing: border-box;
  15. }
  16. html {
  17. font-family: var(--font-sans);
  18. font-size: 100%;
  19. font-weight: normal;
  20. font-style: normal;
  21. line-height: var(--line-height-base);
  22. }
  23. body {
  24. margin: 0;
  25. word-wrap: break-word;
  26. hyphens: auto;
  27. color: var(--color-text-neutral-medium);
  28. background-color: var(--color--gray-100);
  29. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='84' viewBox='0 0 50 84'%3e %3cpath opacity='0.05' fill='%230e6ba6' d='M25,61.7C25,68.5,19.4,74,12.5,74S0,68.5,0,61.7c0-5.7,3.9-9.6,7.4-12.9c2.3-2.2,4.5-4.4,5.1-6.8c0.7,2.4,2.8,4.6,5.1,6.8C21.1,52.2,25,56,25,61.7z M42.6,6.8c-2.3-2.2-4.5-4.4-5.1-6.8c-0.7,2.4-2.9,4.6-5.1,6.8C28.9,10.2,25,14,25,19.7C25,26.5,30.6,32,37.5,32S50,26.5,50,19.7C50,14,46.1,10.2,42.6,6.8z'/%3e%3c/svg%3e");
  30. background-position: top left; /* LTR */
  31. }
  32. body.is-fixed {
  33. position: fixed;
  34. overflow: hidden;
  35. width: 100%;
  36. }
  37. [dir="rtl"] body {
  38. background-position: top right;
  39. }
  40. a {
  41. color: var(--color-text-primary-medium);
  42. }
  43. a:hover {
  44. color: var(--color--primary-50);
  45. }
  46. a:focus {
  47. outline: solid 2px currentColor;
  48. outline-offset: 2px;
  49. }
  50. button {
  51. font-family: inherit;
  52. }
  53. img,
  54. video {
  55. display: block;
  56. max-width: 100%;
  57. height: auto;
  58. }
  59. audio {
  60. display: block;
  61. max-width: 100%;
  62. }
  63. h1 {
  64. letter-spacing: -0.01em;
  65. font-size: 1.75rem;
  66. line-height: var(--sp2);
  67. }
  68. @media (min-width: 43.75rem) {
  69. h1 {
  70. font-size: 3.75rem;
  71. line-height: var(--sp4);
  72. }
  73. }
  74. h2 {
  75. letter-spacing: -0.01em;
  76. font-size: 1.5rem;
  77. line-height: var(--sp2);
  78. }
  79. @media (min-width: 43.75rem) {
  80. h2 {
  81. font-size: 2.25rem;
  82. line-height: var(--sp3);
  83. }
  84. }
  85. h3 {
  86. font-size: 1.25rem;
  87. line-height: var(--sp1-5);
  88. }
  89. @media (min-width: 43.75rem) {
  90. h3 {
  91. font-size: 1.5rem;
  92. line-height: var(--sp2);
  93. }
  94. }
  95. h4 {
  96. font-size: 1.125rem;
  97. line-height: var(--sp1-5);
  98. }
  99. h5 {
  100. font-size: 1rem;
  101. line-height: var(--sp1-5);
  102. }
  103. h6 {
  104. font-size: 0.875rem;
  105. line-height: var(--sp);
  106. }
  107. h1,
  108. h2,
  109. h3,
  110. h4,
  111. h5,
  112. h6 {
  113. margin-block: var(--sp);
  114. color: var(--color-text-neutral-loud);
  115. font-family: var(--font-sans);
  116. font-weight: bold;
  117. }
  118. @media (min-width: 43.75rem) {
  119. h1,
  120. h2,
  121. h3,
  122. h4,
  123. h5,
  124. h6 {
  125. margin-block: var(--sp2);
  126. }
  127. }
  128. ul {
  129. margin-block-start: 0.25em;
  130. margin-block-end: 0.25em;
  131. margin-inline-start: 1.5em;
  132. margin-inline-end: 0;
  133. padding-inline-start: 0;
  134. list-style-type: disc;
  135. list-style-image: none;
  136. }

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