2014-08-18 18:25:33 +04:00
|
|
|
// main: material.less
|
|
|
|
|
|
|
|
.form-horizontal .checkbox {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
.checkbox {
|
|
|
|
label {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 45px;
|
|
|
|
position: relative;
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
|
|
|
transition-duration: 0.2s;
|
|
|
|
}
|
2014-08-20 14:53:26 +04:00
|
|
|
.ripple {
|
|
|
|
background-color: @lightbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
left: 0;
|
|
|
|
top: -10px;
|
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
|
|
|
border-radius: 100%;
|
|
|
|
transform: scale(0);
|
|
|
|
transition: transform .1s, opacity 0.2s 0.4s;
|
|
|
|
z-index: 1;
|
2014-08-20 14:53:26 +04:00
|
|
|
opacity: 0.2;
|
|
|
|
margin: 0;
|
2014-08-18 18:25:33 +04:00
|
|
|
&.animate {
|
|
|
|
transform: scale(1);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.box {
|
2014-08-20 14:53:26 +04:00
|
|
|
border: 2px solid @lightbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
transition-delay: 0.2s;
|
|
|
|
}
|
|
|
|
.check {
|
|
|
|
top: -4px;
|
|
|
|
left: 16px;
|
|
|
|
width: 12px;
|
|
|
|
height: 24px;
|
2014-08-20 14:53:26 +04:00
|
|
|
border: 2px solid;
|
2014-08-18 18:25:33 +04:00
|
|
|
border-top: none;
|
|
|
|
border-left: none;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 888;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
transition-delay: 0.2s;
|
|
|
|
}
|
2014-08-20 14:53:26 +04:00
|
|
|
}
|
|
|
|
.variations(~" .check", color, @success);
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
input[type=checkbox][disabled]:checked ~ .check,
|
|
|
|
input[type=checkbox][disabled]:not(:checked) ~ .box {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
input[type=checkbox][disabled] ~ .ripple {
|
|
|
|
opacity: 0.1;
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|
|
|
|
input[type=checkbox] { display: none; }
|
|
|
|
input[type=checkbox]:checked ~ .box {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0) rotate(-180deg);
|
|
|
|
}
|
2014-08-20 14:53:26 +04:00
|
|
|
.variations(~" input[type=checkbox]:checked ~ .ripple", background-color, @success);
|
2014-08-18 18:25:33 +04:00
|
|
|
input[type=checkbox]:checked ~ .check {
|
|
|
|
opacity: 1;
|
|
|
|
transform: scale(1) rotate(45deg);
|
|
|
|
}
|
2014-08-20 14:53:26 +04:00
|
|
|
|
|
|
|
input[type=checkbox][disabled] ~ .ripple {
|
|
|
|
background-color: @lightbg-text;
|
|
|
|
}
|
2014-08-18 18:25:33 +04:00
|
|
|
}
|