diff --git a/source/css/_layout/md.styl b/source/css/_layout/md.styl index 4ffdd50..92ef60a 100644 --- a/source/css/_layout/md.styl +++ b/source/css/_layout/md.styl @@ -1,7 +1,6 @@ .md-text max-width: 100% - padding: 0 1rem - margin-top: 1rem + padding: 1rem &:first-child margin-top: 0 color: var(--text-p1) @@ -21,7 +20,7 @@ h1.article-title .md-text.content position: relative - margin-bottom: 2rem + padding-bottom: 2rem overflow: hidden &.indent >p:not([class]) diff --git a/source/css/_layout/partial/related.styl b/source/css/_layout/partial/related.styl index bb72e5c..535d483 100644 --- a/source/css/_layout/partial/related.styl +++ b/source/css/_layout/partial/related.styl @@ -1,6 +1,6 @@ .related-wrap - padding: 1rem - margin: 2rem 0 + padding: 0 1rem + margin: 4rem 0 &:empty display: none section.header @@ -17,7 +17,8 @@ border-radius: $border-block color: var(--text-p1) - +article.md-text.content+.related-wrap + margin-top: 0 .related-posts max-width: 100% @@ -82,6 +83,7 @@ .related-wrap#comments + padding: 0 1rem div.cmt-title p margin: 0