| 1 |
figure > a, |
| 2 |
figure > a > img, |
| 3 |
figure > img, |
| 4 |
figure > video { |
| 5 |
display: block; |
| 6 |
margin-left: auto; |
| 7 |
margin-right: auto; |
| 8 |
} |
| 9 |
|
| 10 |
figure { |
| 11 |
a.headerlink { |
| 12 |
// So that header link doesn't push caption to be off-center. |
| 13 |
position: absolute; |
| 14 |
font-size: inherit; |
| 15 |
} |
| 16 |
|
| 17 |
// Default headerlink hover doesn't trigger on figures |
| 18 |
&:hover a.headerlink { |
| 19 |
visibility: visible; |
| 20 |
} |
| 21 |
|
| 22 |
figcaption { |
| 23 |
font-family: var(--pst-font-family-heading); |
| 24 |
font-weight: var(--pst-font-weight-caption); |
| 25 |
color: var(--pst-color-text-muted); |
| 26 |
margin-left: auto; |
| 27 |
margin-right: auto; |
| 28 |
margin-top: 0.3rem; |
| 29 |
text-align: center; |
| 30 |
|
| 31 |
& > p:last-child { |
| 32 |
// Don't add extra margin to already existing figure bottom margin |
| 33 |
margin-bottom: 0; |
| 34 |
} |
| 35 |
|
| 36 |
p { |
| 37 |
text-align: start; |
| 38 |
display: inline-block; |
| 39 |
} |
| 40 |
|
| 41 |
table.table { |
| 42 |
width: fit-content; |
| 43 |
margin-left: auto; |
| 44 |
margin-right: auto; |
| 45 |
} |
| 46 |
} |
| 47 |
} |