From d9044aa566802a0c1b998a2070e9ef86b513bdba Mon Sep 17 00:00:00 2001 From: triccsr Date: Thu, 19 Oct 2023 11:43:12 +0800 Subject: [PATCH 1/8] Feature: sidebar toggle button on Picses&Gemini --- .directory | 7 + layout/_partials/widgets.njk | 2 +- layout/_scripts/index.njk | 2 +- scripts/filters/minify.js | 2 +- source/css/_mixins.styl | 5 +- source/css/_schemes/Pisces/_sidebar.styl | 264 +++++++++++++++++------ source/css/main.styl | 2 + 7 files changed, 219 insertions(+), 65 deletions(-) create mode 100644 .directory diff --git a/.directory b/.directory new file mode 100644 index 000000000..6a18d0034 --- /dev/null +++ b/.directory @@ -0,0 +1,7 @@ +[Dolphin] +Timestamp=2023,10,19,10,25,46.932 +Version=4 +ViewMode=1 + +[Settings] +HiddenFilesShown=true diff --git a/layout/_partials/widgets.njk b/layout/_partials/widgets.njk index 4e5b2d31d..f47fa1cb4 100644 --- a/layout/_partials/widgets.njk +++ b/layout/_partials/widgets.njk @@ -1,6 +1,6 @@ {# Widgets with fixed position #} -{%- if theme.sidebar.display !== 'remove' and (theme.scheme === 'Muse' or theme.scheme === 'Mist') %} +{%- if theme.sidebar.display !== 'remove' and (theme.scheme === 'Muse' or theme.scheme === 'Mist' or theme.sidebar.on_mobile) %}