Skip to content

Instantly share code, notes, and snippets.

@mikefowler
Created August 19, 2015 23:26
Show Gist options
  • Save mikefowler/077b8e2bdbf03aac10e0 to your computer and use it in GitHub Desktop.
Save mikefowler/077b8e2bdbf03aac10e0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin placeholder($selectors) {
$prefixes: -moz-placeholder, -webkit-input-placeholder;
@each $p in $prefixes {
$selector: ();
@each $s in $selectors {
$selector: append($selector, '#{$s}::#{$p}');
}
#{$selector)} {
@content;
}
}
}
@include placeholder(
'.DateRangePicker--Input--Start'
'.DateRangePicker--Input--End'
) {
text-align: center;
};
.DateRangePicker--Input--Start::-moz-placeholder .DateRangePicker--Input--End::-moz-placeholder {
text-align: center;
}
.DateRangePicker--Input--Start::-webkit-input-placeholder .DateRangePicker--Input--End::-webkit-input-placeholder {
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment