mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-22 17:47:11 +03:00
standardized radio/toggle/checkbox labels
This commit is contained in:
parent
b8e85cbbad
commit
4695eda87b
1838
dist/css/material-fullpalette.css
vendored
1838
dist/css/material-fullpalette.css
vendored
File diff suppressed because it is too large
Load Diff
2
dist/css/material-fullpalette.css.map
vendored
2
dist/css/material-fullpalette.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material-fullpalette.min.css
vendored
2
dist/css/material-fullpalette.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material-fullpalette.min.css.map
vendored
2
dist/css/material-fullpalette.min.css.map
vendored
File diff suppressed because one or more lines are too long
242
dist/css/material.css
vendored
242
dist/css/material.css
vendored
|
@ -3877,14 +3877,17 @@ body .jumbotron-material-blue-grey,
|
|||
.form-group .checkbox label {
|
||||
font-size: 16px;
|
||||
line-height: 1.42857143;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-sm .checkbox label {
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-lg .checkbox label {
|
||||
font-size: 18px;
|
||||
line-height: 1.3333333;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group .checkbox {
|
||||
-webkit-transform: translateZ(0);
|
||||
|
@ -4494,29 +4497,44 @@ fieldset[disabled] .form-group .checkbox input[type=checkbox],
|
|||
opacity: 0;
|
||||
}
|
||||
}
|
||||
.togglebutton {
|
||||
.form-group .togglebutton label {
|
||||
font-size: 16px;
|
||||
line-height: 1.42857143;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-sm .togglebutton label {
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-lg .togglebutton label {
|
||||
font-size: 18px;
|
||||
line-height: 1.3333333;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group .togglebutton {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.togglebutton,
|
||||
.togglebutton label,
|
||||
.togglebutton input,
|
||||
.togglebutton .toggle {
|
||||
.form-group .togglebutton,
|
||||
.form-group .togglebutton label,
|
||||
.form-group .togglebutton input,
|
||||
.form-group .togglebutton .toggle {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.togglebutton label {
|
||||
font-weight: 400;
|
||||
.form-group .togglebutton label {
|
||||
cursor: pointer;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
}
|
||||
.togglebutton label input[type=checkbox] {
|
||||
.form-group .togglebutton label input[type=checkbox] {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.togglebutton label .toggle,
|
||||
.togglebutton label input[type=checkbox][disabled] + .toggle {
|
||||
.form-group .togglebutton label .toggle,
|
||||
.form-group .togglebutton label input[type=checkbox][disabled] + .toggle {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
|
@ -4527,7 +4545,7 @@ fieldset[disabled] .form-group .checkbox input[type=checkbox],
|
|||
transition: background 0.3s ease;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.togglebutton label .toggle:after {
|
||||
.form-group .togglebutton label .toggle:after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
|
@ -4540,279 +4558,295 @@ fieldset[disabled] .form-group .checkbox input[type=checkbox],
|
|||
top: -2px;
|
||||
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
|
||||
}
|
||||
.togglebutton label input[type=checkbox][disabled] + .toggle:after,
|
||||
.togglebutton label input[type=checkbox][disabled]:checked + .toggle:after {
|
||||
.form-group .togglebutton label input[type=checkbox][disabled] + .toggle:after,
|
||||
.form-group .togglebutton label input[type=checkbox][disabled]:checked + .toggle:after {
|
||||
background-color: #BDBDBD;
|
||||
}
|
||||
.togglebutton label input[type=checkbox] + .toggle:active:after,
|
||||
.togglebutton label input[type=checkbox][disabled] + .toggle:active:after {
|
||||
.form-group .togglebutton label input[type=checkbox] + .toggle:active:after,
|
||||
.form-group .togglebutton label input[type=checkbox][disabled] + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.togglebutton label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton label input[type=checkbox]:checked + .toggle:after {
|
||||
left: 15px;
|
||||
}
|
||||
.togglebutton label input[type=checkbox]:checked + .toggle,
|
||||
.togglebutton-default label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton label input[type=checkbox]:checked + .toggle,
|
||||
.form-group .togglebutton-default label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(0, 150, 136, 0.5);
|
||||
}
|
||||
.togglebutton-black label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-black label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.togglebutton-white label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-white label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.togglebutton-inverse label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-inverse label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(63, 81, 181, 0.5);
|
||||
}
|
||||
.togglebutton-primary label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-primary label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(0, 150, 136, 0.5);
|
||||
}
|
||||
.togglebutton-success label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-success label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(76, 175, 80, 0.5);
|
||||
}
|
||||
.togglebutton-info label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-info label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(3, 169, 244, 0.5);
|
||||
}
|
||||
.togglebutton-warning label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-warning label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 87, 34, 0.5);
|
||||
}
|
||||
.togglebutton-danger label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-danger label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(244, 67, 54, 0.5);
|
||||
}
|
||||
.togglebutton-material-red label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-red label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(244, 67, 54, 0.5);
|
||||
}
|
||||
.togglebutton-material-pink label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-pink label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(233, 30, 99, 0.5);
|
||||
}
|
||||
.togglebutton-material-purple label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-purple label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(156, 39, 176, 0.5);
|
||||
}
|
||||
.togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(103, 58, 183, 0.5);
|
||||
}
|
||||
.togglebutton-material-indigo label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-indigo label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(63, 81, 181, 0.5);
|
||||
}
|
||||
.togglebutton-material-blue label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-blue label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(33, 150, 243, 0.5);
|
||||
}
|
||||
.togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(3, 169, 244, 0.5);
|
||||
}
|
||||
.togglebutton-material-cyan label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-cyan label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(0, 188, 212, 0.5);
|
||||
}
|
||||
.togglebutton-material-teal label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-teal label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(0, 150, 136, 0.5);
|
||||
}
|
||||
.togglebutton-material-green label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-green label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(76, 175, 80, 0.5);
|
||||
}
|
||||
.togglebutton-material-light-green label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-light-green label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(139, 195, 74, 0.5);
|
||||
}
|
||||
.togglebutton-material-lime label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-lime label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(205, 220, 57, 0.5);
|
||||
}
|
||||
.togglebutton-material-yellow label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-yellow label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 235, 59, 0.5);
|
||||
}
|
||||
.togglebutton-material-amber label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-amber label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 193, 7, 0.5);
|
||||
}
|
||||
.togglebutton-material-orange label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-orange label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 152, 0, 0.5);
|
||||
}
|
||||
.togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(255, 87, 34, 0.5);
|
||||
}
|
||||
.togglebutton-material-brown label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-brown label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(121, 85, 72, 0.5);
|
||||
}
|
||||
.togglebutton-material-grey label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-grey label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(158, 158, 158, 0.5);
|
||||
}
|
||||
.togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle {
|
||||
.form-group .togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle {
|
||||
background-color: rgba(96, 125, 139, 0.5);
|
||||
}
|
||||
.togglebutton label input[type=checkbox]:checked + .toggle:after,
|
||||
.togglebutton-default label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton label input[type=checkbox]:checked + .toggle:after,
|
||||
.form-group .togglebutton-default label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #009688;
|
||||
}
|
||||
.togglebutton-black label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-black label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #000000;
|
||||
}
|
||||
.togglebutton-white label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-white label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.togglebutton-inverse label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-inverse label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #3f51b5;
|
||||
}
|
||||
.togglebutton-primary label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-primary label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #009688;
|
||||
}
|
||||
.togglebutton-success label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-success label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #4caf50;
|
||||
}
|
||||
.togglebutton-info label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-info label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #03a9f4;
|
||||
}
|
||||
.togglebutton-warning label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-warning label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ff5722;
|
||||
}
|
||||
.togglebutton-danger label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-danger label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #f44336;
|
||||
}
|
||||
.togglebutton-material-red label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-red label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #f44336;
|
||||
}
|
||||
.togglebutton-material-pink label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-pink label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #e91e63;
|
||||
}
|
||||
.togglebutton-material-purple label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-purple label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #9c27b0;
|
||||
}
|
||||
.togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #673ab7;
|
||||
}
|
||||
.togglebutton-material-indigo label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-indigo label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #3f51b5;
|
||||
}
|
||||
.togglebutton-material-blue label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-blue label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #2196f3;
|
||||
}
|
||||
.togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #03a9f4;
|
||||
}
|
||||
.togglebutton-material-cyan label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-cyan label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #00bcd4;
|
||||
}
|
||||
.togglebutton-material-teal label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-teal label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #009688;
|
||||
}
|
||||
.togglebutton-material-green label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-green label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #4caf50;
|
||||
}
|
||||
.togglebutton-material-light-green label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-light-green label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #8bc34a;
|
||||
}
|
||||
.togglebutton-material-lime label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-lime label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #cddc39;
|
||||
}
|
||||
.togglebutton-material-yellow label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-yellow label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ffeb3b;
|
||||
}
|
||||
.togglebutton-material-amber label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-amber label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ffc107;
|
||||
}
|
||||
.togglebutton-material-orange label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-orange label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ff9800;
|
||||
}
|
||||
.togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #ff5722;
|
||||
}
|
||||
.togglebutton-material-brown label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-brown label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #795548;
|
||||
}
|
||||
.togglebutton-material-grey label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-grey label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #9e9e9e;
|
||||
}
|
||||
.togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle:after {
|
||||
.form-group .togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle:after {
|
||||
background-color: #607d8b;
|
||||
}
|
||||
.togglebutton label input[type=checkbox]:checked + .toggle:active:after,
|
||||
.togglebutton-default label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton label input[type=checkbox]:checked + .toggle:active:after,
|
||||
.form-group .togglebutton-default label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 150, 136, 0.1);
|
||||
}
|
||||
.togglebutton-black label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-black label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.togglebutton-white label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-white label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
.togglebutton-inverse label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-inverse label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(63, 81, 181, 0.1);
|
||||
}
|
||||
.togglebutton-primary label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-primary label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 150, 136, 0.1);
|
||||
}
|
||||
.togglebutton-success label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-success label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(76, 175, 80, 0.1);
|
||||
}
|
||||
.togglebutton-info label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-info label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(3, 169, 244, 0.1);
|
||||
}
|
||||
.togglebutton-warning label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-warning label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 87, 34, 0.1);
|
||||
}
|
||||
.togglebutton-danger label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-danger label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(244, 67, 54, 0.1);
|
||||
}
|
||||
.togglebutton-material-red label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-red label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(244, 67, 54, 0.1);
|
||||
}
|
||||
.togglebutton-material-pink label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-pink label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(233, 30, 99, 0.1);
|
||||
}
|
||||
.togglebutton-material-purple label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-purple label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(156, 39, 176, 0.1);
|
||||
}
|
||||
.togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-deep-purple label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(103, 58, 183, 0.1);
|
||||
}
|
||||
.togglebutton-material-indigo label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-indigo label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(63, 81, 181, 0.1);
|
||||
}
|
||||
.togglebutton-material-blue label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-blue label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(33, 150, 243, 0.1);
|
||||
}
|
||||
.togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-light-blue label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(3, 169, 244, 0.1);
|
||||
}
|
||||
.togglebutton-material-cyan label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-cyan label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 188, 212, 0.1);
|
||||
}
|
||||
.togglebutton-material-teal label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-teal label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 150, 136, 0.1);
|
||||
}
|
||||
.togglebutton-material-green label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-green label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(76, 175, 80, 0.1);
|
||||
}
|
||||
.togglebutton-material-light-green label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-light-green label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(139, 195, 74, 0.1);
|
||||
}
|
||||
.togglebutton-material-lime label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-lime label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(205, 220, 57, 0.1);
|
||||
}
|
||||
.togglebutton-material-yellow label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-yellow label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 235, 59, 0.1);
|
||||
}
|
||||
.togglebutton-material-amber label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-amber label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 193, 7, 0.1);
|
||||
}
|
||||
.togglebutton-material-orange label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-orange label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 152, 0, 0.1);
|
||||
}
|
||||
.togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-deep-orange label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(255, 87, 34, 0.1);
|
||||
}
|
||||
.togglebutton-material-brown label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-brown label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(121, 85, 72, 0.1);
|
||||
}
|
||||
.togglebutton-material-grey label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-grey label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(158, 158, 158, 0.1);
|
||||
}
|
||||
.togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle:active:after {
|
||||
.form-group .togglebutton-material-blue-grey label input[type=checkbox]:checked + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(96, 125, 139, 0.1);
|
||||
}
|
||||
.form-horizontal .radio {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.form-group .radio label {
|
||||
font-size: 16px;
|
||||
line-height: 1.42857143;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-sm .radio label {
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
font-weight: normal;
|
||||
}
|
||||
.form-group.form-group-lg .radio label {
|
||||
font-size: 18px;
|
||||
line-height: 1.3333333;
|
||||
font-weight: normal;
|
||||
}
|
||||
.radio label {
|
||||
cursor: pointer;
|
||||
padding-left: 45px;
|
||||
position: relative;
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
}
|
||||
.radio label span {
|
||||
display: block;
|
||||
|
@ -4822,7 +4856,7 @@ fieldset[disabled] .form-group .checkbox input[type=checkbox],
|
|||
transition-duration: 0.2s;
|
||||
}
|
||||
.radio label .circle {
|
||||
border: 2px solid rgba(0, 0, 0, 0.84);
|
||||
border: 2px solid rgba(0, 0, 0, 0.54);
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border-radius: 100%;
|
||||
|
|
2
dist/css/material.css.map
vendored
2
dist/css/material.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material.min.css
vendored
2
dist/css/material.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material.min.css.map
vendored
2
dist/css/material.min.css.map
vendored
File diff suppressed because one or more lines are too long
|
@ -397,6 +397,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<h2>Input - floating labels
|
||||
<small>form-group sizing</small>
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
label {
|
||||
font-size: @placeholder-font-size;
|
||||
line-height: @line-height;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,40 @@
|
|||
.form-horizontal .radio {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-group-radio-variant(@placeholder-font-size, @line-height){
|
||||
.radio {
|
||||
label {
|
||||
font-size: @placeholder-font-size;
|
||||
line-height: @line-height;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
|
||||
// default label size/location
|
||||
.form-group-radio-variant(@md-input-font-size-base, @md-input-line-height-base);
|
||||
|
||||
// sm label size/location
|
||||
&.form-group-sm {
|
||||
.form-group-radio-variant(@md-input-font-size-small, @md-input-line-height-small);
|
||||
}
|
||||
|
||||
// lg label size/location
|
||||
&.form-group-lg {
|
||||
.form-group-radio-variant(@md-input-font-size-large, @md-input-line-height-large);
|
||||
}
|
||||
}
|
||||
|
||||
.radio {
|
||||
label {
|
||||
cursor: pointer;
|
||||
padding-left: 45px;
|
||||
position: relative;
|
||||
color: @radio-label-color;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
@ -14,7 +43,7 @@
|
|||
transition-duration: 0.2s;
|
||||
}
|
||||
.circle {
|
||||
border: 2px solid @lightbg-text;
|
||||
border: 2px solid @radio-border-color;
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
border-radius: 100%;
|
||||
|
@ -72,7 +101,6 @@
|
|||
input[type=radio][disabled] ~ .check {
|
||||
background-color: @lightbg-text;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@keyframes rippleOn {
|
||||
|
|
|
@ -1,69 +1,92 @@
|
|||
.togglebutton {
|
||||
vertical-align: middle;
|
||||
&, label, input, .toggle {
|
||||
user-select: none;
|
||||
.form-group-toggle-variant(@placeholder-font-size, @line-height){
|
||||
.togglebutton {
|
||||
label {
|
||||
font-size: @placeholder-font-size;
|
||||
line-height: @line-height;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
label {
|
||||
font-weight: 400;
|
||||
cursor: pointer;
|
||||
// Hide original checkbox
|
||||
input[type=checkbox] {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height:0;
|
||||
}
|
||||
// Switch bg off and disabled
|
||||
.toggle,
|
||||
input[type=checkbox][disabled] + .toggle {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 15px;
|
||||
background-color: rgba(80, 80, 80, 0.7);
|
||||
border-radius: 15px;
|
||||
margin-right: 10px;
|
||||
transition: background 0.3s ease;
|
||||
vertical-align: middle;
|
||||
}
|
||||
// Handle off
|
||||
.toggle:after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: #F1F1F1;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4);
|
||||
left: -5px;
|
||||
top: -2px;
|
||||
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
|
||||
}
|
||||
// Handle disabled
|
||||
input[type=checkbox][disabled] + .toggle:after,
|
||||
input[type=checkbox][disabled]:checked + .toggle:after{
|
||||
background-color: #BDBDBD;
|
||||
}
|
||||
// Ripple off and disabled
|
||||
input[type=checkbox] + .toggle:active:after,
|
||||
input[type=checkbox][disabled] + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
input[type=checkbox]:checked + .toggle:after {
|
||||
left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
|
||||
// default label size/location
|
||||
.form-group-toggle-variant(@md-input-font-size-base, @md-input-line-height-base);
|
||||
|
||||
// sm label size/location
|
||||
&.form-group-sm {
|
||||
.form-group-toggle-variant(@md-input-font-size-small, @md-input-line-height-small);
|
||||
}
|
||||
|
||||
// Switch bg on
|
||||
// SASS conversion note: please mirror any content change in _mixins-shared.scss bg-color-variations-content
|
||||
.generic-variations(~" label input[type=checkbox]:checked + .toggle", @primary, {
|
||||
background-color: fade(@material-color, 50%);
|
||||
});
|
||||
// Handle on
|
||||
// SASS conversion note: please mirror any content change in _mixins-shared.scss variations-content
|
||||
.variations(~" label input[type=checkbox]:checked + .toggle:after", background-color, @primary);
|
||||
// Ripple on
|
||||
.generic-variations(~" label input[type=checkbox]:checked + .toggle:active:after", @primary, {
|
||||
box-shadow: 0 1px 3px 1px rgba(0,0,0,0.4), 0 0 0 15px fade(@material-color, 10%);
|
||||
});
|
||||
// lg label size/location
|
||||
&.form-group-lg {
|
||||
.form-group-toggle-variant(@md-input-font-size-large, @md-input-line-height-large);
|
||||
}
|
||||
|
||||
.togglebutton {
|
||||
vertical-align: middle;
|
||||
&, label, input, .toggle {
|
||||
user-select: none;
|
||||
}
|
||||
label {
|
||||
cursor: pointer;
|
||||
color: @togglebutton-label-color;
|
||||
|
||||
// Hide original checkbox
|
||||
input[type=checkbox] {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
// Switch bg off and disabled
|
||||
.toggle,
|
||||
input[type=checkbox][disabled] + .toggle {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 15px;
|
||||
background-color: rgba(80, 80, 80, 0.7);
|
||||
border-radius: 15px;
|
||||
margin-right: 10px;
|
||||
transition: background 0.3s ease;
|
||||
vertical-align: middle;
|
||||
}
|
||||
// Handle off
|
||||
.toggle:after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: #F1F1F1;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
|
||||
left: -5px;
|
||||
top: -2px;
|
||||
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
|
||||
}
|
||||
// Handle disabled
|
||||
input[type=checkbox][disabled] + .toggle:after,
|
||||
input[type=checkbox][disabled]:checked + .toggle:after {
|
||||
background-color: #BDBDBD;
|
||||
}
|
||||
// Ripple off and disabled
|
||||
input[type=checkbox] + .toggle:active:after,
|
||||
input[type=checkbox][disabled] + .toggle:active:after {
|
||||
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
input[type=checkbox]:checked + .toggle:after {
|
||||
left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
// Switch bg on
|
||||
// SASS conversion note: please mirror any content change in _mixins-shared.scss bg-color-variations-content
|
||||
.generic-variations(~" label input[type=checkbox]:checked + .toggle", @primary, { background-color: fade(@material-color, 50%); });
|
||||
// Handle on
|
||||
// SASS conversion note: please mirror any content change in _mixins-shared.scss variations-content
|
||||
.variations(~" label input[type=checkbox]:checked + .toggle:after", background-color, @primary);
|
||||
// Ripple on
|
||||
.generic-variations(~" label input[type=checkbox]:checked + .toggle:active:after", @primary, { box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px fade(@material-color, 10%); });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,8 +157,8 @@
|
|||
@checkbox-animation-ripple: 500ms;
|
||||
@checkbox-animation-check: 0.3s;
|
||||
@checkbox-checked-color: #4caf50;
|
||||
@checkbox-border-color: rgba(0, 0, 0, .54);
|
||||
@checkbox-label-color: @checkbox-border-color;
|
||||
@checkbox-label-color: rgba(0, 0, 0, .54);
|
||||
@checkbox-border-color: @checkbox-label-color;
|
||||
|
||||
// Popovers and Popups
|
||||
@popover-background: rgba(101, 101, 101, 0.9);
|
||||
|
@ -167,3 +167,10 @@
|
|||
// Dropdown Menu
|
||||
@dropdown-radius: 2px;
|
||||
@dropdown-font-size: 16px;
|
||||
|
||||
// Toggle
|
||||
@togglebutton-label-color: @checkbox-label-color;
|
||||
|
||||
// Radio:
|
||||
@radio-label-color: @checkbox-label-color;
|
||||
@radio-border-color: @checkbox-border-color;
|
||||
|
|
Loading…
Reference in New Issue
Block a user