Browse Source

fix markdown padding

pull/1950/merge
Unknwon 9 years ago
parent
commit
942284648e
  1. 2
      public/css/gogs.css
  2. 3
      public/less/_markdown.less
  3. 2
      templates/repo/view_file.tmpl

2
public/css/gogs.css

@ -1072,6 +1072,8 @@ footer .container .links > *:first-child {
font-size: 16px;
line-height: 1.6 !important;
word-wrap: break-word;
}
.markdown.file-view {
padding: 5px 2em 2em !important;
}
.markdown > *:first-child {

3
public/less/_markdown.less

@ -4,7 +4,10 @@
font-size: 16px;
line-height: 1.6 !important;
word-wrap: break-word;
&.file-view {
padding: 5px 2em 2em !important;
}
>*:first-child {
margin-top: 0 !important;

2
templates/repo/view_file.tmpl

@ -24,7 +24,7 @@
{{end}}
</h4>
<div class="ui attached table segment">
<div class="{{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
<div class="file-view {{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
{{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}

Loading…
Cancel
Save