Skip to content

Commit ef54fc4

Browse files
authored
Use white foreground for copy code button (#1730)
1 parent 755d7a8 commit ef54fc4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.vuepress/styles/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,12 @@ html[data-theme='dark'] {
8585
text-decoration: underline;
8686
}
8787
}
88+
89+
:root,
90+
html[data-theme='light'] {
91+
.vp-copy-code-button {
92+
// Make the copy code button white for good contrast with the
93+
// dark background in code blocks
94+
color: white !important;
95+
}
96+
}

0 commit comments

Comments
 (0)