Skip to content

Commit ad64ae8

Browse files
authored
Merge pull request #14 from QwenLM/sync
feat: update styling
2 parents 5227b3a + ccd13f5 commit ad64ae8

File tree

11 files changed

+847
-429
lines changed

11 files changed

+847
-429
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@import "tailwindcss";
2+
@import "tw-animate-css";
3+
@import "nextra-theme-docs/style.css";
4+
@source "../**/*.{ts,tsx}";
5+
6+
.x\:lg\:-translate-y-1\/2,
7+
.x\:lg\:after\:content-\[\"–\"\],
8+
.x\:lg\:border-b,
9+
.x\:lg\:right-full,
10+
.x\:lg\:top-1\/2,
11+
.x\:max-md\:break-all,
12+
.x\:max-md\:h-full,
13+
.x\:max-md\:hidden,
14+
.x\:max-md\:me-auto,
15+
.x\:max-md\:overflow-hidden,
16+
.x\:max-md\:sticky,
17+
.x\:max-sm\:hidden,
18+
.x\:md\:-mx-8,
19+
.x\:md\:hidden,
20+
.x\:md\:justify-start,
21+
.x\:md\:max-h-\[min\(calc\(100vh-5rem\)\,400px\)\]\!,
22+
.x\:md\:min-h-28,
23+
.x\:md\:px-12,
24+
.x\:md\:text-lg,
25+
.x\:md\:text-sm,
26+
.x\:md\:w-64,
27+
.x\:md\:w-\[576px\] {
28+
@media (width >= 64rem) {
29+
&:after {
30+
--tw-content: "";
31+
content: var(--tw-content);
32+
}
33+
}
34+
}

website/app/[lang]/[[...mdxPath]]/page.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { generateStaticParamsFor, importPage } from "nextra/pages";
22
import { useMDXComponents as getMDXComponents } from "../../../mdx-components";
3+
import "./index.css";
34

45
export const generateStaticParams = async () => {
56
const originalGenerateParams = generateStaticParamsFor("mdxPath");

website/app/[lang]/layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { Banner, Head } from "nextra/components";
66
import { getPageMap } from "nextra/page-map";
77
import { LanguageDropdown } from "../../src/components/language-dropdown";
88
import type { FC, ReactNode } from "react";
9-
import fs from "fs";
10-
import path from "path";
119

1210
type LayoutProps = Readonly<{
1311
children: ReactNode;

0 commit comments

Comments
 (0)