2016-03-21 05:07:37 -05:00
|
|
|
/* ============================================================
|
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;
|
2017-06-06 04:03:56 -05:00
|
|
|
margin-right: $gf-form-margin;
|
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%;
|
2017-12-09 14:42:48 -06:00
|
|
|
height: 37px;
|
|
|
|
background: $input-bg;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
border-left: none;
|
2017-12-10 05:21:04 -06:00
|
|
|
border-radius: $input-border-radius;
|
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::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
|
|
|
font-size: 150%;
|
2017-06-06 04:03:56 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
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-08-01 04:58:12 -05:00
|
|
|
color: $text-color-weak;
|
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-08-12 06:19:06 -05:00
|
|
|
|
2017-06-06 04:03:56 -05:00
|
|
|
&--table-cell {
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
input + label {
|
|
|
|
height: 3.6rem;
|
|
|
|
}
|
|
|
|
}
|
2016-08-12 06:19:06 -05:00
|
|
|
}
|
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
.gf-form-switch--transparent {
|
2017-12-04 08:22:08 -06:00
|
|
|
input + label {
|
2017-12-06 07:11:25 -06:00
|
|
|
background: transparent;
|
2017-12-12 06:55:32 -06:00
|
|
|
border: none;
|
2017-12-04 08:22:08 -06:00
|
|
|
}
|
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
input + label::before, input + label::after {
|
|
|
|
background: transparent;
|
2017-12-12 06:55:32 -06:00
|
|
|
border: none;
|
2017-12-06 07:11:25 -06:00
|
|
|
}
|
2017-12-04 08:22:08 -06:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
input + label::before {
|
2017-12-06 07:11:25 -06:00
|
|
|
background: transparent;
|
2017-12-04 08:22:08 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
input + label::after {
|
2017-12-06 07:11:25 -06:00
|
|
|
background: transparent;
|
2017-12-04 08:22:08 -06:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 07:11:25 -06:00
|
|
|
}
|
2017-12-04 08:22:08 -06:00
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
.gf-form-switch--search-result__section {
|
2017-12-13 04:08:28 -06:00
|
|
|
min-width: 3.05rem;
|
2017-12-06 07:11:25 -06:00
|
|
|
margin-right: -0.3rem;
|
2017-12-04 08:22:08 -06:00
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
input + label {
|
|
|
|
height: 1.7rem;
|
2017-12-04 08:22:08 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gf-form-switch--search-result__item {
|
2017-12-13 04:08:28 -06:00
|
|
|
min-width: 2.7rem;
|
2017-12-06 07:11:25 -06:00
|
|
|
|
2017-12-04 08:22:08 -06:00
|
|
|
input + label {
|
|
|
|
height: 2.7rem;
|
|
|
|
}
|
2017-12-06 07:11:25 -06:00
|
|
|
}
|
2017-12-04 08:22:08 -06:00
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
.gf-form-switch--search-result-filter-row__checkbox {
|
2017-12-13 04:08:28 -06:00
|
|
|
min-width: 3.75rem;
|
2017-12-04 08:22:08 -06:00
|
|
|
|
2017-12-06 07:11:25 -06:00
|
|
|
input + label {
|
|
|
|
height: 2.5rem;
|
2017-12-04 08:22:08 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-12 06:19:06 -05:00
|
|
|
gf-form-switch[disabled] {
|
|
|
|
.gf-form-label,
|
|
|
|
.gf-form-switch input + label {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none !important;
|
2017-06-06 04:03:56 -05:00
|
|
|
&::before {
|
|
|
|
color: $text-color-faint;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2016-08-12 06:19:06 -05:00
|
|
|
}
|
2016-03-21 05:07:37 -05:00
|
|
|
}
|