You are here

base.css in Drupal 9

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. html {
  6. box-sizing: border-box;
  7. }
  8. *,
  9. *:before,
  10. *:after {
  11. box-sizing: inherit;
  12. margin-top: 0; /* This allows us to ensure that items side-by-side line up nicely. */
  13. }
  14. *:focus {
  15. outline-width: 1px;
  16. outline-style: dotted;
  17. outline-color: #008068;
  18. outline-offset: 2px; /* Not supported in IE11 but greatly improves outline visibility in newer browsers. */
  19. }
  20. a {
  21. text-decoration: underline;
  22. color: #008068;
  23. }
  24. a:hover,
  25. a:focus {
  26. color: #cc2a00;
  27. background-color: #e6eee0;
  28. }
  29. body {
  30. margin: 0;
  31. color: #464646;
  32. background: #fbf5ee;
  33. font-family: "Open Sans", Verdana, sans-serif;
  34. font-size: 1rem;
  35. line-height: 1.5rem;
  36. }
  37. h1,
  38. h2,
  39. h3,
  40. h4,
  41. h5,
  42. h6 {
  43. font-weight: 400;
  44. }
  45. blockquote {
  46. margin: 0 0 1.28rem;
  47. padding: 1.5rem;
  48. background: #f4f2e9;
  49. }
  50. blockquote p:last-child {
  51. margin-bottom: 0;
  52. }
  53. /* Small */
  54. @media screen and (min-width: 30rem) { /* 480px */
  55. blockquote {
  56. margin: 0 1.5rem 1.28rem;
  57. padding: 1.5rem;
  58. }
  59. }
  60. /* Medium */
  61. @media screen and (min-width: 40rem) { /* 640px */
  62. blockquote {
  63. margin: 0 2.5rem 1.28rem;
  64. padding: 3rem;
  65. }
  66. }
  67. blockquote > * {
  68. color: #000;
  69. font-family: "Scope One", Georgia, serif;
  70. font-size: 1.266rem;
  71. line-height: 1.5;
  72. }
  73. blockquote a {
  74. /* Tweak default link color to improve contrast for accessibility */
  75. color: #057d6d;
  76. }
  77. blockquote a:hover,
  78. blockquote a:focus {
  79. background-color: #fdfcf9;
  80. }
  81. button,
  82. .button,
  83. .button[type="submit"],
  84. [type="reset"],
  85. [type="submit"] {
  86. display: inline-block;
  87. min-width: inherit;
  88. max-width: inherit;
  89. margin: 0;
  90. padding: 0.7rem 1.3rem;
  91. cursor: pointer;
  92. transition: background-color 0.5s ease;
  93. text-align: center;
  94. text-decoration: none;
  95. color: #fff;
  96. border: 2px solid #008068;
  97. border-radius: 3px;
  98. background-color: #008068;
  99. font-family: "Scope One", Georgia, serif;
  100. font-size: 1.2rem;
  101. }
  102. button:hover,
  103. button:active,
  104. button:focus,
  105. .button:hover,
  106. .button:active,
  107. .button:focus {
  108. transition: background-color 0.5s ease;
  109. text-decoration: none;
  110. color: #000;
  111. border: 2px solid #008068;
  112. background-color: #e6eee0;
  113. }
  114. button[disabled]:hover,
  115. button[disabled]:active,
  116. button[disabled]:focus,
  117. button[disabled],
  118. .button[disabled]:hover,
  119. .button[disabled]:active,
  120. .button[disabled]:focus,
  121. .button[disabled] {
  122. cursor: default;
  123. color: #464646;
  124. background: #767775;
  125. }
  126. h1 {
  127. margin: 0 0 1.07rem 0;
  128. font-family: "Scope One", Georgia, serif;
  129. font-size: 1.424rem; /* +3 based on 1.125 modular scale (major second) */
  130. line-height: 1.2;
  131. }
  132. /* Large */
  133. @media screen and (min-width: 60rem) { /* 960px */
  134. h1 {
  135. font-size: 2.369rem;
  136. }
  137. }
  138. h2 {
  139. margin: 0 0 0.7rem 0;
  140. font-family: "Scope One", Georgia, serif;
  141. font-size: 1.266rem; /* +2 based on 1.125 modular scale (major second) */
  142. line-height: 1.2;
  143. }
  144. /* Large */
  145. @media screen and (min-width: 60rem) { /* 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) { /* 960px */
  158. h3 {
  159. font-size: 1.5rem;
  160. }
  161. }
  162. h4 {
  163. margin: 0 0 1.28rem 0;
  164. font-family: "Scope One", Georgia, serif;
  165. font-size: 1rem;
  166. line-height: 1.2;
  167. }
  168. /* Large */
  169. @media screen and (min-width: 60rem) { /* 960px */
  170. h4 {
  171. font-size: 1.33rem;
  172. }
  173. }
  174. h5 {
  175. margin: 0 0 1.28rem 0;
  176. font-family: "Scope One", Georgia, serif;
  177. font-size: 0.889rem; /* -1 based on 1.125 modular scale (major second) */
  178. line-height: 1.2;
  179. }
  180. /* Large */
  181. @media screen and (min-width: 60rem) { /* 960px */
  182. h5 {
  183. font-size: 1.25rem;
  184. }
  185. }
  186. h6 {
  187. margin: 0 0 1.28rem 0;
  188. font-family: "Scope One", Georgia, serif;
  189. font-size: 0.79rem; /* -1 based on 1.125 modular scale (major second) */
  190. line-height: 1.2;
  191. }
  192. /* Large */
  193. @media screen and (min-width: 60rem) { /* 960px */
  194. h6 {
  195. font-size: 1rem;
  196. }
  197. }
  198. img {
  199. max-width: 100%;
  200. height: auto;
  201. }
  202. .form-select {
  203. margin: 0.25rem 0;
  204. color: #000;
  205. border: 2px solid #767775;
  206. background: #fff;
  207. font-size: 1rem;
  208. }
  209. .form-select:focus {
  210. margin-bottom: 2px;
  211. border: 2px solid #00836d;
  212. }
  213. input {
  214. min-width: 100%;
  215. max-width: 100%;
  216. margin: 0.25rem 0;
  217. padding: 0.8rem 0.4rem;
  218. color: #000;
  219. border: 2px solid #767775;
  220. font-size: 1rem;
  221. }
  222. input:focus {
  223. border: 2px solid #008068;
  224. }
  225. input[type="checkbox"] {
  226. min-width: inherit;
  227. max-width: none;
  228. }
  229. textarea {
  230. padding: 0.8rem 0.4rem;
  231. color: #000;
  232. border: 2px solid #767775;
  233. }
  234. textarea:focus {
  235. border: 2px solid #008068;
  236. }
  237. label {
  238. display: block;
  239. margin: 0.25rem 0;
  240. color: #464646;
  241. font-size: 1rem;
  242. font-weight: 700;
  243. }
  244. /**
  245. * Prevent regression due to fieldset styling that was removed in normalize.css
  246. * 6.0.0.
  247. */
  248. fieldset {
  249. margin: 0 2px;
  250. padding: 0.35em 0.625em 0.75em;
  251. border: 1px solid #c0c0c0;
  252. }
  253. /**
  254. * Prevent regression due to explicit line-height applied to these elements in
  255. * normalize.css 7.0.0.
  256. */
  257. button,
  258. textarea {
  259. line-height: 1.5rem;
  260. }
  261. optgroup,
  262. input:not([type="file"]) {
  263. line-height: normal;
  264. }
  265. /**
  266. * Prevent regression due to changes in normalize.css 4.1.0.
  267. */
  268. ::-webkit-file-upload-button {
  269. -webkit-appearance: push-button;
  270. font-family: Arial, Helvetica, sans-serif;
  271. font-size: 1em;
  272. }
  273. ul,
  274. ol {
  275. margin-bottom: 1.28rem;
  276. }
  277. ol ol,
  278. ol ul,
  279. ul ul,
  280. ul ol {
  281. margin-top: 0;
  282. margin-bottom: 0;
  283. }
  284. p {
  285. margin-bottom: 1.28rem;
  286. }
  287. /**
  288. * Prevent regression table/td/th rules removed in normalize.css 7.0.0.
  289. */
  290. table {
  291. border-collapse: collapse;
  292. }
  293. td,
  294. th {
  295. padding: 0;
  296. }