base.pcss.css

Same filename in other branches
  1. 10 core/misc/dialog/off-canvas/css/base.pcss.css
  2. 10 core/themes/olivero/css/base/base.pcss.css
  3. 11.x core/misc/dialog/off-canvas/css/base.pcss.css
  4. 11.x 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 "variables.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. color: var(--color--gray-10);
  21. background-color: var(--color--gray-95);
  22. background-image: url("../../images/background.svg");
  23. background-position: top left; /* LTR */
  24. &.is-fixed {
  25. position: fixed;
  26. overflow: hidden;
  27. width: 100%;
  28. }
  29. }
  30. [dir="rtl"] body {
  31. background-position: top right;
  32. }
  33. a {
  34. color: var(--color--blue-20);
  35. &:hover {
  36. color: var(--color--blue-50);
  37. }
  38. &:focus {
  39. outline: solid 2px currentColor;
  40. outline-offset: 2px;
  41. }
  42. }
  43. button {
  44. font-family: inherit;
  45. }
  46. img,
  47. video {
  48. display: block;
  49. max-width: 100%;
  50. height: auto;
  51. }
  52. audio {
  53. display: block;
  54. max-width: 100%;
  55. }
  56. h1 {
  57. letter-spacing: -0.01em;
  58. font-size: 28px;
  59. line-height: var(--sp2);
  60. @media (--md) {
  61. font-size: 60px;
  62. line-height: var(--sp4);
  63. }
  64. }
  65. h2 {
  66. letter-spacing: -0.01em;
  67. font-size: 24px;
  68. line-height: var(--sp2);
  69. @media (--md) {
  70. font-size: 36px;
  71. line-height: var(--sp3);
  72. }
  73. }
  74. h3 {
  75. font-size: 20px;
  76. line-height: var(--sp1-5);
  77. @media (--md) {
  78. font-size: 24px;
  79. line-height: var(--sp2);
  80. }
  81. }
  82. h4 {
  83. font-size: 18px;
  84. line-height: var(--sp1-5);
  85. }
  86. h5 {
  87. font-size: 16px;
  88. line-height: var(--sp1-5);
  89. }
  90. h6 {
  91. font-size: 14px;
  92. line-height: var(--sp);
  93. }
  94. h1,
  95. h2,
  96. h3,
  97. h4,
  98. h5,
  99. h6 {
  100. margin-block: var(--sp);
  101. color: var(--color--gray-0);
  102. font-family: var(--font-sans);
  103. font-weight: bold;
  104. @media (--md) {
  105. margin-block: var(--sp2);
  106. }
  107. }
  108. ul {
  109. margin-block-start: 0.25em;
  110. margin-block-end: 0.25em;
  111. margin-inline-start: 1.5em;
  112. margin-inline-end: 0;
  113. padding-inline-start: 0;
  114. list-style-type: disc;
  115. list-style-image: none;
  116. }

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