From 8d3f505658afaa1c9437c9e5ebbb8a746b49e972 Mon Sep 17 00:00:00 2001 From: Lindsay Auchinachie Date: Tue, 12 May 2026 16:56:29 -0400 Subject: [PATCH] Restore subtle border on code blocks in dark mode The dark-mode .theme-code-block border was removed in #502 along with the wrapper-gap fix, but on dark backgrounds the code block now blends into the page and the boundary is harder to read. Add a 1px rgba(255,255,255,0.12) border back, scoped to dark mode only. Refs #492 Co-Authored-By: Claude Opus 4.7 --- src/css/custom.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/css/custom.css b/src/css/custom.css index 9fead29dfb..5c361cd0f8 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -100,6 +100,10 @@ html[data-theme='dark'] { --neo-frame-bg: rgba(255, 255, 255, 0.04); } +html[data-theme='dark'] .theme-code-block { + border: 1px solid rgba(255, 255, 255, 0.12); +} + .navbar__logo img { height: 33px; }