mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-22 19:49:31 -07:00
Merge branch 'screen-enhance' of github.com:netbymatt/ws4kp into screen-enhance
This commit is contained in:
BIN
server/images/backgrounds/2-portrait.png
Normal file
BIN
server/images/backgrounds/2-portrait.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
BIN
server/images/gimp/2-portrait.xcf
Normal file
BIN
server/images/gimp/2-portrait.xcf
Normal file
Binary file not shown.
@@ -19,7 +19,7 @@ class ExtendedForecast extends WeatherDisplay {
|
||||
// set timings
|
||||
if (settings.portrait?.value) {
|
||||
this.timing.totalScreens = 1;
|
||||
this.perPage = 4;
|
||||
this.perPage = 6;
|
||||
} else {
|
||||
this.timing.totalScreens = 2;
|
||||
this.perPage = 3;
|
||||
|
||||
@@ -1,14 +1,27 @@
|
||||
@use 'shared/_colors'as c;
|
||||
@use 'shared/_utils'as u;
|
||||
|
||||
$portrait-gap-adder: 20px;
|
||||
|
||||
#extended-forecast-html.weather-display {
|
||||
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 {
|
||||
.day-container {
|
||||
margin-top: 16px;
|
||||
margin-left: 27px;
|
||||
|
||||
// taller for portrait
|
||||
.portrait.enhanced & {
|
||||
margin-top: 90px;
|
||||
}
|
||||
}
|
||||
|
||||
.day {
|
||||
@@ -21,6 +34,12 @@
|
||||
font-family: 'Star4000';
|
||||
font-size: 24pt;
|
||||
|
||||
// taller for portrait
|
||||
.portrait.enhanced & {
|
||||
height: 360px;
|
||||
margin-bottom: 75px;
|
||||
}
|
||||
|
||||
.date {
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
@@ -31,6 +50,10 @@
|
||||
text-align: center;
|
||||
height: 74px;
|
||||
margin-top: 5px;
|
||||
|
||||
.portrait.enhanced & {
|
||||
margin-top: $portrait-gap-adder;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
@@ -40,11 +63,19 @@
|
||||
img {
|
||||
max-height: 75px;
|
||||
}
|
||||
|
||||
.portrait.enhanced & {
|
||||
margin-top: $portrait-gap-adder;
|
||||
}
|
||||
}
|
||||
|
||||
.temperatures {
|
||||
width: 100%;
|
||||
|
||||
.portrait.enhanced & {
|
||||
margin-top: $portrait-gap-adder;
|
||||
}
|
||||
|
||||
.temperature-block {
|
||||
display: inline-block;
|
||||
width: 44%;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user