summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-15 14:50:35 -0500
committerUnknwon <u@gogs.io>2015-11-15 14:50:35 -0500
commit942284648e4abf045fea5b97d3f9a3d4f4d00d77 (patch)
treec6e4cb8a0099f6958f33db6bc5cfe51402ad0925 /public
parent4f03b81ec777813820d4e33ec11893e214ec27d2 (diff)
downloadgitea-942284648e4abf045fea5b97d3f9a3d4f4d00d77.tar.gz
gitea-942284648e4abf045fea5b97d3f9a3d4f4d00d77.zip
fix markdown padding
Diffstat (limited to 'public')
-rwxr-xr-xpublic/css/gogs.css2
-rw-r--r--public/less/_markdown.less5
2 files changed, 6 insertions, 1 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 4e16ff6fd0..5ade64d921 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 6b88e48bd3..561fa20b1b 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;