SCSS: Mixin placeholder color

@mixin placeholder($color) { &::-moz-placeholder { color: $color; opacity: 1; } &:-ms-input-placeholder { color: $color; } &::-webkit-input-placeholder { color: $color; } } // Example // .form-control { // $color: #ededed !default; // @include placeholder($color); // }
Latest version:
- Add example

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.