From 79bb4c9ebecd89bdeec52be13cc805e177066ec0 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Mon, 6 Jul 2020 11:14:18 +0800 Subject: [PATCH] Fix sidebar animation issue * See: https://github.com/next-theme/hexo-theme-next/issues/46 --- _config.yml | 8 ++++---- .../css/_common/components/third-party/third-party.styl | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index 79989a0..b79303a 100644 --- a/_config.yml +++ b/_config.yml @@ -252,13 +252,13 @@ symbols_count_time: # Use icon instead of the symbol # to indicate the tag at the bottom of the post tag_icon: false -# Reward (Donate) +# Donate (Sponsor) settings # Front-matter variable (unsupport animation). reward_settings: - # If true, reward will be displayed in every article by default. + # If true, a donate button will be displayed in every article by default. enable: false animation: false - #comment: Donate comment here. + #comment: Buy me a coffee reward: #wechatpay: /images/wechatpay.png @@ -394,7 +394,7 @@ github_banner: # Font Settings # See: https://theme-next.js.org/docs/theme-settings/#Fonts-Customization # --------------------------------------------------------------- -# Find fonts on Google Fonts (https://www.google.com/fonts) +# Find fonts on Google Fonts (https://fonts.google.com) # All fonts set here will have the following styles: # light | light italic | normal | normal italic | bold | bold italic # Be aware that setting too much fonts will cause site running slowly diff --git a/source/css/_common/components/third-party/third-party.styl b/source/css/_common/components/third-party/third-party.styl index e80c155..84a4d82 100644 --- a/source/css/_common/components/third-party/third-party.styl +++ b/source/css/_common/components/third-party/third-party.styl @@ -7,5 +7,6 @@ @import 'math' if (hexo-config('math.mathjax.enable')); .use-motion .animated { - visibility: visible; + // Fix issue #46 .animated in .sidebar + visibility: inherit; }