diff --git a/src/components/Code.jsx b/src/components/Code.jsx index 602dba23..8ad39713 100644 --- a/src/components/Code.jsx +++ b/src/components/Code.jsx @@ -64,7 +64,7 @@ function CopyButton({ code }) { 'group/button absolute right-4 top-3.5 overflow-hidden rounded-full py-1 pl-2 pr-3 text-2xs font-medium opacity-0 backdrop-blur transition focus:opacity-100 group-hover:opacity-100', copied ? 'bg-orange-400/10 ring-1 ring-inset ring-orange-400/20' - : 'bg-white/5 hover:bg-white/7.5 dark:bg-white/2.5 dark:hover:bg-white/5' + : 'bg-black/5 dark:bg-white/5 hover:bg-black/7.5 dark:hover:bg-white/7.5 dark:bg-white/2.5 dark:hover:bg-white/5' )} onClick={() => { window.navigator.clipboard.writeText(code).then(() => { @@ -101,7 +101,7 @@ function CodePanelHeader({ tag, label }) { } return ( -
+
{tag && (
{tag} @@ -142,9 +142,9 @@ function CodeGroupHeader({ title, children, selectedIndex }) { } return ( -
+
{title && ( -

+

{title}

)} @@ -156,7 +156,7 @@ function CodeGroupHeader({ title, children, selectedIndex }) { 'border-b py-3 transition focus:[&:not(:focus-visible)]:outline-none', childIndex === selectedIndex ? 'border-orange-500 text-orange-400' - : 'border-transparent text-zinc-400 hover:text-zinc-300' + : 'border-transparent text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-300' )} > {getPanelTitle(child.props)} @@ -266,7 +266,7 @@ export function CodeGroup({ children, title, ...props }) { {children} diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index 2ac08632..b56add6a 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -167,7 +167,7 @@ export function Layout({ children, title, tableOfContents }) {
- {!router.route.startsWith("/ipa/resources") &&
+ {!router.route.startsWith("/ipa/resources") &&