Skip to content

Commit

Permalink
Prevent accidential selection of line numbers in code view (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored and appleboy committed Jun 5, 2017
1 parent 703d18e commit ae922af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,10 @@ footer .ui.language .menu {
color: #999;
background: #f5f5f5;
width: 1%;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.repository.file.list #file-content .code-view .lines-num span {
line-height: 20px;
Expand Down
4 changes: 4 additions & 0 deletions public/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@
color: #999;
background: #f5f5f5;
width: 1%;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;

span {
line-height: 20px;
Expand Down

0 comments on commit ae922af

Please sign in to comment.