From cb461df07121992058b3b27f40705b0bd274d2a8 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 28 Aug 2020 23:01:35 +0800 Subject: [PATCH] Extend the image style to the layout `page` (#113) --- assets/css/_addon/main.scss | 10 ++++++++++ assets/css/post.scss | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/css/_addon/main.scss b/assets/css/_addon/main.scss index 7b38648..d37cebc 100644 --- a/assets/css/_addon/main.scss +++ b/assets/css/_addon/main.scss @@ -824,6 +824,16 @@ div.post-content .table-wrapper { p { font-size: 1.08rem; } + img { + max-width: 100%; + margin-top: .5rem; + margin-bottom: 1.5rem; + position: relative; + left: 50%; + -webkit-transform: translateX(-50%); + -ms-transform: translateX(-50%); + transform: translateX(-50%); + } } diff --git a/assets/css/post.scss b/assets/css/post.scss index 555a44e..4fa9715 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -28,16 +28,6 @@ $prompt-newer: "{{ site.data.label.post.button.next }}"; } .post-content { - img { - max-width: 100%; - margin-top: .5rem; - margin-bottom: 1.5rem; - position: relative; - left: 50%; - -webkit-transform: translateX(-50%); - -ms-transform: translateX(-50%); - transform: translateX(-50%); - } > ol, > ul, > dl { padding-left: 2rem; li+li {