Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract input placeholder colors to variables #2168

Merged
merged 2 commits into from
Oct 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sass/elements/form.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $input-background-color: $white !default
$input-border-color: $grey-lighter !default
$input-height: $control-height !default
$input-shadow: inset 0 1px 2px rgba($black, 0.1) !default
$input-placeholder-color: rgba($input-color, 0.3) !default

$input-hover-color: $grey-darker !default
$input-hover-border-color: $grey-light !default
Expand All @@ -15,6 +16,7 @@ $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

Expand Down Expand Up @@ -47,7 +49,7 @@ $help-size: $size-small !default
border-color: $input-border-color
color: $input-color
+placeholder
color: rgba($input-color, 0.3)
color: $input-placeholder-color
&:hover,
&.is-hovered
border-color: $input-hover-border-color
Expand All @@ -63,7 +65,7 @@ $help-size: $size-small !default
box-shadow: none
color: $input-disabled-color
+placeholder
color: rgba($input-disabled-color, 0.3)
color: $input-disabled-placeholder-color

.input,
.textarea
Expand Down