File: D:/HostingSpaces/SBogers10/centrum8a.komma.pro/resources/assets/sass/site/partials/_form.sass
.form
display: block
width: 100%
max-width: 560px
font-size: 1rem
line-height: 1.2
.honey
position: fixed
top: -50px
height: 20px
width: 100%
.honey-message, noscript
display: block
font-size: 0.75rem
color: $red
.form-element
position: relative
margin-bottom: 36px
&.has-error
input, textarea
border-color: $red
.error-message
display: none
width: 100%
margin-top: 0
padding: 7px 10px
color: $light
background-color: $red
border-radius: 4px
font-size: 0.75rem
font-weight: bold
&.active
display: block
margin-bottom: 10px
label, .label
display: block
margin-bottom: 10px
font-size: 0.7em
text-transform: uppercase
input, textarea
display: block
width: 100%
padding: 15px 20px
border: 2px transparent solid
border-radius: 4px
font-size: 0.9em
transition: background-color 0.3s
+placeholder
color: rgba($darkblue, 0.4) !important
&.alert
border-color: $red
&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active
transition: 9999s background-color, 9999s color
-webkit-text-fill-color: $darkblue
transition-delay: 9999s
&.has-error
border: 2px solid $red
background-color: lighten($red, 41%)
&:focus
box-shadow: none
outline: none
background-color: $neutral
color: $darkblue
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: $blue transparent transparent transparent
opacity: 0.3
pointer-events: none
select
display: block
width: 100%
+appearance(none)
font-family: $fontDefault
background-color: white
padding: 15px 35px 15px 20px
border: 1px transparent solid
border-radius: 4px
font-size: 0.9em
color: $blue
&: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)
.submit
margin-top: 20px
text-align: right
input
display: none
.button
cursor: pointer
.form-element
span
display: none
.c-form-feedback
margin: 0 0 10px
padding: 30px 50px
background: linear-gradient(45deg, rgba($red, 0.9) 15%, rgba($red, 0.6) 100%)
border: 2px solid rgba($offwhite, 0.8)
border-radius: 5px
font-size: 16px
color: $offwhite
&:not(:empty)
display: block
&:before
content: attr(data-feedback)
display: inline-block
margin-left: -20px
margin-bottom: 10px
font-weight: 700
color: $offwhite
li::first-letter
text-transform: uppercase