mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 17:19:30 -07:00
- Replace magic numbers with seconds-based timing constants
- Switch from scrollTo() to hardware-accelerated transform
- Add scroll caching to prevent repeated DOM queries every scroll cycle
- Switch to safeJson() for centralized error handling across alert modules
- Horizontal alert scroll now goes edge-to-edge
- Integrate global speed settings into horizontal scroll timing
- Improve error handling flow with better fallback behavior for missing data
- Remvoe unused getCurrentData() function in hazards.mjs
- Move background color from scrolling element to container to avoid
showing the underlying content when scrolling with trasnform
29 lines
518 B
SCSS
29 lines
518 B
SCSS
@use 'shared/_colors' as c;
|
|
@use 'shared/_utils' as u;
|
|
|
|
.weather-display .main.hazards {
|
|
&.main {
|
|
overflow-y: hidden;
|
|
height: 480px;
|
|
background-color: rgb(112, 35, 35);
|
|
|
|
.hazard-lines {
|
|
min-height: 400px;
|
|
padding-top: 10px;
|
|
|
|
.hazard {
|
|
font-family: 'Star4000';
|
|
font-size: 24pt;
|
|
color: white;
|
|
@include u.text-shadow(0px);
|
|
position: relative;
|
|
text-transform: uppercase;
|
|
margin-top: 10px;
|
|
margin-left: 80px;
|
|
margin-right: 80px;
|
|
padding-bottom: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|