1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 03:45:22 -04:00

prevent copy button from covering up code in code blocks

This commit is contained in:
Jake Jarvis 2025-04-01 10:44:12 -04:00
parent 471cd626c1
commit 4f5dcbe04d
Signed by: jake
SSH Key Fingerprint: SHA256:nCkvAjYA6XaSPUqc4TfbBQTpzr8Xj7ritg/sGInCdkc

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;
}