aboutsummaryrefslogtreecommitdiff
path: root/anki-card-template/card.css
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-26 15:10:00 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-26 15:10:00 +0100
commitb08431560751855a4cc3783f3635004164dfbc1b (patch)
treefc31eaa1d0edf6ec540a42e6c0a572a20555f516 /anki-card-template/card.css
parent5cbababc24cbcddb712eb894956b3643224dc056 (diff)
fix empty detection, and only make sentence transparent if no word is highlighted
Diffstat (limited to 'anki-card-template/card.css')
-rw-r--r--anki-card-template/card.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/anki-card-template/card.css b/anki-card-template/card.css
index 693db90..648fd2b 100644
--- a/anki-card-template/card.css
+++ b/anki-card-template/card.css
@@ -32,9 +32,9 @@ body {
font-weight: 400;
}
-#card #sentence { color: #000b; }
+#card #sentence:has(b) { color: #000b; }
#card #sentence b { color: #000f; }
-.night_mode #card #sentence { color: #fffb; }
+.night_mode #card #sentence:has(b) { color: #fffb; }
.night_mode #card #sentence b { color: #ffff; }
/* body margin */