Browse Source

fix style

pull/1440/head
Unknwon 10 years ago
parent
commit
f685bb0ae7
  1. 20
      config.codekit
  2. 8
      public/ng/css/gogs.css
  3. 8
      public/ng/less/gogs/repository.less
  4. 4
      templates/repo/view_file.tmpl

20
config.codekit

@ -448,6 +448,15 @@
"strictMath": 0,
"strictUnits": 0
},
"\/public\/ng\/css\/gogs-prism.css": {
"fileType": 16,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/public\/ng\/css\/gogs-prism.css",
"outputAbbreviatedPath": "No Output Path",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
"\/public\/ng\/css\/gogs.css": {
"fileType": 16,
"ignore": 1,
@ -559,6 +568,17 @@
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/public\/ng\/js\/lib\/prism.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/public\/ng\/js\/lib\/prism.js",
"outputAbbreviatedPath": "\/public\/ng\/js\/lib\/min\/prism-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/public\/ng\/js\/min\/gogs-min.js": {
"fileType": 64,
"ignore": 1,

8
public/ng/css/gogs.css

@ -1371,6 +1371,7 @@ The register and sign-in page style
#repo-branch-switch > .drop-down {
top: 40px;
left: 0;
z-index: 9999;
}
#repo-branch-filter-ipt {
width: 100%;
@ -1630,6 +1631,13 @@ The register and sign-in page style
line-height: 16px;
padding: 6px 8px;
}
.code-view pre {
padding-top: 0!important;
padding-bottom: 0!important;
}
.code-view pre code {
padding-top: 2px;
}
.code-view table {
width: 100%;
}

8
public/ng/less/gogs/repository.less

@ -197,6 +197,7 @@
>.drop-down {
top: 40px;
left: 0;
z-index: 9999;
}
}
#repo-branch-filter-ipt {
@ -461,6 +462,13 @@
padding: 6px 8px;
}
}
pre {
padding-top: 0!important;
padding-bottom: 0!important;
code {
padding-top: 2px;
}
}
table {
width: 100%;
td {

4
templates/repo/view_file.tmpl

@ -25,12 +25,12 @@
</a>
{{end}}
</p>
<div class="panel-content">
<div class="{{if .ReadmeExist}}panel-content{{end}}">
{{if .ReadmeExist}}
<div class="markdown">
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
</div>
{{else if not .IsFileText}}
{{else if not .IsFileText}}
<div class="view-raw">
{{if .IsImageFile}}
<img src="{{EscapePound .FileLink}}">

Loading…
Cancel
Save