From 9495596f493a5c7d21bfdf8fca7e990a7279f2a2 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 3 Jan 2020 19:41:29 +0800 Subject: [PATCH] Changed images location and effects. --- assets/css/post.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/css/post.scss b/assets/css/post.scss index 1c34964..3292574 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -13,7 +13,12 @@ margin-bottom: 1.5rem; max-width: 100%; height: auto; - filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.08)); + // filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.08)); + position: relative; + left: 50%; + -webkit-transform: translateX(-50%); + -ms-transform: translateX(-50%); + transform: translateX(-50%); } .post-tail { @@ -260,4 +265,4 @@ #post-extend-wrapper { margin-right: calc((100% - 1150px) / 8 + 300px); } -} \ No newline at end of file +}