Skip to content

Commit d4ecb7f

Browse files
committed
refactor: miglioria grafica aggiornamento
1 parent 0bd1b01 commit d4ecb7f

5 files changed

Lines changed: 293 additions & 78 deletions

File tree

assets/src/css/style.css

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,18 @@ a.disabled {
152152
width: 100%;
153153
text-align: center;
154154
left: 0;
155+
z-index: 1;
156+
}
157+
158+
/* Position the percentage text in the center of the container, not the progress bar */
159+
#progress span.progress-percentage {
160+
position: absolute;
161+
display: inline-block;
162+
width: 100%;
163+
text-align: center;
164+
left: 0;
165+
top: 0;
166+
z-index: 2;
155167
}
156168

157169
input[type=file] {
@@ -1456,8 +1468,28 @@ input.small-width {
14561468
margin-left: 11px;
14571469
}
14581470

1471+
.progress {
1472+
position: relative;
1473+
}
1474+
1475+
.progress .progress-bar {
1476+
position: relative;
1477+
z-index: 1;
1478+
}
1479+
14591480
.progress .progress-bar span {
14601481
color: #000;
1482+
z-index: 1;
1483+
}
1484+
1485+
.progress span.progress-percentage {
1486+
position: absolute;
1487+
display: inline-block;
1488+
width: 100%;
1489+
text-align: center;
1490+
left: 0;
1491+
top: 0;
1492+
z-index: 2;
14611493
}
14621494

14631495
.attachment-img {
@@ -2573,6 +2605,71 @@ body:not(.sidebar-collapse) .sidebar .nav-treeview .nav-treeview .nav-link {
25732605
padding: 0 20px 20px 20px;
25742606
}
25752607

2608+
/* Stili per la pagina di aggiornamento */
2609+
.border-left.border-danger {
2610+
border-left-width: 4px !important;
2611+
}
2612+
2613+
.code-container {
2614+
overflow-x: hidden;
2615+
max-height: 300px;
2616+
font-family: 'Courier New', monospace;
2617+
font-size: 14px;
2618+
color: #d63031;
2619+
box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
2620+
}
2621+
2622+
.code-container pre {
2623+
white-space: pre-wrap;
2624+
word-wrap: break-word;
2625+
}
2626+
2627+
.progress-container {
2628+
height: 30px;
2629+
border-radius: 6px;
2630+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
2631+
background-color: #f5f5f5;
2632+
overflow: hidden;
2633+
position: relative;
2634+
}
2635+
2636+
#custom-progress-bar {
2637+
width: 0%;
2638+
height: 100%;
2639+
font-size: 16px;
2640+
font-weight: bold;
2641+
display: flex;
2642+
align-items: center;
2643+
justify-content: center;
2644+
position: relative;
2645+
z-index: 1;
2646+
color: transparent; /* Nascondiamo il testo all'interno della barra */
2647+
}
2648+
2649+
/* Aggiungiamo un elemento ::after per mostrare la percentuale fissa al centro */
2650+
.progress-container::after {
2651+
content: attr(data-percentage);
2652+
position: absolute;
2653+
top: 0;
2654+
left: 0;
2655+
width: 100%;
2656+
height: 100%;
2657+
display: flex;
2658+
align-items: center;
2659+
justify-content: center;
2660+
font-size: 16px;
2661+
font-weight: bold;
2662+
z-index: 2;
2663+
}
2664+
2665+
#progress-status {
2666+
font-size: 14px;
2667+
}
2668+
2669+
#current-file {
2670+
font-size: 13px;
2671+
}
2672+
25762673
/* Stili per il modal di controllo database */
25772674

25782675
/* Stili per i pulsanti */

0 commit comments

Comments
 (0)