From 30656842a785079fe65823c339864ee0f3b32d61 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Mon, 4 May 2026 22:18:33 -0700 Subject: [PATCH] web: nicer code blocks --- ios/Apps/Sybil/project.yml | 4 ++-- web/src/index.css | 24 +++++++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/ios/Apps/Sybil/project.yml b/ios/Apps/Sybil/project.yml index af81793..aff0e87 100644 --- a/ios/Apps/Sybil/project.yml +++ b/ios/Apps/Sybil/project.yml @@ -23,8 +23,8 @@ targets: TARGETED_DEVICE_FAMILY: "1,2,6" GENERATE_INFOPLIST_FILE: YES ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon - MARKETING_VERSION: 1.5 - CURRENT_PROJECT_VERSION: 6 + MARKETING_VERSION: 1.7 + CURRENT_PROJECT_VERSION: 8 INFOPLIST_KEY_CFBundleDisplayName: Sybil INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: NO INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents: YES diff --git a/web/src/index.css b/web/src/index.css index 0e62c9f..1bb24a0 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -206,17 +206,31 @@ textarea { } .md-content code { - background: hsl(288 22% 23%); - border-radius: 0.25rem; + background: hsl(249 40% 10% / 0.78); + border-radius: 0.3rem; padding: 0.05rem 0.3rem; font-size: 0.86em; + box-decoration-break: clone; + -webkit-box-decoration-break: clone; } .md-content pre { overflow-x: auto; - border-radius: 0.5rem; - background: hsl(287 28% 13%); - padding: 0.6rem 0.75rem; + border: 1px solid hsl(253 31% 29% / 0.72); + border-radius: 0.625rem; + background: hsl(249 40% 10% / 0.82); + padding: 0.75rem; + box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.05); +} + +.md-content pre code { + display: block; + background: transparent; + border-radius: 0; + padding: 0; + font-size: 0.88em; + line-height: 1.55; + white-space: pre; } .md-content a {