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. &.is-fixed {
  32. position: fixed;
  33. overflow: hidden;
  34. width: 100%;
  35. }
  36. }
  37. [dir="rtl"] body {
  38. background-position: top right;
  39. }
  40. a {
  41. color: var(--color-text-primary-medium);
  42. &:hover {
  43. color: var(--color--primary-50);
  44. }
  45. &:focus {
  46. outline: solid 2px currentColor;
  47. outline-offset: 2px;
  48. }
  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. @media (min-width: 43.75rem) {
  68. font-size: 3.75rem;
  69. line-height: var(--sp4);
  70. }
  71. }
  72. h2 {
  73. letter-spacing: -0.01em;
  74. font-size: 1.5rem;
  75. line-height: var(--sp2);
  76. @media (min-width: 43.75rem) {
  77. font-size: 2.25rem;
  78. line-height: var(--sp3);
  79. }
  80. }
  81. h3 {
  82. font-size: 1.25rem;
  83. line-height: var(--sp1-5);
  84. @media (min-width: 43.75rem) {
  85. font-size: 1.5rem;
  86. line-height: var(--sp2);
  87. }
  88. }
  89. h4 {
  90. font-size: 1.125rem;
  91. line-height: var(--sp1-5);
  92. }
  93. h5 {
  94. font-size: 1rem;
  95. line-height: var(--sp1-5);
  96. }
  97. h6 {
  98. font-size: 0.875rem;
  99. line-height: var(--sp);
  100. }
  101. h1,
  102. h2,
  103. h3,
  104. h4,
  105. h5,
  106. h6 {
  107. margin-block: var(--sp);
  108. color: var(--color-text-neutral-loud);
  109. font-family: var(--font-sans);
  110. font-weight: bold;
  111. @media (min-width: 43.75rem) {
  112. margin-block: var(--sp2);
  113. }
  114. }
  115. ul {
  116. margin-block-start: 0.25em;
  117. margin-block-end: 0.25em;
  118. margin-inline-start: 1.5em;
  119. margin-inline-end: 0;
  120. padding-inline-start: 0;
  121. list-style-image: none;
  122. }

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