大屏项目初始化
This commit is contained in:
293
css/index.css
Normal file
293
css/index.css
Normal file
@@ -0,0 +1,293 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transform: scale(0.8);
|
||||
background-image: url('../img/bj.png');
|
||||
background-size: 1920px 1080px;
|
||||
/* 背景图片覆盖整个元素 */
|
||||
background-repeat: no-repeat;
|
||||
/* 背景图片不重复 */
|
||||
}
|
||||
|
||||
.riqi {
|
||||
font-size: 20px;
|
||||
color: rgb(255, 255, 255);
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.shijian {
|
||||
text-align: right;
|
||||
font-size: 45px;
|
||||
color: rgb(254, 254, 254);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.datetime-box {
|
||||
position: absolute;
|
||||
top: 1%;
|
||||
right: 1%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.header-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.zi {
|
||||
width: 100%;
|
||||
margin-top: 15px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
font-size: 55px;
|
||||
font-weight: bold;
|
||||
background: linear-gradient(0deg, #fff, #00fff9, #fff);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
text-fill-color: transparent;
|
||||
|
||||
}
|
||||
|
||||
.zi::before {
|
||||
z-index: -1;
|
||||
content: '数 据 可 视 化 看 板';
|
||||
position: absolute;
|
||||
text-shadow: 1px 1px 10px #00ddcf;
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
width: 96%;
|
||||
left: 2%;
|
||||
height: 88%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.lanes-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 75%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.lane-column {
|
||||
width: 32%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.lane-header {
|
||||
text-align: center;
|
||||
color: #00fff9;
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
background: rgba(0, 255, 255, 0.1);
|
||||
padding: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.lane-part {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
background-image: url('../img/kuang.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.lane-part .divHead {
|
||||
position: absolute;
|
||||
width: 84%;
|
||||
height: 1px;
|
||||
top: 6%; /* Changed from margin-top to top for height-relative positioning */
|
||||
left: 8%;
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
background-image: url('../img/kuang_tou.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.alarm-section {
|
||||
height: 23%;
|
||||
width: 100%;
|
||||
background-image: url('../img/kuang.png');
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
.alarm-section .divHead {
|
||||
position: absolute;
|
||||
width: 20%;
|
||||
height: 1px;
|
||||
top: 10%; /* Changed from margin-top to top for height-relative positioning */
|
||||
left: 1%;
|
||||
margin-top: 0;
|
||||
margin-left: 0;
|
||||
background-image: url('../img/kuang_tou.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.divHead {
|
||||
/* Fallback/Original definition if needed, but overridden above */
|
||||
position: absolute;
|
||||
width: 84%;
|
||||
height: 1px;
|
||||
margin-top: 16%;
|
||||
margin-left: 8%;
|
||||
background-image: url('../img/kuang_tou.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.name {
|
||||
position: absolute;
|
||||
color: #0dede4;
|
||||
font-weight: bold;
|
||||
bottom: 5px;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.name1 {
|
||||
position: absolute;
|
||||
width: 35px;
|
||||
height: 15px;
|
||||
bottom: 10px;
|
||||
right: 2px;
|
||||
background-image: url('../img/kuang_you.png');
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.part-content {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
}
|
||||
|
||||
.alarm-list-container {
|
||||
position: absolute;
|
||||
top: 30%; /* Moved down to prevent overlap with title */
|
||||
width: 96%;
|
||||
left: 2%;
|
||||
height: 65%; /* Adjusted height */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.alarm-content-scroll {
|
||||
height: calc(100% - 40px);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.alarm-items {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.alarm-item {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: space-around;
|
||||
border-bottom: 1px solid #00ffff57;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.alarm-item p {
|
||||
margin: 0;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 2px;
|
||||
width: 25%;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
height: 35px;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
/* Reuse existing list styles for alarm */
|
||||
.kuang {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.kuang>li {
|
||||
color: #fff;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: space-around;
|
||||
border-bottom: 1px solid #00ffff57;
|
||||
}
|
||||
|
||||
|
||||
.kuang>li>p {
|
||||
margin: 0;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 2px;
|
||||
width: 25%; /* 4 columns for alarm list */
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
height: 35px;
|
||||
font-size: 26px;
|
||||
}
|
||||
.kuang>li:first-child {
|
||||
color: #ffb742;
|
||||
text-align: center;
|
||||
height: 40px;
|
||||
background: #013132;
|
||||
/* font-weight: bold; */
|
||||
font-size: 30px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Lane list styles */
|
||||
.lane-list {
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.lane-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
border-bottom: 1px solid #00ffff57;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.lane-item p {
|
||||
margin: 0;
|
||||
padding: 5px 0;
|
||||
width: 25%;
|
||||
text-align: center;
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.lane-item.header {
|
||||
background: #013132;
|
||||
color: #ffb742;
|
||||
font-weight: bold;
|
||||
font-size: 30px;
|
||||
}
|
||||
Reference in New Issue
Block a user