{{ post.description }}
diff --git a/source/css/_common/components/post/post-gallery.styl b/source/css/_common/components/post/post-gallery.styl index 67985ed..a6d68bf 100644 --- a/source/css/_common/components/post/post-gallery.styl +++ b/source/css/_common/components/post/post-gallery.styl @@ -1,20 +1,19 @@ .post-gallery { - align-items: center; - display: grid; - gap: 10px; - grid-template-columns: 1fr 1fr 1fr; - margin-bottom: 20px; + display: flex; + margin-bottom: 60px; - +mobile() { - grid-template-columns: 1fr 1fr; - } + .post-gallery-image { + background-size: cover; + flex: 1; + height: 200px; - a { - // For fancybox - border: 0; - } + &:not(:first-child) { + clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); + margin-left: -20px; + } - img { - margin: 0; + &:not(:last-child) { + margin-right: -20px; + } } } diff --git a/source/css/_common/components/post/post-header.styl b/source/css/_common/components/post/post-header.styl index ec74b9b..21def3c 100644 --- a/source/css/_common/components/post/post-header.styl +++ b/source/css/_common/components/post/post-header.styl @@ -1,12 +1,13 @@ .posts-expand .post-header { font-size: $font-size-large; + margin-bottom: 60px; + text-align: center; } .posts-expand .post-title { font-size: $font-size-largest; font-weight: normal; margin: initial; - text-align: center; word-wrap(); if (hexo-config('post_edit.enable')) { @@ -62,8 +63,7 @@ color: $grey-dark; font-family: $font-family-posts; font-size: $font-size-smallest; - margin: 3px 0 60px 0; - text-align: center; + margin-top: 3px; .post-description { font-size: $font-size-small; diff --git a/source/css/_common/outline/mobile.styl b/source/css/_common/outline/mobile.styl index c8db05d..7e59409 100644 --- a/source/css/_common/outline/mobile.styl +++ b/source/css/_common/outline/mobile.styl @@ -13,8 +13,8 @@ // For all schemes wider width. .posts-expand { - .post-meta { - margin: 3px 0 10px 0 !important; + .post-header { + margin-bottom: 10px !important; } } diff --git a/source/css/_schemes/Mist/_posts-expand.styl b/source/css/_schemes/Mist/_posts-expand.styl index f168a2b..b6fe334 100644 --- a/source/css/_schemes/Mist/_posts-expand.styl +++ b/source/css/_schemes/Mist/_posts-expand.styl @@ -2,7 +2,7 @@ // -------------------------------------------------- .posts-expand { &.index { - .post-title, .post-meta { + .post-header { text-align: $site-meta-text-align; +mobile() { @@ -11,7 +11,7 @@ } .post-meta { - margin: 5px 0 20px 0; + margin-top: 5px; } } @@ -23,7 +23,8 @@ margin-top: 120px; } - .post-title, .post-meta { + .post-header { + margin-bottom: 20px; text-align: center; }