Created
May 29, 2018 09:48
-
-
Save wiseoldman/a2d18dbc3ac80e120391bc89c75f18eb to your computer and use it in GitHub Desktop.
[Input mixins] Mixins for input fields #scss
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
@mixin placeholderColor($color) { | |
&:-moz-placeholder { | |
color: $color; | |
} | |
&:-ms-input-placeholder { | |
color: $color; | |
} | |
&::-moz-placeholder { | |
color: $color; | |
} | |
&::-webkit-input-placeholder { | |
color: $color; | |
} | |
} | |
@mixin hidePlaceholder() { | |
&:-moz-placeholder { | |
color: rgba(0,0,0,0); | |
} | |
&:-ms-input-placeholder { | |
color: rgba(0,0,0,0); | |
} | |
&::-moz-placeholder { | |
color: rgba(0,0,0,0); | |
} | |
&::-webkit-input-placeholder { | |
color: rgba(0,0,0,0); | |
} | |
} | |
@mixin autocompleteColor($background, $color) { | |
&:-webkit-autofill { | |
-webkit-box-shadow: 0 0 0 30px $background inset; | |
-webkit-text-fill-color: $color; | |
caret-color: $color; | |
font-style: italic; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment