Skip to content

Instantly share code, notes, and snippets.

@alienresident
Created November 14, 2013 03:48
Show Gist options
  • Save alienresident/7461027 to your computer and use it in GitHub Desktop.
Save alienresident/7461027 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
// &#{&}
// http://sassmeister.com/gist/7461027
$primary: bada55;
@mixin placeholder() {
$form_placeholder_prefixes: ('::-webkit-input-placeholder', ':-moz-placeholder', '::-moz-placeholder', ':-ms-input-placeholder', '::input-placeholder', '::placeholder' );
@each $prefix in $form_placeholder_prefixes {
&[placeholder]#{$prefix} {
color: #333;
font-family: Arial;
}
}
}
//@include placeholder('input[type="search"]');
input[type="password"] {
@include placeholder();
}
input[type="password"][placeholder]::-webkit-input-placeholder {
color: #333;
font-family: Arial;
}
input[type="password"][placeholder]:-moz-placeholder {
color: #333;
font-family: Arial;
}
input[type="password"][placeholder]::-moz-placeholder {
color: #333;
font-family: Arial;
}
input[type="password"][placeholder]:-ms-input-placeholder {
color: #333;
font-family: Arial;
}
input[type="password"][placeholder]::input-placeholder {
color: #333;
font-family: Arial;
}
input[type="password"][placeholder]::placeholder {
color: #333;
font-family: Arial;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment