diff --git a/app/assets/stylesheets/gitlab_bootstrap/mixins.scss b/app/assets/stylesheets/gitlab_bootstrap/mixins.scss index 865c593f8222bcac4e000029e26963a7585d2a4b..b9abb5e4c67828890c02879ba2c8f54ad495b9a1 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/mixins.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/mixins.scss @@ -76,6 +76,10 @@ } @mixin md-typography { + *:first-child { + margin-top: 0; + } + code { padding: 0 4px; } h1 { margin-top: 30px;} h2 { margin-top: 25px;} diff --git a/app/assets/stylesheets/gitlab_bootstrap/typography.scss b/app/assets/stylesheets/gitlab_bootstrap/typography.scss index 07df7f546d6eae0bb53bdc8a0ae5650bb7e8a222..69292ca0b648300d436af4f3a870f5cd023fdbd3 100644 --- a/app/assets/stylesheets/gitlab_bootstrap/typography.scss +++ b/app/assets/stylesheets/gitlab_bootstrap/typography.scss @@ -94,12 +94,16 @@ a:focus { * */ .wiki { - font-size: 14px; - line-height: 1.6; @include md-typography; - .white .highlight pre { background: #f5f5f5; } - ul { margin: 0 0 9px 25px !important; } + font-size: 14px; + line-height: 1.6; + .white .highlight pre { + background: #f5f5f5; + } + ul { + margin: 0 0 9px 25px !important; + } } .md {