Browse Source

Prevent selection of diff line numbers (#2240)

silverwind 2 years ago
parent
commit
31411a9462
2 changed files with 8 additions and 0 deletions
  1. 4 0
      public/css/index.css
  2. 4 0
      public/less/_repository.less

+ 4 - 0
public/css/index.css

@@ -2069,6 +2069,10 @@ footer .ui.language .menu {
2069 2069
   color: #A7A7A7;
2070 2070
   background: #fafafa;
2071 2071
   width: 1%;
2072
+  -moz-user-select: none;
2073
+  -ms-user-select: none;
2074
+  -webkit-user-select: none;
2075
+  user-select: none;
2072 2076
 }
2073 2077
 .repository .diff-file-box .file-body.file-code .lines-num span.fold {
2074 2078
   display: block;

+ 4 - 0
public/less/_repository.less

@@ -913,6 +913,10 @@
913 913
 				color: #A7A7A7;
914 914
 				background: #fafafa;
915 915
 				width: 1%;
916
+				-moz-user-select: none;
917
+				-ms-user-select: none;
918
+				-webkit-user-select: none;
919
+				user-select: none;
916 920
 
917 921
 				span.fold {
918 922
 					display: block;