diff options
author | slene <vslene@gmail.com> | 2014-03-20 23:55:27 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-20 23:55:27 +0800 |
commit | 686348974b1a1f6f11cab5244df2362f99e0a124 (patch) | |
tree | 288ff7cb513fb6e5b0d1b3a48a23c86a5b52823f | |
parent | 28b4b6c9d558e340ca8a2e53ec5d729760738305 (diff) | |
download | gitea-686348974b1a1f6f11cab5244df2362f99e0a124.tar.gz gitea-686348974b1a1f6f11cab5244df2362f99e0a124.zip |
fix code style
-rwxr-xr-x | public/css/gogs.css | 2 | ||||
-rw-r--r-- | public/css/markdown.css | 5 | ||||
-rw-r--r-- | public/js/app.js | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 89ae347004..b799882352 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -651,7 +651,7 @@ html, body { overflow-y: hidden; } -.file-content .file-body pre { +.file-content .file-body.file-code pre { background-color: #FFF; border: none; } diff --git a/public/css/markdown.css b/public/css/markdown.css index fb9d667fb0..a810fa3ce7 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -112,6 +112,7 @@ overflow: auto; background: #f8f8f8; border: 1px solid #ddd; + padding: 0; } .markdown > pre.linenums { @@ -127,7 +128,7 @@ margin-top: 2px; } -.markdown > pre.linenums-style > ol.linenums { +.markdown > pre.nums-style > ol.linenums { list-style-type: decimal; padding: 0 0 0 40px; -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc; @@ -152,7 +153,7 @@ padding-bottom: 12px; } -.markdown > pre.linenums-style > ol.linenums > li { +.markdown > pre.nums-style > ol.linenums > li { border-left: 1px solid #ddd; } diff --git a/public/js/app.js b/public/js/app.js index 9a5a0d68ad..a264fc94eb 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -68,7 +68,7 @@ var Gogits = { Gogits.renderMarkdown = function () { var $md = $('.markdown'); var $pre = $md.find('pre > code').parent(); - $pre.addClass('prettyprint'); + $pre.addClass('prettyprint linenums'); prettyPrint(); var $lineNums = $pre.parent().siblings('.lines-num'); |