Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body styles trump :root in Anki's cards #60

Open
badlydrawnrob opened this issue Jan 21, 2024 · 0 comments
Open

body styles trump :root in Anki's cards #60

badlydrawnrob opened this issue Jan 21, 2024 · 0 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@badlydrawnrob
Copy link
Owner

badlydrawnrob commented Jan 21, 2024

  1. Anki app sets a default body styles ...
  2. :root has less specificity than body ...
  3. So Anki doesn't respect --font-family in :root
  4. It does render properly on both Safari and Brave, however.

This is a tricky one, I like the idea of using :root and don't see a reason to change it really. It involves repeating those styles in body for Anki themes. As it works for all browsers I've tested using :root this seems like an Anki-specific bug.

@badlydrawnrob badlydrawnrob added bug Something isn't working wontfix This will not be worked on labels Jan 21, 2024
@badlydrawnrob badlydrawnrob mentioned this issue Jan 22, 2024
2 tasks
@badlydrawnrob badlydrawnrob changed the title Problem with :root in Anki themes body styles trump :root in Anki's cards Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant