captions.css

Same filename in other branches
  1. 8.9.x core/themes/bartik/css/components/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
  1. /* -------------- Captions -------------- */
  2. .caption {
  3. margin-bottom: 1.2em;
  4. }
  5. .caption > * {
  6. padding: 0.5ex;
  7. border: 1px solid #ccc;
  8. background: #f3f3f3;
  9. }
  10. .caption > figcaption {
  11. padding-top: 0.5ex;
  12. text-align: center;
  13. border: 1px solid #ccc;
  14. border-top: none;
  15. font-size: small;
  16. }
  17. /* Override Bartik's default blockquote and pre styles when captioned. */
  18. .caption-pre > pre,
  19. .caption-blockquote > blockquote {
  20. margin: 0;
  21. }
  22. .caption-blockquote > figcaption::before {
  23. content: "— ";
  24. }
  25. .caption-blockquote > figcaption {
  26. text-align: left; /* LTR */
  27. }
  28. [dir="rtl"] .caption-blockquote > figcaption {
  29. text-align: right;
  30. }

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