portrait extended forecast #167

This commit is contained in:
Matt Walsh
2026-04-22 19:42:44 -05:00
parent 38d5132281
commit 5bbf487dd6
6 changed files with 34 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

View File

@@ -19,7 +19,7 @@ class ExtendedForecast extends WeatherDisplay {
// set timings // set timings
if (settings.portrait?.value) { if (settings.portrait?.value) {
this.timing.totalScreens = 1; this.timing.totalScreens = 1;
this.perPage = 4; this.perPage = 6;
} else { } else {
this.timing.totalScreens = 2; this.timing.totalScreens = 2;
this.perPage = 3; this.perPage = 3;

View File

@@ -1,14 +1,27 @@
@use 'shared/_colors'as c; @use 'shared/_colors'as c;
@use 'shared/_utils'as u; @use 'shared/_utils'as u;
$portrait-gap-adder: 20px;
#extended-forecast-html.weather-display { #extended-forecast-html.weather-display {
background-image: url('../images/backgrounds/2.png'); background-image: url('../images/backgrounds/2.png');
// change background for portrait
.portrait.enhanced & {
background-image: url(../images/backgrounds/2-portrait.png);
background-position-x: 0px;
}
} }
.weather-display .main.extended-forecast { .weather-display .main.extended-forecast {
.day-container { .day-container {
margin-top: 16px; margin-top: 16px;
margin-left: 27px; margin-left: 27px;
// taller for portrait
.portrait.enhanced & {
margin-top: 90px;
}
} }
.day { .day {
@@ -21,6 +34,12 @@
font-family: 'Star4000'; font-family: 'Star4000';
font-size: 24pt; font-size: 24pt;
// taller for portrait
.portrait.enhanced & {
height: 360px;
margin-bottom: 75px;
}
.date { .date {
text-transform: uppercase; text-transform: uppercase;
text-align: center; text-align: center;
@@ -31,6 +50,10 @@
text-align: center; text-align: center;
height: 74px; height: 74px;
margin-top: 5px; margin-top: 5px;
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
} }
.icon { .icon {
@@ -40,11 +63,19 @@
img { img {
max-height: 75px; max-height: 75px;
} }
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
} }
.temperatures { .temperatures {
width: 100%; width: 100%;
.portrait.enhanced & {
margin-top: $portrait-gap-adder;
}
.temperature-block { .temperature-block {
display: inline-block; display: inline-block;
width: 44%; width: 44%;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long