From 229a3d83b5d087be93d32e26f808facceee4785e Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 17 Dec 2024 12:01:34 +0000 Subject: [PATCH] Cleanup and mobile ToC scroll fix --- app/routes/rfd.$slug.tsx | 2 +- app/styles/index.css | 40 ---------------------------------------- package-lock.json | 10 +++++----- package.json | 2 +- 4 files changed, 7 insertions(+), 47 deletions(-) diff --git a/app/routes/rfd.$slug.tsx b/app/routes/rfd.$slug.tsx index 48f32ca..244bf75 100644 --- a/app/routes/rfd.$slug.tsx +++ b/app/routes/rfd.$slug.tsx @@ -324,7 +324,7 @@ export default function Rfd() { diff --git a/app/styles/index.css b/app/styles/index.css index 88f7581..5e5c98c 100644 --- a/app/styles/index.css +++ b/app/styles/index.css @@ -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; -} diff --git a/package-lock.json b/package-lock.json index dffa59e..e65ba31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,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", @@ -75,7 +75,7 @@ "vitest": "^2.0.3" }, "engines": { - "node": "^20.0.0" + "node": "^22.x" } }, "node_modules/@algolia/cache-browser-local-storage": { @@ -2307,9 +2307,9 @@ "integrity": "sha512-S8u2cJzklBC0FgTwWVLaM8tMrDuDMVE4xiTK4EYXM9GntyvrdbSoxqDQa+Fh57CCNApyIpyeqPhhFEmHPfrXgw==" }, "node_modules/@oxide/design-system": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@oxide/design-system/-/design-system-1.8.0.tgz", - "integrity": "sha512-XmJwUauzSqa/Wyye3M/sOt71BoKoFy2nHOvBcT6aj+Y01f5Nni+MtVgXX0UjPtc5t7mCnyQMzu72jdH9mBWErQ==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@oxide/design-system/-/design-system-1.8.1.tgz", + "integrity": "sha512-eHrrsf2Azr9ny5UtmqsywsFbN/ruUPPT6f5jsSXPueB4J9/LSk7CT9ooXUYOPymEnEEGk4hv4wzOlUBX54T5Tw==", "license": "MPL 2.0", "dependencies": { "@floating-ui/react": "^0.25.1", diff --git a/package.json b/package.json index 4a8174c..4d35c28 100644 --- a/package.json +++ b/package.json @@ -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",