aboutsummaryrefslogtreecommitdiff
path: root/card/card.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-27 16:00:54 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-27 16:00:54 +0100
commitc0f41dd4c74ca4a12252103da0e6de296533e269 (patch)
treed81194f4b4f3818b71e3773325b0a5ad3478f510 /card/card.css
parent2cf87d7baeb0ec2b0221e2349989fd0b0967d26b (diff)
add spoiler class for hiding sentence by default
Diffstat (limited to 'card/card.css')
-rw-r--r--card/card.css14
1 files changed, 10 insertions, 4 deletions
diff --git a/card/card.css b/card/card.css
index b37234c..8c2b0d0 100644
--- a/card/card.css
+++ b/card/card.css
@@ -15,13 +15,19 @@ hr {
hr { background-color: black; }
.nightMode hr { background-color: white; }
-.card.front .target-word-reading,
-.card.front .target-word-translation,
-.card.front .sentence-translation,
+.card.front #target-word-reading,
+.card.front #target-word-translation,
+.card.front #sentence-translation,
.card.front hr,
.card.front ruby rt.hidden {
display: none;
}
-.sentence-translation { margin-top: 1em; }
+#sentence-translation { margin-top: 1em; }
+.spoiler {
+ transition: filter 300ms;
+ cursor: pointer;
+}
+.spoiler.hidden { filter: blur(0.3rem); }
+.spoiler.visible { filter: blur(0rem); }