Skip to content

Commit

Permalink
Support color.adjust in Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Darklg committed Dec 13, 2024
1 parent 3f14cc6 commit 7da6adb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/clean-code.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,9 @@ a {
border-radius: 0;
}
}

/* Testing some sass properties */

a:hover {
color: color.adjust($color-hl, $lightness: -20%);
}
3 changes: 3 additions & 0 deletions css/dirty-code.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ justify-content: center; // 3. this comment is not removed

/* Is @media working ? */
@media(max-width:768px) {body {border-radius: 0px}}

/* Testing some sass properties */
a:hover{color: color.adjust($color-hl, $lightness: -20%)}
4 changes: 4 additions & 0 deletions inc/classes/csslisible.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class CSSLisible {
'regex' => '#((translate|rgba|calc)\((.+)\))#U',
'list' => array()
),
'color_include' => array(
'regex' => '#(color\.adjust\([^\)]*\))#U',
'list' => array()
),
'url_data_etc' => array(
'regex' => '#url\((.*)\)#U',
'list' => array()
Expand Down

0 comments on commit 7da6adb

Please sign in to comment.