elements.css

Same filename in this branch
  1. 9 core/themes/seven/css/base/elements.css
  2. 9 core/themes/bartik/css/base/elements.css
Same filename in other branches
  1. 8.9.x core/themes/seven/css/base/elements.css
  2. 8.9.x core/themes/claro/css/base/elements.css
  3. 8.9.x core/themes/bartik/css/base/elements.css
  4. 10 core/themes/claro/css/base/elements.css
  5. 11.x core/themes/claro/css/base/elements.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * Generic elements.
 */

html {
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
  line-height: 1.5;
}

body {
  color: #232429;
  background: #fff;
}

a,
.link {
  color: #003ecc;
}

a:hover,
a:focus,
.link:hover,
.link:focus {
  text-decoration: none;
  outline: 0;
}

a:hover,
.link:hover {
  color: #0036b1;
}

a:active,
.link:active {
  color: #002e9a;
}

hr {
  height: 1px;
  margin: 1rem 0;
  padding: 0;
  border: none;
  background: rgba(142, 146, 156, 0.5);
}

summary {
  font-weight: bold;
}

/**
 * Reusable heading classes are included to help modules change the styling of
 * headings on a page without affecting accessibility.
 */

h1,
.heading-a {
  margin: 1rem 0 0.75rem;
  font-size: 2.027rem;
  font-weight: bold;
  line-height: 1.3;
}

h2,
.heading-b {
  margin: 1rem 0 0.75rem;
  font-size: 1.802rem;
  font-weight: bold;
  line-height: 1.3;
}

h3,
.heading-c {
  margin: 1rem 0 0.75rem;
  font-size: 1.602rem;
  font-weight: bold;
  line-height: 1.3;
}

h4,
.heading-d {
  margin: 1rem 0 0.75rem;
  font-size: 1.424rem;
  font-weight: bold;
  line-height: 1.3;
}

h5,
.heading-e {
  margin: 1rem 0 0.75rem;
  font-size: 1.266rem;
  font-weight: bold;
  line-height: 1.3;
}

h6,
.heading-f {
  margin: 1rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.3;
}

p {
  margin: 1em 0;
}

dl {
  margin: 0 0 1.25rem;
}

dl dd,
dl dl {
  margin-bottom: 0.625rem;
  margin-left: 1.25rem; /* LTR */
}

[dir="rtl"] dl dd,
[dir="rtl"] dl dl {
  margin-right: 1.25rem;
}

blockquote {
  position: relative;
  margin: 1.5rem;
  margin-left: 2.5rem; /* LTR */
  font-size: 1.125rem;
}

[dir="rtl"] blockquote {
  margin-right: 2.5rem;
}

blockquote::before {
  position: absolute;
  left: -2.5rem; /* LTR */
  content: open-quote;
  color: #003ecc;
  font-family: "Times New Roman", times, serif;
  font-size: 3rem;
  line-height: 1em;
}

[dir="rtl"] blockquote::before {
  right: -2.5rem;
}

blockquote::after {
  content: no-close-quote;
}

address {
  font-style: italic;
}

u,
ins {
  text-decoration: underline;
}

s,
strike,
del {
  text-decoration: line-through;
}

big {
  font-size: larger;
}

small {
  font-size: smaller;
}

sub {
  vertical-align: sub;
  font-size: smaller;
  line-height: normal;
}

sup {
  vertical-align: super;
  font-size: smaller;
  line-height: normal;
}

abbr,
acronym {
  border-bottom: dotted 1px;
}

ul {
  margin: 0.25em 0 0.25em 1.5em; /* LTR */
  padding-left: 0;
  list-style-type: disc;
  list-style-image: none;
}

[dir="rtl"] ul {
  margin-right: 1.5em;
  margin-left: 0;
  padding-right: 0;
}

/* This is required to win over specificity of [dir="rtl"] ul */

[dir="rtl"] .messages__list {
  margin-right: 0;
}

ol {
  margin: 0.25em 0 0.25em 2em; /* LTR */
  padding: 0;
  list-style-type: decimal;
}

[dir="rtl"] ol {
  margin-right: 2em;
  margin-left: 0;
}

/**
 * Fix duplicate border caused by normalize.css adding border-bottom without
 * removing the text-decoration.
 */

abbr[title] {
  text-decoration: none;
}

code {
  margin: 0.5em 0;
}

pre {
  margin: 0.5em 0;
  white-space: pre-wrap;
}

details {
  line-height: 1.295rem;
}

details summary {
  padding: 0.95em 1.45em;
}

