Reduce sizes and padding to fit panel in viewport

This commit is contained in:
Richard Zink committed 2026-10-07 09:00:20 +02:00
1 parent ba74c68026
commit fa545513a0
1 file changed
+31 -31
+31 -31
View File
@@ -15,15 +15,15 @@
bottom: 2vh;
color: #e6dfd1;
background: rgba(28, 27, 31, 0.7);
padding: 1.5vh 1.5vw;
padding: 1vh 1vw;
border-radius: 0.6vh;
z-index: 9999;
font-size: clamp(11px, 1.4vh, 16px);
line-height: 1.5;
width: clamp(280px, min(35vh, 30vw), 40vw);
font-size: clamp(10px, 1.2vh, 14px);
line-height: 1.4;
width: clamp(260px, min(33vh, 28vw), 40vw);
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-y: hidden;
align-items: stretch;
}
@@ -35,7 +35,7 @@
#analog-clock {
width: 100%;
height: auto;
margin: 0 auto 0.6vh auto;
margin: 0 auto 0.4vh auto;
display: block;
flex-shrink: 0;
}
@@ -43,19 +43,19 @@
text-align: center;
font-size: 1.3em;
letter-spacing: 2px;
margin-bottom: 1vh;
padding-bottom: 0.8vh;
margin-bottom: 0.6vh;
padding-bottom: 0.5vh;
border-bottom: 1px solid rgba(230, 223, 209, 0.2);
}
.info-row {
display: flex;
align-items: center;
gap: 0.8vw;
padding: 0.2vh 0;
gap: 0.6vw;
padding: 0.05vh 0;
}
.info-icon {
width: 1.5em;
height: 1.5em;
width: 1.4em;
height: 1.4em;
flex-shrink: 0;
display: flex;
align-items: center;
@@ -69,7 +69,7 @@
flex-grow: 1;
display: flex;
justify-content: space-between;
gap: 0.8vw;
gap: 0.6vw;
}
.info-label {
color: #b0a89a;
@@ -86,40 +86,40 @@
.weather-divider {
height: 1px;
background: rgba(230, 223, 209, 0.2);
margin: 0.8vh 0;
margin: 0.5vh 0;
}
.weather-current {
display: flex;
align-items: center;
gap: 0.8vw;
padding: 0.4vh 0 0.8vh 0;
gap: 0.6vw;
padding: 0.2vh 0 0.4vh 0;
border-bottom: 1px solid rgba(230, 223, 209, 0.2);
margin-bottom: 0.8vh;
margin-bottom: 0.4vh;
}
.weather-current-icon {
width: 2.5em;
height: 2.5em;
width: 2.2em;
height: 2.2em;
flex-shrink: 0;
}
.weather-current-icon svg { width: 100%; height: 100%; }
.weather-current-temp {
font-size: 1.7em;
font-size: 1.6em;
font-weight: bold;
}
.weather-current-detail {
font-size: 0.85em;
font-size: 0.8em;
color: #b0a89a;
line-height: 1.4;
line-height: 1.3;
}
.weather-day {
margin-bottom: 0.5vh;
margin-bottom: 0.3vh;
}
.weather-day-header {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 0.2vh 0;
font-size: 0.95em;
padding: 0.1vh 0;
font-size: 0.9em;
}
.weather-day-name {
color: #e6dfd1;
@@ -127,24 +127,24 @@
}
.weather-day-minmax {
color: #999187;
font-size: 0.85em;
font-size: 0.8em;
}
.weather-day-slots {
display: flex;
justify-content: space-between;
gap: 0.3vw;
font-size: 0.85em;
gap: 0.2vw;
font-size: 0.8em;
}
.weather-slot {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
gap: 0.2vh;
gap: 0.1vh;
}
.weather-slot-icon {
width: 1.8em;
height: 1.8em;
width: 1.6em;
height: 1.6em;
}
.weather-slot-icon svg { width: 100%; height: 100%; }
.weather-slot-label {