From 9de72a693268ccdb0cb1fd3866ffb6d4780123a4 Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Fri, 19 Dec 2025 12:43:03 -0500 Subject: [PATCH] blog fixes --- src/app.css | 114 ++++++++++++++++++++++++++++++ src/routes/blog/[title]/index.tsx | 8 +-- 2 files changed, 118 insertions(+), 4 deletions(-) diff --git a/src/app.css b/src/app.css index c823456..d0d35f1 100644 --- a/src/app.css +++ b/src/app.css @@ -586,3 +586,117 @@ input[type="checkbox"]:checked::before { --tw-prose-th-borders: var(--color-surface2); --tw-prose-td-borders: var(--color-surface1); } +.code-block { + position: relative; + + select { + position: absolute; + right: 0.5rem; + top: 0.5rem; + } +} +.ProseMirror { + > * + * { + margin-top: 0.75em; + } + + ul, + ol { + padding: 0 1rem; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + line-height: 1.1; + } + a { + color: #70cff8; + } + + img { + max-width: 100%; + height: auto; + } + + blockquote { + padding-left: 1rem; + border-left: 2px solid rgba(#0d0d0d, 0.1); + } + + hr { + border: none; + border-top: 2px solid rgba(#0d0d0d, 0.1); + margin: 2rem 0; + } + + pre { + background: #0d0d0d; + color: #fff; + font-family: "JetBrainsMono", monospace; + padding: 0.75rem 1rem; + border-radius: 0.5rem; + + code { + color: inherit; + padding: 0; + background: none; + font-size: 0.8rem; + } + + .hljs-comment, + .hljs-quote { + color: #616161; + } + + .hljs-variable, + .hljs-template-variable, + .hljs-attribute, + .hljs-tag, + .hljs-name, + .hljs-regexp, + .hljs-link, + .hljs-name, + .hljs-selector-id, + .hljs-selector-class { + color: #f98181; + } + + .hljs-number, + .hljs-meta, + .hljs-built_in, + .hljs-builtin-name, + .hljs-literal, + .hljs-type, + .hljs-params { + color: #fbbc88; + } + + .hljs-string, + .hljs-symbol, + .hljs-bullet { + color: #b9f18d; + } + + .hljs-title, + .hljs-section { + color: #faf594; + } + + .hljs-keyword, + .hljs-selector-tag { + color: #70cff8; + } + + .hljs-emphasis { + font-style: italic; + } + + .hljs-strong { + font-weight: 700; + } + } +} diff --git a/src/routes/blog/[title]/index.tsx b/src/routes/blog/[title]/index.tsx index fc26362..3b462a3 100644 --- a/src/routes/blog/[title]/index.tsx +++ b/src/routes/blog/[title]/index.tsx @@ -164,24 +164,24 @@ export default function PostPage() { {p().title.replaceAll("_", " ")} | Michael Freno -
+
{/* Fixed banner image background */}
post-cover