Browse Source

fix code style

pull/32/head
slene 11 years ago
parent
commit
686348974b
  1. 2
      public/css/gogs.css
  2. 5
      public/css/markdown.css
  3. 2
      public/js/app.js

2
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;
}

5
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;
}

2
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');

Loading…
Cancel
Save