adds support for inline radio

This commit is contained in:
tilwinjoy 2016-04-26 11:38:51 +05:30
parent 8cc05fab34
commit 7414cd029d
2 changed files with 45 additions and 45 deletions

View File

@ -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;
}

View File

@ -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