Screensaver: orologio più grande, frasi dinamiche fade-in/out, font fact ingrandito

This commit is contained in:
dadaloop82
2026-03-13 07:16:55 +00:00
parent 196c38fd23
commit cbb7d53e78
4 changed files with 584 additions and 12 deletions
+89
View File
@@ -2620,6 +2620,38 @@ body {
accent-color: var(--primary);
}
/* Meal type selector */
.recipe-meal-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 6px;
margin-top: 4px;
}
.recipe-meal-chip {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 10px 6px;
background: var(--bg);
border-radius: var(--radius-sm);
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
border: 2px solid transparent;
text-align: center;
white-space: nowrap;
}
.recipe-meal-chip:has(input:checked) {
background: rgba(45, 80, 22, 0.1);
border-color: var(--primary);
font-weight: 600;
}
.recipe-meal-chip input[type="radio"] {
display: none;
}
/* ===== LARGER PRODUCT PREVIEW (Action page) ===== */
.product-preview-large {
flex-direction: column;
@@ -3426,3 +3458,60 @@ body {
color: var(--text-muted);
flex-wrap: wrap;
}
/* ===== SCREENSAVER ===== */
.screensaver-overlay {
position: fixed;
inset: 0;
background: #000;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.8s ease;
}
.screensaver-overlay.visible {
opacity: 1;
}
.screensaver-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
padding: 20px;
max-width: 90vw;
}
.screensaver-clock {
color: rgba(255,255,255,0.85);
font-size: 7rem;
font-weight: 200;
font-variant-numeric: tabular-nums;
letter-spacing: 4px;
text-align: center;
line-height: 1.2;
user-select: none;
}
.screensaver-clock .screensaver-date {
font-size: 1.4rem;
font-weight: 300;
opacity: 0.45;
letter-spacing: 1px;
margin-top: 4px;
}
.screensaver-fact {
color: rgba(255,255,255,0.55);
font-size: 1.6rem;
font-weight: 300;
text-align: center;
line-height: 1.5;
max-width: 500px;
min-height: 2.5em;
opacity: 0;
transition: opacity 1.5s ease;
user-select: none;
}
.screensaver-fact.visible {
opacity: 1;
}