fix(inputs): better customization for placeholder color

This commit is contained in:
Manu Mtz.-Almeida
2018-07-28 17:26:10 +02:00
parent f676f98628
commit 517104fbc7
12 changed files with 62 additions and 45 deletions

View File

@@ -35,35 +35,6 @@
-webkit-font-smoothing: antialiased;
}
// Input Placeholder
// --------------------------------------------------
@mixin placeholder($color: #999, $text-indent: 0, $opacity: null) {
&::-moz-placeholder { // Firefox 19+
color: $color;
@if ($opacity) {
opacity: $opacity;
}
}
&:-ms-input-placeholder {
color: $color;
@if ($opacity) {
opacity: $opacity;
}
}
&::-webkit-input-placeholder {
// Safari placeholder margin issue
text-indent: $text-indent;
color: $color;
@if ($opacity) {
opacity: $opacity;
}
}
}
// Get the key from a map based on the index
@function index-to-key($map, $index) {
$keys: map-keys($map);