anki
anki copied to clipboard
Fix some minor css issues
Add useful CSS to this gist
Some minor changes with
font-sizeand possibly additional styles for Markdown checkboxes. I'm using some edits of the original Print First CSS due toVerdanafont being a bit too big at default--font-size.Note: make sure
remis 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)
- [x] #132 (duplicate #131) (write it manually, don't use the button)
- [x] #130
- [x] #125
- [x] #129
Other things:
- [ ] Make
code blocksmaller--font-sizewhen viewed in AnkiMobile? (There's a lot of scrolling involved) - [ ] #121
- [ ] Wrap inline code so it doesn't break layout
- [ ] #66
- [ ] Scrap
imginside code block? - [ ] It can be useful for speed (take a snapshot and use that)
- [ ] Scrap
New functionality?
- [ ] #40 (multiple choice)
- [ ] Style checkboxes
- [x] To look like
- [ ] Multiple choice
Back to the start ... priority changes
- [x] Testing with
remsizing and cascade (Codepen) - [x] Make sure that header
codeis large![^1]- [x] But not too large! — Card data is taking some styles from Pandoc's default
- [ ] The Notes section (some edits)
- Just make the notes section left-aligned? (looks neater)
- Add some styling to inline
<code>such as this
Some not-so-essential changes
- [ ] We have
<i>and<b>but there's also<mark>
Some rem tests
remonly calculates from the defaultfont-sizewhich is set in:root(the--font-sizevariables are set inprint-first-css(or override inanki themes) @style/modules/variables/typography.less. Tested in Codepen[^2] — moreremnotes
| 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