2019-10-13 14:12:30 +00:00
|
|
|
$input-color: $text-strong !default
|
|
|
|
$input-background-color: $scheme-main !default
|
|
|
|
$input-border-color: $border !default
|
2019-05-18 14:52:00 +00:00
|
|
|
$input-height: $control-height !default
|
2019-10-13 14:12:30 +00:00
|
|
|
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
|
2019-05-18 14:52:00 +00:00
|
|
|
$input-placeholder-color: rgba($input-color, 0.3) !default
|
|
|
|
|
2019-10-13 14:12:30 +00:00
|
|
|
$input-hover-color: $text-strong !default
|
|
|
|
$input-hover-border-color: $border-hover !default
|
2019-05-18 14:52:00 +00:00
|
|
|
|
2019-10-13 14:12:30 +00:00
|
|
|
$input-focus-color: $text-strong !default
|
2019-05-18 14:52:00 +00:00
|
|
|
$input-focus-border-color: $link !default
|
|
|
|
$input-focus-box-shadow-size: 0 0 0 0.125em !default
|
|
|
|
$input-focus-box-shadow-color: rgba($link, 0.25) !default
|
|
|
|
|
|
|
|
$input-disabled-color: $text-light !default
|
|
|
|
$input-disabled-background-color: $background !default
|
|
|
|
$input-disabled-border-color: $background !default
|
|
|
|
$input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default
|
|
|
|
|
|
|
|
$input-arrow: $link !default
|
|
|
|
|
2019-10-13 14:12:30 +00:00
|
|
|
$input-icon-color: $border !default
|
|
|
|
$input-icon-active-color: $text !default
|
2019-05-18 14:52:00 +00:00
|
|
|
|
|
|
|
$input-radius: $radius !default
|
|
|
|
|
|
|
|
=input
|
|
|
|
@extend %control
|
|
|
|
background-color: $input-background-color
|
|
|
|
border-color: $input-border-color
|
|
|
|
border-radius: $input-radius
|
|
|
|
color: $input-color
|
|
|
|
+placeholder
|
|
|
|
color: $input-placeholder-color
|
|
|
|
&:hover,
|
|
|
|
&.is-hovered
|
|
|
|
border-color: $input-hover-border-color
|
|
|
|
&:focus,
|
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
|
|
|
&.is-active
|
|
|
|
border-color: $input-focus-border-color
|
|
|
|
box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
|
|
|
|
&[disabled],
|
|
|
|
fieldset[disabled] &
|
|
|
|
background-color: $input-disabled-background-color
|
|
|
|
border-color: $input-disabled-border-color
|
|
|
|
box-shadow: none
|
|
|
|
color: $input-disabled-color
|
|
|
|
+placeholder
|
|
|
|
color: $input-disabled-placeholder-color
|
|
|
|
|
|
|
|
%input
|
|
|
|
+input
|