captions.css
/* -------------- Captions -------------- */
.caption {
margin-bottom: 1.2em;
}
.caption > * {
padding: 0.5ex;
border: 1px solid #ccc;
background: #f3f3f3;
}
.caption > figcaption {
padding-top: 0.5ex;
text-align: center;
border: 1px solid #ccc;
border-top: none;
font-size: small;
}
/* Override Bartik's default blockquote and pre styles when captioned. */
.caption-pre > pre,
.caption-blockquote > blockquote {
margin: 0;
}
.caption-blockquote > figcaption::before {
content: "— ";
}
.caption-blockquote > figcaption {
text-align: left; /* LTR */
}
[dir="rtl"] .caption-blockquote > figcaption {
text-align: right;
}
File
-
core/
themes/ bartik/ css/ components/ captions.css
View source
- /* -------------- Captions -------------- */
- .caption {
- margin-bottom: 1.2em;
- }
- .caption > * {
- padding: 0.5ex;
- border: 1px solid #ccc;
- background: #f3f3f3;
- }
- .caption > figcaption {
- padding-top: 0.5ex;
- text-align: center;
- border: 1px solid #ccc;
- border-top: none;
- font-size: small;
- }
-
- /* Override Bartik's default blockquote and pre styles when captioned. */
- .caption-pre > pre,
- .caption-blockquote > blockquote {
- margin: 0;
- }
- .caption-blockquote > figcaption::before {
- content: "— ";
- }
- .caption-blockquote > figcaption {
- text-align: left; /* LTR */
- }
- [dir="rtl"] .caption-blockquote > figcaption {
- text-align: right;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.