2015-11-05 17:25:02 +03:00
|
|
|
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2015-11-05 01:54:57 +03:00
|
|
|
|
2015-11-25 02:40:52 +03:00
|
|
|
@mixin radio-color($color, $opacity){
|
|
|
|
& ~ .check,
|
|
|
|
& ~ .circle {
|
|
|
|
opacity: $opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
& ~ .check {
|
|
|
|
background-color: $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
& ~ .circle {
|
|
|
|
border-color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-03 15:58:24 +04:00
|
|
|
.radio {
|
2015-11-02 23:39:13 +03:00
|
|
|
label {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 45px;
|
|
|
|
position: relative;
|
2015-11-21 19:37:35 +03:00
|
|
|
color: $mdb-radio-label-color;
|
2015-12-09 20:24:09 +03:00
|
|
|
@include mdb-label-color-toggle-focus();
|
2015-11-18 23:53:05 +03:00
|
|
|
|
2015-11-02 23:39:13 +03:00
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
|
|
|
top: 2px;
|
|
|
|
transition-duration: 0.2s;
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
.circle {
|
2015-11-25 02:40:52 +03:00
|
|
|
border: 2px solid $mdb-radio-color-off;
|
2015-11-02 23:39:13 +03:00
|
|
|
height: 15px;
|
|
|
|
width: 15px;
|
|
|
|
border-radius: 100%;
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
.check {
|
|
|
|
height: 15px;
|
|
|
|
width: 15px;
|
|
|
|
border-radius: 100%;
|
2015-11-25 02:40:52 +03:00
|
|
|
background-color: $mdb-radio-color-on;
|
2015-11-02 23:39:13 +03:00
|
|
|
transform: scale3d(0, 0, 0);
|
|
|
|
}
|
|
|
|
.check:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
content: "";
|
2015-11-25 01:34:17 +03:00
|
|
|
background-color: $mdb-text-color-primary;
|
2015-11-02 23:39:13 +03:00
|
|
|
left: -18px;
|
|
|
|
top: -18px;
|
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
border-radius: 100%;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
margin: 0;
|
|
|
|
transform: scale3d(1.5, 1.5, 1);
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
input[type=radio]:not(:checked) ~ .check:after {
|
|
|
|
animation: rippleOff 500ms;
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
input[type=radio]:checked ~ .check:after {
|
2016-01-26 21:31:52 +03:00
|
|
|
animation: rippleOn;
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type=radio] {
|
|
|
|
opacity: 0;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
overflow: hidden;
|
2015-11-25 02:40:52 +03:00
|
|
|
|
|
|
|
&:checked {
|
|
|
|
@include radio-color($mdb-radio-color-on, 1);
|
|
|
|
}
|
|
|
|
&:checked ~ .check {
|
|
|
|
transform: scale3d(0.55, 0.55, 1);
|
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
}
|
2015-11-25 02:40:52 +03:00
|
|
|
|
|
|
|
input[type=radio][disabled] {
|
|
|
|
|
|
|
|
// light theme spec: Disabled: #000000, Opacity 26%
|
|
|
|
@include radio-color($black, 0.26);
|
|
|
|
|
|
|
|
// dark theme spec: Disabled: #FFFFFF, Opacity 30%
|
|
|
|
.theme-dark & {
|
|
|
|
@include radio-color($white, 0.30);
|
|
|
|
}
|
2015-11-02 23:39:13 +03:00
|
|
|
}
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
|
|
|
|
2016-01-26 21:31:52 +03:00
|
|
|
// Prevent ripple effect on page load
|
|
|
|
.is-focused {
|
|
|
|
.radio {
|
|
|
|
input[type=radio]:checked ~ .check:after {
|
|
|
|
animation: rippleOn 500ms;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-03 15:58:24 +04:00
|
|
|
@keyframes rippleOn {
|
2015-11-02 23:39:13 +03:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes rippleOff {
|
2015-11-02 23:39:13 +03:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2014-10-03 15:58:24 +04:00
|
|
|
}
|