Last active
December 2, 2019 08:09
-
-
Save rtivital/75caebe3bff350e44930 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="email" placeholder="[email protected]" class="input"> |
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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
@mixin placeholder { | |
&::-webkit-input-placeholder {@content} | |
&:-moz-placeholder {@content} | |
&::-moz-placeholder {@content} | |
&:-ms-input-placeholder {@content} | |
} | |
.input { | |
padding: .5rem; | |
@include placeholder { | |
color: #aaa; | |
text-indent: 0px; | |
transition: text-indent 300ms; | |
} | |
&:focus { | |
@include placeholder { | |
text-indent: 500px; | |
} | |
} | |
} |
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 { | |
padding: .5rem; | |
} | |
.input::-webkit-input-placeholder { | |
color: #aaa; | |
text-indent: 0px; | |
transition: text-indent 300ms; | |
} | |
.input:-moz-placeholder { | |
color: #aaa; | |
text-indent: 0px; | |
transition: text-indent 300ms; | |
} | |
.input::-moz-placeholder { | |
color: #aaa; | |
text-indent: 0px; | |
transition: text-indent 300ms; | |
} | |
.input:-ms-input-placeholder { | |
color: #aaa; | |
text-indent: 0px; | |
transition: text-indent 300ms; | |
} | |
.input:focus::-webkit-input-placeholder { | |
text-indent: 500px; | |
} | |
.input:focus:-moz-placeholder { | |
text-indent: 500px; | |
} | |
.input:focus::-moz-placeholder { | |
text-indent: 500px; | |
} | |
.input:focus:-ms-input-placeholder { | |
text-indent: 500px; | |
} |
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="email" placeholder="[email protected]" class="input"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment