So what I trying to do is set the width of the navbar-vertical
class from within the input[type=checkbox]
and input[type=checkbox]:checked
, but it's just not having any effect. I want to have a width for the normal state and the checked state for navbar-vertical
class. Any help please?
.navbar-vertical {
font-size: 1.2rem;
.nav-item {
&.nav-item-hamburger {
label {
cursor: pointer;
input[type=checkbox] {
+i:before {
content: "\f0c9";
}
&:checked {
+i:before {
content: "\f00d";
}
}
}
}
}
}
}
Here is the full example in Codepen.