From d8c5413b26153f7f66368d99d4b329bdf8ea1151 Mon Sep 17 00:00:00 2001 From: Cheng Zhou Date: Fri, 27 Mar 2026 15:22:48 +0800 Subject: [PATCH] style: normalize CSS selector spacing --- frontend/src/styles/main.css | 4 ++-- frontend/src/styles/unified-page.css | 27 ++++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/styles/main.css b/frontend/src/styles/main.css index f354402a..442e784e 100644 --- a/frontend/src/styles/main.css +++ b/frontend/src/styles/main.css @@ -380,7 +380,7 @@ body { background: transparent; } -.ctms-table-card > .el-card__body { +.ctms-table-card>.el-card__body { padding: 0; } @@ -538,4 +538,4 @@ body { /* ElMessageBox / ElDialog 遮罩层:左侧偏移侧边栏宽度,只覆盖主内容区域 */ .el-overlay { left: var(--ctms-sidebar-width, 0px) !important; -} +} \ No newline at end of file diff --git a/frontend/src/styles/unified-page.css b/frontend/src/styles/unified-page.css index 2f4d09e0..15787aa8 100644 --- a/frontend/src/styles/unified-page.css +++ b/frontend/src/styles/unified-page.css @@ -38,10 +38,10 @@ 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 { +.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; @@ -66,7 +66,7 @@ box-shadow: none !important; } -.el-card.unified-shell > .el-card__body { +.el-card.unified-shell>.el-card__body { padding: 0 !important; } @@ -81,8 +81,8 @@ padding-right: 0 !important; } -.ctms-page > .ctms-page-header.unified-action-bar, -.page > .page-header.unified-action-bar { +.ctms-page>.ctms-page-header.unified-action-bar, +.page>.page-header.unified-action-bar { border: 0; border-radius: var(--unified-shell-radius); background: #ffffff; @@ -211,11 +211,11 @@ 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 { +.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); } @@ -257,9 +257,10 @@ } @media (max-width: 960px) { + .unified-action-bar, .unified-section { padding-left: 14px; padding-right: 14px; } -} +} \ No newline at end of file