Skip to content

Commit 24e4b38

Browse files
committed
refactor(website): remove 'sass' dep and replace with css
1 parent b21222c commit 24e4b38

File tree

5 files changed

+82
-91
lines changed

5 files changed

+82
-91
lines changed

pnpm-lock.yaml

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"remark-frontmatter": "^5.0.0",
4747
"remark-gfm": "^4.0.0",
4848
"rimraf": "^6.0.1",
49-
"sass": "^1.83.0",
5049
"tailwindcss": "^4.0.0-beta.8",
5150
"typescript": "^5.7.2",
5251
"typescript-eslint": "^8.18.2",

website/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "#/styles/base.css";
2-
import "#/styles/overrides.scss";
2+
import "#/styles/overrides.css";
33

44
import type { AppProps } from "next/app";
55

website/styles/overrides.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
.nextra-nav-container nav a {
2+
font-weight: 600;
3+
}
4+
5+
.nextra-sidebar-container ul li {
6+
font-weight: 600;
7+
}
8+
9+
.nextra-content {
10+
font-family: var(--font-family-body);
11+
}
12+
13+
.nextra-content h1,
14+
.nextra-content h2,
15+
.nextra-content h3,
16+
.nextra-content h4,
17+
.nextra-content h5,
18+
.nextra-content h6 {
19+
font-family: var(--font-family-ui);
20+
}
21+
22+
.nextra-content h1>code.nextra-code,
23+
.nextra-content h2>code.nextra-code,
24+
.nextra-content h3>code.nextra-code,
25+
.nextra-content h4>code.nextra-code,
26+
.nextra-content h5>code.nextra-code,
27+
.nextra-content h6>code.nextra-code {
28+
white-space: nowrap;
29+
}
30+
31+
.nextra-content h1+img,
32+
.nextra-content h2+img,
33+
.nextra-content h3+img {
34+
margin-top: 24px;
35+
}
36+
37+
.nextra-content blockquote {
38+
font-style: normal;
39+
}
40+
41+
.nextra-content div[role="tabpanel"]>.nextra-callout:nth-child(1) {
42+
margin-top: 0;
43+
}
44+
45+
.nextra-content div[role="tablist"]>button[role="tab"] {
46+
font-family: var(--font-family-ui);
47+
}
48+
49+
.nextra-content table thead tr th code,
50+
.nextra-content table tbody tr td code {
51+
font-family: var(--font-family-mono);
52+
white-space: nowrap;
53+
}
54+
55+
.nextra-content code,
56+
.nextra-content kbd,
57+
.nextra-content samp,
58+
.nextra-content pre {
59+
font-family: var(--font-family-mono);
60+
}
61+
62+
.nextra-content .nextra-code .twoslash-highlighted {
63+
border: none;
64+
background-attachment: scroll;
65+
background-clip: border-box;
66+
background-color: #ffffff00;
67+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA2IDMnIGVuYWJsZS1iYWNrZ3JvdW5kPSduZXcgMCAwIDYgMycgaGVpZ2h0PSc0LjUnIHdpZHRoPSc5Jz4KICAgIDxnIGZpbGw9JyNmOWMzNWEnPgogICAgICAgIDxwb2x5Z29uIHBvaW50cz0nNS41LDAgMi41LDMgMS4xLDMgNC4xLDAnIC8+CiAgICAgICAgPHBvbHlnb24gcG9pbnRzPSc0LDAgNiwyIDYsMC42IDUuNCwwJyAvPgogICAgICAgIDxwb2x5Z29uIHBvaW50cz0nMCwyIDEsMyAyLjQsMyAwLDAuNicgLz4KICAgIDwvZz4KPC9zdmc+");
68+
background-origin: padding-box;
69+
background-position-x: 0%;
70+
background-position-y: 100%;
71+
background-repeat: repeat-x;
72+
background-size: auto;
73+
}
74+
75+
.nextra-content ul.contains-task-list li.task-list-item {
76+
margin-top: 0.5em;
77+
margin-bottom: 0.5em;
78+
}

website/styles/overrides.scss

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)