Last active
September 7, 2020 15:33
-
-
Save djrmom/f3cf501c79ce83f965546da1a131f41f to your computer and use it in GitHub Desktop.
facetwp checkbox styles
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
/** style checked label differently **/ | |
.facetwp-type-checkboxes .facetwp-checkbox.checked { | |
color: red; | |
text-decoration: underline; | |
font-style: italic; | |
font-weight: bold; | |
} | |
/** basic example of inline row of checkboxes **/ | |
.facetwp-type-checkboxes .facetwp-checkbox { | |
display: inline-block; | |
width: 200px; | |
} | |
/** hides top level checkbox icon | |
** widens click area for +/- so that it triggers expand/collapse instead of selecition | |
**/ | |
.facetwp-type-checkboxes > .facetwp-checkbox { | |
position: relative; | |
background-image: none; | |
padding-left: 0; | |
} | |
.facetwp-type-checkboxes > .facetwp-checkbox.checked { | |
background-image: none; | |
} | |
.facetwp-type-checkboxes > .facetwp-checkbox .facetwp-expand { | |
width: 100%; | |
position: absolute; | |
right: 0; | |
display: block; | |
top: 0; | |
text-align: right; | |
} | |
/** right aligned checkboxes **/ | |
.facetwp-type-checkboxes .facetwp-checkbox { | |
background-position-x: right; | |
padding-right: 20px; | |
padding-left: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment