Forums › Forums › Search & Filter Pro › CSS filters
- This topic has 11 replies, 2 voices, and was last updated 5 years, 5 months ago by Trevor.
-
Anonymous(Private) June 17, 2019 at 11:34 am #214130
Good afternoon
I’m trying to assign a CSS to my filters. I’m having a problem that may be a problem but I can not find the solution:/* Filter Test */
input[type=”checkbox”] {
display: none;
}
input[type=”checkbox”]:checked {
background: rgb(255, 102, 0);
border-color: rgb(255, 102, 0);
}
input[type=”checkbox”]:checked {
transform: scale(1.3);
}.sf-input-checkbox {
display: block;
box-sizing: border-box;
width: 25px;
height: 25px;
background: #CCC;
margin: 100px;
border: 3px solid #7A7A7A;
border-radius: 45%;
position: relative;
cursor: pointer;
transition: .2s;
}
.sf-input-checkbox :before {
content: ”;
position: absolute;
display: block;
height: 300%;
width: 300%;
top: -100%;
left: -100%;
z-index: -1;
border-radius: 50%;
transition: .3s;
}
.sf-input-checkbox :after {
content: ”;
display: block;
height: 100%;
width: 100%;
background: url(“https://www.ert.pt/wp-content/uploads/2019/05/Check.svg”) center center no-repeat;
background-size: contain;
transform: scale(0);
transition: .2s;
}
.sf-input-checkbox :active:before {
background: #bfbfbf;
}In the CSS below, the checkbox and label have the same properties, when I assign PADDING or MARGING (left) on the label to move away from the checkbox, the checkbox also gains padding and “grows” horizontally next to the label.
It may be necessary to assign a class to the checkbox, but I can not finish this.
Thanks for the help.
Thanks. -
AuthorPosts