大屏修改

This commit is contained in:
liuhanqing
2026-05-06 09:09:29 +08:00
parent ec2bbe1b83
commit c7ab332b65
22 changed files with 585 additions and 25505 deletions

View File

@@ -80,7 +80,7 @@ body {
.lanes-container {
display: flex;
justify-content: space-between;
height: 75%;
height: 60%;
width: 100%;
}
@@ -125,7 +125,7 @@ body {
}
.alarm-section {
height: 23%;
height: 37%;
width: 100%;
background-image: url('../img/kuang.png');
background-size: 100% 100%;
@@ -137,7 +137,7 @@ body {
position: absolute;
width: 20%;
height: 1px;
top: 10%; /* Changed from margin-top to top for height-relative positioning */
top: 6%;
left: 1%;
margin-top: 0;
margin-left: 0;
@@ -186,15 +186,15 @@ body {
.alarm-list-container {
position: absolute;
top: 30%; /* Moved down to prevent overlap with title */
top: 18%;
width: 96%;
left: 2%;
height: 65%; /* Adjusted height */
height: 78%;
overflow: hidden;
}
.alarm-content-scroll {
height: calc(100% - 40px);
height: calc(100% - 44px);
overflow: hidden;
position: relative;
width: 100%;
@@ -216,13 +216,14 @@ body {
.alarm-item p {
margin: 0;
padding-top: 4px;
padding-bottom: 2px;
padding-top: 6px;
padding-bottom: 6px;
width: 25%;
text-align: center;
word-break: break-all;
height: 35px;
font-size: 26px;
height: 44px;
font-size: 28px;
line-height: 32px;
}
/* Reuse existing list styles for alarm */
@@ -244,18 +245,18 @@ body {
.kuang>li>p {
margin: 0;
padding-top: 4px;
padding-bottom: 2px;
padding-top: 6px;
padding-bottom: 6px;
width: 25%; /* 4 columns for alarm list */
text-align: center;
word-break: break-all;
height: 35px;
font-size: 26px;
height: 44px;
font-size: 28px;
}
.kuang>li:first-child {
color: #ffb742;
text-align: center;
height: 40px;
height: 44px;
background: #013132;
/* font-weight: bold; */
font-size: 30px;
@@ -291,3 +292,160 @@ body {
font-weight: bold;
font-size: 30px;
}
/* ===== 服务器设置按钮 ===== */
.setting-btn-box {
position: absolute;
top: 50%;
left: 1%;
transform: translateY(-50%);
z-index: 20;
}
.setting-btn {
background: rgba(0, 255, 249, 0.08);
border: 1px solid #00fff9;
color: #00fff9;
font-size: 20px;
padding: 6px 18px;
border-radius: 6px;
cursor: pointer;
letter-spacing: 2px;
transition: background 0.2s;
}
.setting-btn:hover {
background: rgba(0, 255, 249, 0.2);
}
/* ===== 弹窗遮罩 ===== */
.setting-modal-mask {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
}
/* ===== 弹窗主体 ===== */
.setting-modal {
display: none;
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 480px;
background: #021e23;
border: 1px solid #00fff9;
border-radius: 12px;
z-index: 1001;
box-shadow: 0 0 40px rgba(0, 255, 249, 0.3);
padding: 0 0 24px;
}
.setting-modal-title {
text-align: center;
color: #00fff9;
font-size: 28px;
font-weight: bold;
padding: 20px 0 14px;
border-bottom: 1px solid rgba(0, 255, 249, 0.2);
letter-spacing: 4px;
}
.setting-modal-body {
padding: 24px 36px 8px;
}
.setting-row {
display: flex;
align-items: center;
margin-bottom: 22px;
}
.setting-label {
color: #ffb742;
font-size: 24px;
width: 80px;
flex-shrink: 0;
letter-spacing: 2px;
}
.setting-options {
display: flex;
gap: 16px;
}
.setting-option {
padding: 8px 28px;
border: 1px solid #00fff9;
border-radius: 6px;
color: #00fff9;
font-size: 22px;
cursor: pointer;
transition: all 0.2s;
letter-spacing: 2px;
}
.setting-option:hover {
background: rgba(0, 255, 249, 0.15);
}
.setting-option.active {
background: #00fff9;
color: #021e23;
font-weight: bold;
}
.setting-preview {
margin-top: 4px;
padding: 10px 14px;
background: rgba(0, 255, 249, 0.06);
border-radius: 6px;
color: #aafffd;
font-size: 18px;
line-height: 1.8;
min-height: 56px;
letter-spacing: 1px;
}
.setting-modal-footer {
display: flex;
justify-content: center;
gap: 24px;
margin-top: 20px;
}
.setting-save-btn {
background: #00fff9;
color: #021e23;
border: none;
font-size: 22px;
font-weight: bold;
padding: 8px 40px;
border-radius: 6px;
cursor: pointer;
letter-spacing: 4px;
transition: opacity 0.2s;
}
.setting-save-btn:hover {
opacity: 0.85;
}
.setting-cancel-btn {
background: transparent;
color: #aaa;
border: 1px solid #555;
font-size: 22px;
padding: 8px 40px;
border-radius: 6px;
cursor: pointer;
letter-spacing: 4px;
transition: all 0.2s;
}
.setting-cancel-btn:hover {
border-color: #888;
color: #ccc;
}