mirror of https://github.com/twbs/bootstrap.git
Fix `.form-control` in dark mode (#37893)
* Fix .form-control in dark mode * Remove CSS vars from docs
This commit is contained in:
parent
b3febfb000
commit
ca88999448
|
@ -115,11 +115,6 @@
|
||||||
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
|
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
|
||||||
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};
|
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};
|
||||||
|
|
||||||
// scss-docs-start form-control-vars
|
|
||||||
--#{$prefix}form-control-bg: var(--#{$prefix}body-bg);
|
|
||||||
--#{$prefix}form-control-disabled-bg: var(--#{$prefix}secondary-bg);
|
|
||||||
// scss-docs-end form-control-vars
|
|
||||||
|
|
||||||
// Focus styles
|
// Focus styles
|
||||||
// scss-docs-start root-focus-variables
|
// scss-docs-start root-focus-variables
|
||||||
--#{$prefix}focus-ring-width: #{$focus-ring-width};
|
--#{$prefix}focus-ring-width: #{$focus-ring-width};
|
||||||
|
|
|
@ -875,9 +875,9 @@ $input-padding-y-lg: $input-btn-padding-y-lg !default;
|
||||||
$input-padding-x-lg: $input-btn-padding-x-lg !default;
|
$input-padding-x-lg: $input-btn-padding-x-lg !default;
|
||||||
$input-font-size-lg: $input-btn-font-size-lg !default;
|
$input-font-size-lg: $input-btn-font-size-lg !default;
|
||||||
|
|
||||||
$input-bg: var(--#{$prefix}form-control-bg) !default;
|
$input-bg: var(--#{$prefix}body-bg) !default;
|
||||||
$input-disabled-color: null !default;
|
$input-disabled-color: null !default;
|
||||||
$input-disabled-bg: var(--#{$prefix}form-control-disabled-bg) !default;
|
$input-disabled-bg: var(--#{$prefix}secondary-bg) !default;
|
||||||
$input-disabled-border-color: null !default;
|
$input-disabled-border-color: null !default;
|
||||||
|
|
||||||
$input-color: var(--#{$prefix}body-color) !default;
|
$input-color: var(--#{$prefix}body-color) !default;
|
||||||
|
|
|
@ -173,12 +173,6 @@ Learn more about [support for datalist elements](https://caniuse.com/datalist).
|
||||||
|
|
||||||
## CSS
|
## CSS
|
||||||
|
|
||||||
### Variables
|
|
||||||
|
|
||||||
Form controls make use of a small amount of CSS variables to support custom styling across color modes.
|
|
||||||
|
|
||||||
{{< scss-docs name="form-control-vars" file="scss/_root.scss" >}}
|
|
||||||
|
|
||||||
### Sass variables
|
### Sass variables
|
||||||
|
|
||||||
`$input-*` are shared across most of our form controls (and not buttons).
|
`$input-*` are shared across most of our form controls (and not buttons).
|
||||||
|
|
Loading…
Reference in New Issue