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. 10 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;
  -webkit-hyphens: auto;
  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);
}

/**
 * These elements should not be displayed until they are processed
 * by JavaScript, and views-ui-noscript.css exists so browsers
 * without JavaScript will still display them
 */

.views-tabs,
.views-display-top > input.button {
  display: none;
}

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

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