SiteWebAstrolabe/src/scss/components/_form.scss

125 lines
1.7 KiB
SCSS
Raw Normal View History

2020-06-19 23:47:44 +02:00
/* Form */
2020-06-23 13:44:10 +02:00
.form-container {
padding: 0 0 6rem;
background-color: var(--color-primary);
color: var(--color-dark);
svg > path:first-child {
fill: #f1f0f6;
}
.contact-heading {
margin: 2rem 0 4rem;
}
}
.field-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto;
grid-column-gap: 1.5rem;
grid-row-gap: 1.5rem;
.full-width {
grid-column: span 2;
}
2020-06-19 23:47:44 +02:00
}
form br {
display: none;
}
label {
display: block;
font-weight: 600;
}
input,
textarea,
select {
@include apply-utility('font', 'base');
2020-06-23 13:44:10 +02:00
background-color: var(--color-primary-glare);
2020-06-19 23:47:44 +02:00
font: inherit;
2020-06-23 13:44:10 +02:00
border: 0;
margin-top: 1rem;
line-height: 1.5rem;
padding: .75rem 1.5rem;
border-radius: 1.5rem;
2020-06-19 23:47:44 +02:00
width: 100%;
}
2020-06-23 13:44:10 +02:00
textarea {
resize: none;
}
select {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
2020-06-19 23:47:44 +02:00
label input {
2020-06-23 13:44:10 +02:00
margin: -.25rem 1rem 0 0;
2020-06-19 23:47:44 +02:00
width: auto;
vertical-align: middle;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
legend {
display: block;
font-weight: bold;
}
2020-06-23 13:44:10 +02:00
.btn[type=submit] {
margin-top: 3.5rem;
padding-left: 3rem;
padding-right: 3rem;
justify-self: start;
}
2020-06-19 23:47:44 +02:00
.field-list {
margin: 0;
padding: 0;
list-style: none;
}
.field-list__field-group {
2020-06-23 13:44:10 +02:00
// margin-bottom: 2rem;
2020-06-19 23:47:44 +02:00
transition: transform 150ms;
&__description {
display: block;
margin-top: .3rem;
font-size: .875rem;
line-height: 1.25;
}
textarea + &__description {
margin-top: 0;
}
&--confirm {
font-weight: normal;
}
&__list {
list-style: none;
margin: 0;
label {
2020-06-23 13:44:10 +02:00
// font-weight: normal;
2020-06-19 23:47:44 +02:00
}
.field-list__field-group__description {
margin: 0 0 0 1.35rem;
}
}
}