details summary:focus {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/**
 * Default focus styles for focused elements.
 *
 * This is applied globally to all interactive elements except Toolbar and
 * Settings Tray since they have their own styles.
 *
 * @todo https://www.drupal.org/project/claro/issues/3048785 :focus selector is
 *   active for non-interactive elements in Internet Explorer 11.
 */

.page-wrapper *:focus,
.ui-dialog *:focus {
  outline: 2px dotted transparent;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
}

File

core/themes/claro/css/base/elements.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * Generic elements.
  9. */
  10. html {
  11. font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  12. font-size: 100%;
  13. font-weight: normal;
  14. font-style: normal;
  15. line-height: 1.5;
  16. }
  17. body {
  18. color: #232429;
  19. background: #fff;
  20. }
  21. a,
  22. .link {
  23. color: #003ecc;
  24. }
  25. a:hover,
  26. a:focus,
  27. .link:hover,
  28. .link:focus {
  29. text-decoration: none;
  30. outline: 0;
  31. }
  32. a:hover,
  33. .link:hover {
  34. color: #0036b1;
  35. }
  36. a:active,
  37. .link:active {
  38. color: #002e9a;
  39. }
  40. hr {
  41. height: 1px;
  42. margin: 1rem 0;
  43. padding: 0;
  44. border: none;
  45. background: rgba(142, 146, 156, 0.5);
  46. }
  47. summary {
  48. font-weight: bold;
  49. }
  50. /**
  51. * Reusable heading classes are included to help modules change the styling of
  52. * headings on a page without affecting accessibility.
  53. */
  54. h1,
  55. .heading-a {
  56. margin: 1rem 0 0.75rem;
  57. font-size: 2.027rem;
  58. font-weight: bold;
  59. line-height: 1.3;
  60. }
  61. h2,
  62. .heading-b {
  63. margin: 1rem 0 0.75rem;
  64. font-size: 1.802rem;
  65. font-weight: bold;
  66. line-height: 1.3;
  67. }
  68. h3,
  69. .heading-c {
  70. margin: 1rem 0 0.75rem;
  71. font-size: 1.602rem;
  72. font-weight: bold;
  73. line-height: 1.3;
  74. }
  75. h4,
  76. .heading-d {
  77. margin: 1rem 0 0.75rem;
  78. font-size: 1.424rem;
  79. font-weight: bold;
  80. line-height: 1.3;
  81. }
  82. h5,
  83. .heading-e {
  84. margin: 1rem 0 0.75rem;
  85. font-size: 1.266rem;
  86. font-weight: bold;
  87. line-height: 1.3;
  88. }
  89. h6,
  90. .heading-f {
  91. margin: 1rem 0 0.75rem;
  92. font-size: 1.125rem;
  93. font-weight: bold;
  94. line-height: 1.3;
  95. }
  96. p {
  97. margin: 1em 0;
  98. }
  99. dl {
  100. margin: 0 0 1.25rem;
  101. }
  102. dl dd,
  103. dl dl {
  104. margin-bottom: 0.625rem;
  105. margin-left: 1.25rem; /* LTR */
  106. }
  107. [dir="rtl"] dl dd,
  108. [dir="rtl"] dl dl {
  109. margin-right: 1.25rem;
  110. }
  111. blockquote {
  112. position: relative;
  113. margin: 1.5rem;
  114. margin-left: 2.5rem; /* LTR */
  115. font-size: 1.125rem;
  116. }
  117. [dir="rtl"] blockquote {
  118. margin-right: 2.5rem;
  119. }
  120. blockquote::before {
  121. position: absolute;
  122. left: -2.5rem; /* LTR */
  123. content: open-quote;
  124. color: #003ecc;
  125. font-family: "Times New Roman", times, serif;
  126. font-size: 3rem;
  127. line-height: 1em;
  128. }
  129. [dir="rtl"] blockquote::before {
  130. right: -2.5rem;
  131. }
  132. blockquote::after {
  133. content: no-close-quote;
  134. }
  135. address {
  136. font-style: italic;
  137. }
  138. u,
  139. ins {
  140. text-decoration: underline;
  141. }
  142. s,
  143. strike,
  144. del {
  145. text-decoration: line-through;
  146. }
  147. big {
  148. font-size: larger;
  149. }
  150. small {
  151. font-size: smaller;
  152. }
  153. sub {
  154. vertical-align: sub;
  155. font-size: smaller;
  156. line-height: normal;
  157. }
  158. sup {
  159. vertical-align: super;
  160. font-size: smaller;
  161. line-height: normal;
  162. }
  163. abbr,
  164. acronym {
  165. border-bottom: dotted 1px;
  166. }
  167. ul {
  168. margin: 0.25em 0 0.25em 1.5em; /* LTR */
  169. padding-left: 0;
  170. list-style-type: disc;
  171. list-style-image: none;
  172. }
  173. [dir="rtl"] ul {
  174. margin-right: 1.5em;
  175. margin-left: 0;
  176. padding-right: 0;
  177. }
  178. /* This is required to win over specificity of [dir="rtl"] ul */
  179. [dir="rtl"] .messages__list {
  180. margin-right: 0;
  181. }
  182. ol {
  183. margin: 0.25em 0 0.25em 2em; /* LTR */
  184. padding: 0;
  185. list-style-type: decimal;
  186. }
  187. [dir="rtl"] ol {
  188. margin-right: 2em;
  189. margin-left: 0;
  190. }
  191. /**
  192. * Fix duplicate border caused by normalize.css adding border-bottom without
  193. * removing the text-decoration.
  194. */
  195. abbr[title] {
  196. text-decoration: none;
  197. }
  198. code {
  199. margin: 0.5em 0;
  200. }
  201. pre {
  202. margin: 0.5em 0;
  203. white-space: pre-wrap;
  204. }
  205. details {
  206. line-height: 1.295rem;
  207. }
  208. details summary {
  209. padding: 0.95em 1.45em;
  210. }
  211. details summary:focus {
  212. outline: none;
  213. }
  214. img {
  215. max-width: 100%;
  216. height: auto;
  217. }
  218. /**
  219. * Default focus styles for focused elements.
  220. *
  221. * This is applied globally to all interactive elements except Toolbar and
  222. * Settings Tray since they have their own styles.
  223. *
  224. * @todo https://www.drupal.org/project/claro/issues/3048785 :focus selector is
  225. * active for non-interactive elements in Internet Explorer 11.
  226. */
  227. .page-wrapper *:focus,
  228. .ui-dialog *:focus {
  229. outline: 2px dotted transparent;
  230. box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
  231. }

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