117 lines
2.3 KiB
CSS
117 lines
2.3 KiB
CSS
/* Indicatori silenziosi delle code dei worker */
|
|
.worker-status {
|
|
position: fixed;
|
|
z-index: 1200;
|
|
right: 14px;
|
|
bottom: calc(92px + env(safe-area-inset-bottom, 0px));
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.worker-status[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.worker-status-item[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
.worker-status-item {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
background: rgba(90, 90, 90, 0.5);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 11px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.worker-status-icon {
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
|
|
.worker-status-count {
|
|
position: absolute;
|
|
top: -7px;
|
|
right: -7px;
|
|
min-width: 21px;
|
|
height: 21px;
|
|
box-sizing: border-box;
|
|
padding: 0 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
background: rgba(45, 45, 45, 0.92);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.worker-status {
|
|
right: 10px;
|
|
bottom: calc(82px + env(safe-area-inset-bottom, 0px));
|
|
gap: 10px;
|
|
}
|
|
|
|
.worker-status-item {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.worker-status-icon {
|
|
width: 23px;
|
|
height: 23px;
|
|
}
|
|
}
|
|
|
|
/* Evidenzia le code con errori definitivi senza nascondere i conteggi attivi. */
|
|
.worker-status-item.has-errors {
|
|
background: rgba(170, 20, 28, 0.94);
|
|
border-color: rgba(255, 115, 115, 0.95);
|
|
box-shadow: 0 2px 10px rgba(120, 0, 0, 0.35);
|
|
}
|
|
|
|
.worker-status-errors {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: -8px;
|
|
padding: 2px 5px;
|
|
border: 1px solid rgba(255, 255, 255, 0.8);
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
background: #b00020;
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.worker-status-errors[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Simbolo dedicato alla coda delle attività. */
|
|
.worker-status-emoji {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 23px;
|
|
line-height: 1;
|
|
}
|