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:
parent
471cd626c1
commit
4f5dcbe04d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user