1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-15 05:25:33 -04:00

prevent copy button from covering up code in code blocks

This commit is contained in:
2025-04-01 10:44:12 -04:00
parent 471cd626c1
commit 4f5dcbe04d

View File

@@ -29,6 +29,12 @@ figure:has(.highlighted) {
text-decoration: var(--shiki-dark-text-decoration);
}
.highlighted > [data-line]:nth-of-type(1),
.highlighted > [data-line]:nth-of-type(2) {
/* excessive right padding to prevent copy button from covering the first two lines of code */
padding-right: 4em;
}
.highlighted[data-line-numbers] {
counter-reset: line;
}