Skip to content

Commit 9222b05

Browse files
Correctly handle user-select: none
1 parent 9e0c8b6 commit 9222b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,9 @@ both the code example and the line numbers, so we need to remove the radius in t
900900
min-width: fit-content; /* prevent collapsing into nothing in truncated scraped examples */
901901
flex-grow: 0;
902902
text-align: right;
903+
-moz-user-select: none;
903904
-webkit-user-select: none;
905+
-ms-user-select: none;
904906
user-select: none;
905907
padding: 14px 8px;
906908
padding-right: 2px;
@@ -940,6 +942,9 @@ both the code example and the line numbers, so we need to remove the radius in t
940942
text-align: right;
941943
display: inline-block;
942944
margin-right: 20px;
945+
-moz-user-select: none;
946+
-webkit-user-select: none;
947+
-ms-user-select: none;
943948
user-select: none;
944949
padding: 0 4px;
945950
}

0 commit comments

Comments
 (0)