summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-04-08 14:43:21 -0700
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-04-14 09:10:40 -0500
commit7030ffb0e09dbcc0d03d377846a04fe6cf7d20b6 (patch)
tree16ab8b091d7c315907cf06d9fbeb9920e28b82ea /app/assets
parent64776ab2b4ef40519e75eb73ae946d2c1f774aa6 (diff)
downloadgitlab-ce-7030ffb0e09dbcc0d03d377846a04fe6cf7d20b6.tar.gz
Copying and pasting doesn't grab line numbers or +/-
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/stylesheets/pages/diff.scss20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss
index d0855f66911..ca7fa2094b6 100644
--- a/app/assets/stylesheets/pages/diff.scss
+++ b/app/assets/stylesheets/pages/diff.scss
@@ -67,6 +67,14 @@
line-height: $code_line_height;
font-size: $code_font_size;
+ &.noteable_line.old:before {
+ content: '-';
+ }
+
+ &.noteable_line.new:before {
+ content: '+';
+ }
+
span {
white-space: pre;
}
@@ -391,3 +399,15 @@
margin-bottom: 0;
}
}
+
+.diff-line-num:not(.js-unfold-bottom) {
+ a {
+ &:before {
+ content: attr(data-linenumber);
+ }
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ }
+}