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 {
|
2018-11-02 02:25:36 -05:00
|
|
|
&--small {
|
|
|
|
max-width: 2rem;
|
|
|
|
min-width: 1.5rem;
|
|
|
|
|
|
|
|
input + label {
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input + label::before,
|
|
|
|
input + label::after {
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-19 09:22:41 -06:00
|
|
|
input + label::before,
|
|
|
|
input + label::after {
|
2017-12-06 07:11:25 -06:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-19 09:22:41 -06:00
|
|
|
gf-form-switch[disabled] {
|
2016-08-12 06:19:06 -05:00
|
|
|
.gf-form-label,
|
|
|
|
.gf-form-switch input + label {
|
|
|
|
cursor: default;
|
|
|
|
pointer-events: none !important;
|
2018-06-28 05:02:49 -05:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2017-06-06 04:03:56 -05:00
|
|
|
color: $text-color-faint;
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
2016-08-12 06:19:06 -05:00
|
|
|
}
|
2016-03-21 05:07:37 -05:00
|
|
|
}
|
2018-11-14 15:29:09 -06:00
|
|
|
|
2018-11-16 06:02:29 -06:00
|
|
|
.gf-form-switch-container {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2018-11-14 15:29:09 -06:00
|
|
|
.gf-form-switch {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 60px;
|
|
|
|
height: 34px;
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-bg;
|
2018-11-14 15:29:09 -06:00
|
|
|
|
|
|
|
input {
|
|
|
|
opacity: 0;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* The slider */
|
|
|
|
.gf-form-switch__slider {
|
|
|
|
position: absolute;
|
2018-11-14 23:35:02 -06:00
|
|
|
top: 8px;
|
2018-11-16 06:02:29 -06:00
|
|
|
left: 16px;
|
|
|
|
right: 14px;
|
2018-11-14 23:35:02 -06:00
|
|
|
bottom: 10px;
|
2018-11-16 06:02:29 -06:00
|
|
|
background: $switch-slider-off-bg;
|
|
|
|
border-radius: 8px;
|
|
|
|
height: 16px;
|
2018-11-14 15:29:09 -06:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
content: '';
|
2018-11-16 06:02:29 -06:00
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
2018-11-14 23:35:02 -06:00
|
|
|
left: 2px;
|
2018-11-16 06:02:29 -06:00
|
|
|
bottom: 2px;
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
/* input:focus + .gf-form-switch__slider { */
|
|
|
|
/* box-shadow: 0 0 1px #2196f3; */
|
|
|
|
/* } */
|
|
|
|
|
2018-11-16 06:02:29 -06:00
|
|
|
input:checked + .gf-form-switch__slider::before {
|
|
|
|
transform: translateX(14px);
|
2018-11-14 15:29:09 -06:00
|
|
|
}
|