2026-03-30 14:58:17 +08:00
|
|
|
|
@import '~antd/es/style/reset.css';
|
|
|
|
|
|
|
|
|
|
|
|
// 全局样式
|
|
|
|
|
|
body {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
|
|
|
|
sans-serif;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 1.5715;
|
|
|
|
|
|
color: #262626;
|
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 自定义Logo样式
|
|
|
|
|
|
.custom-logo {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
height: 64px;
|
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
|
|
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-logo .logo-icon {
|
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-logo .logo-text {
|
|
|
|
|
|
margin-left: 12px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #262626;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 折叠状态
|
|
|
|
|
|
.ant-layout-sider-collapsed .custom-logo {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-layout-sider-collapsed .custom-logo .logo-text {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 自定义Header样式
|
|
|
|
|
|
.custom-header {
|
2026-03-30 16:06:31 +08:00
|
|
|
|
position: fixed !important;
|
|
|
|
|
|
top: 0 !important;
|
|
|
|
|
|
right: 0 !important;
|
|
|
|
|
|
left: 220px !important; /* 侧边栏宽度 */
|
2026-03-30 16:30:51 +08:00
|
|
|
|
z-index: 1001 !important; /* 提高z-index确保在最上层 */
|
2026-03-30 14:58:17 +08:00
|
|
|
|
display: flex !important;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2026-03-30 16:06:31 +08:00
|
|
|
|
height: 64px !important;
|
2026-03-30 14:58:17 +08:00
|
|
|
|
padding: 0 24px !important;
|
|
|
|
|
|
background: #ffffff !important;
|
|
|
|
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
|
|
line-height: 64px;
|
2026-03-30 16:06:31 +08:00
|
|
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 当侧边栏折叠时,调整header的left值
|
|
|
|
|
|
.ant-layout-sider-collapsed ~ .ant-layout .custom-header,
|
|
|
|
|
|
.ant-layout-sider-collapsed + .ant-layout .custom-header {
|
|
|
|
|
|
left: 64px !important;
|
2026-03-30 14:58:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:36:56 +08:00
|
|
|
|
// Tabs Header样式 - 使用padding-top避免重叠
|
2026-03-30 16:33:22 +08:00
|
|
|
|
div[class*="page-container-header"],
|
|
|
|
|
|
.ant-pro-page-container > div[class*="page-container-header"],
|
2026-03-30 16:21:04 +08:00
|
|
|
|
.ant-pro-page-container-header {
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding-top: 64px !important; /* 等于CustomHeader的高度 */
|
|
|
|
|
|
padding-bottom: 0 !important;
|
|
|
|
|
|
padding-left: 0 !important;
|
|
|
|
|
|
padding-right: 0 !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
background: #ffffff !important;
|
|
|
|
|
|
border-bottom: 1px solid #f0f0f0 !important;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
position: relative !important;
|
2026-03-30 16:24:07 +08:00
|
|
|
|
height: auto !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:36:56 +08:00
|
|
|
|
// Tabs header的内部padding
|
|
|
|
|
|
.ant-pro-page-container-header > div,
|
|
|
|
|
|
div[class*="page-container-header"] > div {
|
|
|
|
|
|
padding: 6px 24px !important; /* 内部padding */
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:24:07 +08:00
|
|
|
|
// 强制PageContainer header样式
|
|
|
|
|
|
.ant-pro-page-container .ant-pro-page-container-header {
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding-top: 64px !important;
|
|
|
|
|
|
padding-bottom: 0 !important;
|
|
|
|
|
|
padding-left: 0 !important;
|
|
|
|
|
|
padding-right: 0 !important;
|
2026-03-30 16:24:07 +08:00
|
|
|
|
margin: 0 !important;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
background: #ffffff !important;
|
|
|
|
|
|
border-bottom: 1px solid #f0f0f0 !important;
|
2026-03-30 16:24:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:36:56 +08:00
|
|
|
|
// Tabs样式优化 - 减小高度
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .tabs-header-only,
|
|
|
|
|
|
div[class*="page-container-header"] .tabs-header-only {
|
2026-03-30 16:21:04 +08:00
|
|
|
|
margin: 0 !important;
|
2026-03-30 16:24:07 +08:00
|
|
|
|
line-height: 1 !important;
|
2026-03-30 16:30:51 +08:00
|
|
|
|
height: auto !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs {
|
2026-03-30 16:21:04 +08:00
|
|
|
|
margin: 0 !important;
|
2026-03-30 16:30:51 +08:00
|
|
|
|
height: auto !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs-nav,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs-nav {
|
2026-03-30 16:21:04 +08:00
|
|
|
|
margin-bottom: 0 !important;
|
2026-03-30 16:30:51 +08:00
|
|
|
|
height: auto !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs-nav-list,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs-nav-list {
|
2026-03-30 16:24:07 +08:00
|
|
|
|
margin-bottom: 0 !important;
|
2026-03-30 16:30:51 +08:00
|
|
|
|
height: auto !important;
|
2026-03-30 16:24:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs-tab,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs-tab {
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding: 4px 10px !important; /* 减小padding */
|
2026-03-30 16:21:04 +08:00
|
|
|
|
background: #f5f5f5;
|
2026-03-30 16:33:22 +08:00
|
|
|
|
border-radius: 4px;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
margin-right: 4px;
|
|
|
|
|
|
transition: all 0.2s;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
height: 28px !important; /* 减小标签高度 */
|
2026-03-30 16:33:22 +08:00
|
|
|
|
line-height: 28px !important;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
font-size: 13px;
|
2026-03-30 16:33:22 +08:00
|
|
|
|
display: inline-flex !important;
|
|
|
|
|
|
align-items: center !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs-tab-active,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs-tab-active {
|
2026-03-30 16:21:04 +08:00
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:33:22 +08:00
|
|
|
|
.ant-pro-page-container-header .ant-tabs-ink-bar,
|
|
|
|
|
|
div[class*="page-container-header"] .ant-tabs-ink-bar {
|
2026-03-30 16:21:04 +08:00
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:24:07 +08:00
|
|
|
|
// 移除PageContainer原有的间距
|
|
|
|
|
|
.ant-pro-page-container {
|
|
|
|
|
|
padding-top: 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-pro-page-container-warp {
|
|
|
|
|
|
padding-top: 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 14:58:17 +08:00
|
|
|
|
.custom-header .header-left {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-header .header-right {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-header .header-right > div {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.custom-header .header-right > div:hover {
|
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-30 16:06:31 +08:00
|
|
|
|
// 内容区域 - 添加顶部padding避免被固定header遮挡
|
2026-03-30 14:58:17 +08:00
|
|
|
|
.ant-pro-grid-content {
|
|
|
|
|
|
padding: 24px;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding-top: 24px; /* 恢复正常padding */
|
2026-03-30 16:06:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-pro-page-container {
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding-top: 0 !important;
|
2026-03-30 16:21:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-pro-page-container-children-content {
|
|
|
|
|
|
padding-top: 0 !important;
|
2026-03-30 16:36:56 +08:00
|
|
|
|
padding: 24px !important;
|
2026-03-30 14:58:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 页面容器卡片
|
|
|
|
|
|
.ant-pro-page-container {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-pro-page-container .ant-pro-page-container-warp {
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
}
|
2026-03-30 16:00:31 +08:00
|
|
|
|
|
|
|
|
|
|
// 隐藏侧边栏底部的用户信息区域
|
|
|
|
|
|
.ant-pro-sider .ant-pro-sider-actions {
|
|
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-pro-sider-collapsed .ant-pro-sider-actions {
|
|
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 确保顶部Header显示
|
|
|
|
|
|
.ant-pro-header {
|
|
|
|
|
|
display: flex !important;
|
|
|
|
|
|
}
|