elements.css

Same filename in other branches
  1. 9 core/themes/seven/css/base/elements.css
  2. 9 core/themes/claro/css/base/elements.css
  3. 9 core/themes/bartik/css/base/elements.css
  4. 8.9.x core/themes/seven/css/base/elements.css
  5. 8.9.x core/themes/claro/css/base/elements.css
  6. 8.9.x core/themes/bartik/css/base/elements.css
  7. 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: var(--font-family);
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
  line-height: var(--line-height);
}

body {
  word-wrap: break-word;
  hyphens: auto;
  color: var(--color-fg);
  background: var(--color-bg);
}

a,
.link {
  color: var(--color-link);
}

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

a:hover,
.link:hover {
  color: var(--color-link-hover);
}

a:active,
.link:active {
  color: var(--color-link-active);
}

hr {
  height: 1px;
  margin: var(--space-m) 0;
  padding: 0;
  border: none;
  background: var(--color-divider);
}

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: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h1);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

h2,
.heading-b {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h2);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

h3,
.heading-c {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h3);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

h4,
.heading-d {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h4);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

h5,
.heading-e {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h5);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

h6,
.heading-f {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--font-size-h6);
  font-weight: bold;
  line-height: var(--line-height-heading);
}

p {
  margin: 1em 0;
}

dl {
  margin: 0 0 1.25rem;
}

dl dd,
dl dl {
  margin-block-end: 0.625rem;
  margin-inline-start: 1.25rem;
}

blockquote {
  position: relative;
  margin-block: var(--space-l);
  margin-inline: 2.5rem var(--space-l);
  font-size: var(--font-size-h6);
}

blockquote::before {
  position: absolute;
  inset-inline-start: -2.5rem;
  content: open-quote;
  color: var(--color-absolutezero);
  font-family: var(--font-family-serif);
  font-size: var(--space-xl);
  line-height: 1em;
}

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

address {
  font-style: italic;
}

