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