Files
ctms/frontend/src/styles/unified-page.css
T
2026-03-27 15:22:48 +08:00

266 lines
5.2 KiB
CSS

:root {
--unified-shell-bg: #ffffff;
--unified-shell-border: #d8e2ef;
--unified-shell-divider: #eaf0f8;
--unified-shell-radius: 16px;
--unified-shell-padding-x: 16px;
--unified-shell-padding-y: 10px;
--unified-title-color: #0f2345;
--unified-muted-color: #6f84a8;
}
.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: #ffffff;
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: #f7f9fc;
color: #34506f;
font-weight: 600;
height: 40px;
font-size: 13px;
}
.unified-shell .el-table td.el-table__cell {
border-bottom-color: #edf2f8;
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: #edf2f8;
}
.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;
}
}