elements.css

Same filename in this branch
  1. 9 core/themes/claro/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
/**
 * Generic elements.
 */
body {
  color: #333;
  background: #fff;
  font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", "Lucida Sans", sans-serif;
}
a,
.link {
  text-decoration: none;
  color: #0074bd;
}
a:hover,
.link:hover,
a:focus,
.link:focus {
  text-decoration: underline;
  outline: 0;
}
hr {
  height: 1px;
  margin: 0;
  padding: 0;
  border: none;
  background: #ccc;
}
summary,
.fieldgroup:not(.form-composite) > legend {
  text-transform: uppercase;
  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: 0;
  font-size: 1.625em;
  font-weight: bold;
  line-height: 1.875em;
}
h2,
.heading-b {
  margin: 10px 0;
  font-size: 1.385em;
  font-weight: bold;
}
h3,
.heading-c {
  margin: 10px 0;
  font-size: 1.231em;
  font-weight: bold;
}
h4,
.heading-d {
  margin: 10px 0;
  font-size: 1.154em;
  font-weight: bold;
}
h5,
.heading-e {
  margin: 10px 0;
  font-size: 1.077em;
  font-weight: bold;
}
h6,
.heading-f {
  margin: 10px 0;
  font-size: 1.077em;
  font-weight: bold;
}
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: 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 */
  list-style-type: disc;
  list-style-image: none;
}
[dir="rtl"] ul {
  margin-right: 1.5em;
  margin-left: 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;
}
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;
}
/**
 * Unfortunately, text-decoration for details summary is not supported on all
 * browsers. So we add a span (which can handle text-decoration) in Seven's
 * templates/details.html.twig. In case there are other details templates that
 * don't have the span, we provide text-decoration in the parent selector.
 * This provides maximum compatibility and coverage with minimal disruption.
 */
details summary:not(.seven-details__summary):focus {
  text-decoration: underline;
}
details summary:focus span {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}

File

core/themes/seven/css/base/elements.css

View source
  1. /**
  2. * Generic elements.
  3. */
  4. body {
  5. color: #333;
  6. background: #fff;
  7. font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", "Lucida Sans", sans-serif;
  8. }
  9. a,
  10. .link {
  11. text-decoration: none;
  12. color: #0074bd;
  13. }
  14. a:hover,
  15. .link:hover,
  16. a:focus,
  17. .link:focus {
  18. text-decoration: underline;
  19. outline: 0;
  20. }
  21. hr {
  22. height: 1px;
  23. margin: 0;
  24. padding: 0;
  25. border: none;
  26. background: #ccc;
  27. }
  28. summary,
  29. .fieldgroup:not(.form-composite) > legend {
  30. text-transform: uppercase;
  31. font-weight: bold;
  32. }
  33. /**
  34. * Reusable heading classes are included to help modules change the styling of
  35. * headings on a page without affecting accessibility.
  36. */
  37. h1,
  38. .heading-a {
  39. margin: 0;
  40. font-size: 1.625em;
  41. font-weight: bold;
  42. line-height: 1.875em;
  43. }
  44. h2,
  45. .heading-b {
  46. margin: 10px 0;
  47. font-size: 1.385em;
  48. font-weight: bold;
  49. }
  50. h3,
  51. .heading-c {
  52. margin: 10px 0;
  53. font-size: 1.231em;
  54. font-weight: bold;
  55. }
  56. h4,
  57. .heading-d {
  58. margin: 10px 0;
  59. font-size: 1.154em;
  60. font-weight: bold;
  61. }
  62. h5,
  63. .heading-e {
  64. margin: 10px 0;
  65. font-size: 1.077em;
  66. font-weight: bold;
  67. }
  68. h6,
  69. .heading-f {
  70. margin: 10px 0;
  71. font-size: 1.077em;
  72. font-weight: bold;
  73. }
  74. p {
  75. margin: 1em 0;
  76. }
  77. dl {
  78. margin: 0 0 20px;
  79. }
  80. dl dd,
  81. dl dl {
  82. margin-bottom: 10px;
  83. margin-left: 20px; /* LTR */
  84. }
  85. [dir="rtl"] dl dd,
  86. [dir="rtl"] dl dl {
  87. margin-right: 20px;
  88. }
  89. blockquote {
  90. margin: 1em 40px;
  91. }
  92. address {
  93. font-style: italic;
  94. }
  95. u,
  96. ins {
  97. text-decoration: underline;
  98. }
  99. s,
  100. strike,
  101. del {
  102. text-decoration: line-through;
  103. }
  104. big {
  105. font-size: larger;
  106. }
  107. small {
  108. font-size: smaller;
  109. }
  110. sub {
  111. vertical-align: sub;
  112. font-size: smaller;
  113. line-height: normal;
  114. }
  115. sup {
  116. vertical-align: super;
  117. font-size: smaller;
  118. line-height: normal;
  119. }
  120. abbr,
  121. acronym {
  122. border-bottom: dotted 1px;
  123. }
  124. ul {
  125. margin: 0.25em 0 0.25em 1.5em; /* LTR */
  126. list-style-type: disc;
  127. list-style-image: none;
  128. }
  129. [dir="rtl"] ul {
  130. margin-right: 1.5em;
  131. margin-left: 0;
  132. }
  133. /* This is required to win over specificity of [dir="rtl"] ul */
  134. [dir="rtl"] .messages__list {
  135. margin-right: 0;
  136. }
  137. ol {
  138. margin: 0.25em 0 0.25em 2em; /* LTR */
  139. padding: 0;
  140. list-style-type: decimal;
  141. }
  142. [dir="rtl"] ol {
  143. margin-right: 2em;
  144. margin-left: 0;
  145. }
  146. code {
  147. margin: 0.5em 0;
  148. }
  149. pre {
  150. margin: 0.5em 0;
  151. white-space: pre-wrap;
  152. }
  153. details {
  154. line-height: 1.295em;
  155. }
  156. details summary {
  157. padding: 0.95em 1.45em;
  158. }
  159. details summary:focus {
  160. outline: none;
  161. }
  162. /**
  163. * Unfortunately, text-decoration for details summary is not supported on all
  164. * browsers. So we add a span (which can handle text-decoration) in Seven's
  165. * templates/details.html.twig. In case there are other details templates that
  166. * don't have the span, we provide text-decoration in the parent selector.
  167. * This provides maximum compatibility and coverage with minimal disruption.
  168. */
  169. details summary:not(.seven-details__summary):focus {
  170. text-decoration: underline;
  171. }
  172. details summary:focus span {
  173. text-decoration: underline;
  174. }
  175. img {
  176. max-width: 100%;
  177. height: auto;
  178. }

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