Skip to content

Commit

Permalink
Cleanup and mobile ToC scroll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Dec 17, 2024
1 parent ad6c48d commit 229a3d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 47 deletions.
2 changes: 1 addition & 1 deletion app/routes/rfd.$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export default function Rfd() {
<SmallScreenOutline
toc={content.sections}
activeItem={activeItem}
className="block max-h-[66vh] 1200:hidden"
className="block 1200:hidden"
key={pathname}
/>
</div>
Expand Down
40 changes: 0 additions & 40 deletions app/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,43 +127,3 @@ input[type='checkbox']:focus:not(:focus-visible) {
text-decoration-color: var(--content-tertiary);
}
}

/* todo: upgrade design-system and grab from there */
@layer components {
.accent-link {
@apply text-accent-secondary hover:text-accent;
text-decoration: underline;
text-decoration-color: var(--content-accent-tertiary);
}

.inline-code {
@apply text-secondary;
@apply ml-[1px] mr-[1px] rounded border px-[4px] py-[1px] align-[1px] text-[0.825rem] bg-raise border-secondary;
}
}

/* todo: include in design-system after upgrade */
#footnotes p a {
@apply accent-link;
}

/* todo: include in design-system after upgrade */
#footnotes p code {
@apply inline-code;
}

/* todo: include in design-system after upgrade */
.toc .active code {
@apply border-accent-tertiary;
}

/* todo: include in design-system after upgrade */
.toc code {
@apply ml-[1px] mr-[1px] rounded border px-[3px] align-[1px] border-secondary;
}

/* todo: include in design-system after upgrade */
.asciidoc-body a:not(:is(h1, h2, h3, h4, h5, h6) a) {
text-decoration-color: rgba(var(--content-accent-tertiary-rgb), 0.8);
@apply underline text-accent-secondary;
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@asciidoctor/core": "^3.0.4",
"@floating-ui/react": "^0.17.0",
"@meilisearch/instant-meilisearch": "^0.8.2",
"@oxide/design-system": "^1.8.0",
"@oxide/design-system": "^1.8.1",
"@oxide/react-asciidoc": "^1.0.2",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.0.4",
Expand Down

0 comments on commit 229a3d8

Please sign in to comment.