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 4, 2024
1 parent af59b99 commit d8a01e1
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, :not(.quoted) > .q)::selection {
background-color: transparent;
}

0 comments on commit d8a01e1

Please sign in to comment.