Created
June 16, 2014 21:36
-
-
Save bbbrrriiiaaannn/d3163bc807a14e3e0a30 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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 placeholder="placeheld" /> |
This file contains 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.2.19) | |
// Compass (v0.12.6) | |
// ---- | |
input | |
background-color: #ebebeb | |
@each $placeholder in '::-webkit-input-placeholder', '::-moz-placeholder', ':-ms-input-placeholder' | |
&#{$placeholder} | |
color: black | |
text-transform: uppercase | |
font-weight: bold | |
transition: opacity .2s ease | |
&:focus#{$placeholder} | |
opacity: 0 |
This file contains 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 { | |
background-color: #ebebeb; | |
} | |
input::-webkit-input-placeholder { | |
color: black; | |
text-transform: uppercase; | |
font-weight: bold; | |
transition: opacity 0.2s ease; | |
} | |
input:focus::-webkit-input-placeholder { | |
opacity: 0; | |
} | |
input::-moz-placeholder { | |
color: black; | |
text-transform: uppercase; | |
font-weight: bold; | |
transition: opacity 0.2s ease; | |
} | |
input:focus::-moz-placeholder { | |
opacity: 0; | |
} | |
input:-ms-input-placeholder { | |
color: black; | |
text-transform: uppercase; | |
font-weight: bold; | |
transition: opacity 0.2s ease; | |
} | |
input:focus:-ms-input-placeholder { | |
opacity: 0; | |
} |
This file contains 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 placeholder="placeheld" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment