put "cw: " text in css
This commit is contained in:
parent
b3da952558
commit
1752b27cce
2 changed files with 6 additions and 2 deletions
|
@ -59,7 +59,7 @@ make' root prefix nsfw dataDir dir info@(Info {date, title, artist, bg}) = do
|
||||||
|
|
||||||
let makeWarning w = [b|@4
|
let makeWarning w = [b|@4
|
||||||
<figcaption id=cw aria-role=button tabindex=0>
|
<figcaption id=cw aria-role=button tabindex=0>
|
||||||
<span id=cw-text>cw: <b>$w</b></span>
|
<span id=cw-text>$w</span>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|]
|
|]
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ body {
|
||||||
|
|
||||||
#cw-text {
|
#cw-text {
|
||||||
font-size: 200%;
|
font-size: 200%;
|
||||||
font-weight: 600;
|
font-weight: 800;
|
||||||
color: hsl(330deg, 100%, 90%);
|
color: hsl(330deg, 100%, 90%);
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
|
@ -71,6 +71,10 @@ body {
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
}
|
}
|
||||||
|
#cw-text::before {
|
||||||
|
content: 'cw: ';
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
@supports (filter: opacity(65%) blur(50px)) {
|
@supports (filter: opacity(65%) blur(50px)) {
|
||||||
#cw ~ * {
|
#cw ~ * {
|
||||||
|
|
Loading…
Reference in a new issue