From 17f907e57910046c18af4a7e6b581d13dac77ea5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 3 Aug 2023 11:43:36 +0300 Subject: [PATCH] hide links in spoilers but still prevent clicking them if u cant see them (css solution instead of js) --- files/assets/css/main.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 0fb26d590..f55407cdd 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5234,11 +5234,12 @@ span.green { .spoiler:hover, spoiler:hover { color: var(--gray) !important; } -.spoiler img, spoiler img { +.spoiler *, spoiler * { visibility: hidden; } -.spoiler:hover img, spoiler:hover img { +.spoiler:hover *, spoiler:hover * { visibility: visible; + transition-delay: 0.00001s; } @media (min-width: 768px) {