From 48a0b5b026e6f465e6baaafacece5355e1229866 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 30 Aug 2016 06:03:38 -0700 Subject: UI: fix block selection on code for empty line are not highlighted --- public/css/gogs.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'public/css') diff --git a/public/css/gogs.css b/public/css/gogs.css index 9e3b92fa..8c446b5c 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; } -- cgit v1.2.3