AnKing-VIP / AnKing-Note-Types

https://www.ankingmed.com
GNU Affero General Public License v3.0
41 stars 20 forks source link

Force cloze color to override b/u/i #177

Closed AnKingMed closed 3 months ago

AnKingMed commented 3 months ago

@abdnh can you review this quickly. It was proposed by some students who found that the bold/underline/italic styling was overriding the cloze styling. I wonder if adding html:not code or something like that before the b, u, i might be simpler?

abdnh commented 3 months ago

I think this solution is OK. :not() can be unintuitive. :not(.cloze) b for example doesn't work while :not(.cloze) > b does for simple cases, but breaks with nested elements (e.g. bold inside italic).