Skip to content

Commit

Permalink
Force transparent background for "collapsed" text selection
Browse files Browse the repository at this point in the history
This avoids somewhat annoying translucent-background selection overlays.

-   https://developer.mozilla.org/en-US/docs/Web/CSS/::selection
  • Loading branch information
stanio committed Sep 1, 2024
1 parent af59b99 commit 2343862
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,7 @@ h1 {
.string, :any-link {
word-break: break-all;
}

:is(.spacer, .q)::selection {
background-color: transparent;
}

0 comments on commit 2343862

Please sign in to comment.