ws4kp-linhanced/server/styles/scss/_weather-display.scss

183 lines
2.8 KiB
SCSS
Raw Normal View History

@use 'shared/_colors'as c;
@use 'shared/_utils'as u;
2022-07-29 16:12:42 -05:00
.weather-display {
width: 640px;
height: 480px;
overflow: hidden;
position: relative;
2026-04-08 12:49:21 -04:00
background-image: var(--theme-background-1);
2022-08-04 11:07:35 -05:00
/* this method is required to hide blocks so they can be measured while off screen */
height: 0px;
2022-07-29 16:12:42 -05:00
&.show {
2022-08-04 11:07:35 -05:00
height: 480px;
2022-07-29 16:12:42 -05:00
}
.template {
display: none;
}
.header {
width: 640px;
height: 60px;
padding-top: 30px;
2026-04-07 18:08:38 -04:00
position: relative;
z-index: 20;
2022-07-29 16:12:42 -05:00
.title {
2026-04-15 09:15:30 -04:00
color: #eebe4b;
text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0px -2px 0 #000, 0px 2px 0 #000, -2px 0px 0 #000, 2px 0px 0 #000, 3px 3px 0px #000, 4px 4px 0px #000, 5px 5px 2px rgba(0, 0, 0, 0.8);
2022-07-29 16:12:42 -05:00
font-family: 'Star4000';
font-size: 24pt;
position: absolute;
2022-08-04 20:50:14 -05:00
width: 250px;
2022-07-29 16:12:42 -05:00
&.single {
2026-04-15 09:15:30 -04:00
left: 138px;
top: 40px;
2022-07-29 16:12:42 -05:00
}
&.dual {
2026-04-15 09:15:30 -04:00
left: 144px;
2022-07-29 16:12:42 -05:00
&>div {
position: absolute;
}
.top {
top: -3px;
}
.bottom {
top: 26px;
}
}
}
2022-07-29 16:12:42 -05:00
.logo {
top: 30px;
left: 50px;
position: absolute;
z-index: 10;
}
2022-07-29 16:12:42 -05:00
.noaa-logo {
position: absolute;
top: 39px;
left: 356px;
}
2026-04-15 09:15:30 -04:00
2022-07-29 16:12:42 -05:00
.date-time {
white-space: pre;
color: c.$date-time;
font-family: 'Star4000 Small';
font-size: 24pt;
@include u.text-shadow(3px, 1.5px);
left: 436px;
2022-07-29 16:12:42 -05:00
width: 170px;
text-align: right;
position: absolute;
&.date {
padding-top: 22px;
}
}
}
.main {
position: relative;
2022-07-29 16:12:42 -05:00
&.has-scroll {
width: 640px;
margin-top: 0;
height: 320px;
2022-07-29 16:12:42 -05:00
overflow: hidden;
2022-12-14 16:28:33 -06:00
&.no-header {
height: 400px;
margin-top: 0; // Reset for no-header case since the gap issue is header-related
2022-12-14 16:28:33 -06:00
}
2022-07-29 16:12:42 -05:00
}
&.has-box {
margin-left: 64px;
margin-right: 64px;
width: calc(100% - 128px);
}
2022-08-04 12:49:04 -05:00
2022-07-29 16:12:42 -05:00
}
2025-09-24 22:27:31 -05:00
}
2022-07-29 16:12:42 -05:00
2025-09-24 22:27:31 -05:00
#container>.scroll {
display: none;
@include u.text-shadow(3px, 1.5px);
width: 640px;
height: 77px;
overflow: hidden;
margin-top: 3px;
position: absolute;
bottom: 0px;
z-index: 1;
2022-08-04 13:49:53 -05:00
2025-09-24 22:27:31 -05:00
&.hazard {
background-color: rgb(112, 35, 35);
}
.scroll-container {
width: 640px;
2025-06-05 23:34:12 -05:00
.fixed,
.scroll-header {
2022-08-04 13:49:53 -05:00
margin-left: 55px;
margin-right: 55px;
overflow: hidden;
2025-09-24 22:27:31 -05:00
white-space: nowrap;
}
2025-06-05 23:34:12 -05:00
.scroll-header {
height: 26px;
font-family: "Star4000 Small";
font-size: 20pt;
margin-top: -10px;
}
.fixed {
font-family: 'Star4000';
font-size: 24pt;
.scroll-area {
text-wrap: nowrap;
position: relative;
// the following added by js code as it is dependent on the content of the element
// transition: left (x)s;
// left: calc((elem width) - 640px);
}
2022-08-04 13:49:53 -05:00
}
2022-07-29 16:12:42 -05:00
}
2025-09-24 22:27:31 -05:00
}
.radar #container>.scroll {
z-index: 100;
}
.radar #container>.scroll.hazard {
z-index: 1000 !important;
}
2025-09-24 22:27:31 -05:00
.wide #container>.scroll {
width: 854px;
2025-09-24 22:27:31 -05:00
margin-left: -107px;
.scroll-container {
margin-left: 107px;
}
2026-04-07 18:08:38 -04:00
}