Skip to content

Commit 9935903

Browse files
committed
fix: improve the accessibility
1 parent 74d6b5d commit 9935903

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

assets/mods/code-block-panel/scss/index.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
pre {
1212
max-height: 560px;
1313
overflow: auto;
14-
padding: 0.75rem 0.5rem;
14+
padding: 1rem 0.5rem;
1515

1616
code {
1717
word-break: break-all;
@@ -30,19 +30,17 @@
3030

3131
.code-block-lang {
3232
font-style: italic;
33-
font-weight: bold;
34-
opacity: 0.5;
3533
position: absolute;
36-
right: 1.25rem;
34+
right: 1rem;
3735
text-transform: uppercase;
38-
top: 0.25rem;
36+
top: 0;
3937
}
4038
}
4139
}
4240

4341
.code-block-panel-wrapper {
4442
position: absolute;
45-
top: 0.5rem;
43+
top: 0.75rem;
4644
right: 1rem;
4745
}
4846

0 commit comments

Comments
 (0)