summaryrefslogtreecommitdiffstats
path: root/public/css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2017-06-05 09:52:35 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-05 02:52:35 -0500
commitae922afa2d0c25f50b6a117b949fbe4324a78842 (patch)
treea2ae4007f4109702bed10f4a85da3e08a346e04d /public/css
parent703d18e50d69974779c5fab0d1bb6c082a3923fd (diff)
downloadgitea-ae922afa2d0c25f50b6a117b949fbe4324a78842.tar.gz
gitea-ae922afa2d0c25f50b6a117b949fbe4324a78842.zip
Prevent accidential selection of line numbers in code view (#1860)
Diffstat (limited to 'public/css')
-rw-r--r--public/css/index.css4
1 files changed, 4 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;