From 31411a9462533abb0ca0866c2dccfd9b1ddf553e Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 1 Aug 2017 04:27:17 +0200 Subject: [PATCH] Prevent selection of diff line numbers (#2240) --- 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 8e43a7e166f..d720f6e955b 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -2069,6 +2069,10 @@ footer .ui.language .menu { color: #A7A7A7; background: #fafafa; width: 1%; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; } .repository .diff-file-box .file-body.file-code .lines-num span.fold { display: block; diff --git a/public/less/_repository.less b/public/less/_repository.less index a81d92871db..2b254123e4d 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -913,6 +913,10 @@ color: #A7A7A7; background: #fafafa; width: 1%; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + user-select: none; span.fold { display: block;