Skip to content

Commit

Permalink
Merge pull request #2388 from dfinity/sidebar-navigation-update
Browse files Browse the repository at this point in the history
feat: update sidebar styling to provide increased separation
  • Loading branch information
jessiemongeon1 authored Jan 24, 2024
2 parents ef9fa8b + 4cb1d91 commit ff41856
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions src/css/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ div[class*="sidebar_"] {
}

div[class*="sidebar_"][class*="sidebarWithHideableNavbar_"] {
padding-top: 0px;
padding-top: 0;
}

aside[class*="docSidebarContainer_"] {
Expand All @@ -20,15 +20,47 @@ aside[class*="docSidebarContainer_"] {
flex-grow: 1;
}

.theme-doc-sidebar-item-link-level-1.menu__list-item {
font-weight: 900;
}

.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible {
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0;
}

.menu__link,
.menu__list-item-collapsible,
.navbar-sidebar__back {
border-radius: 8px;
}

.theme-doc-sidebar-item-category-level-2 {
.menu__list {
padding-left: 2rem;
}

&.menu__list-item {
font-weight: 450;

.menu__link--active {
font-weight: 500;
}
}
}

.theme-doc-sidebar-item-link-level-2 {
.menu__link {
font-weight: 450;
}
.menu__link--active {
font-weight: 500;
}
}

.theme-doc-sidebar-item-link-level-3 {
&.menu__list-item {
font-weight: 400;
font-weight: 300;

.menu__link--active {
font-weight: 500;
Expand All @@ -53,7 +85,7 @@ aside[class*="docSidebarContainer_"] {

.menu__list .menu__list,
.menu__list-item:not(:first-child) {
margin-top: 0.5rem;
margin-top: 1rem;
}
}

Expand Down

0 comments on commit ff41856

Please sign in to comment.