diff options
author | silverwind <me@silverwind.io> | 2017-06-05 09:52:35 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-06-05 02:52:35 -0500 |
commit | ae922afa2d0c25f50b6a117b949fbe4324a78842 (patch) | |
tree | a2ae4007f4109702bed10f4a85da3e08a346e04d /public | |
parent | 703d18e50d69974779c5fab0d1bb6c082a3923fd (diff) | |
download | gitea-ae922afa2d0c25f50b6a117b949fbe4324a78842.tar.gz gitea-ae922afa2d0c25f50b6a117b949fbe4324a78842.zip |
Prevent accidential selection of line numbers in code view (#1860)
Diffstat (limited to 'public')
-rw-r--r-- | public/css/index.css | 4 | ||||
-rw-r--r-- | public/less/_repository.less | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css index cb9c12e2d9..0d6112a168 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -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; diff --git a/public/less/_repository.less b/public/less/_repository.less index 305ed1ab84..56249f3a9a 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -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; |