Forum Archive

Modifying stylesheet variables (i.e. TEXT_FONT_SIZE, H1_FONT_SIZE)

TV

I've copied the default style sheet to one I want to use for a Multimarkdown to Email Workflow, but I see these variables (is that even the correct term? They aren't declared the way I thought css variables were declared) that I don't know where they're coming from.

There is a post over on the Pythonista forum about using StaSH to modify similarly named variables, but I don't see where these are set in Editorial.

I can hardcode them, but this is something I've not run across before in a stylesheet and want to learn.

Anyone have any insight on where these are getting their defaults?

I'm doing this on an iPhone, not iPad, if that makes any difference.

omz

Those variables are replaced by Editorial's internal Markdown "preprocessor". They don't actually show up in the actual HTML/CSS. The purpose is to make the default theme look more or less the same as the editor with regards to light/dark theme, font sizes, etc.