Skip to content

Commit

Permalink
Hide EC copy button when printing from touch devices
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 10, 2025
1 parent 104e853 commit 43ed243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/starlight/style/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
/* Remove title tab highlight. */
border-top: 0 !important;
}
.expressive-code .copy {
/* Ensure Expressive Code copy button is hidden when printing from touch devices. */
display: none !important;
}
/* Inline code */
.sl-markdown-content code:not(:where(.not-content *)) {
background-color: transparent !important;
Expand Down

0 comments on commit 43ed243

Please sign in to comment.