diff options
| author | Mark Otto <[email protected]> | 2022-05-20 11:02:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-20 11:02:32 -0700 |
| commit | eaf760e4bce69f64277b20602d9dc864d39d89aa (patch) | |
| tree | f6abccce244cd6993eed9bd146a4c543d2eb9710 /scss/forms/_form-control.scss | |
| parent | e2e107fc7215f36ff73cf2fbb29e35d703a82679 (diff) | |
| download | bootstrap-eaf760e4bce69f64277b20602d9dc864d39d89aa.tar.xz bootstrap-eaf760e4bce69f64277b20602d9dc864d39d89aa.zip | |
Update form-control-color sizing and styles (#36156)
Diffstat (limited to 'scss/forms/_form-control.scss')
| -rw-r--r-- | scss/forms/_form-control.scss | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss index c781ae7b9..e7eeca769 100644 --- a/scss/forms/_form-control.scss +++ b/scss/forms/_form-control.scss @@ -170,7 +170,7 @@ textarea { .form-control-color { width: $form-color-width; - height: auto; // Override fixed browser height + height: $input-height; padding: $input-padding-y; &:not(:disabled):not([readonly]) { @@ -178,12 +178,14 @@ textarea { } &::-moz-color-swatch { - height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height); + border: 0 !important; // stylelint-disable-line declaration-no-important @include border-radius($input-border-radius); } &::-webkit-color-swatch { - height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height); @include border-radius($input-border-radius); } + + &.form-control-sm { height: $input-height-sm; } + &.form-control-lg { height: $input-height-lg; } } |
