Skip to content

Commit bd78cc3

Browse files
Update styling for docs page (#3125)
* Added margin to "Show private scopes" checkbox * Fix proper dark theme for select options * Update deprecated onBrokenMarkdownLinks config
1 parent d21522b commit bd78cc3

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

packages/cursorless-org-docs/docusaurus.config.mts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,15 @@ const config: Config = {
120120
{ rel: "shortcut icon", href: "/favicon.ico?v=1" },
121121
],
122122
onBrokenLinks: "throw",
123-
onBrokenMarkdownLinks: "throw",
124123
onBrokenAnchors: "throw",
125124
trailingSlash: true,
126125

126+
markdown: {
127+
hooks: {
128+
onBrokenMarkdownLinks: "throw",
129+
},
130+
},
131+
127132
presets: [
128133
[
129134
"classic",

packages/cursorless-org-docs/src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
filter: invert(90%) hue-rotate(180deg);
3030
}
3131

32+
/* Necessary to make dropdown options work in dark mode */
33+
select {
34+
background-color: var(--ifm-background-color);
35+
}
36+
3237
.hidden {
3338
display: none;
3439
}

packages/cursorless-org-docs/src/docs/contributing/MissingLanguageScopes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export function MissingLanguageScopes(): React.JSX.Element {
1717
<label className="ml-1">
1818
<input
1919
type="checkbox"
20+
className="mr-1"
2021
checked={showPrivate}
2122
onChange={(e) => setShowPrivate(e.target.checked)}
2223
/>

0 commit comments

Comments
 (0)