mirror of https://github.com/ColorlibHQ/AdminLTE
fixed select2 height with text-sm
parent
a3ede49485
commit
ba8f8a8bbc
|
@ -213,6 +213,42 @@
|
|||
}
|
||||
}
|
||||
|
||||
// text-sm override
|
||||
.text-sm {
|
||||
.select2-container--default {
|
||||
.select2-selection--single {
|
||||
height: $input-height-sm;
|
||||
|
||||
.select2-selection__rendered {
|
||||
margin-top: -.4rem;
|
||||
}
|
||||
|
||||
.select2-selection__arrow {
|
||||
top: -.12rem;
|
||||
}
|
||||
}
|
||||
|
||||
.select2-selection--multiple {
|
||||
min-height: $input-height-sm;
|
||||
|
||||
.select2-selection__rendered {
|
||||
padding: 0 $input-padding-x-sm / 2 $input-padding-y-sm;
|
||||
margin-top: -($input-padding-x-sm / 5);
|
||||
|
||||
li:first-child.select2-search.select2-search--inline {
|
||||
margin-left: $input-padding-x-sm / 2;
|
||||
}
|
||||
|
||||
.select2-search.select2-search--inline {
|
||||
.select2-search__field {
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Background colors (theme colors)
|
||||
@each $name, $color in $theme-colors {
|
||||
@include select2-variant($name, $color);
|
||||
|
|
|
@ -20547,6 +20547,35 @@ html.maximized-card {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--single {
|
||||
height: calc(1.8125rem + 2px);
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
margin-top: -.4rem;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
top: -.12rem;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple {
|
||||
min-height: calc(1.8125rem + 2px);
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
||||
padding: 0 0.25rem 0.25rem;
|
||||
margin-top: -0.1rem;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple .select2-selection__rendered li:first-child.select2-search.select2-search--inline {
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.text-sm .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline .select2-search__field {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.select2-primary + .select2-container--default.select2-container--open .select2-selection--single {
|
||||
border-color: #80bdff;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue