mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
refactor: replace deprecated color functions to fix Sass warnings
This commit is contained in:
parent
64bfd3d797
commit
0a77e6f335
240 changed files with 604 additions and 595 deletions
|
@ -1,6 +1,11 @@
|
|||
@use "sass:color";
|
||||
|
||||
// Display color as RGB
|
||||
@function display-rgb($color) {
|
||||
@return unquote("rgb(" + red($color) + ", " + green($color) + ", " + blue($color) + ")");
|
||||
@return unquote(
|
||||
"rgb(" + color.channel($color, "red") + ", " + color.channel($color, "green") + ", " +
|
||||
color.channel($color, "blue") + ")"
|
||||
);
|
||||
}
|
||||
|
||||
// Generate a shadow layer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue