Skip to content

Commit 722fb5f

Browse files
committed
refactor: organizzazione stili
1 parent aaadd63 commit 722fb5f

1 file changed

Lines changed: 68 additions & 45 deletions

File tree

assets/src/css/style.css

Lines changed: 68 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
color: #000;
4343
}
4444

45+
/* ===== LOADING INDICATORS ===== */
46+
47+
/* Main loading overlay */
4548
#main_loading {
4649
display: block;
4750
position: fixed;
@@ -64,6 +67,46 @@
6467
z-index: 9999;
6568
}
6669

70+
/* Mini loader */
71+
#mini-loader > div {
72+
position: fixed;
73+
bottom: 20px;
74+
right: 20px;
75+
margin-top: -50px;
76+
margin-left: -50px;
77+
z-index: 9000;
78+
width: 100px;
79+
height: 100px;
80+
background: transparent url(../img/ajax-loader.gif) top left no-repeat;
81+
}
82+
83+
/* Tiny loader */
84+
#tiny-loader {
85+
position: fixed;
86+
z-index: 9000;
87+
width: 100%;
88+
height: 100%;
89+
top: 50%;
90+
left: 50%;
91+
background: transparent url(../img/ajax-loader.gif) top left no-repeat;
92+
}
93+
94+
/* Component loader */
95+
.component-loader {
96+
position: absolute;
97+
z-index: 20;
98+
opacity: 0.5;
99+
width: 100%;
100+
height: 100%;
101+
background: #fff;
102+
}
103+
104+
.component-loader > div {
105+
position: relative;
106+
top: 50%;
107+
color: #333;
108+
}
109+
67110
html {
68111
font-size: 13px;
69112
height: 100%;
@@ -236,27 +279,7 @@ a:focus {
236279
}
237280

238281

239-
#mini-loader > div{
240-
position: fixed;
241-
bottom: 20px;
242-
right: 20px;
243-
margin-top: -50px;
244-
margin-left: -50px;
245-
z-index: 9000;
246-
width: 100px;
247-
height: 100px;
248-
background: transparent url(../img/ajax-loader.gif) top left no-repeat;
249-
}
250-
251-
#tiny-loader {
252-
position: fixed;
253-
z-index: 9000;
254-
width: 100%;
255-
height: 100%;
256-
top: 50%;
257-
left: 50%;
258-
background: transparent url(../img/ajax-loader.gif) top left no-repeat;
259-
}
282+
/* Mini and tiny loaders moved to the loading indicators section */
260283

261284
body .header .brand-link {
262285
font-family: inherit;
@@ -343,31 +366,39 @@ span.form-control {
343366

344367

345368

346-
/* Tooltip dark */
369+
/* ===== UI TOOLTIP STYLES ===== */
347370

348371
.ui-tooltip {
349372
background: #222;
350373
color: white;
351374
border: 0;
352375
font-size: 11px;
376+
z-index: 9990;
353377
}
354378

355-
/* Stili per i tooltip con testo troncato */
356-
.shorten-wrapper, .request-wrapper {
379+
/* ===== SHORTENED TEXT STYLES ===== */
380+
381+
/* Wrapper for shortened text */
382+
.shorten-wrapper,
383+
.request-wrapper {
357384
position: relative;
358385
display: inline-block;
359386
width: 100%;
360387
}
361388

362-
.shorten-full, .request-full {
389+
/* Full text display */
390+
.shorten-full,
391+
.request-full {
363392
word-wrap: break-word;
364393
white-space: normal;
365394
max-width: 100%;
366395
line-height: 1.5;
367396
margin-bottom: 10px;
368397
}
369398

370-
/* Stile per il tooltip */
399+
/* ===== TOOLTIP STYLES ===== */
400+
401+
/* Base tooltip styles */
371402
.tooltipster-shadow {
372403
border-radius: 4px !important;
373404
box-shadow: 0 3px 10px rgba(0,0,0,0.2) !important;
@@ -382,8 +413,10 @@ span.form-control {
382413
.tooltipster-base {
383414
max-width: 400px !important;
384415
width: 400px !important;
416+
z-index: 10000; /* Consistent z-index for all tooltip states */
385417
}
386418

419+
/* Tooltip header */
387420
.tooltip-header {
388421
position: relative;
389422
padding: 8px;
@@ -399,6 +432,7 @@ span.form-control {
399432
font-size: 14px;
400433
}
401434

435+
/* Close button */
402436
.tooltip-close-button {
403437
position: absolute;
404438
top: 8px;
@@ -415,10 +449,10 @@ span.form-control {
415449
}
416450

417451
.tooltip-close-button:hover {
418-
background-color: rgba(255,255,255,0.4) !important;
452+
background-color: rgba(255,255,255,0.4);
419453
}
420454

421-
/* Stili per le informazioni nel tooltip */
455+
/* Tooltip content sections */
422456
.tooltip-info-section {
423457
margin-bottom: 15px;
424458
border-bottom: 1px solid #eee;
@@ -448,7 +482,9 @@ span.form-control {
448482
flex: 1;
449483
}
450484

451-
.shorten-toggle, .request-toggle {
485+
/* Toggle buttons for shortened text */
486+
.shorten-toggle,
487+
.request-toggle {
452488
display: inline-block;
453489
margin: 5px 0;
454490
color: #fff;
@@ -457,7 +493,6 @@ span.form-control {
457493
border-radius: 3px;
458494
font-weight: bold;
459495
text-decoration: none;
460-
z-index: 9999;
461496
position: relative;
462497
font-size: 12px;
463498
border: none;
@@ -468,7 +503,8 @@ span.form-control {
468503
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
469504
}
470505

471-
.shorten-toggle:hover, .request-toggle:hover {
506+
.shorten-toggle:hover,
507+
.request-toggle:hover {
472508
background-color: #367fa9;
473509
color: #fff;
474510
text-decoration: none;
@@ -692,20 +728,7 @@ input.small-width {
692728
font-weight: bold;
693729
}
694730

695-
.component-loader {
696-
position: absolute;
697-
z-index: 20;
698-
opacity: 0.5;
699-
width: 100%;
700-
height: 100%;
701-
background: #fff;
702-
}
703-
704-
.component-loader>div {
705-
position: relative;
706-
top: 50%;
707-
color: #333;
708-
}
731+
/* Component loader moved to the loading indicators section */
709732

710733
.btn-group-flex {
711734
display: flex;

0 commit comments

Comments
 (0)