fix: reduce gap between CustomHeader and tabs header
This commit is contained in:
parent
8c2af70ae3
commit
7c028eb399
@ -83,10 +83,12 @@ body {
|
||||
left: 220px !important; /* 侧边栏宽度 */
|
||||
z-index: 999 !important; /* 低于CustomHeader */
|
||||
margin: 0 !important;
|
||||
padding: 12px 24px !important;
|
||||
padding: 8px 24px !important;
|
||||
background: #ffffff !important;
|
||||
border-bottom: 1px solid #f0f0f0 !important;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
|
||||
height: auto !important;
|
||||
min-height: 48px !important;
|
||||
}
|
||||
|
||||
// 当侧边栏折叠时,调整tabs header的left值
|
||||
@ -94,9 +96,21 @@ body {
|
||||
left: 64px !important;
|
||||
}
|
||||
|
||||
// 强制PageContainer header样式
|
||||
.ant-pro-page-container .ant-pro-page-container-header {
|
||||
position: fixed !important;
|
||||
top: 64px !important;
|
||||
right: 0 !important;
|
||||
left: 220px !important;
|
||||
z-index: 999 !important;
|
||||
margin: 0 !important;
|
||||
padding: 8px 24px !important;
|
||||
}
|
||||
|
||||
// Tabs样式优化
|
||||
.ant-pro-page-container-header .tabs-header-only {
|
||||
margin: 0 !important;
|
||||
line-height: 1 !important;
|
||||
}
|
||||
|
||||
.ant-pro-page-container-header .ant-tabs {
|
||||
@ -107,12 +121,18 @@ body {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.ant-pro-page-container-header .ant-tabs-nav-list {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.ant-pro-page-container-header .ant-tabs-tab {
|
||||
padding: 6px 12px !important;
|
||||
background: #f5f5f5;
|
||||
border-radius: 4px 4px 0 0;
|
||||
margin-right: 4px;
|
||||
transition: all 0.2s;
|
||||
height: 32px !important;
|
||||
line-height: 32px !important;
|
||||
}
|
||||
|
||||
.ant-pro-page-container-header .ant-tabs-tab-active {
|
||||
@ -124,6 +144,15 @@ body {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
// 移除PageContainer原有的间距
|
||||
.ant-pro-page-container {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.ant-pro-page-container-warp {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.custom-header .header-left {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user