2021-12-28 03:32:11 +00:00
|
|
|
$_theme: () !default
|
|
|
|
|
|
|
|
@use "sass:map"
|
2020-08-31 13:22:16 +00:00
|
|
|
|
|
|
|
@mixin disabled
|
2021-12-28 03:32:11 +00:00
|
|
|
background-color: map.get($_theme, "bg-2")
|
2020-08-31 13:22:16 +00:00
|
|
|
color: #808080
|
|
|
|
|
|
|
|
fieldset
|
|
|
|
border: none
|
|
|
|
padding: 55px 0px 0px 0px
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
@media screen and (max-width: 400px)
|
|
|
|
padding-top: 70px
|
|
|
|
|
|
|
|
legend
|
|
|
|
position: absolute
|
|
|
|
top: 5px
|
|
|
|
left: 0px
|
|
|
|
width: 100%
|
|
|
|
font-size: 28px
|
|
|
|
font-weight: bold
|
|
|
|
padding: 0
|
2021-12-28 03:32:11 +00:00
|
|
|
border-bottom: 1px solid map.get($_theme, "edge-grey") // TODO: originally contrasted more
|
2020-08-31 13:22:16 +00:00
|
|
|
line-height: 1.56
|
|
|
|
|
|
|
|
@media screen and (max-width: 400px)
|
|
|
|
margin-top: 15px
|
|
|
|
|
|
|
|
|
|
|
|
.field-row
|
|
|
|
line-height: 1
|
2021-04-25 12:02:23 +00:00
|
|
|
display: grid
|
|
|
|
grid-template-areas: "label input" "description description"
|
2020-08-31 13:22:16 +00:00
|
|
|
align-items: center
|
|
|
|
justify-content: space-between
|
|
|
|
position: relative
|
|
|
|
padding-bottom: 5px
|
|
|
|
margin-bottom: 5px
|
2021-12-28 03:32:11 +00:00
|
|
|
border-bottom: 1px solid map.get($_theme, "edge-grey")
|
2020-08-31 13:22:16 +00:00
|
|
|
|
|
|
|
@media screen and (max-width: 400px)
|
|
|
|
flex-direction: column
|
|
|
|
align-items: start
|
|
|
|
padding-bottom: 15px
|
|
|
|
|
2021-05-11 12:29:05 +00:00
|
|
|
&.max-width-input
|
|
|
|
grid-template-columns: auto 1fr
|
|
|
|
|
|
|
|
.field-row__input
|
|
|
|
justify-self: stretch
|
|
|
|
|
2021-04-25 12:02:23 +00:00
|
|
|
&__label
|
|
|
|
grid-area: label
|
2020-08-31 13:22:16 +00:00
|
|
|
padding: 8px 8px 8px 0px
|
2021-12-28 03:32:11 +00:00
|
|
|
color: map.get($_theme, "fg-main")
|
2021-04-25 12:02:23 +00:00
|
|
|
|
|
|
|
&__input
|
|
|
|
grid-area: input
|
|
|
|
justify-self: end
|
|
|
|
|
|
|
|
&__description
|
|
|
|
grid-area: description
|
|
|
|
white-space: pre-line
|
|
|
|
margin: 12px 0px 18px
|
|
|
|
font-size: 16px
|
2021-12-28 03:32:11 +00:00
|
|
|
color: map.get($_theme, "fg-dim")
|
2021-05-11 12:29:05 +00:00
|
|
|
line-height: 1.2
|
2020-08-31 13:22:16 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
.checkbox-row
|
|
|
|
.pill
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
user-select: none
|
|
|
|
|
|
|
|
.fake-checkbox
|
|
|
|
-webkit-appearance: none
|
|
|
|
background-color: white
|
|
|
|
width: 16px
|
|
|
|
height: 16px
|
|
|
|
padding: 0px
|
2021-12-28 03:32:11 +00:00
|
|
|
border: 1px solid map.get($_theme, "edge-grey")
|
2020-08-31 13:22:16 +00:00
|
|
|
border-radius: 3px
|
|
|
|
margin-left: 8px
|
|
|
|
position: relative
|
|
|
|
outline: none
|
|
|
|
|
|
|
|
.checkbox
|
|
|
|
display: none
|
|
|
|
|
|
|
|
&:checked + .pill .fake-checkbox
|
|
|
|
background: center center / contain url(/static/img/tick.svg)
|
|
|
|
|
|
|
|
&:disabled + .pill
|
|
|
|
@include disabled
|
|
|
|
|
|
|
|
.fake-checkbox
|
|
|
|
@include disabled
|
|
|
|
|
|
|
|
&.checkbox:not(:disabled) + .pill
|
|
|
|
@include acts-like-button
|
|
|
|
cursor: pointer
|
2020-12-29 03:21:48 +00:00
|
|
|
|
|
|
|
@mixin checkbox-hider($base)
|
|
|
|
##{$base}
|
|
|
|
position: relative
|
|
|
|
left: 10px
|
|
|
|
display: block
|
|
|
|
z-index: 1
|
|
|
|
height: 42px
|
|
|
|
margin: 0
|
|
|
|
|
2021-12-28 03:32:11 +00:00
|
|
|
.checkbox-hider__container
|
|
|
|
position: relative
|
|
|
|
display: grid // why does the default not work???
|
|
|
|
top: -42px
|
|
|
|
background: map.get($_theme, "bg-3")
|
|
|
|
line-height: 1
|
|
|
|
border: 1px solid map.get($_theme, "edge-grey")
|
|
|
|
border-radius: 8px
|
|
|
|
margin-bottom: -18px
|
|
|
|
|
|
|
|
.checkbox-hider__label
|
|
|
|
padding: 12px 0px 12px 32px
|
|
|
|
cursor: pointer
|
2021-01-09 01:09:59 +00:00
|
|
|
|
|
|
|
@mixin single-button-form
|
|
|
|
display: inline-block
|
|
|
|
white-space: pre-wrap // preserve whitespace inside the form at the edge
|
|
|
|
|
|
|
|
> button
|
|
|
|
background: none
|
|
|
|
padding: 0
|
|
|
|
margin: 0
|
|
|
|
border: none
|
|
|
|
color: inherit
|
|
|
|
font-family: inherit
|
|
|
|
font-size: inherit
|
|
|
|
text-decoration: underline
|