Skip to content

Commit ae922af

Browse files
silverwindappleboy
authored andcommitted
Prevent accidential selection of line numbers in code view (#1860)
1 parent 703d18e commit ae922af

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

public/css/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,10 @@ footer .ui.language .menu {
14041404
color: #999;
14051405
background: #f5f5f5;
14061406
width: 1%;
1407+
-moz-user-select: none;
1408+
-ms-user-select: none;
1409+
-webkit-user-select: none;
1410+
user-select: none;
14071411
}
14081412
.repository.file.list #file-content .code-view .lines-num span {
14091413
line-height: 20px;

public/less/_repository.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@
274274
color: #999;
275275
background: #f5f5f5;
276276
width: 1%;
277+
-moz-user-select: none;
278+
-ms-user-select: none;
279+
-webkit-user-select: none;
280+
user-select: none;
277281

278282
span {
279283
line-height: 20px;

0 commit comments

Comments
 (0)