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;
|
|
|
|
padding: 0.75em 1.5em;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|