Last active
November 1, 2023 13:34
-
-
Save vfontjr/02700b9b8b915f35e9ad90ae67147c82 to your computer and use it in GitHub Desktop.
Source code for https://formidable-masterminds.com/customize-star-rating-field
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
.frm-star-group .star-rating { | |
margin-right: .25rem !important; | |
} | |
.frm-star-group input + label::before, .frm-star-group .star-rating::before { | |
font-family: 'Font Awesome 6 Pro' !important; | |
content: '' !important; | |
color: var(--mastermind-primary-color) !important; | |
} | |
.frm-star-group:not(.frm-star-hovered) input[type="radio"]:checked + label::before, .frm-star-group input + label:hover::before, .frm-star-group:hover input + label:hover::before, .frm-star-group .star-rating-on::before, .frm-star-group .star-rating-hover::before { | |
font-weight: 900 !important; | |
} | |
.frm-star-group input[type=radio]:checked + label:before, | |
.frm-star-group:not(.frm-star-hovered) input[type=radio]:checked + label:before { | |
color: var(--mastermind-primary-color) !important; | |
} | |
.fa-circle-dollar { | |
color: var(--tooltip-star-color); | |
} | |
/* hide the stars from post v.6.4.2 */ | |
label.star-rating > svg.frmsvg, | |
div.frm-star-group.frm-star-hovered > label.star-rating.star-rating-hover > svg.frmsvg, | |
.frm-star-group .star-rating-on .frmsvg:last-of-type { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment