74 lines
1 KiB
SCSS
74 lines
1 KiB
SCSS
@mixin input {
|
|
@include control;
|
|
background-color: #fff;
|
|
border-color: $grey-blue;
|
|
color: $text;
|
|
|
|
&:hover,
|
|
&.is-hovered,
|
|
&:active,
|
|
&.is-active,
|
|
&:focus,
|
|
&.is-focused {
|
|
border-color: darken($grey-blue, 5%);
|
|
}
|
|
|
|
&[disabled] {
|
|
background-color: $grey-blue;
|
|
border-color: darken($grey-blue, 5%);
|
|
}
|
|
}
|
|
|
|
.input,
|
|
.textarea {
|
|
@include input;
|
|
box-shadow: none;
|
|
padding: 0.4em 0.75em;
|
|
height: auto;
|
|
|
|
&::placeholder {
|
|
color: $grey-blue;
|
|
}
|
|
|
|
&.is-compact {
|
|
padding: 0.25em 0.75em;
|
|
margin: -0.25em -0.25em -0.25em 0;
|
|
}
|
|
}
|
|
|
|
.field {
|
|
&.is-inline {
|
|
display: inline-block;
|
|
}
|
|
|
|
&.is-sub-field {
|
|
margin-left: 2em;
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
.form {
|
|
&.is-small {
|
|
font-size: 0.85rem;
|
|
|
|
.label {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
|
|
.label {
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
.group-heading {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05ch;
|
|
margin-bottom: 1.5em;
|
|
color: $grey;
|
|
font-weight: $weight-medium;
|
|
}
|
|
}
|