Skip to content

Instantly share code, notes, and snippets.

@jasonheecs
Last active March 1, 2016 03:38
Show Gist options
  • Save jasonheecs/b63b1e9226bdb4b460be to your computer and use it in GitHub Desktop.
Save jasonheecs/b63b1e9226bdb4b460be to your computer and use it in GitHub Desktop.
Nice border color and box-shadow effect
$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