diff options
author | Unknwon <u@gogs.io> | 2015-11-15 14:50:35 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-15 14:50:35 -0500 |
commit | 942284648e4abf045fea5b97d3f9a3d4f4d00d77 (patch) | |
tree | c6e4cb8a0099f6958f33db6bc5cfe51402ad0925 | |
parent | 4f03b81ec777813820d4e33ec11893e214ec27d2 (diff) |
fix markdown padding
-rwxr-xr-x | public/css/gogs.css | 2 | ||||
-rw-r--r-- | public/less/_markdown.less | 5 | ||||
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 4e16ff6f..5ade64d9 100755 --- a/public/css/gogs.css +++ b/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 { diff --git a/public/less/_markdown.less b/public/less/_markdown.less index 6b88e48b..561fa20b 100644 --- a/public/less/_markdown.less +++ b/public/less/_markdown.less @@ -4,7 +4,10 @@ font-size: 16px; line-height: 1.6 !important; word-wrap: break-word; - padding: 5px 2em 2em !important; + + &.file-view { + padding: 5px 2em 2em !important; + } >*:first-child { margin-top: 0 !important; diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 827e5193..5751d2e3 100644 --- a/templates/repo/view_file.tmpl +++ b/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}} |