Skip to content

Commit

Permalink
Use white foreground for copy code button (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur authored Jan 2, 2025
1 parent 755d7a8 commit ef54fc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,12 @@ html[data-theme='dark'] {
text-decoration: underline;
}
}

:root,
html[data-theme='light'] {
.vp-copy-code-button {
// Make the copy code button white for good contrast with the
// dark background in code blocks
color: white !important;
}
}

0 comments on commit ef54fc4

Please sign in to comment.