base.css

Same filename in this branch
  1. 11.x core/misc/dialog/off-canvas/css/base.css
  2. 11.x core/themes/olivero/css/base/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. 10 core/profiles/demo_umami/themes/umami/css/base.css
  6. 10 core/misc/dialog/off-canvas/css/base.css
  7. 10 core/themes/olivero/css/base/base.css

This is the base CSS file, for styling elements.

File

core/profiles/demo_umami/themes/umami/css/base.css

View source
  1. /**
  2. * @file
  3. * This is the base CSS file, for styling elements.
  4. */
  5. @font-face {
  6. font-family: "Source Sans Pro";
  7. src:
  8. local("Source Sans Pro"),
  9. url("../fonts/source-sans-pro-v21-latin-regular.woff2") format("woff2");
  10. font-weight: 400;
  11. font-style: normal;
  12. }
  13. @font-face {
  14. font-family: "Source Sans Pro";
  15. src:
  16. local("Source Sans Pro"),
  17. url("../fonts/source-sans-pro-v21-latin-italic.woff2") format("woff2");
  18. font-weight: 400;
  19. font-style: italic;
  20. }
  21. @font-face {
  22. font-family: "Source Sans Pro";
  23. src:
  24. local("Source Sans Pro"),
  25. url("../fonts/source-sans-pro-v21-latin-700.woff2") format("woff2");
  26. font-weight: 700;
  27. font-style: normal;
  28. }
  29. @font-face {
  30. font-family: "Source Sans Pro";
  31. src:
  32. local("Source Sans Pro"),
  33. url("../fonts/source-sans-pro-v21-latin-700italic.woff2") format("woff2");
  34. font-weight: 700;
  35. font-style: italic;
  36. }
  37. @font-face {
  38. font-family: "Scope One";
  39. src:
  40. local("Scope One"),
  41. local("ScopeOne-Regular"),
  42. url("../fonts/scope-one-v14-latin-regular.woff2") format("woff2");
  43. font-weight: 400;
  44. font-style: normal;
  45. }
  46. html {
  47. box-sizing: border-box;
  48. }
  49. *,
  50. *::before,
  51. *::after {
  52. box-sizing: inherit;
  53. margin-top: 0; /* This allows us to ensure that items side-by-side line up nicely. */
  54. }
  55. *:focus {
  56. outline-width: 1px;
  57. outline-style: dotted;
  58. outline-color: #008068;
  59. outline-offset: 2px;
  60. }
  61. a {
  62. text-decoration: underline;
  63. color: #008068;
  64. }
  65. a:hover,
  66. a:focus {
  67. color: #cc2a00;
  68. background-color: #e6eee0;
  69. }
  70. body {
  71. margin: 0;
  72. color: #464646;
  73. background: #fbf5ee;
  74. font-family: "Source Sans Pro", Verdana, sans-serif;
  75. font-size: 1rem;
  76. line-height: 1.5rem;
  77. }
  78. h1,
  79. h2,
  80. h3,
  81. h4,
  82. h5,
  83. h6 {
  84. font-weight: 400;
  85. }
  86. blockquote {
  87. margin: 0 0 1.28rem;
  88. padding: 1.5rem;
  89. background: #f4f2e9;
  90. }
  91. blockquote p:last-child {
  92. margin-bottom: 0;
  93. }
  94. /* Small */
  95. @media screen and (min-width: 30rem) {
  96. /* 480px */
  97. blockquote {
  98. margin: 0 1.5rem 1.28rem;
  99. padding: 1.5rem;
  100. }
  101. }
  102. /* Medium */
  103. @media screen and (min-width: 40rem) {
  104. /* 640px */
  105. blockquote {
  106. margin: 0 2.5rem 1.28rem;
  107. padding: 3rem;
  108. }
  109. }
  110. blockquote > * {
  111. color: #000;
  112. font-family: "Scope One", Georgia, serif;
  113. font-size: 1.266rem;
  114. line-height: 1.5;
  115. }
  116. blockquote a {
  117. /* Tweak default link color to improve contrast for accessibility */
  118. color: #057d6d;
  119. }
  120. blockquote a:hover,
  121. blockquote a:focus {
  122. background-color: #fdfcf9;
  123. }
  124. h1 {
  125. margin: 0 0 1.07rem 0;
  126. font-family: "Scope One", Georgia, serif;
  127. font-size: 1.424rem; /* +3 based on 1.125 modular scale (major second) */
  128. line-height: 1.2;
  129. }
  130. /* Large */
  131. @media screen and (min-width: 60rem) {
  132. /* 960px */
  133. h1 {
  134. font-size: 2.369rem;
  135. }
  136. }
  137. h2 {
  138. margin: 0 0 0.7rem 0;
  139. font-family: "Scope One", Georgia, serif;
  140. font-size: 1.266rem; /* +2 based on 1.125 modular scale (major second) */
  141. line-height: 1.2;
  142. }
  143. /* Large */
  144. @media screen and (min-width: 60rem) {
  145. /* 960px */
  146. h2 {
  147. font-size: 1.77rem;
  148. }
  149. }
  150. h3 {
  151. margin: 0 0 0.96rem 0;
  152. font-family: "Scope One", Georgia, serif;
  153. font-size: 1.125rem;
  154. line-height: 1.2; /* +1 based on 1.125 modular scale (major second) */
  155. }
  156. /* Large */
  157. @media screen and (min-width: 60rem) {
  158. /* 960px */
  159. h3 {
  160. font-size: 1.5rem;
  161. }
  162. }
  163. h4 {
  164. margin: 0 0 1.28rem 0;
  165. font-family: "Scope One", Georgia, serif;
  166. font-size: 1rem;
  167. line-height: 1.2;
  168. }
  169. /* Large */
  170. @media screen and (min-width: 60rem) {
  171. /* 960px */
  172. h4 {
  173. font-size: 1.33rem;
  174. }
  175. }
  176. h5 {
  177. margin: 0 0 1.28rem 0;
  178. font-family: "Scope One", Georgia, serif;
  179. font-size: 0.889rem; /* -1 based on 1.125 modular scale (major second) */
  180. line-height: 1.2;
  181. }
  182. /* Large */
  183. @media screen and (min-width: 60rem) {
  184. /* 960px */
  185. h5 {
  186. font-size: 1.25rem;
  187. }
  188. }
  189. h6 {
  190. margin: 0 0 1.28rem 0;
  191. font-family: "Scope One", Georgia, serif;
  192. font-size: 0.79rem; /* -1 based on 1.125 modular scale (major second) */
  193. line-height: 1.2;
  194. }
  195. /* Large */
  196. @media screen and (min-width: 60rem) {
  197. /* 960px */
  198. h6 {
  199. font-size: 1rem;
  200. }
  201. }
  202. img {
  203. max-width: 100%;
  204. height: auto;
  205. }
  206. /**
  207. * Prevent regression due to fieldset styling that was removed in normalize.css
  208. * 6.0.0.
  209. */
  210. fieldset {
  211. margin: 0 2px;
  212. padding: 0.35em 0.625em 0.75em;
  213. border: 1px solid #c0c0c0;
  214. }
  215. /**
  216. * Prevent regression due to explicit line-height applied to these elements in
  217. * normalize.css 7.0.0.
  218. */
  219. button,
  220. textarea {
  221. line-height: 1.5rem;
  222. }
  223. optgroup,
  224. input:not([type="file"]) {
  225. line-height: normal;
  226. }
  227. /**
  228. * Prevent regression due to changes in normalize.css 4.1.0.
  229. */
  230. ::-webkit-file-upload-button {
  231. -webkit-appearance: push-button;
  232. font-family: Arial, Helvetica, sans-serif;
  233. font-size: 1em;
  234. }
  235. ul,
  236. ol {
  237. margin-bottom: 1.28rem;
  238. }
  239. ol ol,
  240. ol ul,
  241. ul ul,
  242. ul ol {
  243. margin-top: 0;
  244. margin-bottom: 0;
  245. }
  246. p {
  247. margin-bottom: 1.28rem;
  248. }
  249. /**
  250. * Prevent regression table/td/th rules removed in normalize.css 7.0.0.
  251. */
  252. table {
  253. border-collapse: collapse;
  254. }
  255. td,
  256. th {
  257. padding: 0;
  258. }

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