Last active
February 19, 2021 12:53
-
-
Save ffoodd/3ba670b42d92f7a6115ba568d18d3c79 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function tint-color($color, $weight) { | |
@return mix(white, $color, $weight); | |
} | |
@function shade-color($color, $weight) { | |
@return mix(black, $color, $weight); | |
} | |
@function shift-color($color, $weight) { | |
@return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight)); | |
} | |
$link-color: #639; | |
$link-shade-percentage: -20%; | |
$link-hover-color: shift-color($link-color, $link-shade-percentage); | |
a { | |
color: $link-color; | |
&:hover { | |
color: $link-hover-color; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
color: #639; | |
} | |
a:hover { | |
color: #855cad; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.26.11", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment