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

143 lines
2 KiB
SCSS
Raw Normal View History

2022-08-05 14:03:14 -05:00
@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;
2025-05-14 14:50:02 -05:00
background-image: url(../images/backgrounds/1.png);
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;
.title {
color: c.$title-color;
@include u.text-shadow(3px, 1.5px);
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 {
left: 170px;
top: 25px;
}
&.dual {
left: 170px;
&>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;
}
.title.single {
top: 40px;
}
.date-time {
white-space: pre;
color: c.$date-time;
font-family: 'Star4000 Small';
font-size: 24pt;
@include u.text-shadow(3px, 1.5px);
left: 415px;
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;
height: 310px;
overflow: hidden;
2022-12-14 16:28:33 -06:00
&.no-header {
height: 400px;
}
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
}
.scroll {
2022-08-04 13:49:53 -05:00
@include u.text-shadow(3px, 1.5px);
width: 640px;
2022-08-05 15:40:53 -05:00
height: 70px;
2022-07-29 16:12:42 -05:00
overflow: hidden;
margin-top: 3px;
padding-top: 7px;
2022-08-04 13:49:53 -05:00
&.hazard {
background-color: rgb(112, 35, 35);
}
2022-08-04 13:49:53 -05:00
.fixed {
font-family: 'Star4000';
font-size: 24pt;
margin-left: 55px;
margin-right: 55px;
overflow: hidden;
.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
}
}