css-media-vars icon indicating copy to clipboard operation
css-media-vars copied to clipboard

Explanation of syntax

Open stevenvachon opened this issue 4 years ago • 1 comments

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?

stevenvachon avatar Jul 20 '20 13:07 stevenvachon

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

JaneOri avatar Aug 14 '20 12:08 JaneOri