- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sun, 06 Jun 2021 21:48:13 +0000
- To: public-css-archive@w3.org
Consider using variables: ```css .box { --value:50px; width : var(--value) ; height : var(--value) ; padding : var(--value) ; margin : var(--value) ; } ``` The file doesn't become smaller, but it becomes clear that you are deliberately setting the properties to the same value, and then if you want to change it into e.g. `60px`, you only have to update one place. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6353#issuecomment-855468162 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 6 June 2021 21:48:38 UTC