u,
ins {
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

s,
strike,
del {
  -webkit-text-decoration: line-through;
  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-block: 0.25em;
  margin-inline: 1.5em 0;
  padding-inline-start: 0;
  list-style-type: disc;
  list-style-image: none;
}

ol {
  margin-block: 0.25em;
  margin-inline: 2em 0;
  padding: 0;
}

code {
  margin: 0.5em 0;
}

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

details {
  line-height: var(--details-line-height);
}

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.
 */

.page-wrapper *:focus,
.ui-dialog *:focus {
  outline: var(--focus-outline);
  box-shadow: var(--focus-box-shadow);
}

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: var(--font-family);
  12. font-size: 100%;
  13. font-weight: normal;
  14. font-style: normal;
  15. line-height: var(--line-height);
  16. }
  17. body {
  18. word-wrap: break-word;
  19. hyphens: auto;
  20. color: var(--color-fg);
  21. background: var(--color-bg);
  22. }
  23. a,
  24. .link {
  25. color: var(--color-link);
  26. }
  27. a:hover,
  28. a:focus,
  29. .link:hover,
  30. .link:focus {
  31. -webkit-text-decoration: none;
  32. text-decoration: none;
  33. outline: 0;
  34. }
  35. a:hover,
  36. .link:hover {
  37. color: var(--color-link-hover);
  38. }
  39. a:active,
  40. .link:active {
  41. color: var(--color-link-active);
  42. }
  43. hr {
  44. height: 1px;
  45. margin: var(--space-m) 0;
  46. padding: 0;
  47. border: none;
  48. background: var(--color-divider);
  49. }
  50. summary {
  51. font-weight: bold;
  52. }
  53. /**
  54. * Reusable heading classes are included to help modules change the styling of
  55. * headings on a page without affecting accessibility.
  56. */
  57. h1,
  58. .heading-a {
  59. margin: var(--space-m) 0 var(--space-s);
  60. font-size: var(--font-size-h1);
  61. font-weight: bold;
  62. line-height: var(--line-height-heading);
  63. }
  64. h2,
  65. .heading-b {
  66. margin: var(--space-m) 0 var(--space-s);
  67. font-size: var(--font-size-h2);
  68. font-weight: bold;
  69. line-height: var(--line-height-heading);
  70. }
  71. h3,
  72. .heading-c {
  73. margin: var(--space-m) 0 var(--space-s);
  74. font-size: var(--font-size-h3);
  75. font-weight: bold;
  76. line-height: var(--line-height-heading);
  77. }
  78. h4,
  79. .heading-d {
  80. margin: var(--space-m) 0 var(--space-s);
  81. font-size: var(--font-size-h4);
  82. font-weight: bold;
  83. line-height: var(--line-height-heading);
  84. }
  85. h5,
  86. .heading-e {
  87. margin: var(--space-m) 0 var(--space-s);
  88. font-size: var(--font-size-h5);
  89. font-weight: bold;
  90. line-height: var(--line-height-heading);
  91. }
  92. h6,
  93. .heading-f {
  94. margin: var(--space-m) 0 var(--space-s);
  95. font-size: var(--font-size-h6);
  96. font-weight: bold;
  97. line-height: var(--line-height-heading);
  98. }
  99. p {
  100. margin: 1em 0;
  101. }
  102. dl {
  103. margin: 0 0 1.25rem;
  104. }
  105. dl dd,
  106. dl dl {
  107. margin-block-end: 0.625rem;
  108. margin-inline-start: 1.25rem;
  109. }
  110. blockquote {
  111. position: relative;
  112. margin-block: var(--space-l);
  113. margin-inline: 2.5rem var(--space-l);
  114. font-size: var(--font-size-h6);
  115. }
  116. blockquote::before {
  117. position: absolute;
  118. inset-inline-start: -2.5rem;
  119. content: open-quote;
  120. color: var(--color-absolutezero);
  121. font-family: var(--font-family-serif);
  122. font-size: var(--space-xl);
  123. line-height: 1em;
  124. }
  125. blockquote::after {
  126. content: no-close-quote;
  127. }
  128. address {
  129. font-style: italic;
  130. }
  131. u,
  132. ins {
  133. -webkit-text-decoration: underline;
  134. text-decoration: underline;
  135. }
  136. s,
  137. strike,
  138. del {
  139. -webkit-text-decoration: line-through;
  140. text-decoration: line-through;
  141. }
  142. big {
  143. font-size: larger;
  144. }
  145. small {
  146. font-size: smaller;
  147. }
  148. sub {
  149. vertical-align: sub;
  150. font-size: smaller;
  151. line-height: normal;
  152. }
  153. sup {
  154. vertical-align: super;
  155. font-size: smaller;
  156. line-height: normal;
  157. }
  158. abbr,
  159. acronym {
  160. border-bottom: dotted 1px;
  161. }
  162. ul {
  163. margin-block: 0.25em;
  164. margin-inline: 1.5em 0;
  165. padding-inline-start: 0;
  166. list-style-type: disc;
  167. list-style-image: none;
  168. }
  169. ol {
  170. margin-block: 0.25em;
  171. margin-inline: 2em 0;
  172. padding: 0;
  173. }
  174. code {
  175. margin: 0.5em 0;
  176. }
  177. pre {
  178. margin: 0.5em 0;
  179. white-space: pre-wrap;
  180. }
  181. details {
  182. line-height: var(--details-line-height);
  183. }
  184. details summary {
  185. padding: 0.95em 1.45em;
  186. }
  187. details summary:focus {
  188. outline: none;
  189. }
  190. img {
  191. max-width: 100%;
  192. height: auto;
  193. }
  194. /**
  195. * Default focus styles for focused elements.
  196. *
  197. * This is applied globally to all interactive elements except Toolbar and
  198. * Settings Tray since they have their own styles.
  199. */
  200. .page-wrapper *:focus,
  201. .ui-dialog *:focus {
  202. outline: var(--focus-outline);
  203. box-shadow: var(--focus-box-shadow);
  204. }

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