We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F.e. this
:root { --margin-none: 0; --margin-small: 1em; --margin-medium: 2em; --margin-big: 3em; } el { margin: --margin-medium; }
could be rewritten as
:root { --scale: 1; } el { margin: calc(2em * --scale); }
That way, when editing the scale, you don't have to edit each version of the variable
The text was updated successfully, but these errors were encountered:
That's a really good tip! Only need to use one variable to change the whole whitespace of a document.
Sorry, something went wrong.
No branches or pull requests
F.e. this
could be rewritten as
That way, when editing the scale, you don't have to edit each version of the variable
The text was updated successfully, but these errors were encountered: