base.css

Same filename in this branch
  1. 8.9.x core/assets/vendor/jquery.ui/themes/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. 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. 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. background-color: #e6eee0;
  112. }
  113. button[disabled]:hover,
  114. button[disabled]:active,
  115. button[disabled]:focus,
  116. button[disabled],
  117. .button[disabled]:hover,
  118. .button[disabled]:active,
  119. .button[disabled]:focus,
  120. .button[disabled] {
  121. cursor: default;
  122. color: #464646;
  123. background: #767775;
  124. }
  125. h1 {
  126. margin: 0 0 1.07rem 0;
  127. font-family: "Scope One", Georgia, serif;
  128. font-size: 1.424rem; /* +3 based on 1.125 modular scale (major second) */
  129. line-height: 1.2;
  130. }
  131. /* Large */
  132. @media screen and (min-width: 60rem) { /* 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) { /* 960px */
  145. h2 {
  146. font-size: 1.77rem;
  147. }
  148. }
  149. h3 {
  150. margin: 0 0 0.96rem 0;
  151. font-family: "Scope One", Georgia, serif;
  152. font-size: 1.125rem;
  153. line-height: 1.2;/* +1 based on 1.125 modular scale (major second) */
  154. }
  155. /* Large */
  156. @media screen and (min-width: 60rem) { /* 960px */
  157. h3 {
  158. font-size: 1.5rem;
  159. }
  160. }
  161. h4 {
  162. margin: 0 0 1.28rem 0;
  163. font-family: "Scope One", Georgia, serif;
  164. font-size: 1rem;
  165. line-height: 1.2;
  166. }
  167. /* Large */
  168. @media screen and (min-width: 60rem) { /* 960px */
  169. h4 {
  170. font-size: 1.33rem;
  171. }
  172. }
  173. h5 {
  174. margin: 0 0 1.28rem 0;
  175. font-family: "Scope One", Georgia, serif;
  176. font-size: 0.889rem; /* -1 based on 1.125 modular scale (major second) */
  177. line-height: 1.2;
  178. }
  179. /* Large */
  180. @media screen and (min-width: 60rem) { /* 960px */
  181. h5 {
  182. font-size: 1.25rem;
  183. }
  184. }
  185. h6 {
  186. margin: 0 0 1.28rem 0;
  187. font-family: "Scope One", Georgia, serif;
  188. font-size: 0.79rem; /* -1 based on 1.125 modular scale (major second) */
  189. line-height: 1.2;
  190. }
  191. /* Large */
  192. @media screen and (min-width: 60rem) { /* 960px */
  193. h6 {
  194. font-size: 1rem;
  195. }
  196. }
  197. img {
  198. max-width: 100%;
  199. height: auto;
  200. }
  201. .form-select {
  202. margin: 0.25rem 0;
  203. color: #000;
  204. border: 2px solid #767775;
  205. background: #fff;
  206. font-size: 1rem;
  207. }
  208. .form-select:focus {
  209. margin-bottom: 2px;
  210. border: 2px solid #00836d;
  211. }
  212. input {
  213. min-width: 100%;
  214. max-width: 100%;
  215. margin: 0.25rem 0;
  216. padding: 0.8rem 0.4rem;
  217. color: #000;
  218. border: 2px solid #767775;
  219. font-size: 1rem;
  220. }
  221. input:focus {
  222. border: 2px solid #008068;
  223. }
  224. input[type="checkbox"] {
  225. min-width: inherit;
  226. max-width: none;
  227. }
  228. textarea {
  229. padding: 0.8rem 0.4rem;
  230. color: #000;
  231. border: 2px solid #767775;
  232. }
  233. textarea:focus {
  234. border: 2px solid #008068;
  235. }
  236. label {
  237. display: block;
  238. margin: 0.25rem 0;
  239. color: #464646;
  240. font-size: 1rem;
  241. font-weight: 700;
  242. }
  243. ul,
  244. ol {
  245. margin-bottom: 1.28rem;
  246. }
  247. ol ol,
  248. ol ul,
  249. ul ul,
  250. ul ol {
  251. margin-top: 0;
  252. margin-bottom: 0;
  253. }
  254. p {
  255. margin-bottom: 1.28rem;
  256. }

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