Skip to content

Commit db8cc17

Browse files
committed
move compact docs layout changes to separate css
1 parent 92e09cb commit db8cc17

3 files changed

Lines changed: 31 additions & 27 deletions

File tree

app/docs/docs.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@import "tailwindcss";
2+
@import "fumadocs-ui/css/vitepress.css";
3+
@import "fumadocs-ui/css/preset.css";
4+
5+
ul,
6+
li {
7+
margin: 0;
8+
}
9+
10+
ul {
11+
margin-bottom: 1em;
12+
}
13+
14+
@layer utilities {
15+
.prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
16+
margin-top: 0.5em;
17+
margin-bottom: 1em;
18+
}
19+
}
20+
21+
@layer utilities {
22+
.prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
23+
color: var(--tw-prose-headings);
24+
margin-top: 1em;
25+
margin-bottom: 1em;
26+
font-size: 1.5em;
27+
font-weight: 600;
28+
line-height: 1.33333;
29+
}
30+
}

app/docs/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { source } from "@/lib/source";
22
import { DocsLayout } from "fumadocs-ui/layouts/docs";
33
import { baseOptions } from "@/lib/layout.shared";
4+
import './docs.css'
45

56
export default function Layout({ children }: LayoutProps<"/docs">) {
67
return (

app/global.css

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,3 @@ body {
3434
40px 40px,
3535
40px 40px;
3636
}
37-
38-
ul,
39-
li {
40-
margin: 0;
41-
}
42-
43-
ul {
44-
margin-bottom: 1em;
45-
}
46-
47-
@layer utilities {
48-
.prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
49-
margin-top: 0.5em;
50-
margin-bottom: 1em;
51-
}
52-
}
53-
54-
@layer utilities {
55-
.prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
56-
color: var(--tw-prose-headings);
57-
margin-top: 1em;
58-
margin-bottom: 1em;
59-
font-size: 1.5em;
60-
font-weight: 600;
61-
line-height: 1.33333;
62-
}
63-
}

0 commit comments

Comments
 (0)