adds support for inline checkbox

This commit is contained in:
tilwinjoy 2016-04-26 11:12:39 +05:30
parent 29c0b07d03
commit 8cc05fab34
2 changed files with 12 additions and 9 deletions

View File

@ -2,14 +2,16 @@
.form-group {
}
.checkbox {
label {
cursor: pointer;
padding-left: 0; // Reset for Bootstrap rule
color: @mdb-checkbox-label-color;
.mdb-label-color-toggle-focus();
}
.checkbox label,
label.checkbox-inline {
cursor: pointer;
padding-left: 0; // Reset for Bootstrap rule
color: @mdb-checkbox-label-color;
.mdb-label-color-toggle-focus();
}
.checkbox,
label.checkbox-inline {
// Hide native checkbox
input[type=checkbox] {
opacity: 0;
@ -135,7 +137,8 @@
// Prevent checkbox animation and ripple effect on page load
.is-focused {
.checkbox {
.checkbox,
label.checkbox-inline {
.checkbox-material {
.check:before {
animation: checkbox-off @mdb-checkbox-animation-check forwards;

View File

@ -74,7 +74,7 @@
".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"
].join(","),
"inputElements": "input.form-control, textarea.form-control, select.form-control",
"checkboxElements": ".checkbox > label > input[type=checkbox]",
"checkboxElements": ".checkbox > label > input[type=checkbox], label.checkbox-inline > input[type=checkbox]",
"togglebuttonElements": ".togglebutton > label > input[type=checkbox]",
"radioElements": ".radio > label > input[type=radio]"
},