mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-13 13:17:03 +03:00
adds support for inline radio
This commit is contained in:
parent
8cc05fab34
commit
7414cd029d
|
@ -13,14 +13,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
.radio {
|
||||
label {
|
||||
.radio label, label.radio-inline {
|
||||
cursor: pointer;
|
||||
padding-left: 45px;
|
||||
position: relative;
|
||||
color: @mdb-radio-label-color;
|
||||
.mdb-label-color-toggle-focus();
|
||||
}
|
||||
|
||||
.radio, label.radio-inline {
|
||||
span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
@ -62,7 +63,6 @@
|
|||
input[type=radio]:checked ~ .check:after {
|
||||
animation: rippleOn;
|
||||
}
|
||||
}
|
||||
|
||||
input[type=radio] {
|
||||
opacity: 0;
|
||||
|
@ -92,7 +92,7 @@
|
|||
|
||||
// Prevent ripple effect on page load
|
||||
.is-focused {
|
||||
.radio {
|
||||
.radio, label.radio-inline {
|
||||
input[type=radio]:checked ~ .check:after {
|
||||
animation: rippleOn 500ms;
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
"inputElements": "input.form-control, textarea.form-control, select.form-control",
|
||||
"checkboxElements": ".checkbox > label > input[type=checkbox], label.checkbox-inline > input[type=checkbox]",
|
||||
"togglebuttonElements": ".togglebutton > label > input[type=checkbox]",
|
||||
"radioElements": ".radio > label > input[type=radio]"
|
||||
"radioElements": ".radio > label > input[type=radio], label.radio-inline > input[type=radio]"
|
||||
},
|
||||
"checkbox": function (selector) {
|
||||
// Add fake-checkbox to material checkboxes
|
||||
|
|
Loading…
Reference in New Issue
Block a user