mirror of
https://github.com/tabler/tabler.git
synced 2026-10-14 06:07:07 +04:00
Match the combobox search font to the items and space it evenly
The search field now uses the font size of the items under it, and the space around it comes from two variables: combobox-search-gap for the top and bottom, and combobox-search-gap-x for the sides.
This commit is contained in:
1 parent
a0c090bde0
commit
0f9ee3edb9
2 files changed
+5
-1
No files matched your search
@@ -1406,6 +1406,8 @@ $dropdown-header-padding-y: $dropdown-padding-y !default;
|
||||
$dropdown-max-width: 25rem !default;
|
||||
$dropdown-scrollable-height: 13rem !default;
|
||||
$combobox-menu-max-height: 300px !default;
|
||||
$combobox-search-gap: 0.375rem !default;
|
||||
$combobox-search-gap-x: 0.5rem !default;
|
||||
$dropdown-item-gap: 0.5rem !default;
|
||||
$dropdown-header-padding-bottom: 0.25rem !default;
|
||||
$dropdown-menu-columns-gap: 0.25rem !default;
|
||||
|
||||
@@ -119,11 +119,13 @@
|
||||
}
|
||||
|
||||
.combobox-search {
|
||||
padding: 0 calc(0.75 * #{$dropdown-padding-y}) calc(0.75 * #{$dropdown-padding-y});
|
||||
padding: 0 $combobox-search-gap-x $combobox-search-gap;
|
||||
margin-top: calc(#{$combobox-search-gap} - #{$dropdown-padding-y});
|
||||
}
|
||||
|
||||
.combobox-search-input {
|
||||
width: 100%;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.dropdown-item-label {
|
||||
|
||||
Reference in new issue
Block a user