From 1232f38ee494e9d621a8c5091c11059940112631 Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 3 Oct 2024 19:48:01 -0500 Subject: [PATCH] add terrible hack to prism.css --- prism.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prism.css b/prism.css index 537b6fd..2d0b642 100644 --- a/prism.css +++ b/prism.css @@ -5,7 +5,7 @@ pre[class*=language-] { color: #f8f8f2; background: #0e0f0f; text-shadow: 0 1px rgba(0, 0, 0, .3); - font-family: 'FiraCode', 'Nimbus Mono PS', 'Liberation Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', 'Lucida Console', monospace; + font-family: 'FiraCode Nerd Font', 'FiraCode', 'Nimbus Mono PS', 'Liberation Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', 'Lucida Console', monospace; font-size: 0.95em; text-align: left; white-space: pre; @@ -126,11 +126,12 @@ pre[class*=language-].line-numbers>code { white-space: inherit } +/* this font-size is just a terrible approximation buuuut it works unless you get really really long code blocks */ .line-numbers .line-numbers-rows { position: absolute; pointer-events: none; top: 0; - font-size: 100%; + font-size: 105.34%; left: -3.8em; width: 3em; letter-spacing: -1px;