UI: globalny auto-init Select2 z wyszukiwarka dla selectow >4 opcji
- Nowy libraries/adspro-select2-autoinit.js (auto-init na document.ready + ajaxComplete debounce 150ms) - Wyszukiwarka odblokowana dla "Grupa reklam", "Kampania", "Klient" na /campaign_terms (data-adspro-select2="true") - Globalne style Select2 w layout/style.scss i style.css (uogolnione z .products-page) - Usuniety duplikat: blok CSS .products-page .select2-* i funkcja init_products_scope_select_search() w products PAUL: phase 10-select2-global-search complete (plan 10-01) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -3758,3 +3758,49 @@ table#products {
|
||||
color: #000;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
// === Select2 global overrides (auto-init via libraries/adspro-select2-autoinit.js) ===
|
||||
.select2-container {
|
||||
width: 100% !important;
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
height: 38px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height: 36px;
|
||||
padding-left: 12px;
|
||||
padding-right: 36px;
|
||||
color: #2d3748;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: #6c757d;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 36px;
|
||||
right: 8px;
|
||||
}
|
||||
.select2-container--default.select2-container--focus .select2-selection--single {
|
||||
border-color: #6690f4;
|
||||
box-shadow: 0 0 0 3px rgba(102, 144, 244, 0.1);
|
||||
}
|
||||
.select2-dropdown {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 6px;
|
||||
height: 34px;
|
||||
padding: 0 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.select2-results__option {
|
||||
font-size: 14px;
|
||||
}
|
||||
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
||||
background-color: #6690f4;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user