aboutsummaryrefslogtreecommitdiffstats
path: root/public/css
diff options
context:
space:
mode:
authorRory McNamara <psychomario@users.noreply.github.com>2016-08-09 20:35:20 +0100
committer无闻 <u@gogs.io>2016-08-09 12:35:20 -0700
commitc8b45ecc2762a9d64dbe83cafd68b137661448a5 (patch)
treedf16d7b1b41d3fcade098cfe550cc61955d048c6 /public/css
parent9e8a8867ea3b4c977b436951a28d84e0c2ad2e4b (diff)
downloadgitea-c8b45ecc2762a9d64dbe83cafd68b137661448a5.tar.gz
gitea-c8b45ecc2762a9d64dbe83cafd68b137661448a5.zip
Render the Code view on the server (minus syntax highlighting) (#2942)
* render code view server side * remove debug print * fix multiline selection bug * change string concatenation to bytes.Buffer for efficiency * Fix newlines added by previous for hljs * fix selection highlighting * make css changes in .less
Diffstat (limited to 'public/css')
-rw-r--r--public/css/gogs.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index ae58c7c54e..c39c52ca22 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -1316,6 +1316,8 @@ footer .ui.language .menu {
.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%;
}
.repository.file.list #file-content .code-view .lines-num pre li.active,
.repository.file.list #file-content .code-view .lines-code pre li.active,