mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-21 02:59:31 -07:00
portrait current conditions #167
This commit is contained in:
@@ -5,9 +5,33 @@
|
||||
.weather-display .main.current-weather {
|
||||
&.main {
|
||||
width: calc(p.$standard-width - (2 * p.$blue-box-margin));
|
||||
@include u.text-shadow();
|
||||
|
||||
.portrait-only {
|
||||
display: none;
|
||||
|
||||
.portrait.enhanced & {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.standard-only {
|
||||
display: block;
|
||||
|
||||
.portrait.enhanced & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.portrait-location {
|
||||
text-align: center;
|
||||
margin-top: 175px;
|
||||
font-family: "Star4000 Large";
|
||||
font-size: 32pt;
|
||||
color: c.$title-color;
|
||||
}
|
||||
|
||||
.col {
|
||||
height: 50px;
|
||||
width: 255px;
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
@@ -20,11 +44,32 @@
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
@include u.text-shadow();
|
||||
.portrait.enhanced & {
|
||||
margin-left: 20px;
|
||||
width: calc(p.$blue-box-width - 40px);
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
.wind-container {
|
||||
margin-left: 50px;
|
||||
width: calc(p.$blue-box-width - 140px);
|
||||
}
|
||||
}
|
||||
|
||||
&.left {
|
||||
font-family: 'Star4000 Extended';
|
||||
font-size: 24pt;
|
||||
|
||||
.portrait.enhanced & {
|
||||
font-size: 30pt;
|
||||
line-height: 40px;
|
||||
|
||||
.icon {
|
||||
margin-top: 50px;
|
||||
transform: scale(1.5);
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.right {
|
||||
@@ -34,6 +79,14 @@
|
||||
font-weight: bold;
|
||||
line-height: 24px;
|
||||
|
||||
.portrait.enhanced & {
|
||||
font-family: "Star4000 Extended";
|
||||
font-size: 28pt;
|
||||
font-weight: 300;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
|
||||
.row {
|
||||
margin-bottom: 12px;
|
||||
|
||||
@@ -48,6 +101,7 @@
|
||||
|
||||
.value {
|
||||
float: right;
|
||||
text-align: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
@@ -167,6 +167,10 @@ body {
|
||||
.wide & {
|
||||
width: p.$wide-width;
|
||||
}
|
||||
|
||||
.enhanced.portrait & {
|
||||
height: p.$portrait-height;
|
||||
}
|
||||
}
|
||||
|
||||
.kiosk #divTwc {
|
||||
@@ -343,6 +347,12 @@ body {
|
||||
background-image: url(../images/backgrounds/1.png);
|
||||
transform-origin: 0 0;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
.portrait.enhanced & {
|
||||
width: p.$portrait-width;
|
||||
height: p.$portrait-height;
|
||||
background-image: url(../images/backgrounds/1-portrait.png);
|
||||
}
|
||||
}
|
||||
|
||||
.wide #container {
|
||||
|
||||
@@ -26,8 +26,17 @@
|
||||
/* this method is required to hide blocks so they can be measured while off screen */
|
||||
height: 0px;
|
||||
|
||||
.enhanced.portrait & {
|
||||
|
||||
background-image: url(../images/backgrounds/1-portrait.png);
|
||||
}
|
||||
|
||||
&.show {
|
||||
height: p.$standard-height;
|
||||
|
||||
.enhanced.portrait & {
|
||||
height: p.$portrait-height;
|
||||
}
|
||||
}
|
||||
|
||||
.template {
|
||||
@@ -133,8 +142,18 @@
|
||||
overflow: hidden;
|
||||
|
||||
&.no-header {
|
||||
height: 400px;
|
||||
height: calc(p.$standard-scroll-height + 90px);
|
||||
margin-top: 0; // Reset for no-header case since the gap issue is header-related
|
||||
|
||||
.portrait.enhanced & {
|
||||
height: calc(p.$portrait-scroll-height + 90px);
|
||||
}
|
||||
}
|
||||
|
||||
.portrait.enhanced & {
|
||||
height: p.$portrait-scroll-height;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,11 +4,17 @@ $standard-height: 480px;
|
||||
|
||||
// height with scroll
|
||||
$standard-scroll-height: 310px;
|
||||
$portrait-scroll-height: 967px;
|
||||
|
||||
// blue box size
|
||||
$blue-box-margin: 64px;
|
||||
$blue-box-width: calc($standard-width - 2 * $blue-box-margin);
|
||||
|
||||
// wide screen positioning
|
||||
$wide-padding: 107px;
|
||||
$wide-margin: 107px;
|
||||
$wide-width: 854px;
|
||||
$wide-width: 854px;
|
||||
|
||||
// portrait positioning
|
||||
$portrait-width: 640px;
|
||||
$portrait-height: 1137px;
|
||||
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