fix(docs): restore official visual hierarchy and component previews
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user