From 6bf52c603a3887e4ebd3788544519519ac94b77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Mon, 30 Dec 2024 16:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E7=94=A8=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8C=BA=E6=A0=B7=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component.css | 23 +++++++++++++++++++++++ src/theme.css | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/component.css b/src/component.css index acc651a..e368e5e 100644 --- a/src/component.css +++ b/src/component.css @@ -16,6 +16,29 @@ flex: 1 1; } + .workspace { + height: 100%; + width: 100%; + overflow: hidden; + display: flex; + align-items: stretch; + gap: var(--spacing-m); + padding: var(--spacing-m) var(--spacing-xl); + header { + display: flex; + flex-direction: column; + gap: var(--spacing-xs); + line-height: 1.3em; + h3 { + font-size: var(--font-size-xl); + } + p { + font-size: var(--font-size-xs); + color: var(--color-neutral-focus); + } + } + } + /* 按钮默认样式 */ :where(button, .button) { --button-neutral-bg: var(--color-neutral); diff --git a/src/theme.css b/src/theme.css index 930a2a7..d739f99 100644 --- a/src/theme.css +++ b/src/theme.css @@ -50,7 +50,7 @@ background-color: var(--color-bg); } - :where(h1, h2, h3, h4, h5, h6) { + :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; padding: 0; }