File: D:/HostingSpaces/SBogers10/lc-hydraulics.komma.nl/resources/assets/sass/site/partials/_form.sass
.form
display: block
width: 100%
margin: auto
max-width: 420px
font-size: 1rem
line-height: 1.2
.form-error-messages
span
display: block
font-weight: semibold()
color: palette(primary, 400)
font-size: 0.75rem
line-height: 1.2
+respond-to-width(550)
max-width: none
.form-element
position: relative
border: 1px solid palette(secondary, 800)
//margin-bottom: 25px
&.has-error
border-left: 5px solid palette(primary, 400)
input, textarea
padding-left: 25px
label
text-transform: initial
font-weight: semibold()
color: palette(primary, 400)
font-size: 0.75rem
label, .label
position: absolute
top: 17px
left: 30px
display: block
color: palette(secondary, 200)
font-size: 0.7em
text-transform: uppercase
font-weight: bold()
input, textarea
display: block
width: 100%
background-color: white
padding: 34px 30px 20px
border: 1px transparent solid
font-size: 1em
color: palette(neutral, 600)
&.alert
border-color: palette(primary, 400)
&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active
transition: 9999s background-color
-webkit-text-fill-color: palette(neutral, 900)
transition-delay: 9999s
&:focus
box-shadow: none
outline: none
textarea
min-height: 152px
resize: vertical
.select
.select-wrapper
position: relative
display: block
.icon
position: absolute
right: 10px
top: 26px
display: inline-block
width: 0
height: 0
border-style: solid
border-width: 5px 6px 0 6px
border-color: palette(neutral, 900) transparent transparent transparent
opacity: 0.3
pointer-events: none
select
display: block
width: 100%
+appearance(none)
font-family: $fontFamily
background-color: white
padding: 15px 35px 15px 20px
border: 1px transparent solid
border-radius: 4px
font-size: 0.9em
color: palette(neutral, 900)
&:focus
box-shadow: none
outline: none
.checkbox
label
+flex(space-between, flex-start)
cursor: pointer
input
+appearance(none)
margin: 0
width: 20px
height: 20px
border-radius: 100%
padding: 0
border: none
background-color: rgba(white, 0.3)
background-size: contain
background-position: center
background-repeat: no-repeat
transition: background-color 0.3s
&:hover
background-color: rgba(white, 0.5)
&:checked
background-image: url("/img/check/checked.svg")
background-color: rgba(white, 0.7)
span
display: block
margin: 2px 0 0
width: calc(100% - 30px)
.honey
position: fixed
top: -100px
height: 20px
width: 100%
.submit
margin-top: 50px
text-align: right
.button
margin: 0 0 0 auto
cursor: pointer
color: palette(secondary, 200)
border-color: palette(secondary, 200)
&:hover
color: white
border-color: white
.arrow
margin-left: 25px
input
display: none