Created
June 20, 2014 05:36
-
-
Save jensgro/38df61565313d91fa791 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<input type="text" placeholder="Super Platzhalter"> |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
@mixin input-placeholder() { | |
&::-webkit-input-placeholder { // WebKit browsers | |
@content; | |
} | |
&:-moz-placeholder { // Mozilla Firefox 4 to 18 | |
@content; | |
opacity: 1; | |
} | |
&::-moz-placeholder { // Mozilla Firefox 19+ | |
@content; | |
// opacity: 1; | |
} | |
&:-ms-input-placeholder { // Internet Explorer 10+ | |
@content; | |
} | |
&:placeholder { | |
@content; | |
} | |
} | |
input { | |
@include input-placeholder(){ | |
color: #a20000; | |
} | |
font-size: 20px; | |
border: 2px solid #a20000; | |
padding: 10px; | |
} |
This file contains hidden or 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
input { | |
font-size: 20px; | |
border: 2px solid #a20000; | |
padding: 10px; | |
} | |
input::-webkit-input-placeholder { | |
color: #a20000; | |
} | |
input:-moz-placeholder { | |
color: #a20000; | |
opacity: 1; | |
} | |
input::-moz-placeholder { | |
color: #a20000; | |
} | |
input:-ms-input-placeholder { | |
color: #a20000; | |
} | |
input:placeholder { | |
color: #a20000; | |
} |
This file contains hidden or 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
<input type="text" placeholder="Super Platzhalter"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment