Signed-off-by: Jo-Philipp Wich <jo@mein.io>
background: var(--danger-color);
}
+.cbi-checkbox {
+ position: relative;
+}
+
.cbi-checkbox input[type="checkbox"] {
- display: none;
+ position: absolute;
+ z-index: 10;
+ -webkit-appearence: button;
+ height: 1.3em;
+ width: 1.3em;
+ opacity: 0;
+ cursor: pointer;
}
.cbi-checkbox input[type="checkbox"] + label {
position: absolute;
left: 0;
top: 0;
- cursor: pointer;
}
.cbi-checkbox input[type="checkbox"]:checked + label::after {
cursor: pointer;
}
+.cbi-checkbox input.cbi-input-invalid[type="checkbox"] + label::before {
+ box-shadow: 0 0 2px var(--danger-color);
+}
+
+.cbi-checkbox input.cbi-input-invalid[type="checkbox"]:checked + label::after {
+ background: var(--danger-color);
+}
+
input:not([type]),
input[type="text"],
input[type="password"],