Skip to content

Commit

Permalink
(twbs#22414) Rename for consistency $input-bg-disabled, `$input-bg-…
Browse files Browse the repository at this point in the history
…focus`, `$input-border-color-focus`, `$input-box-shadow-focus`, `$input-color-focus`, `$input-color-placeholder` to `$input-disabled-bg`, `$input-focus-bg`, `$input-focus-border-color`, `$input-focus-box-shadow`, `$input-focus-color`, `$input-placeholder-color`, respectively
  • Loading branch information
pat270 committed Jun 13, 2017
1 parent 1a0a1a0 commit 7babb04
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

// Placeholder
&::placeholder {
color: $input-color-placeholder;
color: $input-placeholder-color;
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
opacity: 1;
}
Expand All @@ -54,7 +54,7 @@
// don't honor that edge case; we style them as disabled anyway.
&:disabled,
&[readonly] {
background-color: $input-bg-disabled;
background-color: $input-disabled-bg;
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
opacity: 1;
}
Expand Down
12 changes: 6 additions & 6 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ $btn-transition: all .2s ease-in-out !default;
// Forms

$input-bg: $white !default;
$input-bg-disabled: $gray-lighter !default;
$input-disabled-bg: $gray-lighter !default;

$input-color: $gray !default;
$input-border-color: rgba($black,.15) !default;
Expand All @@ -404,12 +404,12 @@ $input-border-radius: $border-radius !default;
$input-border-radius-lg: $border-radius-lg !default;
$input-border-radius-sm: $border-radius-sm !default;

$input-bg-focus: $input-bg !default;
$input-border-color-focus: lighten($brand-primary, 25%) !default;
$input-box-shadow-focus: $input-box-shadow, rgba($input-border-color-focus, .6) !default;
$input-color-focus: $input-color !default;
$input-focus-bg: $input-bg !default;
$input-focus-border-color: lighten($brand-primary, 25%) !default;
$input-focus-box-shadow: $input-box-shadow, rgba($input-focus-border-color, .6) !default;
$input-focus-color: $input-color !default;

$input-color-placeholder: $gray-light !default;
$input-placeholder-color: $gray-light !default;

$input-height: (($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2)) !default;
$input-height-lg: (($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2)) !default;
Expand Down
8 changes: 4 additions & 4 deletions scss/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
// contrast against a dark gray background.
@mixin form-control-focus() {
&:focus {
color: $input-color-focus;
background-color: $input-bg-focus;
border-color: $input-border-color-focus;
color: $input-focus-color;
background-color: $input-focus-bg;
border-color: $input-focus-border-color;
outline: none;
@include box-shadow($input-box-shadow-focus);
@include box-shadow($input-focus-box-shadow);
}
}

0 comments on commit 7babb04

Please sign in to comment.