-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a function to lighten/darken colors, ensuring a hue consistence. Also reorganize the stylesheet a bit
- Loading branch information
Showing
5 changed files
with
65 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// Slightly lighten a color | ||
/// @access public | ||
/// @param {Color} $color - color to tint | ||
/// @param {Number} $percentage - percentage of `$color` in returned color | ||
/// @return {Color} | ||
@function tint($color, $percentage) { | ||
@return mix(white, $color, $percentage); | ||
} | ||
|
||
/// Slightly darken a color | ||
/// @access public | ||
/// @param {Color} $color - color to shade | ||
/// @param {Number} $percentage - percentage of `$color` in returned color | ||
/// @return {Color} | ||
@function shade($color, $percentage) { | ||
@return mix(black, $color, $percentage); | ||
} |
This file contains 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
This file contains 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
This file contains 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