MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
>MangoFVTT No edit summary |
>MangoFVTT No edit summary |
||
| Line 135: | Line 135: | ||
font-variant: lining-nums; | font-variant: lining-nums; | ||
text-align: justify; | text-align: justify; | ||
} | |||
/* BLOCKQUOTE */ | |||
blockquote { | |||
padding-left: 1rem; | |||
border-left: 2px solid var(--ygdren-border-base); | |||
font-style: italic; | |||
/* Fallback for non-Chromium browsers */ | |||
text-wrap: balance; | |||
/* Only works on Chromium browsers */ | |||
text-wrap: pretty; | |||
} | |||
blockquote cite { | |||
color: var(--ygdren-color-subtle); | |||
font-size: var(--ygdren-font-size-x-small); | |||
font-style: normal; | |||
} | |||
blockquote cite::before { | |||
content: '―'; | |||
margin-right: 0.5em; | |||
} | |||
blockquote > p:first-child::before { | |||
content: open-quote; | |||
} | |||
/* <cite> is wrapped in the last <p> */ | |||
blockquote:has(cite) > p:nth-last-child(2)::after, | |||
blockquote:not(:has(cite)) > p:last-child::after { | |||
content: close-quote; | |||
} | } | ||