Skip to content

Commit

Permalink
style: update code block font to victor mono
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 16, 2024
1 parent 434356a commit 8a7dabd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2355,7 +2355,7 @@ h4 {
font-family: Victor Mono, sans-serif;
}

span.token {
pre code[class*="language-"] {
font-family: Victor Mono, sans-serif;
}

Expand Down Expand Up @@ -3072,6 +3072,7 @@ code > .copy-content {
padding: 0.25rem;
padding-left: 0.75rem;
padding-right: 0.75rem;
font-family: Victor Mono, sans-serif;
}

.mermaid:not([data-processed="true"]) {
Expand Down
4 changes: 2 additions & 2 deletions public/css/tailwind.input.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@apply font-victor-mono;
}

span.token {
pre code[class*="language-"] {
@apply font-victor-mono;
}

Expand Down Expand Up @@ -81,7 +81,7 @@ code > .copy-content {
#lesson-content {
@apply prose prose-slate max-w-none dark:prose-invert prose-pre:bg-transparent prose-pre:p-0;
@apply prose-img:mx-auto prose-hr:my-4 lg:mx-auto prose-headings:text-primary-800 prose-headings:font-bold;
@apply [&_pre:has(code)]:bg-slate-900 [&_pre:has(code)]:p-1 [&_pre:has(code)]:px-3 [&_pre:has(code)]:relative;
@apply [&_pre:has(code)]:bg-slate-900 [&_pre:has(code)]:p-1 [&_pre:has(code)]:px-3 [&_pre:has(code)]:relative [&_pre:has(code)]:font-victor-mono;
}

.mermaid:not([data-processed="true"]) {
Expand Down

0 comments on commit 8a7dabd

Please sign in to comment.