- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Fri, 11 Dec 2020 16:25:13 +0000
- To: public-css-archive@w3.org
Ok it is a simple addition or subtraction (followed by clamping): > The darken() function decreases lightness by a fixed amount, which is often not the desired effect. To make a color a certain percentage darker than it was before, use color.scale() instead. > https://sass-lang.com/documentation/modules/color > Because darken() is usually not the best way to make a color darker, it’s not included directly in the new module system. However, if you have to preserve the existing behavior, darken($color, $amount) can be written color.adjust($color, $lightness: -$amount). -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5782#issuecomment-743290912 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 11 December 2020 16:25:15 UTC