mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 12:09:30 -07:00
better background and wide screen for hazard displays
This commit is contained in:
BIN
server/images/backgrounds/7-wide.png
Normal file
BIN
server/images/backgrounds/7-wide.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
server/images/backgrounds/7.png
Normal file
BIN
server/images/backgrounds/7.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -97,6 +97,12 @@ const drawScreen = async () => {
|
|||||||
if (elem.parentElement.id === 'progress-html') return;
|
if (elem.parentElement.id === 'progress-html') return;
|
||||||
thisScreen?.classes?.forEach((cls) => elem.classList.add(cls));
|
thisScreen?.classes?.forEach((cls) => elem.classList.add(cls));
|
||||||
});
|
});
|
||||||
|
// special case for red background on hazard scroll
|
||||||
|
const mainScrollBg = document.getElementById('scroll-bg');
|
||||||
|
mainScrollBg.className = '';
|
||||||
|
if (thisScreen?.classes?.includes('hazard')) {
|
||||||
|
mainScrollBg.classList.add('hazard');
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof thisScreen === 'string') {
|
if (typeof thisScreen === 'string') {
|
||||||
// only a string
|
// only a string
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,12 +1,17 @@
|
|||||||
@use 'shared/_colors'as c;
|
@use 'shared/_colors'as c;
|
||||||
@use 'shared/_utils'as u;
|
@use 'shared/_utils'as u;
|
||||||
|
|
||||||
|
#hazards-html.weather-display {
|
||||||
|
background-image: url('../images/backgrounds/7.png');
|
||||||
|
}
|
||||||
|
|
||||||
.weather-display .main.hazards {
|
.weather-display .main.hazards {
|
||||||
&.main {
|
&.main {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
height: 480px;
|
height: 480px;
|
||||||
background-color: rgb(112, 35, 35);
|
background-color: rgb(112, 35, 35);
|
||||||
|
|
||||||
|
|
||||||
.hazard-lines {
|
.hazard-lines {
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
@@ -26,3 +31,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wide.hazards #container {
|
||||||
|
background: url(../images/backgrounds/7-wide.png);
|
||||||
|
}
|
||||||
@@ -161,6 +161,7 @@ body {
|
|||||||
#divTwcMain {
|
#divTwcMain {
|
||||||
width: 640px;
|
width: 640px;
|
||||||
height: 480px;
|
height: 480px;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.wide & {
|
.wide & {
|
||||||
width: 854px;
|
width: 854px;
|
||||||
|
|||||||
@@ -116,9 +116,11 @@
|
|||||||
.scroll {
|
.scroll {
|
||||||
@include u.text-shadow(3px, 1.5px);
|
@include u.text-shadow(3px, 1.5px);
|
||||||
width: 640px;
|
width: 640px;
|
||||||
height: 70px;
|
height: 77px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
&.hazard {
|
&.hazard {
|
||||||
background-color: rgb(112, 35, 35);
|
background-color: rgb(112, 35, 35);
|
||||||
@@ -159,3 +161,18 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#scroll-bg {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0px;
|
||||||
|
height: 77px;
|
||||||
|
width: 640px;
|
||||||
|
|
||||||
|
&.hazard {
|
||||||
|
background-color: rgb(112, 35, 35);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.wide #scroll-bg {
|
||||||
|
width: 854px;
|
||||||
|
}
|
||||||
@@ -134,6 +134,7 @@
|
|||||||
<%- include('partials/hazards.ejs') %>
|
<%- include('partials/hazards.ejs') %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="scroll-bg"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="divTwcBottom">
|
<div id="divTwcBottom">
|
||||||
<div id="divTwcBottomLeft">
|
<div id="divTwcBottomLeft">
|
||||||
|
|||||||
Reference in New Issue
Block a user