2018-12-25 15:03:51 +00:00
|
|
|
// Fancy Checkboxes
|
|
|
|
.fancycheckbox {
|
|
|
|
display: inline-block;
|
|
|
|
padding-right: 5px;
|
|
|
|
padding-top: 3px;
|
|
|
|
|
2020-03-22 20:40:13 +00:00
|
|
|
input[type=checkbox] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-04-29 21:41:39 +00:00
|
|
|
&.is-block {
|
2021-01-23 17:18:09 +00:00
|
|
|
margin: .5rem .2rem;
|
2019-04-29 21:41:39 +00:00
|
|
|
}
|
|
|
|
|
2018-12-25 15:03:51 +00:00
|
|
|
.check {
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
margin: auto;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
|
|
|
|
&:hover svg {
|
|
|
|
stroke: $primary;
|
|
|
|
}
|
|
|
|
|
2019-04-29 21:41:39 +00:00
|
|
|
span {
|
2021-01-23 17:18:09 +00:00
|
|
|
font-size: 0.8rem;
|
2019-04-29 21:41:39 +00:00
|
|
|
vertical-align: top;
|
2021-01-23 17:18:09 +00:00
|
|
|
padding-left: .5rem;
|
2019-04-29 21:41:39 +00:00
|
|
|
}
|
|
|
|
|
2018-12-25 15:03:51 +00:00
|
|
|
svg {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
fill: none;
|
|
|
|
stroke-linecap: round;
|
|
|
|
stroke-linejoin: round;
|
|
|
|
stroke: #c8ccd4;
|
|
|
|
stroke-width: 1.5;
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
path {
|
|
|
|
stroke-dasharray: 60;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
polyline {
|
|
|
|
stroke-dasharray: 22;
|
|
|
|
stroke-dashoffset: 66;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-22 20:40:13 +00:00
|
|
|
&.is-disabled .check:hover svg {
|
|
|
|
stroke: #c8ccd4;
|
|
|
|
}
|
|
|
|
|
2018-12-25 15:03:51 +00:00
|
|
|
input[type=checkbox]:checked + .check svg {
|
|
|
|
stroke: $primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=checkbox]:checked + .check svg path {
|
|
|
|
stroke-dashoffset: 60;
|
|
|
|
transition: all 0.3s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=checkbox]:checked + .check svg polyline {
|
|
|
|
stroke-dashoffset: 42;
|
|
|
|
transition: all 0.2s linear;
|
|
|
|
transition-delay: 0.15s;
|
|
|
|
}
|
|
|
|
}
|