From c0f417713bf9735f6757a832508944b74552413d Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 24 Jun 2023 22:04:08 -0600 Subject: [PATCH 1/2] ansi codeblock stuff --- xmc.user.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xmc.user.css b/xmc.user.css index c15c529..9a4096a 100644 --- a/xmc.user.css +++ b/xmc.user.css @@ -2022,6 +2022,10 @@ code.inline { [class^="markup-"] ol, [class^="markup-"] ul { margin: 4px 0 0 24px !important; +} + +.hljs.ansi { + line-height: 12px !important; }`, 'The Funny': `@font-face { font-family: "Pointfree"; @@ -6872,6 +6876,17 @@ div[class^="sidebar-"]:not(:has(> [class^="side-"])):not(:hover) font-family: var(--font-code) !important; } + .hljs.ansi { + line-height: normal !important; + } + .hljs.ansi .bcb-lines { + grid-template-columns: auto; + } + .hljs.ansi .bcb-number { + display: none; + min-height: unset; + } + /* unbreak resizing webms :^) */ /*[class^="mediaAttachmentsContainer-"] [class^="imageWrapper-"] { min-width: 10px; From 09685349830d245594c070185680889fbcbbe396 Mon Sep 17 00:00:00 2001 From: CI Date: Sun, 25 Jun 2023 04:04:40 +0000 Subject: [PATCH 2/2] Make Modular --- modular/base.css | 11 +++++++++++ modular/font/terminus.css | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/modular/base.css b/modular/base.css index 318d157..20a6277 100644 --- a/modular/base.css +++ b/modular/base.css @@ -345,6 +345,17 @@ code, font-family: var(--font-code) !important; } +.hljs.ansi { + line-height: normal !important; +} +.hljs.ansi .bcb-lines { + grid-template-columns: auto; +} +.hljs.ansi .bcb-number { + display: none; + min-height: unset; +} + /* unbreak resizing webms :^) */ /*[class^="mediaAttachmentsContainer-"] [class^="imageWrapper-"] { min-width: 10px; diff --git a/modular/font/terminus.css b/modular/font/terminus.css index 2a44088..958b7d9 100644 --- a/modular/font/terminus.css +++ b/modular/font/terminus.css @@ -137,3 +137,7 @@ code.inline { [class^="markup-"] ul { margin: 4px 0 0 24px !important; } + +.hljs.ansi { + line-height: 12px !important; +}