1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

fix code style

This commit is contained in:
slene 2014-03-20 23:55:27 +08:00
parent 28b4b6c9d5
commit 686348974b
3 changed files with 5 additions and 4 deletions

View File

@ -651,7 +651,7 @@ html, body {
overflow-y: hidden; overflow-y: hidden;
} }
.file-content .file-body pre { .file-content .file-body.file-code pre {
background-color: #FFF; background-color: #FFF;
border: none; border: none;
} }

View File

@ -112,6 +112,7 @@
overflow: auto; overflow: auto;
background: #f8f8f8; background: #f8f8f8;
border: 1px solid #ddd; border: 1px solid #ddd;
padding: 0;
} }
.markdown > pre.linenums { .markdown > pre.linenums {
@ -127,7 +128,7 @@
margin-top: 2px; margin-top: 2px;
} }
.markdown > pre.linenums-style > ol.linenums { .markdown > pre.nums-style > ol.linenums {
list-style-type: decimal; list-style-type: decimal;
padding: 0 0 0 40px; padding: 0 0 0 40px;
-webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc; -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc;
@ -152,7 +153,7 @@
padding-bottom: 12px; padding-bottom: 12px;
} }
.markdown > pre.linenums-style > ol.linenums > li { .markdown > pre.nums-style > ol.linenums > li {
border-left: 1px solid #ddd; border-left: 1px solid #ddd;
} }

View File

@ -68,7 +68,7 @@ var Gogits = {
Gogits.renderMarkdown = function () { Gogits.renderMarkdown = function () {
var $md = $('.markdown'); var $md = $('.markdown');
var $pre = $md.find('pre > code').parent(); var $pre = $md.find('pre > code').parent();
$pre.addClass('prettyprint'); $pre.addClass('prettyprint linenums');
prettyPrint(); prettyPrint();
var $lineNums = $pre.parent().siblings('.lines-num'); var $lineNums = $pre.parent().siblings('.lines-num');