Skip to content

Commit f1cecaa

Browse files
committed
Codeblock: Handle zooming for firefox + chrome
1 parent 7c8ff38 commit f1cecaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2312,11 +2312,12 @@ a:has(code:not(pre code)) {
23122312
padding: 0.15rem 0.5rem;
23132313
font-size: 0.75rem;
23142314
z-index: 2;
2315-
margin: 0 0 -1px 0;
2315+
box-sizing: border-box;
23162316
}
23172317

23182318
.code-container {
23192319
box-shadow: 3px 3px 0px oklch(var(--color-shadow));
2320+
margin-block-start: -1px;
23202321

23212322
&:hover {
23222323
.code-copy-button {
@@ -2351,6 +2352,7 @@ a:has(code:not(pre code)) {
23512352

23522353
.code-content {
23532354
border: 1px solid oklch(var(--color-codeblock-border));
2355+
box-sizing: border-box;
23542356
overflow-x: scroll;
23552357
scrollbar-width: none;
23562358
line-height: 150%;

0 commit comments

Comments
 (0)