summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-30 06:03:38 -0700
committerUnknwon <u@gogs.io>2016-08-30 06:03:38 -0700
commit48a0b5b026e6f465e6baaafacece5355e1229866 (patch)
tree4423156a463f7482c063a8f3460c58911534af2b
parent16eb2eb6a30c67f52c181b7d0e74c4486d21a815 (diff)
downloadgitea-48a0b5b026e6f465e6baaafacece5355e1229866.tar.gz
gitea-48a0b5b026e6f465e6baaafacece5355e1229866.zip
UI: fix block selection on code for empty line are not highlighted
-rw-r--r--public/css/gogs.css9
-rw-r--r--public/less/_repository.less6
2 files changed, 11 insertions, 4 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 9e3b92fa57..8c446b5ca1 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -1345,7 +1345,6 @@ footer .ui.language .menu {
.repository.file.list #file-content .code-view .lines-code ol li,
.repository.file.list #file-content .code-view .lines-num .hljs li,
.repository.file.list #file-content .code-view .lines-code .hljs li {
- padding-left: 5px;
display: inline-block;
width: 100%;
}
@@ -1357,6 +1356,14 @@ footer .ui.language .menu {
.repository.file.list #file-content .code-view .lines-code .hljs li.active {
background: #ffffdd;
}
+.repository.file.list #file-content .code-view .lines-num pre li:before,
+.repository.file.list #file-content .code-view .lines-code pre li:before,
+.repository.file.list #file-content .code-view .lines-num ol li:before,
+.repository.file.list #file-content .code-view .lines-code ol li:before,
+.repository.file.list #file-content .code-view .lines-num .hljs li:before,
+.repository.file.list #file-content .code-view .lines-code .hljs li:before {
+ content: ' ';
+}
.repository.file.list .sidebar {
padding-left: 0;
}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index dbbffdfeb2..df69219bf0 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -277,8 +277,6 @@
.lines-num,
.lines-code {
padding: 0;
-
-
pre,
ol,
.hljs {
@@ -286,12 +284,14 @@
margin: 0;
padding: 0 !important;
li {
- padding-left: 5px;
display: inline-block;
width: 100%;
&.active {
background: #ffffdd;
}
+ &:before {
+ content: ' ';
+ }
}
}
}