base.pcss.css

Same filename in this branch
  1. 11.x core/misc/dialog/off-canvas/css/base.pcss.css
Same filename in other branches
  1. 9 core/themes/olivero/css/base/base.pcss.css
  2. 10 core/misc/dialog/off-canvas/css/base.pcss.css
  3. 10 core/themes/olivero/css/base/base.pcss.css

Generic base elements.

File

core/themes/olivero/css/base/base.pcss.css

View source
  1. /**
  2. * @file
  3. * Generic base elements.
  4. */
  5. @import "media-queries.pcss.css";
  6. *,
  7. *::before,
  8. *::after {
  9. box-sizing: border-box;
  10. }
  11. html {
  12. font-family: var(--font-sans);
  13. font-size: 100%;
  14. font-weight: normal;
  15. font-style: normal;
  16. line-height: var(--line-height-base);
  17. }
  18. body {
  19. margin: 0;
  20. word-wrap: break-word;
  21. hyphens: auto;
  22. color: var(--color-text-neutral-medium);
  23. background-color: var(--color--gray-100);
  24. background-image: url("../../images/background.svg");
  25. background-position: top left; /* LTR */
  26. &.is-fixed {
  27. position: fixed;
  28. overflow: hidden;
  29. width: 100%;
  30. }
  31. }
  32. [dir="rtl"] body {
  33. background-position: top right;
  34. }
  35. a {
  36. color: var(--color-text-primary-medium);
  37. &:hover {
  38. color: var(--color--primary-50);
  39. }
  40. &:focus {
  41. outline: solid 2px currentColor;
  42. outline-offset: 2px;
  43. }
  44. }
  45. button {
  46. font-family: inherit;
  47. }
  48. img,
  49. video {
  50. display: block;
  51. max-width: 100%;
  52. height: auto;
  53. }
  54. audio {
  55. display: block;
  56. max-width: 100%;
  57. }
  58. h1 {
  59. letter-spacing: -0.01em;
  60. font-size: 28px;
  61. line-height: var(--sp2);
  62. @media (--md) {
  63. font-size: 60px;
  64. line-height: var(--sp4);
  65. }
  66. }
  67. h2 {
  68. letter-spacing: -0.01em;
  69. font-size: 24px;
  70. line-height: var(--sp2);
  71. @media (--md) {
  72. font-size: 36px;
  73. line-height: var(--sp3);
  74. }
  75. }
  76. h3 {
  77. font-size: 20px;
  78. line-height: var(--sp1-5);
  79. @media (--md) {
  80. font-size: 24px;
  81. line-height: var(--sp2);
  82. }
  83. }
  84. h4 {
  85. font-size: 18px;
  86. line-height: var(--sp1-5);
  87. }
  88. h5 {
  89. font-size: 16px;
  90. line-height: var(--sp1-5);
  91. }
  92. h6 {
  93. font-size: 14px;
  94. line-height: var(--sp);
  95. }
  96. h1,
  97. h2,
  98. h3,
  99. h4,
  100. h5,
  101. h6 {
  102. margin-block: var(--sp);
  103. color: var(--color-text-neutral-loud);
  104. font-family: var(--font-sans);
  105. font-weight: bold;
  106. @media (--md) {
  107. margin-block: var(--sp2);
  108. }
  109. }
  110. ul {
  111. margin-block-start: 0.25em;
  112. margin-block-end: 0.25em;
  113. margin-inline-start: 1.5em;
  114. margin-inline-end: 0;
  115. padding-inline-start: 0;
  116. list-style-type: disc;
  117. list-style-image: none;
  118. }

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