summaryrefslogtreecommitdiffstats
path: root/public/less/_base.less
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-01-31 14:19:02 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-02-04 18:21:47 -0200
commit2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (patch)
tree5d09fae4e0f0be52ec38437070433623c89f7006 /public/less/_base.less
parent137a49e8342ab207c8570fc18b7c81b5fa9789ab (diff)
downloadgitea-2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1.tar.gz
gitea-2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1.zip
Enable sintax highlighting on diff view. Close #733
Diffstat (limited to 'public/less/_base.less')
-rw-r--r--public/less/_base.less8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index 0322944442..1911d3cbbf 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -8,7 +8,7 @@ body {
img {
border-radius: 3px;
}
-pre {
+pre, code {
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
&.raw {
padding: 7px 12px;
@@ -375,3 +375,9 @@ footer {
width: 95%;
}
}
+
+/* Overrides some styles of the Highlight.js plugin */
+.hljs {
+ background: inherit !important;
+ padding: 0 !important;
+}