1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Fix color heights (#32023)

This commit is contained in:
Martijn Cuppens 2020-10-30 21:36:44 +01:00 committed by GitHub
parent 6fc35e3231
commit a108e2bbf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,17 +207,20 @@ textarea {
.form-control-color {
max-width: 3rem;
height: auto; // Override fixed browser height
padding: $input-padding-y;
&:not(:disabled):not([readonly]) {
cursor: pointer;
}
}
.form-control-color::-moz-color-swatch {
@include border-radius($input-border-radius);
}
&::-moz-color-swatch {
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
@include border-radius($input-border-radius);
}
.form-control-color::-webkit-color-swatch {
@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);
}
}