forked from dyf/dyf-vue-ui
174 lines
3.1 KiB
Vue
174 lines
3.1 KiB
Vue
|
|
<style scoped>
|
|
.dashboard-container {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: radial-gradient( 0% 0% at 0% 0%, #091B2D 0%, #0C2644 100%), #267AD0;
|
|
}
|
|
|
|
/* 全屏地图 - 背景图层 */
|
|
.fullscreen-map {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* 顶部栏 */
|
|
.top-bar {
|
|
position: relative;
|
|
z-index: 10;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
background-color: rgba(74, 85, 104, 0.9);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.top-bar h1 {
|
|
font-size: 18px;
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-info {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-info span {
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* 悬浮模块容器 */
|
|
.floating-modules {
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: calc(100% - 60px); /* 减去顶部栏高度 */
|
|
z-index: 5;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.left-modules,
|
|
.right-modules {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
width: 100%;
|
|
flex: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.bottom-middle-module {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
max-width: 800px;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.module-card {
|
|
background-color: rgba(107, 114, 128, 0.9);
|
|
border-radius: 6px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.module-card:hover {
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.module-header {
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
background: linear-gradient(90deg, #3b82f6, #60a5fa);
|
|
}
|
|
|
|
.module-header::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 16px;
|
|
margin-right: 8px;
|
|
border-radius: 2px;
|
|
background-color: inherit;
|
|
}
|
|
|
|
.module-content {
|
|
padding: 14px;
|
|
color: #e5e7eb;
|
|
font-size: 13px;
|
|
height: calc(100% - 36px);
|
|
box-sizing: border-box;
|
|
overflow: auto;
|
|
}
|
|
|
|
.overview-card .module-header::before { background-color: #3b82f6; }
|
|
.alarm-card .module-header::before { background-color: #ef4444; }
|
|
.realtime-card .module-header::before { background-color: #f97316; }
|
|
.module-card:nth-child(2) .module-header::before { background-color: #8b5cf6; }
|
|
.module-card:nth-child(3) .module-header::before { background-color: #06b6d4; }
|
|
|
|
@media (max-width: 1400px) {
|
|
.left-modules,
|
|
.right-modules {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.left-modules,
|
|
.right-modules {
|
|
width: 100%;
|
|
}
|
|
.bottom-middle-module {
|
|
max-width: 600px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.left-modules,
|
|
.right-modules {
|
|
width: 100%;
|
|
}
|
|
.bottom-middle-module {
|
|
max-width: 500px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.left-modules,
|
|
.right-modules {
|
|
width: 100%;
|
|
}
|
|
.bottom-middle-module {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
</style> |