mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-04 18:44:43 +00:00
(#22414) Rename for consistency $input-bg-disabled, $input-bg-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
This commit is contained in:
parent
2317b7fc96
commit
4cc21bbf74
3 changed files with 12 additions and 12 deletions
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
// Placeholder
|
// Placeholder
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: $input-color-placeholder;
|
color: $input-placeholder-color;
|
||||||
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
// don't honor that edge case; we style them as disabled anyway.
|
// don't honor that edge case; we style them as disabled anyway.
|
||||||
&:disabled,
|
&:disabled,
|
||||||
&[readonly] {
|
&[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.
|
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ $btn-transition: all .2s ease-in-out !default;
|
||||||
// Forms
|
// Forms
|
||||||
|
|
||||||
$input-bg: $white !default;
|
$input-bg: $white !default;
|
||||||
$input-bg-disabled: $gray-lighter !default;
|
$input-disabled-bg: $gray-lighter !default;
|
||||||
|
|
||||||
$input-color: $gray !default;
|
$input-color: $gray !default;
|
||||||
$input-border-color: rgba($black,.15) !default;
|
$input-border-color: rgba($black,.15) !default;
|
||||||
|
|
@ -407,12 +407,12 @@ $input-border-radius: $border-radius !default;
|
||||||
$input-border-radius-lg: $border-radius-lg !default;
|
$input-border-radius-lg: $border-radius-lg !default;
|
||||||
$input-border-radius-sm: $border-radius-sm !default;
|
$input-border-radius-sm: $border-radius-sm !default;
|
||||||
|
|
||||||
$input-bg-focus: $input-bg !default;
|
$input-focus-bg: $input-bg !default;
|
||||||
$input-border-color-focus: lighten($brand-primary, 25%) !default;
|
$input-focus-border-color: lighten($brand-primary, 25%) !default;
|
||||||
$input-box-shadow-focus: $input-box-shadow, rgba($input-border-color-focus, .6) !default;
|
$input-focus-box-shadow: $input-box-shadow, rgba($input-focus-border-color, .6) !default;
|
||||||
$input-color-focus: $input-color !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: (($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;
|
$input-height-lg: (($font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2)) !default;
|
||||||
|
|
|
||||||
|
|
@ -46,10 +46,10 @@
|
||||||
// contrast against a dark gray background.
|
// contrast against a dark gray background.
|
||||||
@mixin form-control-focus() {
|
@mixin form-control-focus() {
|
||||||
&:focus {
|
&:focus {
|
||||||
color: $input-color-focus;
|
color: $input-focus-color;
|
||||||
background-color: $input-bg-focus;
|
background-color: $input-focus-bg;
|
||||||
border-color: $input-border-color-focus;
|
border-color: $input-focus-border-color;
|
||||||
outline: none;
|
outline: none;
|
||||||
@include box-shadow($input-box-shadow-focus);
|
@include box-shadow($input-focus-box-shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue