Files
ctms/frontend/src/styles/unified-page.css
T
Cheng Zhou d5279b124f
Storage Persistence Guard / storage-persistence-audit (push) Has been cancelled
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
Client Quality Gates / Shared client and Web (pull_request) Has been cancelled
Client Quality Gates / macOS Desktop (pull_request) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled
release(main): 同步 dev 最新候选改动
2026-07-16 17:15:50 +08:00

371 lines
7.4 KiB
CSS

:root {
--unified-shell-bg: #ffffff;
--unified-shell-border: #d8e2ef;
--unified-shell-divider: #eaf0f8;
--unified-shell-radius: 8px;
--unified-shell-padding-x: 16px;
--unified-shell-padding-y: 10px;
--unified-title-color: #0f2345;
--unified-muted-color: #6f84a8;
--unified-table-header-bg: #f7f9fc;
--unified-table-header-color: #34506f;
--unified-row-divider: #edf2f8;
}
:root[data-ctms-theme="dark"] {
--unified-shell-bg: var(--ctms-bg-card);
--unified-shell-border: var(--ctms-border-color);
--unified-shell-divider: var(--ctms-border-color);
--unified-title-color: var(--ctms-text-main);
--unified-muted-color: var(--ctms-text-secondary);
--unified-table-header-bg: var(--ctms-bg-muted);
--unified-table-header-color: var(--ctms-text-main);
--unified-row-divider: var(--ctms-border-color);
}
.ctms-page-shell {
padding: 16px 20px 20px;
}
.ctms-page-shell.page--flush,
.page.page--flush {
padding: 0 !important;
}
.ctms-page-header-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.ctms-page-content-grid {
display: grid;
gap: 12px;
}
.unified-shell {
background: var(--unified-shell-bg);
border: 0;
border-radius: var(--unified-shell-radius);
overflow: hidden;
box-shadow: none;
}
.page--flush>.unified-shell,
.page--flush>.main-content-flat.unified-shell,
.page--flush .page-body>.unified-shell,
.page--flush .page-body>.main-content-flat.unified-shell {
margin: 0;
width: 100%;
border-radius: 0;
}
.main-content-flat {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
padding: 0;
}
.el-card.unified-shell {
margin-bottom: 0;
border: 0 !important;
box-shadow: none !important;
}
.main-content-card.unified-shell {
border: 0 !important;
box-shadow: none !important;
}
.el-card.unified-shell>.el-card__body {
padding: 0 !important;
}
.unified-action-bar {
padding: var(--unified-shell-padding-y) var(--unified-shell-padding-x);
border-bottom: 1px solid var(--unified-shell-divider);
margin-bottom: 0 !important;
}
.unified-action-bar.bar--flush {
padding-left: 0 !important;
padding-right: 0 !important;
}
.ctms-page>.ctms-page-header.unified-action-bar,
.page>.page-header.unified-action-bar {
border: 0;
border-radius: var(--unified-shell-radius);
background: var(--unified-shell-bg);
box-shadow: none;
}
.unified-section {
padding: var(--unified-shell-padding-y) var(--unified-shell-padding-x);
border-bottom: 1px solid var(--unified-shell-divider);
}
.unified-section.section--flush-x {
padding-left: 0 !important;
padding-right: 0 !important;
}
.unified-section.section--flush-top {
padding-top: 0 !important;
}
.unified-section.section--flush-bottom {
padding-bottom: 0 !important;
}
.unified-section.section--flush {
padding: 0 !important;
}
.unified-section:last-child {
border-bottom: 0;
}
.unified-section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.unified-shell .ctms-section-actions {
margin-left: auto;
}
.unified-action-bar .ctms-page-actions,
.unified-action-bar .actions {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
}
.unified-action-bar .ctms-page-title,
.unified-action-bar .page-title {
margin: 0;
font-size: 20px;
font-weight: 700;
color: var(--unified-title-color);
}
.unified-action-bar .ctms-page-subtitle,
.unified-action-bar .page-subtitle {
margin: 4px 0 0;
font-size: 13px;
color: var(--unified-muted-color);
}
.filter-container.unified-action-bar .filter-form,
.filter-container.unified-action-bar .ctms-filter-row {
align-items: center;
}
.unified-shell .el-table th.el-table__cell {
background-color: var(--unified-table-header-bg);
color: var(--unified-table-header-color);
font-weight: 600;
height: 40px;
font-size: 13px;
}
.unified-shell .el-table td.el-table__cell {
border-bottom-color: var(--unified-row-divider);
padding: 7px 0;
}
.unified-shell .el-button,
.unified-action-bar .el-button {
border-radius: 10px;
height: 32px;
padding: 0 12px;
font-size: 13px;
font-weight: 600;
}
.unified-shell .el-tabs__nav-wrap::after {
background-color: var(--unified-row-divider);
}
.unified-shell .el-tabs__item {
font-weight: 600;
}
.unified-shell .el-form-item {
margin-bottom: 12px;
}
.unified-shell .el-form-item__label {
font-size: 13px;
font-weight: 600;
color: var(--unified-muted-color);
}
.unified-shell .filter-form,
.unified-shell .ctms-filter-row {
margin: 0;
}
.unified-shell .ctms-table-card,
.unified-shell .ctms-section-card,
.unified-shell .detail-card,
.unified-shell .section-card,
.unified-shell .form-card {
margin-bottom: 0;
border: 0;
border-radius: 0;
box-shadow: none !important;
}
.unified-shell .ctms-table-card+.ctms-table-card,
.unified-shell .ctms-section-card+.ctms-section-card,
.unified-shell .detail-card+.section-card,
.unified-shell .section-card+.section-card,
.unified-shell .form-card+.form-card {
border-top: 1px solid var(--unified-shell-divider);
}
.unified-shell .ctms-section-title,
.unified-shell .section-title,
.unified-shell .header-title {
font-size: 15px;
font-weight: 700;
color: var(--unified-title-color);
}
.unified-shell .text-secondary,
.unified-shell .info-label {
color: var(--unified-muted-color);
}
.unified-shell .kpi-enterprise {
min-height: 132px;
border-radius: 14px;
padding: 16px;
}
.unified-shell .kpi-enterprise .kpi-title {
font-size: 16px;
line-height: 1.25;
}
.unified-shell .kpi-enterprise .kpi-value {
font-size: 34px;
}
.setup-page .setup-header.unified-action-bar {
padding: var(--unified-shell-padding-y) var(--unified-shell-padding-x);
border-bottom: 1px solid var(--unified-shell-divider);
}
.setup-page .setup-content.unified-section {
padding: 0;
}
@media (max-width: 960px) {
.unified-action-bar,
.unified-section {
padding-left: 14px;
padding-right: 14px;
}
}
@media (max-width: 720px) {
.ctms-page-shell {
padding: 10px 12px 14px;
}
.ctms-page-shell.page--flush,
.page.page--flush {
padding: 0 !important;
}
.unified-action-bar,
.unified-section {
padding: 12px;
}
.unified-action-bar .ctms-page-title,
.unified-action-bar .page-title {
font-size: 18px;
}
.unified-action-bar .ctms-page-actions,
.unified-action-bar .actions {
width: 100%;
margin-left: 0;
flex-wrap: wrap;
}
.unified-shell .el-card__body,
.el-card.unified-shell > .el-card__body {
padding: 0 !important;
}
.unified-shell .el-table th.el-table__cell,
.unified-shell .el-table td.el-table__cell {
padding-right: 8px;
padding-left: 8px;
}
.unified-shell .kpi-enterprise {
min-height: 112px;
padding: 14px;
}
.unified-shell .kpi-enterprise .kpi-value {
font-size: 28px;
}
}
@media (min-width: 1440px) {
.ctms-page-shell:not(.page--flush) {
padding: 20px 28px 28px;
}
.ctms-page-content-grid {
gap: 16px;
}
.unified-action-bar,
.unified-section {
padding-right: 20px;
padding-left: 20px;
}
.unified-shell .kpi-enterprise {
min-height: 148px;
padding: 20px;
}
.unified-shell .kpi-enterprise .kpi-title {
font-size: 17px;
}
.unified-shell .kpi-enterprise .kpi-value {
font-size: 40px;
}
}
@media (min-width: 1920px) {
.ctms-page-shell:not(.page--flush) {
padding-right: 36px;
padding-left: 36px;
}
.unified-action-bar,
.unified-section {
padding-right: 28px;
padding-left: 28px;
}
}