mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 17:36:15 -04:00
refactor: replace deprecated global functions to fix Sass warnings
This commit is contained in:
parent
0a77e6f335
commit
537e3aedc2
9 changed files with 65 additions and 39 deletions
|
@ -1,8 +1,9 @@
|
|||
@use "sass:color";
|
||||
@use "sass:string";
|
||||
|
||||
// Display color as RGB
|
||||
@function display-rgb($color) {
|
||||
@return unquote(
|
||||
@return string.unquote(
|
||||
"rgb(" + color.channel($color, "red") + ", " + color.channel($color, "green") + ", " +
|
||||
color.channel($color, "blue") + ")"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue