diff options
author | Botond Hende <nettingman@gmail.com> | 2024-09-22 19:51:22 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-09-22 19:51:22 +0200 |
commit | 101e0fa0088b5e50f8ee2df6058bd00568a3a1ee (patch) | |
tree | 51bf35fb7b1ca3a9d3465086ed81eec10db13e2f /assets/css | |
parent | a6dd83403f53dddf6c7218bececcf7ef747b011b (diff) |
spoiler tag support in content
Diffstat (limited to 'assets/css')
-rw-r--r-- | assets/css/blog.css | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/assets/css/blog.css b/assets/css/blog.css index 0aa6459..e921a73 100644 --- a/assets/css/blog.css +++ b/assets/css/blog.css @@ -295,6 +295,24 @@ a.posts-listing-link:hover :is(h2, h3) text-decoration: underline; } +.spoiler { + position: absolute; + left:-10000px; +} + +.spoiler:checked ~ label.spoiler-on, +.spoiler:not(:checked) ~ label.spoiler-off { + display: none; +} + +label.spoiler-on { + background-color: var(--term-fg); +} + +label.spoiler-off { + background-color: var(--term-black); +} + @media (min-width: 768px) { main { border-width: 0.15rem; |