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
|
|
|
============================================================ */
|
|
|
|
|
2017-12-19 09:22:41 -06:00
|
|
|
gf-form-switch[disabled] {
|
2018-11-19 10:41:48 -06:00
|
|
|
.gf-form-switch,
|
|
|
|
.gf-form-switch-container {
|
2016-08-12 06:19:06 -05:00
|
|
|
cursor: default;
|
|
|
|
pointer-events: none !important;
|
2018-11-19 10:41:48 -06:00
|
|
|
.gf-form-label {
|
|
|
|
color: $text-color-weak;
|
2017-06-06 04:03:56 -05:00
|
|
|
}
|
2016-08-12 06:19:06 -05:00
|
|
|
}
|
2016-03-21 05:07:37 -05:00
|
|
|
}
|
2018-11-14 15:29:09 -06:00
|
|
|
|
2019-02-19 04:17:40 -06:00
|
|
|
.gf-form-switch-container-react {
|
|
|
|
display: flex;
|
2019-06-25 04:38:51 -05:00
|
|
|
flex-shrink: 0;
|
2019-02-19 04:17:40 -06:00
|
|
|
}
|
|
|
|
|
2018-11-16 06:02:29 -06:00
|
|
|
.gf-form-switch-container {
|
|
|
|
display: flex;
|
2018-11-19 10:41:48 -06:00
|
|
|
cursor: pointer;
|
2020-04-13 02:58:40 -05:00
|
|
|
margin-right: $space-xs;
|
2018-11-16 06:02:29 -06:00
|
|
|
}
|
|
|
|
|
2018-11-14 15:29:09 -06:00
|
|
|
.gf-form-switch {
|
2018-12-25 13:18:38 -06:00
|
|
|
display: flex;
|
2018-11-14 15:29:09 -06:00
|
|
|
position: relative;
|
2019-04-15 09:12:03 -05:00
|
|
|
width: 56px;
|
2019-03-13 03:40:56 -05:00
|
|
|
height: $input-height;
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-bg;
|
2018-11-16 14:45:19 -06:00
|
|
|
border: 1px solid $input-border-color;
|
2018-11-19 10:41:48 -06:00
|
|
|
border-radius: $input-border-radius;
|
2018-12-07 10:15:46 -06:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-11-14 15:29:09 -06:00
|
|
|
input {
|
|
|
|
opacity: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
2018-12-07 10:15:46 -06:00
|
|
|
|
|
|
|
&--transparent {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
width: 40px;
|
|
|
|
}
|
2018-11-14 15:29:09 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/* The slider */
|
|
|
|
.gf-form-switch__slider {
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-slider-off-bg;
|
|
|
|
border-radius: 8px;
|
|
|
|
height: 16px;
|
2019-04-15 09:12:03 -05:00
|
|
|
width: 32px;
|
2018-12-07 10:15:46 -06:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
2018-11-14 15:29:09 -06:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
content: '';
|
2018-11-16 06:02:29 -06:00
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
2019-04-15 09:12:03 -05:00
|
|
|
left: 2px;
|
2018-12-07 10:15:46 -06:00
|
|
|
top: 2px;
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-slider-color;
|
2018-11-14 15:29:09 -06:00
|
|
|
transition: 0.4s;
|
|
|
|
border-radius: 50%;
|
2018-11-16 06:02:29 -06:00
|
|
|
box-shadow: $switch-slider-shadow;
|
2018-11-14 15:29:09 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .gf-form-switch__slider {
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-slider-on-bg;
|
2018-11-14 15:29:09 -06:00
|
|
|
}
|
|
|
|
|
2018-11-16 06:02:29 -06:00
|
|
|
input:checked + .gf-form-switch__slider::before {
|
2019-04-15 09:12:03 -05:00
|
|
|
transform: translateX(16px);
|
2018-11-14 15:29:09 -06:00
|
|
|
}
|
2018-11-16 09:35:04 -06:00
|
|
|
|
2018-11-20 02:39:56 -06:00
|
|
|
.gf-form-checkbox {
|
|
|
|
position: relative;
|
2018-12-25 13:18:38 -06:00
|
|
|
display: flex;
|
2018-11-20 02:39:56 -06:00
|
|
|
width: 50px;
|
2019-03-13 03:40:56 -05:00
|
|
|
height: $input-height;
|
2018-11-20 02:39:56 -06:00
|
|
|
background: $switch-bg;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
border-left: none;
|
|
|
|
border-radius: $input-border-radius;
|
2018-11-29 11:39:02 -06:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-11-20 02:39:56 -06:00
|
|
|
|
|
|
|
input {
|
|
|
|
opacity: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2019-03-13 11:08:16 -05:00
|
|
|
appearance: none;
|
2018-11-20 02:39:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&--transparent {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
2018-12-14 09:48:13 -06:00
|
|
|
width: 23px;
|
2018-11-20 02:39:56 -06:00
|
|
|
height: auto;
|
|
|
|
position: relative;
|
2018-12-14 09:48:13 -06:00
|
|
|
padding-left: 8px;
|
2018-11-20 02:39:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
&--table-cell {
|
2018-11-29 11:39:02 -06:00
|
|
|
width: 20px;
|
2018-11-20 02:39:56 -06:00
|
|
|
background: transparent;
|
|
|
|
height: auto;
|
|
|
|
border: none;
|
|
|
|
position: relative;
|
|
|
|
top: -5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-16 09:35:04 -06:00
|
|
|
.gf-form-switch__checkbox {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: $checkbox-border;
|
|
|
|
background: $checkbox-bg;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-11-29 11:39:02 -06:00
|
|
|
justify-content: center;
|
2018-11-16 09:35:04 -06:00
|
|
|
}
|
2018-11-19 10:41:48 -06:00
|
|
|
|
2018-11-16 09:35:04 -06:00
|
|
|
input:checked + .gf-form-switch__checkbox::before {
|
|
|
|
font-family: 'FontAwesome';
|
|
|
|
content: '\f00c';
|
|
|
|
color: $checkbox-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .gf-form-switch__checkbox {
|
|
|
|
background: $checkbox-checked-bg;
|
|
|
|
border: none;
|
|
|
|
}
|