mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
dark mode sidebar button.
This commit is contained in:
@@ -49,7 +49,10 @@ export default function NavbarContent(): JSX.Element {
|
||||
<div className="col col--2">
|
||||
<button
|
||||
onClick={dispatch.toggleSidebar}
|
||||
className={styles.sidebarButton}
|
||||
className={clsx(
|
||||
styles.sidebarButton,
|
||||
hiddenDesktopSidebar && styles.expand,
|
||||
)}
|
||||
>
|
||||
{!hiddenDesktopSidebar ? <ChevronIcon /> : <HamburgerIcon />}
|
||||
</button>
|
||||
|
||||
@@ -63,6 +63,20 @@
|
||||
|
||||
width: 52px;
|
||||
height: 46px;
|
||||
|
||||
&.expand {
|
||||
svg,
|
||||
svg * {
|
||||
fill: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.expand) {
|
||||
svg,
|
||||
svg * {
|
||||
stroke: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%menu-common {
|
||||
|
||||
Reference in New Issue
Block a user