Major updates

This commit is contained in:
Mark Gregory
2026-07-07 17:32:43 +01:00
parent fc27aa7318
commit b1ba52a360
4 changed files with 149 additions and 86 deletions
+25 -25
View File
@@ -1,8 +1,4 @@
/* WMS Select2 professional dark theme. Imported after Select2 base CSS. */
.wms-select2-field {
min-width: 0;
}
/* WMS Select2 professional dark theme. Imported after Select2's own CSS. */
.wms-select2-field .select2-container,
.select2-container--wms {
@@ -15,7 +11,9 @@
}
.wms-select2-field select[data-wms-select2].select2-hidden-accessible,
.wms-select2-field select.wms-select2-control.select2-hidden-accessible {
.wms-select2-field select.wms-select2-control.select2-hidden-accessible,
select[data-wms-select2].select2-hidden-accessible,
select.wms-select2-control.select2-hidden-accessible {
position: absolute !important;
width: 1px !important;
height: 1px !important;
@@ -28,7 +26,6 @@
}
.select2-container--wms .select2-selection--single {
position: relative !important;
height: 3rem !important;
min-height: 3rem !important;
border: 1px solid rgb(63 63 70) !important;
@@ -65,8 +62,9 @@
position: absolute !important;
top: 0 !important;
right: 0.875rem !important;
width: 1rem !important;
width: 1.5rem !important;
height: 100% !important;
display: block !important;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
@@ -74,30 +72,37 @@
}
.select2-container--wms .select2-selection--single .select2-selection__arrow b {
position: absolute !important;
top: 50% !important;
left: 50% !important;
width: 0 !important;
height: 0 !important;
margin: 0 !important;
transform: translate(-50%, -50%) !important;
border-color: rgb(212 212 216) transparent transparent transparent !important;
border-width: 5px 4px 0 4px !important;
margin-left: -4px !important;
margin-top: -2px !important;
border-style: solid !important;
border-width: 6px 5px 0 5px !important;
}
.select2-container--wms.select2-container--open .select2-selection--single .select2-selection__arrow b {
border-color: transparent transparent rgb(212 212 216) transparent !important;
border-width: 0 4px 5px 4px !important;
border-width: 0 5px 6px 5px !important;
}
.select2-container--wms .select2-selection--single .select2-selection__clear {
position: absolute !important;
right: 2.25rem !important;
top: 0 !important;
width: 1rem !important;
height: 100% !important;
width: 1.25rem !important;
color: rgb(161 161 170) !important;
font-size: 1.25rem !important;
line-height: 2.85rem !important;
text-align: center !important;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
color: rgb(161 161 170) !important;
font-size: 1.25rem !important;
line-height: 2.875rem !important;
text-align: center !important;
box-shadow: none !important;
}
.select2-container--wms .select2-selection--single .select2-selection__clear:hover {
@@ -113,12 +118,8 @@
box-shadow: 0 24px 60px rgb(0 0 0 / 0.45) !important;
}
.select2-container--wms.select2-container--open .select2-dropdown--below {
margin-top: 0.375rem !important;
}
.select2-container--wms.select2-container--open .select2-dropdown--above {
margin-top: -0.375rem !important;
.select2-container--wms .select2-dropdown--below {
margin-top: 0.35rem !important;
}
.select2-container--wms .select2-search--dropdown {
@@ -135,7 +136,6 @@
color: rgb(244 244 245) !important;
padding: 0 0.875rem !important;
font-size: 0.875rem !important;
font-weight: 500 !important;
outline: none !important;
}
@@ -171,7 +171,7 @@
color: rgb(161 161 170) !important;
}
/* Fallback styling before Select2 initialises, matching WMS inputs. */
/* Fallback before Select2 initialises. */
.wms-select2-field > select[data-wms-select2],
.wms-select2-field > select.wms-select2-control {
margin-top: 0.5rem;