From 5d2f92e6b5a9eb77a338eac082d1896945490bd3 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 19 Jun 2020 23:32:16 +0800 Subject: [PATCH] Remove `sidebar.onmobile` option * See: https://github.com/iissnan/hexo-theme-next/pull/1717 --- _config.yml | 2 -- source/css/_common/outline/sidebar/sidebar-toggle.styl | 4 ---- source/css/_common/outline/sidebar/sidebar.styl | 6 ------ 3 files changed, 12 deletions(-) diff --git a/_config.yml b/_config.yml index dfe5d19..5b63a36 100644 --- a/_config.yml +++ b/_config.yml @@ -151,8 +151,6 @@ sidebar: padding: 18 # Sidebar offset from top menubar in pixels (only for Pisces | Gemini). offset: 12 - # Enable sidebar on narrow view (only for Muse | Mist). - onmobile: false # Sidebar Avatar avatar: diff --git a/source/css/_common/outline/sidebar/sidebar-toggle.styl b/source/css/_common/outline/sidebar/sidebar-toggle.styl index d49b50d..795c75f 100644 --- a/source/css/_common/outline/sidebar/sidebar-toggle.styl +++ b/source/css/_common/outline/sidebar/sidebar-toggle.styl @@ -11,10 +11,6 @@ +tablet-mobile() { opacity: $b2t-opacity-hover; - - if (!hexo-config('sidebar.onmobile')) { - display: none; - } } } diff --git a/source/css/_common/outline/sidebar/sidebar.styl b/source/css/_common/outline/sidebar/sidebar.styl index d2660fd..5cc0226 100644 --- a/source/css/_common/outline/sidebar/sidebar.styl +++ b/source/css/_common/outline/sidebar/sidebar.styl @@ -6,12 +6,6 @@ } position: fixed; top: 0; - - +tablet-mobile() { - if (!hexo-config('sidebar.onmobile')) { - display: none; - } - } } .sidebar-inner {