mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 03:59:30 -07:00
portrait extended forecast #167
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
|
// 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;
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
2
server/styles/ws.min.css
vendored
2
server/styles/ws.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user