Skip to content

Commit 468de92

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,12 +2311,12 @@ a:has(code:not(pre code)) {
23112311
text-transform: uppercase;
23122312
padding: 0.15rem 0.5rem;
23132313
font-size: 0.75rem;
2314-
z-index: 2;
2315-
margin: 0 0 -1px 0;
2314+
box-sizing: border-box;
23162315
}
23172316

23182317
.code-container {
23192318
box-shadow: 3px 3px 0px oklch(var(--color-shadow));
2319+
margin-block-start: -1px;
23202320

23212321
&:hover {
23222322
.code-copy-button {
@@ -2351,6 +2351,7 @@ a:has(code:not(pre code)) {
23512351

23522352
.code-content {
23532353
border: 1px solid oklch(var(--color-codeblock-border));
2354+
box-sizing: border-box;
23542355
overflow-x: scroll;
23552356
scrollbar-width: none;
23562357
line-height: 150%;

0 commit comments

Comments
 (0)