elements.css

Same filename in this branch
  1. 8.9.x core/themes/seven/css/base/elements.css
  2. 8.9.x core/themes/bartik/css/base/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. 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/2815083
 * @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: #222330;
  background: #fff;
}

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

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

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

a:active,
.link:active {
  color: #00339a;
}

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 20px;
}

dl dd,
dl dl {
  margin-bottom: 10px;
  margin-left: 20px; /* LTR */
}

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

blockquote {
  margin: 1em 40px;
}

address {
  font-style: italic;
}

u,
ins {
  text-decoration: none;
}

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.295em;
}

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/2815083
  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: #222330;
  19. background: #fff;
  20. }
  21. a,
  22. .link {
  23. color: #003cc5;
  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: #00339a;
  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 20px;
  101. }
  102. dl dd,
  103. dl dl {
  104. margin-bottom: 10px;
  105. margin-left: 20px; /* LTR */
  106. }
  107. [dir="rtl"] dl dd,
  108. [dir="rtl"] dl dl {
  109. margin-right: 20px;
  110. }
  111. blockquote {
  112. margin: 1em 40px;
  113. }
  114. address {
  115. font-style: italic;
  116. }
  117. u,
  118. ins {
  119. text-decoration: none;
  120. }
  121. s,
  122. strike,
  123. del {
  124. text-decoration: line-through;
  125. }
  126. big {
  127. font-size: larger;
  128. }
  129. small {
  130. font-size: smaller;
  131. }
  132. sub {
  133. vertical-align: sub;
  134. font-size: smaller;
  135. line-height: normal;
  136. }
  137. sup {
  138. vertical-align: super;
  139. font-size: smaller;
  140. line-height: normal;
  141. }
  142. abbr,
  143. acronym {
  144. border-bottom: dotted 1px;
  145. }
  146. ul {
  147. margin: 0.25em 0 0.25em 1.5em; /* LTR */
  148. padding-left: 0;
  149. list-style-type: disc;
  150. list-style-image: none;
  151. }
  152. [dir="rtl"] ul {
  153. margin-right: 1.5em;
  154. margin-left: 0;
  155. padding-right: 0;
  156. }
  157. /* This is required to win over specificity of [dir="rtl"] ul */
  158. [dir="rtl"] .messages__list {
  159. margin-right: 0;
  160. }
  161. ol {
  162. margin: 0.25em 0 0.25em 2em; /* LTR */
  163. padding: 0;
  164. list-style-type: decimal;
  165. }
  166. [dir="rtl"] ol {
  167. margin-right: 2em;
  168. margin-left: 0;
  169. }
  170. /**
  171. * Fix duplicate border caused by normalize.css adding border-bottom without
  172. * removing the text-decoration.
  173. */
  174. abbr[title] {
  175. text-decoration: none;
  176. }
  177. code {
  178. margin: 0.5em 0;
  179. }
  180. pre {
  181. margin: 0.5em 0;
  182. white-space: pre-wrap;
  183. }
  184. details {
  185. line-height: 1.295em;
  186. }
  187. details summary {
  188. padding: 0.95em 1.45em;
  189. }
  190. details summary:focus {
  191. outline: none;
  192. }
  193. img {
  194. max-width: 100%;
  195. height: auto;
  196. }
  197. /**
  198. * Default focus styles for focused elements.
  199. *
  200. * This is applied globally to all interactive elements except Toolbar and
  201. * Settings Tray since they have their own styles.
  202. *
  203. * @todo https://www.drupal.org/project/claro/issues/3048785 :focus selector is
  204. * active for non-interactive elements in Internet Explorer 11.
  205. */
  206. .page-wrapper *:focus,
  207. .ui-dialog *:focus {
  208. outline: 2px dotted transparent;
  209. box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
  210. }

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