2016-03-21 05:07:37 -05:00
|
|
|
$switch-border-radius: 1rem;
|
|
|
|
$switch-width: 3.5rem;
|
|
|
|
$switch-height: 1.5rem;
|
|
|
|
|
|
|
|
/* ============================================================
|
2016-03-21 07:37:56 -05:00
|
|
|
SWITCH 3 - YES NO
|
2016-03-21 05:07:37 -05:00
|
|
|
============================================================ */
|
|
|
|
|
2016-03-21 07:37:56 -05:00
|
|
|
.gf-form-switch {
|
|
|
|
position: relative;
|
2016-03-21 08:08:18 -05:00
|
|
|
max-width: 4.5rem;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-width: 4.0rem;
|
2016-03-21 05:07:37 -05:00
|
|
|
|
2016-03-21 07:37:56 -05:00
|
|
|
input {
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -9999px;
|
|
|
|
visibility: hidden;
|
|
|
|
display: none;
|
|
|
|
}
|
2016-03-21 05:07:37 -05:00
|
|
|
|
2016-03-21 07:37:56 -05:00
|
|
|
input + label {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
outline: none;
|
|
|
|
user-select: none;
|
2016-03-21 08:08:18 -05:00
|
|
|
width: 100%;
|
2016-03-21 07:37:56 -05:00
|
|
|
height: 2.65rem;
|
|
|
|
background-color: $page-bg;
|
|
|
|
}
|
2016-03-21 05:27:53 -05:00
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input + label::before, input + label::after {
|
2016-03-23 16:28:38 -05:00
|
|
|
@include buttonBackground($input-bg, $input-bg);
|
|
|
|
|
2016-03-21 07:37:56 -05:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
color: #fff;
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
text-align: center;
|
2016-03-23 15:10:06 -05:00
|
|
|
line-height: 2.8rem;
|
|
|
|
font-size: 150%;
|
2016-03-21 07:37:56 -05:00
|
|
|
}
|
2016-03-21 05:27:53 -05:00
|
|
|
|
2016-03-23 16:28:38 -05:00
|
|
|
&:hover {
|
2016-06-20 03:37:47 -05:00
|
|
|
input + label::before {
|
2016-03-23 16:40:48 -05:00
|
|
|
@include buttonBackground($input-bg, lighten($input-bg, 5%));
|
|
|
|
color: $text-color;
|
2016-03-28 06:10:42 -05:00
|
|
|
text-shadow: $text-shadow-faint;
|
2016-03-23 16:40:48 -05:00
|
|
|
}
|
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input + label::after {
|
2016-03-23 16:28:38 -05:00
|
|
|
@include buttonBackground($input-bg, lighten($input-bg, 5%));
|
2016-03-28 06:10:42 -05:00
|
|
|
color: lighten($orange, 10%);
|
|
|
|
text-shadow: $text-shadow-strong;
|
2016-03-23 16:28:38 -05:00
|
|
|
}
|
2016-03-23 16:40:48 -05:00
|
|
|
|
2016-03-23 16:28:38 -05:00
|
|
|
}
|
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input + label::before {
|
2016-03-23 15:10:06 -05:00
|
|
|
font-family: 'FontAwesome';
|
2016-03-23 15:18:37 -05:00
|
|
|
content: "\f096"; // square-o
|
2016-03-28 06:10:42 -05:00
|
|
|
color: $text-color-faint;
|
2016-03-28 10:08:31 -05:00
|
|
|
transition: transform 0.4s;
|
2016-03-21 07:37:56 -05:00
|
|
|
backface-visibility: hidden;
|
2016-03-28 06:10:42 -05:00
|
|
|
text-shadow: $text-shadow-faint;
|
2016-03-21 07:37:56 -05:00
|
|
|
}
|
2016-03-21 05:27:53 -05:00
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input + label::after {
|
2016-03-23 15:10:06 -05:00
|
|
|
content: "\f046"; // check-square-o
|
2016-03-28 06:10:42 -05:00
|
|
|
color: $orange;
|
|
|
|
text-shadow: $text-shadow-strong;
|
2016-03-23 15:10:06 -05:00
|
|
|
|
|
|
|
font-family: 'FontAwesome';
|
2016-03-28 10:08:31 -05:00
|
|
|
transition: transform 0.4s;
|
2016-03-21 07:37:56 -05:00
|
|
|
transform: rotateY(180deg);
|
|
|
|
backface-visibility: hidden;
|
|
|
|
}
|
2016-03-21 05:27:53 -05:00
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input:checked + label::before {
|
2016-03-21 07:37:56 -05:00
|
|
|
transform: rotateY(180deg);
|
|
|
|
}
|
2016-03-21 05:27:53 -05:00
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
input:checked + label::after {
|
2016-03-21 07:37:56 -05:00
|
|
|
transform: rotateY(0);
|
|
|
|
}
|
2016-03-21 05:07:37 -05:00
|
|
|
}
|