2017-09-19 14:47:10 +00:00
|
|
|
@mixin input {
|
|
|
|
@include control;
|
|
|
|
background-color: #fff;
|
|
|
|
border-color: $grey-blue;
|
|
|
|
color: $text;
|
|
|
|
|
2018-01-11 19:37:54 +00:00
|
|
|
&:hover,
|
|
|
|
&.is-hovered,
|
|
|
|
&:active,
|
|
|
|
&.is-active,
|
|
|
|
&:focus,
|
|
|
|
&.is-focused {
|
2017-09-19 14:47:10 +00:00
|
|
|
border-color: darken($grey-blue, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
background-color: $grey-blue;
|
|
|
|
border-color: darken($grey-blue, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-11 19:37:54 +00:00
|
|
|
.input,
|
|
|
|
.textarea {
|
2017-09-19 14:47:10 +00:00
|
|
|
@include input;
|
|
|
|
box-shadow: none;
|
2019-02-13 16:44:29 +00:00
|
|
|
padding: 0.4em 0.75em;
|
2017-09-19 14:47:10 +00:00
|
|
|
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;
|
|
|
|
}
|
2019-11-06 07:14:03 +00:00
|
|
|
|
2020-03-31 04:14:44 +00:00
|
|
|
&.is-horizontal {
|
|
|
|
.field-label {
|
|
|
|
margin-right: 1rem;
|
|
|
|
padding-top: 0.3em;
|
|
|
|
font-weight: $weight-semibold;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&.is-small {
|
|
|
|
padding-top: 0.55em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-multiline {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-12 01:05:47 +00:00
|
|
|
&.is-sub-field {
|
|
|
|
margin-left: 2em;
|
|
|
|
}
|
|
|
|
|
2019-11-06 07:14:03 +00:00
|
|
|
&: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;
|
|
|
|
}
|
2017-09-19 14:47:10 +00:00
|
|
|
}
|