Selaa lähdekoodia

Fix Select2 heights

Max McMahon 5 vuotta sitten
vanhempi
commit
7745078a45

+ 6 - 5
build/scss/plugins/_select2.scss

@@ -15,7 +15,7 @@
     border: 1px solid $gray-x-light;
     //border-radius: $input-radius;
     padding: 6px 12px;
-    height: 34px;
+    height: $input-height;
   }
 }
 
@@ -43,7 +43,7 @@
   padding-left: 0;
   padding-right: 0;
   height: auto;
-  margin-top: -4px;
+  margin-top: -3px;
 }
 
 .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
@@ -52,8 +52,8 @@
 }
 
 .select2-container--default .select2-selection--single .select2-selection__arrow {
-  height: 28px;
-  right: 3px;
+  height: 31px;
+  right: 6px;
 }
 
 .select2-container--default .select2-selection--single .select2-selection__arrow b {
@@ -86,6 +86,7 @@
 //Multiple select
 .select2-container--default {
   .select2-selection--multiple {
+    min-height: $input-height;
     border: 1px solid $gray-x-light;
     //border-radius: $input-radius;
     &:focus {
@@ -108,7 +109,7 @@
 .select2-container--default .select2-selection--multiple .select2-selection__choice {
   background-color: theme-color("primary");
   border-color: darken(theme-color("primary"), 5%);
-  padding: 1px 10px;
+  padding: 0 10px;
   color: $white;
 }
 

+ 6 - 5
dist/css/adminlte.css

@@ -18770,7 +18770,7 @@ html.maximized-card {
 .select2-selection .select2-selection--single {
   border: 1px solid #d2d6de;
   padding: 6px 12px;
-  height: 34px;
+  height: calc(2.25rem + 2px);
 }
 
 .select2-container--default.select2-container--open {
@@ -18798,7 +18798,7 @@ html.maximized-card {
   padding-left: 0;
   padding-right: 0;
   height: auto;
-  margin-top: -4px;
+  margin-top: -3px;
 }
 
 .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
@@ -18807,8 +18807,8 @@ html.maximized-card {
 }
 
 .select2-container--default .select2-selection--single .select2-selection__arrow {
-  height: 28px;
-  right: 3px;
+  height: 31px;
+  right: 6px;
 }
 
 .select2-container--default .select2-selection--single .select2-selection__arrow b {
@@ -18839,6 +18839,7 @@ html.maximized-card {
 }
 
 .select2-container--default .select2-selection--multiple {
+  min-height: calc(2.25rem + 2px);
   border: 1px solid #d2d6de;
 }
 
@@ -18861,7 +18862,7 @@ html.maximized-card {
 .select2-container--default .select2-selection--multiple .select2-selection__choice {
   background-color: #007bff;
   border-color: #006fe6;
-  padding: 1px 10px;
+  padding: 0 10px;
   color: #ffffff;
 }
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/css/adminlte.css.map


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/css/adminlte.min.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/css/adminlte.min.css.map


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä