mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
38 lines
620 B
SCSS
38 lines
620 B
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.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;
|
|
}
|
|
}
|