base.css

Same filename in this branch
  1. 9 core/themes/olivero/css/base/base.css
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/base.css
  2. 8.9.x core/assets/vendor/jquery.ui/themes/base/base.css
  3. 10 core/profiles/demo_umami/themes/umami/css/base.css
  4. 10 core/misc/dialog/off-canvas/css/base.css
  5. 10 core/themes/olivero/css/base/base.css
  6. 11.x core/profiles/demo_umami/themes/umami/css/base.css
  7. 11.x core/misc/dialog/off-canvas/css/base.css
  8. 11.x 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; /* Not supported in IE11 but greatly improves outline visibility in newer browsers. */
  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) { /* 480px */
  96. blockquote {
  97. margin: 0 1.5rem 1.28rem;
  98. padding: 1.5rem;
  99. }
  100. }
  101. /* Medium */
  102. @media screen and (min-width: 40rem) { /* 640px */
  103. blockquote {
  104. margin: 0 2.5rem 1.28rem;
  105. padding: 3rem;
  106. }
  107. }
  108. blockquote > * {
  109. color: #000;
  110. font-family: "Scope One", Georgia, serif;
  111. font-size: 1.266rem;
  112. line-height: 1.5;
  113. }
  114. blockquote a {
  115. /* Tweak default link color to improve contrast for accessibility */
  116. color: #057d6d;
  117. }
  118. blockquote a:hover,
  119. blockquote a:focus {
  120. background-color: #fdfcf9;
  121. }
  122. button,
  123. .button,
  124. .button[type="submit"],
  125. [type="reset"],
  126. [type="submit"] {
  127. display: inline-block;
  128. min-width: inherit;
  129. max-width: inherit;
  130. margin: 0;
  131. padding: 0.7rem 1.3rem;
  132. cursor: pointer;
  133. transition: background-color 0.5s ease;
  134. text-align: center;
  135. text-decoration: none;
  136. color: #fff;
  137. border: 2px solid #008068;
  138. border-radius: 3px;
  139. background-color: #008068;
  140. font-family: "Scope One", Georgia, serif;
  141. font-size: 1.2rem;
  142. }
  143. button:hover,
  144. button:active,
  145. button:focus,
  146. .button:hover,
  147. .button:active,
  148. .button:focus {
  149. transition: background-color 0.5s ease;
  150. text-decoration: none;
  151. color: #000;
  152. border: 2px solid #008068;
  153. background-color: #e6eee0;
  154. }
  155. button[disabled]:hover,
  156. button[disabled]:active,
  157. button[disabled]:focus,
  158. button[disabled],
  159. .button[disabled]:hover,
  160. .button[disabled]:active,
  161. .button[disabled]:focus,
  162. .button[disabled] {
  163. cursor: default;
  164. color: #464646;
  165. background: #767775;
  166. }
  167. h1 {
  168. margin: 0 0 1.07rem 0;
  169. font-family: "Scope One", Georgia, serif;
  170. font-size: 1.424rem; /* +3 based on 1.125 modular scale (major second) */
  171. line-height: 1.2;
  172. }
  173. /* Large */
  174. @media screen and (min-width: 60rem) { /* 960px */
  175. h1 {
  176. font-size: 2.369rem;
  177. }
  178. }
  179. h2 {
  180. margin: 0 0 0.7rem 0;
  181. font-family: "Scope One", Georgia, serif;
  182. font-size: 1.266rem; /* +2 based on 1.125 modular scale (major second) */
  183. line-height: 1.2;
  184. }
  185. /* Large */
  186. @media screen and (min-width: 60rem) { /* 960px */
  187. h2 {
  188. font-size: 1.77rem;
  189. }
  190. }
  191. h3 {
  192. margin: 0 0 0.96rem 0;
  193. font-family: "Scope One", Georgia, serif;
  194. font-size: 1.125rem;
  195. line-height: 1.2;/* +1 based on 1.125 modular scale (major second) */
  196. }
  197. /* Large */
  198. @media screen and (min-width: 60rem) { /* 960px */
  199. h3 {
  200. font-size: 1.5rem;
  201. }
  202. }
  203. h4 {
  204. margin: 0 0 1.28rem 0;
  205. font-family: "Scope One", Georgia, serif;
  206. font-size: 1rem;
  207. line-height: 1.2;
  208. }
  209. /* Large */
  210. @media screen and (min-width: 60rem) { /* 960px */
  211. h4 {
  212. font-size: 1.33rem;
  213. }
  214. }
  215. h5 {
  216. margin: 0 0 1.28rem 0;
  217. font-family: "Scope One", Georgia, serif;
  218. font-size: 0.889rem; /* -1 based on 1.125 modular scale (major second) */
  219. line-height: 1.2;
  220. }
  221. /* Large */
  222. @media screen and (min-width: 60rem) { /* 960px */
  223. h5 {
  224. font-size: 1.25rem;
  225. }
  226. }
  227. h6 {
  228. margin: 0 0 1.28rem 0;
  229. font-family: "Scope One", Georgia, serif;
  230. font-size: 0.79rem; /* -1 based on 1.125 modular scale (major second) */
  231. line-height: 1.2;
  232. }
  233. /* Large */
  234. @media screen and (min-width: 60rem) { /* 960px */
  235. h6 {
  236. font-size: 1rem;
  237. }
  238. }
  239. img {
  240. max-width: 100%;
  241. height: auto;
  242. }
  243. .form-select {
  244. margin: 0.25rem 0;
  245. color: #000;
  246. border: 2px solid #767775;
  247. background: #fff;
  248. font-size: 1rem;
  249. }
  250. .form-select:focus {
  251. margin-bottom: 2px;
  252. border: 2px solid #00836d;
  253. }
  254. input {
  255. min-width: 100%;
  256. max-width: 100%;
  257. margin: 0.25rem 0;
  258. padding: 0.8rem 0.4rem;
  259. color: #000;
  260. border: 2px solid #767775;
  261. font-size: 1rem;
  262. }
  263. input:focus {
  264. border: 2px solid #008068;
  265. }
  266. input[type="checkbox"] {
  267. min-width: inherit;
  268. max-width: none;
  269. }
  270. textarea {
  271. padding: 0.8rem 0.4rem;
  272. color: #000;
  273. border: 2px solid #767775;
  274. }
  275. textarea:focus {
  276. border: 2px solid #008068;
  277. }
  278. label {
  279. display: block;
  280. margin: 0.25rem 0;
  281. color: #464646;
  282. font-size: 1rem;
  283. font-weight: 700;
  284. }
  285. /**
  286. * Prevent regression due to fieldset styling that was removed in normalize.css
  287. * 6.0.0.
  288. */
  289. fieldset {
  290. margin: 0 2px;
  291. padding: 0.35em 0.625em 0.75em;
  292. border: 1px solid #c0c0c0;
  293. }
  294. /**
  295. * Prevent regression due to explicit line-height applied to these elements in
  296. * normalize.css 7.0.0.
  297. */
  298. button,
  299. textarea {
  300. line-height: 1.5rem;
  301. }
  302. optgroup,
  303. input:not([type="file"]) {
  304. line-height: normal;
  305. }
  306. /**
  307. * Prevent regression due to changes in normalize.css 4.1.0.
  308. */
  309. ::-webkit-file-upload-button {
  310. -webkit-appearance: push-button;
  311. font-family: Arial, Helvetica, sans-serif;
  312. font-size: 1em;
  313. }
  314. ul,
  315. ol {
  316. margin-bottom: 1.28rem;
  317. }
  318. ol ol,
  319. ol ul,
  320. ul ul,
  321. ul ol {
  322. margin-top: 0;
  323. margin-bottom: 0;
  324. }
  325. p {
  326. margin-bottom: 1.28rem;
  327. }
  328. /**
  329. * Prevent regression table/td/th rules removed in normalize.css 7.0.0.
  330. */
  331. table {
  332. border-collapse: collapse;
  333. }
  334. td,
  335. th {
  336. padding: 0;
  337. }

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