From a26b2a1fc817828b8c95541443d1a714099c3e2c Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 26 Apr 2024 22:21:25 +0800 Subject: [PATCH] Update docs of sidebar --- source/docs/theme-settings/index.md | 2 +- source/docs/theme-settings/sidebar.md | 31 +++++++++++++++++++-------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/source/docs/theme-settings/index.md b/source/docs/theme-settings/index.md index a38491cb..418500bc 100644 --- a/source/docs/theme-settings/index.md +++ b/source/docs/theme-settings/index.md @@ -63,7 +63,7 @@ The `prefers-color-scheme` CSS media feature is used to bring Dark Mode to all 4 {% caniuse prefers-color-scheme @ current,past_1,past_2,past_3,past_4,past_5 %} -Theme NexT automatically shows Dark Mode if the OS prefered theme is dark. It's supported by macOS Mojave, iOS 13 and Android 10 or later. Relevant docs: +Theme NexT automatically shows Dark Mode if the OS preferred theme is dark. It's supported by macOS Mojave, iOS 13 and Android 10 or later. Relevant docs: [How to use Dark Mode on your Mac](https://support.apple.com/en-us/HT208976) [Use Dark Mode on your iPhone, iPad, or iPod touch](https://support.apple.com/en-us/HT210332) [Dark theme | Android Developers](https://developer.android.com/guide/topics/ui/look-and-feel/darktheme) diff --git a/source/docs/theme-settings/sidebar.md b/source/docs/theme-settings/sidebar.md index 4114cc1f..6ca0e890 100644 --- a/source/docs/theme-settings/sidebar.md +++ b/source/docs/theme-settings/sidebar.md @@ -7,7 +7,7 @@ description: NexT User Docs – Theme Settings – Sidebar By default sidebar only shows in posts (have a table of content), and is placed in left side. You can change it by editing values under `sidebar` setting in {% label primary@NexT config file %}. -Sidebar has several options, including `position`, `width`, `display`, `padding` and `offset`. +Sidebar has several options, including `position`, `width_expanded`, `width_dual_column`, `display`, `padding` and `offset`. {% tabs setting-sidebar %} @@ -24,19 +24,32 @@ sidebar: - -You can change sidebar width by specify `sidebar.width` setting in pixels, for example: + +You can change sidebar width by specify `sidebar.width_expanded` setting in pixels, for example: ```yml NexT config file sidebar: - width: 300 + width_expanded: 320 ``` {% note info %} -This option is commented out by default and values are: +This option is applicable to: +* Muse and Mist scheme +* Mobile of Pisces and Gemini scheme -* For Muse | Mist schemes: `320` -* For Pisces | Gemini schemes: `240` +{% endnote %} + + + +You can change sidebar width by specify `sidebar.width_dual_column` setting in pixels, for example: + +```yml NexT config file +sidebar: + width_dual_column: 240 +``` + +{% note info %} +This option is applicable to desktop of Pisces and Gemini scheme. {% endnote %} @@ -75,8 +88,8 @@ sidebar: offset: 12 ``` -{% note danger %} -For now only Pisces / Gemini Schemes supports `offset` setting under **6.0.x** version or later. +{% note info %} +This option is applicable to Pisces and Gemini scheme. {% endnote %}