Some minor changes with font-size and possibly additional styles for Markdown checkboxes. I'm using some edits of the original Print First CSS due to Verdana font being a bit too big at default --font-size.
Note: make sure rem is behaving properly (i.e. not inflating the font size with child elements)
Start here ...
Some very old CSS changes
[x] #23
code blocks
Some way to quickly spot a piece of code we're talking about (like the cloze deletion css)
It shouldn't be difficult to add (searching for a specific line of code once compiled is too slow)
rem only calculates from the default font-size which is set in :root (the --font-size variables are set in print-first-css (or override in anki themes) @ style/modules/variables/typography.less. Tested in Codepen[^2] — more rem notes
Before
After
image
image
More examples of --font-size issues:
[^1]: The code is currently doing some (slightly odd) font reduction as Verdana was too big at the root font-size.
[^2]: There is the question whether :root is the correct element to set the base font-size, perhaps html element is more appropriate, but fuck it, it seems to work fine. According to this root is practically the same as html
Start here ...
Some very old CSS changes
code block
sOther things:
code block
smaller--font-size
when viewed in AnkiMobile? (There's a lot of scrolling involved)img
inside code block?New functionality?
Back to the start ... priority changes
rem
sizing and cascade (Codepen)code
is large![^1]<code>
such as thisSome not-so-essential changes
<i>
and<b>
but there's also<mark>
Some
rem
testsMore examples of
--font-size
issues:[^1]: The
code
is currently doing some (slightly odd) font reduction as Verdana was too big at the root font-size. [^2]: There is the question whether:root
is the correct element to set the base font-size, perhapshtml
element is more appropriate, but fuck it, it seems to work fine. According to thisroot
is practically the same ashtml