aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-01-28 09:47:16 -0500
committerUnknwon <u@gogs.io>2017-01-28 09:47:16 -0500
commit9144ea2b1db337bd20c32d78bb41493e79f5cb06 (patch)
tree72d37d8a477635ac602096f0b0d100fa1dce5401 /public
parent0d73dcaf0f5b40486cc80fd7976a98e88f2aa672 (diff)
Fix inappropriate CSS rule for Markdown on wiki page (#3766)
Diffstat (limited to 'public')
-rw-r--r--public/css/gogs.css14
-rw-r--r--public/less/_repository.less2
2 files changed, 8 insertions, 8 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index f8c4ba7a..c8d6f2ce 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -2162,15 +2162,15 @@ footer .ui.language .menu {
.repository.wiki.view .ui.sub.header {
text-transform: none;
}
-.repository.wiki.view .markdown {
+.repository.wiki.view > .markdown {
padding: 15px 30px;
}
-.repository.wiki.view .markdown h1:first-of-type,
-.repository.wiki.view .markdown h2:first-of-type,
-.repository.wiki.view .markdown h3:first-of-type,
-.repository.wiki.view .markdown h4:first-of-type,
-.repository.wiki.view .markdown h5:first-of-type,
-.repository.wiki.view .markdown h6:first-of-type {
+.repository.wiki.view > .markdown h1:first-of-type,
+.repository.wiki.view > .markdown h2:first-of-type,
+.repository.wiki.view > .markdown h3:first-of-type,
+.repository.wiki.view > .markdown h4:first-of-type,
+.repository.wiki.view > .markdown h5:first-of-type,
+.repository.wiki.view > .markdown h6:first-of-type {
margin-top: 0;
}
.repository.settings.collaboration .collaborator.list {
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 366c92c4..0deef516 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -1158,7 +1158,7 @@
.ui.sub.header {
text-transform: none;
}
- .markdown {
+ >.markdown {
padding: 15px 30px;
h1, h2, h3, h4, h5, h6 {