Files
gofly-platform-services/zlt-web/yingyan/src/layouts/BlankLayout.less
T

672 lines
14 KiB
Plaintext
Raw Normal View History

2025-12-26 19:50:46 +08:00
.blank-layout {
2026-01-19 17:12:43 +08:00
height: 100vh;
height: 100dvh;
max-height: 100vh;
max-height: 100dvh;
overflow: hidden;
2025-12-26 19:50:46 +08:00
background: var(--bg-primary);
2026-01-19 17:12:43 +08:00
display: flex;
flex-direction: column;
/* Dashboard 高度自适应:同一份变量同时驱动 Header 与 Content,避免"减去固定像素"导致不同屏幕被遮挡 */
--dashboard-header-h: 80px;
}
@media (max-height: 900px) {
.blank-layout {
--dashboard-header-h: 64px;
}
}
@media (max-height: 760px) {
.blank-layout {
--dashboard-header-h: 56px;
}
2025-12-26 19:50:46 +08:00
}
.blank-header {
2026-01-19 17:12:43 +08:00
flex: 0 0 auto;
2025-12-26 19:50:46 +08:00
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
height: 56px;
line-height: 56px;
background: linear-gradient(180deg, rgba(19, 26, 61, 0.98) 0%, rgba(10, 14, 39, 0.95) 100%) !important;
border-bottom: 1px solid var(--border-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
2026-01-19 17:12:43 +08:00
position: relative;
2025-12-26 19:50:46 +08:00
z-index: 100;
}
.header-left {
display: flex;
align-items: center;
}
.logo {
display: flex;
align-items: center;
cursor: pointer;
transition: opacity 0.2s;
&:hover {
opacity: 0.85;
}
}
.logo-icon {
font-size: 24px;
color: var(--accent-blue);
margin-right: 10px;
}
.logo-text {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header-center {
flex: 1;
display: flex;
justify-content: center;
padding: 0 24px;
}
.header-right {
display: flex;
align-items: center;
gap: 24px;
}
.current-time {
color: var(--text-secondary);
font-size: 14px;
font-family: 'Courier New', monospace;
}
.user-info {
cursor: pointer;
padding: 4px 12px;
border-radius: 20px;
transition: background 0.2s;
&:hover {
background: rgba(0, 212, 255, 0.1);
}
}
.user-name {
color: var(--text-primary);
font-size: 14px;
}
.blank-content {
2026-01-19 17:12:43 +08:00
flex: 1;
min-height: 0;
2025-12-26 19:50:46 +08:00
overflow: auto;
background: var(--bg-primary);
}
.blank-content--dashboard {
2026-01-19 17:12:43 +08:00
flex: 1;
min-height: 0;
2026-01-19 17:12:43 +08:00
overflow: hidden;
display: flex;
flex-direction: column;
> * {
flex: 1;
min-height: 0;
}
}
@media (max-height: 900px) {
.blank-content--dashboard {
overflow: hidden;
}
}
@media (max-width: 1280px) {
.blank-content--dashboard {
overflow: hidden;
}
2025-12-26 19:50:46 +08:00
}
.blank-content--map3d {
height: calc(100vh - 72px);
overflow: hidden;
}
.blank-header--map3d {
display: grid;
grid-template-columns: 1fr auto 1fr;
height: 72px;
line-height: 72px;
padding: 0 16px;
background: rgba(10, 20, 30, 0.88) !important;
border-bottom: 1px solid rgba(0, 240, 255, 0.12);
box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(10px);
.header-left,
.header-center,
.header-right {
display: flex;
align-items: center;
}
.header-left {
min-width: 260px;
}
.header-center {
justify-content: center;
padding: 0 10px;
}
.header-right {
justify-content: flex-end;
gap: 10px;
}
.map3d-header-slot {
display: flex;
align-items: center;
min-height: 1px;
}
#map3d-header-left {
justify-content: flex-start;
gap: 10px;
}
#map3d-header-center {
justify-content: center;
width: 100%;
}
#map3d-header-right {
justify-content: flex-end;
gap: 10px;
}
.user-info {
padding: 4px 10px;
border-radius: 999px;
border: 1px solid rgba(0, 240, 255, 0.14);
background: rgba(255, 255, 255, 0.04);
&:hover {
background: rgba(0, 240, 255, 0.10);
border-color: rgba(0, 240, 255, 0.28);
}
}
.user-name {
color: rgba(255, 255, 255, 0.9);
}
}
.blank-header--dashboard {
2026-01-19 17:12:43 +08:00
flex: 0 0 var(--dashboard-header-h);
height: var(--dashboard-header-h);
line-height: var(--dashboard-header-h);
2025-12-26 19:50:46 +08:00
padding: 0 22px;
background: linear-gradient(180deg, rgba(7, 10, 26, 0.92) 0%, rgba(7, 10, 26, 0.66) 100%) !important;
border-bottom: none;
overflow: hidden;
box-shadow:
0 2px 12px rgba(0, 0, 0, 0.28),
inset 0 -1px 0 rgba(0, 212, 255, 0.18);
2026-01-19 17:12:43 +08:00
position: relative;
2025-12-26 19:50:46 +08:00
&::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);
opacity: 0.45;
pointer-events: none;
}
&::after {
content: '';
position: absolute;
top: 0;
left: -30%;
width: 30%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.12), transparent);
transform: skewX(-18deg);
animation: headerSweep 5.2s linear infinite;
opacity: 0.65;
pointer-events: none;
}
.header-left {
flex: 1.2;
justify-content: flex-start;
}
.header-center {
flex: 1.6;
justify-content: center;
padding: 0 12px;
}
.header-right {
flex: 1.2;
justify-content: flex-end;
gap: 12px;
}
.dashboard-title {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 920px;
padding: 0 18px;
&::before,
&::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, 0.55));
opacity: 0.55;
}
&::after {
background: linear-gradient(90deg, rgba(0, 212, 255, 0.55), rgba(0, 212, 255, 0));
}
.dashboard-title__text {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 28px;
margin: 0 14px;
border-radius: 999px;
border: 1px solid rgba(0, 212, 255, 0.28);
background: rgba(19, 26, 61, 0.42);
font-size: 28px;
font-weight: 800;
letter-spacing: 8px;
line-height: 1.1;
font-family: 'DIN Alternate', 'HarmonyOS Sans', 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
color: #fff;
text-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
background-image: linear-gradient(180deg, #ffffff 0%, #aeeeff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.dashboard-title__deco {
position: absolute;
bottom: 14px;
left: 50%;
transform: translateX(-50%);
width: 320px;
height: 2px;
background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.9), transparent);
filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
opacity: 0.75;
}
}
.dashboard-filter {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(0, 212, 255, 0.22);
background: rgba(19, 26, 61, 0.42);
backdrop-filter: blur(8px);
2025-12-30 17:14:17 +08:00
.filter-divider {
width: 1px;
height: 24px;
background: rgba(0, 212, 255, 0.25);
margin: 0 4px;
}
2025-12-26 19:50:46 +08:00
.dashboard-filter__label {
color: rgba(255, 255, 255, 0.72);
font-size: 12px;
letter-spacing: 2px;
white-space: nowrap;
}
:global(.ant-space) {
gap: 8px !important;
}
:global(.ant-checkbox-wrapper) {
color: rgba(255, 255, 255, 0.68) !important;
font-size: 12px;
user-select: none;
}
:global(.ant-tree-select) {
min-width: 260px;
}
:global(.ant-select-selector) {
background: rgba(0, 212, 255, 0.04) !important;
border: 1px solid rgba(0, 212, 255, 0.22) !important;
color: #fff !important;
border-radius: 8px !important;
}
:global(.ant-select-arrow) {
color: rgba(255, 255, 255, 0.55);
}
}
.dashboard-user--dashboard {
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(0, 212, 255, 0.22);
background: rgba(19, 26, 61, 0.42);
backdrop-filter: blur(8px);
}
:global(.ant-tree-select) {
:global(.ant-select-selector) {
background: rgba(0, 212, 255, 0.05) !important;
border: 1px solid rgba(0, 212, 255, 0.2) !important;
color: #fff !important;
border-radius: 6px;
}
}
}
@keyframes headerSweep {
0% { transform: translateX(0) skewX(-18deg); opacity: 0; }
8% { opacity: 0.65; }
55% { opacity: 0.35; }
100% { transform: translateX(520%) skewX(-18deg); opacity: 0; }
}
2025-12-30 17:14:17 +08:00
/* 海事智慧监控平台 Header 样式 - 深海蓝主题 */
.blank-header--maritime {
height: 88px;
line-height: 88px;
padding: 0 24px;
background: linear-gradient(180deg,
rgba(2, 12, 27, 0.98) 0%,
rgba(8, 25, 45, 0.95) 50%,
rgba(12, 35, 60, 0.92) 100%) !important;
border-bottom: none;
overflow: hidden;
box-shadow:
0 4px 24px rgba(0, 0, 0, 0.5),
inset 0 -2px 0 rgba(0, 150, 200, 0.3),
inset 0 1px 0 rgba(0, 200, 255, 0.15);
position: sticky;
/* 顶部海洋蓝光线 - 更亮更粗 */
&::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: 0;
height: 3px;
background: linear-gradient(90deg,
transparent 5%,
rgba(0, 180, 230, 0.4) 20%,
rgba(0, 220, 255, 0.9) 50%,
rgba(0, 180, 230, 0.4) 80%,
transparent 95%);
opacity: 0.9;
pointer-events: none;
animation: headerGlow 3s ease-in-out infinite;
}
/* 海洋波纹光扫效果 - 更明显 */
&::after {
content: '';
position: absolute;
top: 0;
left: -40%;
width: 40%;
height: 100%;
background: linear-gradient(90deg,
transparent,
rgba(0, 180, 230, 0.08),
rgba(0, 220, 255, 0.15),
rgba(0, 180, 230, 0.08),
transparent);
transform: skewX(-20deg);
animation: maritimeSweep 5s ease-in-out infinite;
opacity: 0.8;
pointer-events: none;
}
.header-left {
flex: 1.3;
display: flex;
align-items: center;
justify-content: flex-start;
}
.header-center {
flex: 1.4;
display: flex;
align-items: center;
justify-content: center;
padding: 0 16px;
}
.header-right {
flex: 1.3;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 14px;
}
/* 海事标题样式 - 更大更醒目 */
.dashboard-title--maritime {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 900px;
padding: 0 24px;
&::before,
&::after {
content: '';
flex: 1;
height: 2px;
opacity: 0.7;
}
&::before {
background: linear-gradient(90deg, transparent, rgba(0, 180, 230, 0.8));
}
&::after {
background: linear-gradient(90deg, rgba(0, 180, 230, 0.8), transparent);
}
.dashboard-title__text {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 36px;
margin: 0 18px;
border-radius: 999px;
border: 2px solid rgba(0, 180, 230, 0.4);
background: linear-gradient(135deg, rgba(8, 30, 55, 0.8) 0%, rgba(15, 45, 75, 0.6) 100%);
font-size: 32px;
font-weight: 800;
letter-spacing: 10px;
line-height: 1.1;
font-family: 'DIN Alternate', 'HarmonyOS Sans', 'Microsoft YaHei', 'PingFang SC', sans-serif;
color: #fff;
text-shadow:
0 0 20px rgba(0, 200, 255, 0.6),
0 0 40px rgba(0, 150, 200, 0.4),
0 2px 4px rgba(0, 0, 0, 0.3);
background-image: linear-gradient(180deg, #ffffff 0%, #7dd3fc 50%, #0ea5e9 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
/* 发光边框效果 */
box-shadow:
0 0 20px rgba(0, 180, 230, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.dashboard-title__deco--maritime {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
width: 280px;
height: 3px;
background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 1), transparent);
filter: drop-shadow(0 0 12px rgba(0, 200, 255, 0.6));
opacity: 0.9;
animation: decoGlow 2s ease-in-out infinite alternate;
}
}
/* 海事风格筛选器 - 调整垂直居中 */
.dashboard-filter {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
border-radius: 12px;
border: 1px solid rgba(0, 180, 230, 0.35);
background: linear-gradient(135deg, rgba(8, 25, 45, 0.7) 0%, rgba(12, 35, 60, 0.5) 100%);
backdrop-filter: blur(12px);
box-shadow:
0 2px 12px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(0, 200, 255, 0.1);
.filter-divider {
width: 1px;
height: 28px;
background: linear-gradient(180deg, transparent, rgba(0, 180, 230, 0.5), transparent);
margin: 0 6px;
}
:global(.ant-tree-select) {
min-width: 240px;
}
:global(.ant-select-selector) {
background: rgba(0, 150, 200, 0.1) !important;
border: 1px solid rgba(0, 180, 230, 0.3) !important;
border-radius: 8px !important;
}
:global(.ant-checkbox-wrapper) {
color: rgba(200, 230, 255, 0.75) !important;
}
}
/* 海事风格用户区域 */
.dashboard-user--dashboard {
padding: 8px 14px;
border-radius: 999px;
border: 1px solid rgba(0, 180, 230, 0.35);
background: linear-gradient(135deg, rgba(8, 25, 45, 0.7) 0%, rgba(12, 35, 60, 0.5) 100%);
backdrop-filter: blur(12px);
.user-name {
color: rgba(200, 230, 255, 0.9);
}
}
}
.blank-content--maritime {
2026-01-22 16:10:32 +08:00
/* 参考智慧城市大屏:用明确高度约束内容区,保证子 Grid 的 fr 高度计算为“确定值”,避免卡片把容器撑高导致后续面板被裁剪 */
2025-12-30 17:14:17 +08:00
height: calc(100vh - 88px);
2026-01-19 17:12:43 +08:00
height: calc(100dvh - 88px);
2025-12-30 17:14:17 +08:00
overflow: hidden;
2026-01-19 17:12:43 +08:00
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
2025-12-30 17:14:17 +08:00
background: linear-gradient(180deg,
#020c1b 0%,
#071a2f 30%,
#0c2340 60%,
#0f2847 100%);
2026-01-19 17:12:43 +08:00
> * {
flex: 1;
min-height: 0;
min-width: 0;
}
2025-12-30 17:14:17 +08:00
}
@keyframes maritimeSweep {
0% { transform: translateX(0) skewX(-20deg); opacity: 0; }
15% { opacity: 0.8; }
50% { opacity: 0.4; }
100% { transform: translateX(450%) skewX(-20deg); opacity: 0; }
}
@keyframes headerGlow {
0%, 100% { opacity: 0.7; }
50% { opacity: 1; }
}
@keyframes decoGlow {
0% { opacity: 0.7; width: 260px; }
100% { opacity: 1; width: 300px; }
}
2025-12-26 19:50:46 +08:00
@media (max-width: 768px) {
.blank-header {
padding: 0 12px;
}
.blank-header:not(.blank-header--map3d) .header-center {
display: none;
}
.blank-header--map3d {
padding: 0 12px;
.header-left {
min-width: 0;
}
.header-center {
display: flex;
justify-content: center;
}
}
.current-time {
display: none;
}
.logo-text {
font-size: 16px;
}
}