From ae922afa2d0c25f50b6a117b949fbe4324a78842 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 5 Jun 2017 09:52:35 +0200 Subject: [PATCH] Prevent accidential selection of line numbers in code view (#1860) --- public/css/index.css | 4 ++++ public/less/_repository.less | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/public/css/index.css b/public/css/index.css index cb9c12e2d9c..0d6112a168e 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 305ed1ab849..56249f3a9a8 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;