Created
August 27, 2018 13:05
-
-
Save blubbll/7867a5c5bcf4b5a795a101a7dc86d054 to your computer and use it in GitHub Desktop.
BS4 Simple Input with Icon :)
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
//general placement stuffs | |
.input-group.with-icon { | |
//padding for icon | |
input { | |
padding-right: 2rem; | |
&::-ms-clear { | |
//hide nasty ie clear thingie | |
display: none; | |
} //general placement stuffs | |
} | |
i { | |
pointer-events: none; | |
position: absolute; | |
right: .8rem; | |
z-index: 3; | |
top: 28%; | |
&.shy { | |
z-index: 1; | |
} | |
} | |
} | |
//codepen | |
body { | |
margin: 0; | |
background: whitesmoke; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment