diff options
author | Unknwon <u@gogs.io> | 2016-02-07 11:49:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-07 11:49:11 -0500 |
commit | f15a2f9b25bbec130915fec5b33c7e49dc7cf57d (patch) | |
tree | 1ba3aa079c4f931a6fef87693cf83e731a323bcc /public/less | |
parent | 3b102a71a2cef4a3cdb748bbc6e0499fdec5e3b4 (diff) | |
parent | 2bfb8bb5fdebb4ae02c83a271e8eb24bc68afec1 (diff) | |
download | gitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.tar.gz gitea-f15a2f9b25bbec130915fec5b33c7e49dc7cf57d.zip |
Merge pull request #2528 from andreynering/diff-sintax-highlight-733
Enable syntax highlighting on diff view
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_base.less | 8 |
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; +} |