Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import LoadingIcon from "../../styles/icons/loading.svg";
import Print from "../Print/Print.jsx";
import SidebarItem from "../SidebarItem/SidebarItem.jsx";

// Load Styling
import "./Sidebar.scss";

const versions = [5, 4];
const currentDocsVersion = 5;

Expand All @@ -28,9 +25,11 @@ export default function Sidebar({ className = "", pages, currentPage }) {
let group;

return (
<nav className={`sidebar ${className}`}>
<div className="sidebar__inner">
<div className="relative z-0 bg-white dark:bg-gray-100 ">
<nav
className={`hidden md:block w-full max-w-[280px] will-change-transform ${className}`}
>
<div className="p-6 sticky top-[-1px] overflow-y-auto max-h-screen">
<div className="relative z-0 bg-white dark:bg-gray-100">
<label htmlFor="docs-version" className="sr-only">
Select webpack version
</label>
Expand Down Expand Up @@ -75,7 +74,9 @@ export default function Sidebar({ className = "", pages, currentPage }) {
return (
<div key={page.url}>
{displayGroup ? (
<h4 className="sidebar__group">{group}</h4>
<h4 className="mt-6 ml-1 capitalize text-lg font-bold text-slate-800">
{group}
</h4>
) : null}

<SidebarItem
Expand Down
65 changes: 0 additions & 65 deletions src/components/Sidebar/Sidebar.scss

This file was deleted.

Loading