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

150 lines
3.0 KiB
Plaintext
Raw Normal View History

2025-12-26 19:50:46 +08:00
/* 鹰眼管控平台 - 全局样式 */
/* 深色科技主题 */
:root {
--bg-primary: #0a0e27;
--bg-secondary: #131a3d;
--bg-card: rgba(19, 26, 61, 0.85);
--border-color: #1e3a5f;
--text-primary: #ffffff;
--text-secondary: #8b9dc3;
--accent-blue: #00d4ff;
--accent-green: #00ff88;
--accent-yellow: #ffb800;
--accent-red: #ff4757;
--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body, #root {
height: 100%;
margin: 0;
padding: 0;
}
body {
background: var(--bg-primary);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
&:hover {
background: var(--accent-blue);
}
}
/* Ant Design 覆盖 */
.ant-layout {
background: var(--bg-primary) !important;
2026-01-19 17:12:43 +08:00
height: 100%;
min-height: 0;
2025-12-26 19:50:46 +08:00
}
.ant-layout-header {
2026-01-19 17:12:43 +08:00
flex: 0 0 auto;
2025-12-26 19:50:46 +08:00
background: var(--bg-secondary) !important;
}
2026-01-19 17:12:43 +08:00
.ant-layout-content {
flex: 1;
min-height: 0;
overflow: hidden;
}
2025-12-26 19:50:46 +08:00
.ant-card {
background: var(--bg-card) !important;
border-color: var(--border-color) !important;
color: var(--text-primary) !important;
}
.ant-card-head {
color: var(--text-primary) !important;
border-color: var(--border-color) !important;
}
.ant-statistic-title {
color: var(--text-secondary) !important;
}
.ant-statistic-content {
color: var(--text-primary) !important;
}
.ant-select-selector {
background: var(--bg-secondary) !important;
border-color: var(--border-color) !important;
color: var(--text-primary) !important;
}
.ant-select-arrow {
color: var(--text-secondary) !important;
}
.ant-select-dropdown {
background: var(--bg-secondary) !important;
border-color: var(--border-color) !important;
}
.ant-select-item {
color: var(--text-primary) !important;
}
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
background: rgba(0, 212, 255, 0.1) !important;
}
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
background: rgba(0, 212, 255, 0.2) !important;
}
.ant-btn-primary {
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
border: none !important;
&:hover {
background: linear-gradient(135deg, #00e5ff 0%, #00aadd 100%) !important;
}
}
.ant-checkbox-wrapper {
color: var(--text-secondary) !important;
}
/* 树选择器 */
.ant-tree-select-dropdown {
background: var(--bg-secondary) !important;
}
.ant-select-tree {
background: transparent !important;
color: var(--text-primary) !important;
}
.ant-select-tree-node-content-wrapper:hover {
background: rgba(0, 212, 255, 0.1) !important;
}
.ant-select-tree-node-selected {
background: rgba(0, 212, 255, 0.2) !important;
}