Last active
January 14, 2020 20:36
-
-
Save adamculpepper/8f03578738a00192472da7a4ef8429b3 to your computer and use it in GitHub Desktop.
Required field indicator (Bootstrap 4)
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
.form-group.has-required {position:relative;} | |
.form-group.has-required:after { | |
content:'\f069'; | |
font-family:'FontAwesome'; | |
position:absolute; | |
top:1px; | |
right:1px; | |
padding:4px 7px; | |
text-align:center; | |
font-size:8px; | |
color:rgba(255, 0, 0, 0.20); | |
background:rgba(255, 0, 0, 0.10); | |
border-bottom-left-radius:4px; | |
border-top-right-radius:4px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment