You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
643 B
SCSS
48 lines
643 B
SCSS
.field {
|
|
position: relative;
|
|
|
|
background: white;
|
|
border: 2px solid $color--passive;
|
|
border-radius: 0.2rem;
|
|
|
|
width: 100%;
|
|
@media (min-width: 35em) {
|
|
&--small {
|
|
width: 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.field__label {
|
|
font-size: -cdd-rem(14);
|
|
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
|
|
display: block;
|
|
padding: 0.3rem 0.4rem;
|
|
|
|
.field--required &::after {
|
|
padding-left: 0.1em;
|
|
content: '*';
|
|
color: $color--warn;
|
|
}
|
|
}
|
|
|
|
.field__input {
|
|
font: inherit;
|
|
border-radius: 0.2rem;
|
|
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0.3rem 0.4rem;
|
|
padding-top: 1.7rem;
|
|
}
|
|
|
|
// Prevent horizontal resizing
|
|
.field textarea {
|
|
resize: vertical;
|
|
}
|