There’s been a handful of occasions where I’ve had to overwrite Anki’s default css styling, and at the moment it’s trial and error (hopefully !important rules are not needed). I’m sure default styles are light, but it’d be handy to know what they are explicitly to save time.
I’ve also had situations where styling differs (for instance inline codepadding-bottom being different in Safari mac OS and Anki’s built in browser) so publishing the Safari version you’re using might also be helpful (I can’t find it in releases here)
Apologies if these suggestions have come before, I couldn’t find them when searching. This plugin is an option, but I’d still prefer a downloadable/viewable file.
Probably not, I’ve encountered quite a few discrepancies in the styles relative to the desktop version in the past as well. But AnkiMobile is closed source, so there is nothing to reference for that one, unfortunately.
The next AnkiMobile update will allow inspecting the contents of the review screen using Safari debugging, so you’ll be able to inspect the source there too. The styling tries to match the desktop version, but there are sometimes differences due to compatibility drift over time, and due to the differences between the way the different platforms present their webviews.
Publishing the AnkiMobile CSS code specifically would still be extremely helpful for someone developing shared decks without access to an Apple device.
Is there any other general style AnkiMobile applies in addition to the reviewer CSS?
AnkiMobile tends to center text on the card, but I didn’t find any relevant style in the provided code above. For example, here:
The elements on the screenshots are all basic <h3>-<h5> and <label> elements inside a couple of layers of nested divs. The card styles are intended to align all content to the left, and this is how it looks on every other platform (desktop, AnkiDroid, AnkiWeb in every web browser, including Safari on iOS):
Thanks @Eltaurus@dae@David for the input. Hopefully we can have a central place in the documentation for this in future. I’ve never used Safari debugging on iOS before, so let’s see. It’d be great to try and have those styles in sync