feat: implement collapsible sidebar

chore: basic sidebar toggle button
chore: update compiled css
This commit is contained in:
Xin
2023-08-20 00:42:46 +01:00
parent 1c7962494d
commit 15d3a4da5e
7 changed files with 163 additions and 32 deletions

View File

@ -1,6 +1,8 @@
---
title: Guide
weight: 2
sidebar:
open: true
---
Guide to using Hextra to build your site.

View File

@ -162,6 +162,7 @@
"dark:border-yellow-200/30",
"dark:contrast-more:border-neutral-400",
"dark:focus:bg-dark",
"dark:hover:bg-gray-100/5",
"dark:hover:bg-neutral-900",
"dark:hover:bg-primary-100/5",
"dark:hover:border-neutral-700",
@ -197,6 +198,7 @@
"data-[state=selected]:text-primary-600",
"decoration-from-font",
"duration-200",
"ease-in-out",
"filename",
"first:mt-0",
"flex",
@ -228,6 +230,7 @@
"h-4",
"h-5",
"h-7",
"h-[18px]",
"h-full",
"hamburger-menu",
"hextra-card",
@ -235,10 +238,12 @@
"hextra-filetree",
"hextra-filetree-folder",
"hextra-footer",
"hextra-sidebar-collapsible-button",
"hextra-toc",
"hidden",
"highlight",
"hover:bg-gray-100",
"hover:bg-gray-800/5",
"hover:bg-primary-50",
"hover:bg-slate-50",
"hover:border-gray-200",
@ -330,6 +335,7 @@
"min-h-[calc(100vh-4rem)]",
"min-h-[calc(100vh-var(--navbar-height))]",
"min-w-0",
"min-w-[18px]",
"min-w-[24px]",
"min-w-full",
"ml-1",
@ -358,12 +364,14 @@
"opacity-80",
"open",
"order-last",
"origin-center",
"overflow-auto",
"overflow-hidden",
"overflow-x-auto",
"overflow-x-hidden",
"overflow-y-auto",
"overscroll-contain",
"p-0.5",
"p-1.5",
"p-2",
"p-4",
@ -403,9 +411,11 @@
"rounded",
"rounded-lg",
"rounded-md",
"rounded-sm",
"rounded-t",
"rounded-xl",
"rtl:-ml-4",
"rtl:-rotate-180",
"rtl:before:right-0",
"rtl:left-1.5",
"rtl:left-3",
@ -481,6 +491,7 @@
"transition-all",
"transition-colors",
"transition-opacity",
"transition-transform",
"typesetting-article",
"underline",
"underline-offset-2",