fix(docs): restore official visual hierarchy and component previews

This commit is contained in:
maoyingjie
2026-10-24 07:26:15 +08:00
parent 671a27646e
commit c2563e87a8
10 changed files with 177 additions and 83 deletions
+15 -10
View File
@@ -46,8 +46,8 @@ body {
}
/* Documentation prose is isolated from every live component example. */
.docs-content {
font-size: 14px;
line-height: 1.85;
font-size: 16px;
line-height: 1.75;
}
.docs-content :is(h2, h3, h4):not(:where(.not-prose, .not-prose *)) {
font-weight: 600;
@@ -55,12 +55,17 @@ body {
scroll-margin-top: 154px;
}
.docs-content h2:not(:where(.not-prose, .not-prose *)) {
font-size: 23px;
font-size: 24px;
line-height: 1.333333;
letter-spacing: -0.5px;
margin: 40px 0 20px;
margin: 48px 0 24px;
}
.docs-content > h2:first-child,
.docs-content > div > h2:first-child {
margin-top: 0;
}
.docs-content h3:not(:where(.not-prose, .not-prose *)) {
font-size: 18px;
font-size: 20px;
margin: 32px 0 16px;
}
.docs-content h4:not(:where(.not-prose, .not-prose *)) {
@@ -104,9 +109,9 @@ body {
}
.docs-content div[class*="language-"] {
position: relative;
border: 1px solid var(--docs-border);
border-radius: 10px;
background: var(--surface);
border: 0;
border-radius: 12px;
background: var(--default);
margin: 16px 0;
}
.docs-content div[class*="language-"] > .lang {
@@ -190,9 +195,9 @@ body {
min-width: 0;
height: 30px;
padding: 0;
border: 1px solid var(--docs-border);
border: 0;
border-radius: 6px;
background: var(--surface);
background: transparent;
color: var(--muted);
line-height: 1;
}