From bac641df8bcd06b71c9bcc2d83709d67b21217e4 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 2 Oct 2022 11:27:58 +0800 Subject: [PATCH] New stylus variable $post-reward-img-width --- source/css/_common/components/post/post-reward.styl | 2 +- source/css/_variables/base.styl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/css/_common/components/post/post-reward.styl b/source/css/_common/components/post/post-reward.styl index 1afe23d..6f1531f 100644 --- a/source/css/_common/components/post/post-reward.styl +++ b/source/css/_common/components/post/post-reward.styl @@ -41,7 +41,7 @@ display: inline-block; margin: .8em 2em 0; max-width: 100%; - width: 180px; + width: $post-reward-img-width; } } diff --git a/source/css/_variables/base.styl b/source/css/_variables/base.styl index 5a8ccc6..4884613 100644 --- a/source/css/_variables/base.styl +++ b/source/css/_variables/base.styl @@ -282,6 +282,7 @@ $post-eof-margin-top = 80px; // or 160px for more white space; $post-eof-margin-bottom = 60px; // or 120px for less white space; $post-card-margin = 1em 0 0; +$post-reward-img-width = 180px; // Note colors