From 2d2e8aec4cdac8099ad25ac816da65c30b3c4a01 Mon Sep 17 00:00:00 2001 From: Xin Date: Fri, 27 Oct 2023 09:56:39 -0400 Subject: [PATCH] fix(style): remove padding for highlighted code (#157) * fix(style): remove padding for highlighted lines * chore: run build:css --- assets/css/compiled/main.css | 4 ++-- assets/css/highlight.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 3d9ca66f..ddaa5208 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -2241,7 +2241,7 @@ article details > summary::before { } .chroma .ln, .chroma .lnt:not(.hl > .lnt), - .chroma .hl { + .chroma .hl:not(.line) { min-width: 2.6rem; padding-left: 1rem; padding-right: 1rem; @@ -2250,7 +2250,7 @@ article details > summary::before { } :is(html[class~="dark"] .chroma .ln),:is(html[class~="dark"] .chroma .lnt:not(.hl > .lnt)),:is(html[class~="dark"] - .chroma .hl) { + .chroma .hl:not(.line)) { --tw-text-opacity: 1; color: rgb(212 212 212 / var(--tw-text-opacity)); } diff --git a/assets/css/highlight.css b/assets/css/highlight.css index b8e373a0..2e7f387a 100644 --- a/assets/css/highlight.css +++ b/assets/css/highlight.css @@ -32,7 +32,7 @@ } .ln, .lnt:not(.hl > .lnt), - .hl { + .hl:not(.line) { @apply pl-4 pr-4 min-w-[2.6rem] text-neutral-600 dark:text-neutral-300; } .lntd {