@@ -211,6 +211,156 @@ input[type=file] {
211211 background : # FFFF66 ;
212212}
213213
214+ /* Disabilita il widget sidebar-search di AdminLTE */
215+ [data-widget-disabled = "true" ] .sidebar-search-results ,
216+ .sidebar-search-results ,
217+ .sidebar-search-open .sidebar-search-results {
218+ display : none !important ;
219+ }
220+
221+ /* Stili per la ricerca unificata nella sidebar */
222+
223+ .search-results-header {
224+ padding : 8px 12px 4px 12px ;
225+ border-bottom : 1px solid rgba (255 , 255 , 255 , 0.1 );
226+ margin-bottom : 4px ;
227+ }
228+
229+ .search-results-header h6 {
230+ margin : 0 ;
231+ font-size : 10px ;
232+ font-weight : 600 ;
233+ display : flex;
234+ align-items : center;
235+ justify-content : space-between;
236+ color : var (--text-light );
237+ text-transform : uppercase;
238+ }
239+
240+ .search-results-header .search-term {
241+ background : rgba (255 , 255 , 255 , 0.2 );
242+ color : var (--text-light );
243+ padding : 2px 6px ;
244+ border-radius : 3px ;
245+ font-size : 9px ;
246+ font-weight : 700 ;
247+ }
248+
249+ .search-category h6 {
250+ margin : 0 ;
251+ padding : 8px 12px 6px 12px ;
252+ font-size : 10px ;
253+ text-transform : uppercase;
254+ font-weight : 600 ;
255+ background : linear-gradient (135deg , rgba (255 , 255 , 255 , 0.25 ), rgba (255 , 255 , 255 , 0.15 ));
256+ color : # ffffff !important ;
257+ display : flex;
258+ align-items : center;
259+ border-bottom : 1px solid rgba (255 , 255 , 255 , 0.3 );
260+ border-radius : 4px 4px 0 0 ;
261+ margin-bottom : 2px ;
262+ letter-spacing : 0.5px ;
263+ position : relative;
264+ backdrop-filter : blur (5px );
265+ }
266+
267+ .search-category h6 i {
268+ margin-right : 8px ;
269+ font-size : 11px ;
270+ color : rgba (255 , 255 , 255 , 0.8 );
271+ }
272+
273+ .search-category h6 .badge {
274+ margin-left : auto;
275+ font-size : 9px ;
276+ padding : 3px 8px ;
277+ border-radius : 12px ;
278+ background : rgba (255 , 255 , 255 , 0.3 );
279+ color : rgba (255 , 255 , 255 , 0.95 );
280+ font-weight : 600 ;
281+ box-shadow : 0 1px 2px rgba (0 , 0 , 0 , 0.1 );
282+ }
283+
284+ .search-result-item {
285+ padding : 8px 12px !important ;
286+ font-size : 11px ;
287+ border-left : 3px solid transparent;
288+ border-bottom : 1px solid rgba (255 , 255 , 255 , 0.1 );
289+ display : flex;
290+ align-items : flex-start;
291+ color : var (--text-light ) !important ;
292+ transition : all 0.2s ease;
293+ }
294+
295+ .search-result-item : hover {
296+ background : rgba (255 , 255 , 255 , 0.1 ) !important ;
297+ border-left-color : rgba (255 , 255 , 255 , 0.5 );
298+ }
299+
300+ .search-result-item .nav-icon {
301+ font-size : 11px ;
302+ width : 16px ;
303+ margin-right : 8px ;
304+ color : rgba (255 , 255 , 255 , 0.7 );
305+ flex-shrink : 0 ;
306+ text-align : center;
307+ }
308+
309+ .search-result-text {
310+ flex : 1 ;
311+ overflow : hidden;
312+ }
313+
314+ .search-result-text > div {
315+ font-weight : 500 ;
316+ color : var (--text-light );
317+ word-wrap : break-word;
318+ }
319+
320+ .search-result-text small {
321+ font-size : 9px ;
322+ color : rgba (255 , 255 , 255 , 0.6 );
323+ display : block;
324+ word-wrap : break-word;
325+ }
326+
327+ # clear-search {
328+ color : rgba (255 , 255 , 255 , 0.7 );
329+ font-size : 10px ;
330+ padding : 4px 6px ;
331+ border-radius : 3px ;
332+ background : rgba (255 , 255 , 255 , 0.1 );
333+ border : none;
334+ }
335+
336+ # clear-search : hover {
337+ color : var (--text-light );
338+ background : rgba (220 , 53 , 69 , 0.8 );
339+ }
340+
341+ .nav-sidebar .search-hidden {
342+ margin-bottom : 0 !important ;
343+ }
344+
345+ .search-no-results {
346+ text-align : center;
347+ padding : 20px 12px ;
348+ color : rgba (255 , 255 , 255 , 0.7 );
349+ }
350+
351+ .search-no-results i {
352+ font-size : 16px ;
353+ margin-bottom : 8px ;
354+ color : rgba (255 , 255 , 255 , 0.5 );
355+ }
356+
357+ .search-no-results p {
358+ font-size : 11px ;
359+ margin : 0 ;
360+ color : rgba (255 , 255 , 255 , 0.7 );
361+ }
362+
363+
214364.autocomplete > div : hover : not (.group ),
215365.autocomplete > div .selected {
216366 background : # F5F5F5 ;
@@ -2441,7 +2591,6 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
24412591}
24422592
24432593.nav-sidebar {
2444- margin-bottom : 60px ;
24452594 text-align : left;
24462595}
24472596
0 commit comments