| 1 |
@import "../utilities/controls" |
| 2 |
@import "../utilities/mixins" |
| 3 |
|
| 4 |
$form-colors: $colors !default |
| 5 |
|
| 6 |
$input-color: $text-strong !default |
| 7 |
$input-background-color: $scheme-main !default |
| 8 |
$input-border-color: $border !default |
| 9 |
$input-height: $control-height !default |
| 10 |
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default |
| 11 |
$input-placeholder-color: bulmaRgba($input-color, 0.3) !default |
| 12 |
|
| 13 |
$input-hover-color: $text-strong !default |
| 14 |
$input-hover-border-color: $border-hover !default |
| 15 |
|
| 16 |
$input-focus-color: $text-strong !default |
| 17 |
$input-focus-border-color: $link !default |
| 18 |
$input-focus-box-shadow-size: 0 0 0 0.125em !default |
| 19 |
$input-focus-box-shadow-color: bulmaRgba($link, 0.25) !default |
| 20 |
|
| 21 |
$input-disabled-color: $text-light !default |
| 22 |
$input-disabled-background-color: $background !default |
| 23 |
$input-disabled-border-color: $background !default |
| 24 |
$input-disabled-placeholder-color: bulmaRgba($input-disabled-color, 0.3) !default |
| 25 |
|
| 26 |
$input-arrow: $link !default |
| 27 |
|
| 28 |
$input-icon-color: $border !default |
| 29 |
$input-icon-active-color: $text !default |
| 30 |
|
| 31 |
$input-radius: $radius !default |
| 32 |
|
| 33 |
=input |
| 34 |
@extend %control |
| 35 |
background-color: $input-background-color |
| 36 |
border-color: $input-border-color |
| 37 |
border-radius: $input-radius |
| 38 |
color: $input-color |
| 39 |
+placeholder |
| 40 |
color: $input-placeholder-color |
| 41 |
&:hover, |
| 42 |
&.is-hovered |
| 43 |
border-color: $input-hover-border-color |
| 44 |
&:focus, |
| 45 |
&.is-focused, |
| 46 |
&:active, |
| 47 |
&.is-active |
| 48 |
border-color: $input-focus-border-color |
| 49 |
box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color |
| 50 |
&[disabled], |
| 51 |
fieldset[disabled] & |
| 52 |
background-color: $input-disabled-background-color |
| 53 |
border-color: $input-disabled-border-color |
| 54 |
box-shadow: none |
| 55 |
color: $input-disabled-color |
| 56 |
+placeholder |
| 57 |
color: $input-disabled-placeholder-color |
| 58 |
|
| 59 |
%input |
| 60 |
+input |