elements.css

Same filename in this branch
  1. 8.9.x core/themes/claro/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
/**
 * 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;
}
.simpletest-results-form summary {
  text-transform: none;
}

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

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