put "cw: " text in css

This commit is contained in:
Rhiannon Morris 2020-09-14 02:35:56 +02:00
parent b3da952558
commit 1752b27cce
2 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,7 @@ make' root prefix nsfw dataDir dir info@(Info {date, title, artist, bg}) = do
let makeWarning w = [b|@4
<figcaption id=cw aria-role=button tabindex=0>
<span id=cw-text>cw: <b>$w</b></span>
<span id=cw-text>$w</span>
</figcaption>
|]

View File

@ -62,7 +62,7 @@ body {
#cw-text {
font-size: 200%;
font-weight: 600;
font-weight: 800;
color: hsl(330deg, 100%, 90%);
text-shadow: none;
transform: rotate(-45deg);
@ -71,6 +71,10 @@ body {
padding: 0.25em 0.5em;
border-radius: 0.5em;
}
#cw-text::before {
content: 'cw: ';
font-weight: 600;
}
@supports (filter: opacity(65%) blur(50px)) {
#cw ~ * {