Last active
March 1, 2016 03:38
-
-
Save jasonheecs/b63b1e9226bdb4b460be to your computer and use it in GitHub Desktop.
Nice border color and box-shadow effect
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
$border-shadow-color: generate-border-shadow-color($color-primary); | |
.input-element { | |
border-color: $color-primary; | |
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba($border-shadow-color, 0.6); | |
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s | |
} | |
@function generate-border-shadow-color($input-color) { | |
@return lighten(saturate(adjust-hue($input-color, -0.2273), 23.6585), 14.9020) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment