mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-11-28 11:16:46 -05:00
prevent copy button from covering up code in code blocks
This commit is contained in:
1 file changed
+6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user