Skip to content

Commit d8a01e1

Browse files
committed
Force transparent background for "collapsed" text selection
This avoids somewhat annoying translucent-background selection overlays. - https://developer.mozilla.org/en-US/docs/Web/CSS/::selection
1 parent af59b99 commit d8a01e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/viewer.css

+4
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,7 @@ h1 {
191191
.string, :any-link {
192192
word-break: break-all;
193193
}
194+
195+
:is(.spacer, :not(.quoted) > .q)::selection {
196+
background-color: transparent;
197+
}

0 commit comments

Comments
 (0)