]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix color heights (#32023)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Fri, 30 Oct 2020 20:36:44 +0000 (21:36 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 20:36:44 +0000 (22:36 +0200)
scss/forms/_form-control.scss

index 7fe9f72001d20282c36cf649fc2ee8dfa439fb85..1fd1e1a8b3acc75f7a29675ba8168d6120bba8e4 100644 (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);
+  }
 }