Skip to content

Commit

Permalink
fix(style): remove padding for highlighted code (#157)
Browse files Browse the repository at this point in the history
* fix(style): remove padding for highlighted lines

* chore: run build:css
  • Loading branch information
imfing authored Oct 27, 2023
1 parent c6f4325 commit 2d2e8ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2d2e8ae

Please sign in to comment.