css-media-vars
css-media-vars copied to clipboard
Explanation of syntax
I think that it'd be beneficial to explain the syntax with a couple of sentences. For example, I quickly checked the documentation to see what --var2: var(--var1) value
does, but couldn't find anything. It looks like a ternary?
Sorry for not replying yet, I expected to get to this sooner than I have.
I will add an explanation, but for now, in case anyone comes here looking for one, each media var is just a space toggle that's either "on" (value is a single space) or "off" (value is initial
) depending on media state.
You can read more about space toggle here: https://github.com/propjockey/css-sweeper#basics-of-space-toggle