Last active
November 26, 2020 13:51
-
-
Save pavr0m/1484a9d79bb8dea977173761edc9600f to your computer and use it in GitHub Desktop.
CSS helper mixins
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 placeholder-color( $color: #000, $font-style: normal, $font-size: inherit ) { | |
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | |
color: $color; | |
font-style: $font-style; | |
font-size: $font-size; | |
} | |
&::-moz-placeholder { /* Firefox 19+ */ | |
color: $color; | |
font-style: $font-style; | |
font-size: $font-size; | |
} | |
&:-ms-input-placeholder { /* IE 10+ */ | |
color: $color; | |
font-style: $font-style; | |
font-size: $font-size; | |
} | |
&:-moz-placeholder { /* Firefox 18- */ | |
color: $color; | |
font-style: $font-style; | |
font-size: $font-size; | |
} | |
} | |
@mixin no-scrollbar { | |
-ms-overflow-style: none; /* IE and Edge */ | |
scrollbar-width: none; /* Firefox */ | |
&::-webkit-scrollbar { | |
display: none; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment