Skip to content

Commit c73c7c8

Browse files
committed
style: improve copy button appearance
1 parent 055874a commit c73c7c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

assets/scss/common/_custom.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pre.shiki {
3939
}
4040

4141
// Make Shiki syntax highlighting theme-aware.
42-
html[data-bs-theme="dark"] {
42+
@include color-mode(dark) {
4343
.shiki,
4444
.shiki span {
4545
color: var(--shiki-dark) !important;
@@ -85,13 +85,19 @@ html[data-bs-theme="dark"] {
8585
position: absolute;
8686
inset: 0;
8787
border-radius: inherit;
88-
background: var(--ec-frm-inlBtnBg);
88+
background: white;
8989
opacity: var(--ec-frm-inlBtnBgIdleOpa);
9090
transition-property: inherit;
9191
transition-duration: inherit;
9292
transition-timing-function: inherit;
9393
}
9494

95+
@include color-mode(dark) {
96+
.highlight .copy button div {
97+
background: black;
98+
}
99+
}
100+
95101
.highlight .copy button::before {
96102
content: "";
97103
position: absolute;

0 commit comments

Comments
 (0)