Skip to content

Commit 1d9e3af

Browse files
committed
docs: align visuals
1 parent 67d4eff commit 1d9e3af

File tree

2 files changed

+23
-65
lines changed

2 files changed

+23
-65
lines changed

apps/docs/src/app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ export const metadata = {
3737
} satisfies NextraMetadata;
3838

3939
const navbar = (
40-
<Navbar logo={<UIKitLogo />}>
40+
<Navbar
41+
logo={<UIKitLogo />}
42+
projectLink="https://github.com/lumada-design/hv-uikit-react"
43+
>
4144
<ThemeSwitch lite />
4245
<ThemeSwitcher />
4346
</Navbar>

apps/docs/src/globals.css

Lines changed: 19 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,72 +4,41 @@
44
@apply bg-[#151c26];
55
}
66

7-
body,
8-
.nextra-nav-container-blur,
9-
.nextra-sidebar-footer,
10-
.nextra-toc-footer {
11-
@apply bg-transparent;
12-
}
13-
147
pre {
15-
@apply mt-4 mb-4;
8+
@apply my-4;
169
}
1710

18-
.nextra-content,
19-
.nextra-content.x\:w-full {
11+
article main,
12+
article main.x\:w-full {
2013
font-size: 1rem;
2114
}
2215

23-
.nextra-content h2,
24-
.nextra-content.x\:w-full h2 {
25-
font-size: 1.7rem !important;
26-
@apply !border-none;
27-
}
28-
29-
.nextra-content h2 + p,
30-
.nextra-content h3 + p {
31-
@apply !mt-2;
32-
}
33-
34-
.nextra-content.x\:w-full {
35-
@apply max-w-5xl mx-auto;
36-
}
37-
38-
.nextra-sidebar-container .active a {
39-
@apply light:bg-slate-100;
40-
}
41-
4216
.nextra-sidebar-container {
4317
@apply w-224px;
44-
}
4518

46-
.nextra-nav-container nav,
47-
.nextra-nav-container + div {
48-
@apply max-w-1408px;
19+
& .active a {
20+
@apply light:bg-slate-100;
21+
}
4922
}
5023

51-
.nextra-nav-container a:last-of-type svg {
24+
header a:last-of-type svg {
5225
@apply w-20px;
5326
}
5427

55-
.nextra-nav-container button div svg {
28+
header button svg {
5629
@apply size-16px;
5730
}
5831

5932
.nextra-toc {
6033
@apply w-224px;
61-
}
62-
63-
.nextra-toc a {
64-
@apply font-normal;
65-
}
6634

67-
.nextra-toc p {
68-
@apply shadow-none;
69-
}
35+
& a {
36+
@apply font-normal;
37+
}
7038

71-
.nextra-scrollbar a.x\:text-primary-800 {
72-
@apply font-medium text-slate-800 dark:text-slate-200;
39+
& p {
40+
@apply shadow-none;
41+
}
7342
}
7443

7544
.nextra-sidebar-footer,
@@ -85,26 +54,12 @@ pre {
8554
@apply bg-slate-50;
8655
}
8756

88-
.nextra-breadcrumb {
89-
@apply !mb-4;
90-
}
91-
92-
@media only screen and (max-width: 768px) {
93-
.nextra-sidebar-container {
94-
@apply w-full;
57+
.nextra-scrollbar {
58+
& [aria-current="true"] {
59+
@apply text-text;
9560
}
96-
}
9761

98-
@media only screen and (max-width: 1024px) {
99-
.nextra-toc {
100-
display: none !important;
62+
& [aria-current="false"] {
63+
@apply text-textSubtle;
10164
}
10265
}
103-
104-
[aria-current="true"].nextra-focus {
105-
@apply font-medium text-text;
106-
}
107-
108-
[aria-current="false"].nextra-focus {
109-
@apply text-textSubtle;
110-
}

0 commit comments

Comments
 (0)