badlydrawnrob / anki

Learn to code with Anki — flashcards and themes for all learning levels. Master your programming language of choice!
MIT License
719 stars 61 forks source link

Overriding Anki's default `font-family` styles #140

Closed badlydrawnrob closed 2 weeks ago

badlydrawnrob commented 2 months ago

You must override body, not :root It's not a bug, you just have to override it.

Anki will not render your font-family properly if you only try to style :root. That's what I'm doing in the print-first-css code.

Body in Anki has a default font set, which the default .card {} styling overrides.

badlydrawnrob commented 2 weeks ago

Doing this already, but adding a comment in the CSS to note.