From 59f5bbab0d6c1aa00fd58140860093331ab0140f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=96stanb=C3=A4ck?= Date: Wed, 3 May 2017 14:22:14 +0200 Subject: [PATCH] Fix CSS for wiki markdown (#1660) --- public/css/index.css | 14 +++++++------- public/less/_repository.less | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/css/index.css b/public/css/index.css index 3fa2d6d0fd..9ed282ade2 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -2227,15 +2227,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 7f36274a2c..f96d5abc15 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1176,7 +1176,7 @@ .ui.sub.header { text-transform: none; } - .markdown { + >.markdown { padding: 15px 30px; h1, h2, h3, h4, h5, h6 {