From 5793d448494b5a70ea4ebb9fab86cdd47b4a6f56 Mon Sep 17 00:00:00 2001 From: 1v9 Date: Tue, 25 Jun 2019 20:50:12 +0800 Subject: [PATCH 1/2] Fix Group Pictures layout --- source/css/_common/components/tags/group-pictures.styl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/css/_common/components/tags/group-pictures.styl b/source/css/_common/components/tags/group-pictures.styl index ce1461ddf6..34b8f6b245 100644 --- a/source/css/_common/components/tags/group-pictures.styl +++ b/source/css/_common/components/tags/group-pictures.styl @@ -12,12 +12,9 @@ &:first-child { margin-top: 0; } } -.post .group-picture-column { float: left; } - .page-post-detail .post-body .group-picture-column { - float: none; + float: left; margin-top: 10px; - width: auto !important; img { margin: 0 auto; } } From 15bb3765d219a4f516e7e76fcca10fd8abd9bf95 Mon Sep 17 00:00:00 2001 From: StevenJoeZhang <1119186082@qq.com> Date: Wed, 3 Jul 2019 11:35:25 +0800 Subject: [PATCH 2/2] Update --- .../css/_common/components/tags/group-pictures.styl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/css/_common/components/tags/group-pictures.styl b/source/css/_common/components/tags/group-pictures.styl index 34b8f6b245..b3b94fe4a4 100644 --- a/source/css/_common/components/tags/group-pictures.styl +++ b/source/css/_common/components/tags/group-pictures.styl @@ -3,19 +3,18 @@ box-sizing: border-box; padding: 0 3px; border: none; + margin: 0 auto; } } -.post .group-picture-row { +.post-body .group-picture-row { overflow: hidden; - margin-top: 6px; - &:first-child { margin-top: 0; } + margin-bottom: 6px; } -.page-post-detail .post-body .group-picture-column { +.post-body .group-picture-column { float: left; - margin-top: 10px; - img { margin: 0 auto; } + margin-bottom: 10px; } .page-archive {