mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-15 06:08:57 +03:00
adds support for inline checkbox
This commit is contained in:
parent
f3944db19e
commit
efd350929c
|
@ -2,14 +2,16 @@
|
||||||
.form-group {
|
.form-group {
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox {
|
.checkbox label,
|
||||||
label {
|
label.checkbox-inline {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding-left: 0; // Reset for Bootstrap rule
|
padding-left: 0; // Reset for Bootstrap rule
|
||||||
color: @mdb-checkbox-label-color;
|
color: @mdb-checkbox-label-color;
|
||||||
.mdb-label-color-toggle-focus();
|
.mdb-label-color-toggle-focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkbox,
|
||||||
|
label.checkbox-inline {
|
||||||
// Hide native checkbox
|
// Hide native checkbox
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -135,7 +137,8 @@
|
||||||
|
|
||||||
// Prevent checkbox animation and ripple effect on page load
|
// Prevent checkbox animation and ripple effect on page load
|
||||||
.is-focused {
|
.is-focused {
|
||||||
.checkbox {
|
.checkbox,
|
||||||
|
label.checkbox-inline {
|
||||||
.checkbox-material {
|
.checkbox-material {
|
||||||
.check:before {
|
.check:before {
|
||||||
animation: checkbox-off @mdb-checkbox-animation-check forwards;
|
animation: checkbox-off @mdb-checkbox-animation-check forwards;
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"
|
".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"
|
||||||
].join(","),
|
].join(","),
|
||||||
"inputElements": "input.form-control, textarea.form-control, select.form-control",
|
"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]",
|
"togglebuttonElements": ".togglebutton > label > input[type=checkbox]",
|
||||||
"radioElements": ".radio > label > input[type=radio]"
|
"radioElements": ".radio > label > input[type=radio]"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user