Skip to content

Commit

Permalink
fix: update path mdx.css
Browse files Browse the repository at this point in the history
  • Loading branch information
johancs.mm@gmail.com committed May 9, 2024
1 parent c61b21a commit fa22786
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
9 changes: 0 additions & 9 deletions apps/web/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/app/(docs)/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DocsPageHeader } from '@/components/page-header'
import { DocsPager } from '@/components/pager'
import { DashboardTableOfContents } from '@/components/toc'

import '@/app/mdx.css'
import '../../../mdx.css'

interface DocPageProps {
params: {
Expand Down
7 changes: 7 additions & 0 deletions apps/web/app/mdx.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
counter-reset: line;
box-decoration-break: clone;
}

[data-rehype-pretty-code-fragment] .line {
@apply px-4 py-1;
}

[data-rehype-pretty-code-fragment] [data-line-numbers] > .line::before {
counter-increment: line;
content: counter(line);
Expand All @@ -15,18 +17,23 @@
text-align: right;
color: gray;
}

[data-rehype-pretty-code-fragment] .line--highlighted {
@apply bg-slate-300 bg-opacity-10;
}

[data-rehype-pretty-code-fragment] .line-highlighted span {
@apply relative;
}

[data-rehype-pretty-code-fragment] .word--highlighted {
@apply rounded-md bg-slate-300 bg-opacity-10 p-1;
}

[data-rehype-pretty-code-title] {
@apply mt-4 py-2 px-4 text-sm font-medium;
}

[data-rehype-pretty-code-title] + pre {
@apply mt-0;
}
2 changes: 1 addition & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { withContentlayer } from 'next-contentlayer'

/** @type {import('next').NextConfig} */
const nextConfig = { reactStrictMode: true, swcMinify: true }
const nextConfig = { reactStrictMode: true }

export default withContentlayer(nextConfig)

0 comments on commit fa22786

Please sign in to comment.