countries selection fixed

This commit is contained in:
Mark Gregory
2026-07-07 13:55:26 +01:00
parent 96bae35060
commit d90c945e83
3 changed files with 152 additions and 3 deletions
+126
View File
@@ -1696,3 +1696,129 @@ html[data-wms-sidebar="collapsed"] .wms-sidebar {
color: rgb(191 219 254);
}
}
/* Company/country Select2 dark override -------------------------------------------------
Keep the Select2 country field visually consistent with the WMS dark form inputs. */
.wms-select2-field .select2-container,
.wms-select2-field .select2-container--wms,
.wms-select2-field .select2-container--default {
margin-top: 0.5rem !important;
width: 100% !important;
display: block !important;
}
.wms-select2-field .select2-container--wms .select2-selection--single,
.wms-select2-field .select2-container--default .select2-selection--single {
height: 3rem !important;
min-height: 3rem !important;
border: 1px solid rgb(63 63 70) !important;
border-radius: 0.75rem !important;
background: rgb(9 9 11) !important;
box-shadow: none !important;
display: flex !important;
align-items: center !important;
}
.wms-select2-field .select2-container--wms.select2-container--focus .select2-selection--single,
.wms-select2-field .select2-container--wms.select2-container--open .select2-selection--single,
.wms-select2-field .select2-container--default.select2-container--focus .select2-selection--single,
.wms-select2-field .select2-container--default.select2-container--open .select2-selection--single {
border-color: rgb(59 130 246) !important;
box-shadow: 0 0 0 3px rgb(59 130 246 / 0.24) !important;
}
.wms-select2-field .select2-selection--single .select2-selection__rendered {
width: 100% !important;
padding-left: 1rem !important;
padding-right: 3rem !important;
color: rgb(244 244 245) !important;
font-size: 0.875rem !important;
font-weight: 500 !important;
line-height: 3rem !important;
}
.wms-select2-field .select2-selection--single .select2-selection__placeholder {
color: rgb(161 161 170) !important;
font-weight: 500 !important;
}
.wms-select2-field .select2-selection--single .select2-selection__clear {
position: absolute !important;
right: 2.75rem !important;
top: 0.5rem !important;
width: 2rem !important;
height: 2rem !important;
color: rgb(161 161 170) !important;
font-size: 1.2rem !important;
line-height: 1.85rem !important;
text-align: center !important;
}
.wms-select2-field .select2-selection--single .select2-selection__arrow {
position: absolute !important;
top: 0.5rem !important;
right: 0.625rem !important;
width: 2rem !important;
height: 2rem !important;
border-radius: 0.625rem !important;
background: rgb(39 39 42) !important;
}
.wms-select2-field .select2-selection--single .select2-selection__arrow b {
border-color: rgb(212 212 216) transparent transparent transparent !important;
}
.select2-container--wms .select2-dropdown,
.select2-container--default .select2-dropdown {
overflow: hidden !important;
border: 1px solid rgb(63 63 70) !important;
border-radius: 0.875rem !important;
background: rgb(24 24 27) !important;
color: rgb(244 244 245) !important;
box-shadow: 0 24px 60px rgb(0 0 0 / 0.45) !important;
}
.select2-container--wms .select2-search--dropdown,
.select2-container--default .select2-search--dropdown {
padding: 0.75rem !important;
background: rgb(24 24 27) !important;
}
.select2-container--wms .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
height: 2.75rem !important;
border: 1px solid rgb(63 63 70) !important;
border-radius: 0.75rem !important;
background: rgb(9 9 11) !important;
color: rgb(244 244 245) !important;
padding: 0 0.875rem !important;
font-size: 0.875rem !important;
outline: none !important;
}
.select2-container--wms .select2-results__options,
.select2-container--default .select2-results__options {
background: rgb(24 24 27) !important;
max-height: 16rem !important;
}
.select2-container--wms .select2-results__option,
.select2-container--default .select2-results__option {
padding: 0.75rem 1rem !important;
color: rgb(244 244 245) !important;
font-size: 0.875rem !important;
font-weight: 500 !important;
}
.select2-container--wms .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
background: rgb(37 99 235) !important;
color: white !important;
}
.select2-container--wms .select2-results__option--selected,
.select2-container--default .select2-results__option--selected {
background: rgb(30 41 59) !important;
color: rgb(191 219 254) !important;
}