Skip to content

Commit

Permalink
Sidenav: support open/closed sections (#970)
Browse files Browse the repository at this point in the history
* Sidenav: support open/closed sections

* Docsy style fix
  • Loading branch information
chalin authored Dec 1, 2021
1 parent e5977a7 commit 7310d88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
14 changes: 3 additions & 11 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
}
}

.td-sidebar-nav-active-item {
color: $opentelemetry-purple;
&::before {
content: "\2022";
margin-left: -0.75rem;
padding-right: 0.25rem;
width: 0.5rem;
}
}

.l-buttons {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -75,6 +65,8 @@
}
}

.foldable-nav { padding-top: 0.5rem; } // TODO: propagate this fix to Docsy. Also class name should be prefixed with td

// Adjust the spacing of page-meta and page-TOC (https://github.com/open-telemetry/opentelemetry.io/pull/354)
.td-toc #TableOfContents {
padding-top: 1rem;
Expand Down Expand Up @@ -145,7 +137,7 @@ a:hover {
// Contribution section in community page
.community-contribution {
text-align: center;

& > p {
font-size: $h3-font-size;
font-weight: $headings-font-weight;
Expand Down
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ params:
navbar_logo: true
navbar_translucent_over_cover_disable: true
sidebar_menu_compact: true
sidebar_menu_foldable: true
sidebar_search_disable: true

links:
Expand Down

0 comments on commit 7310d88

Please sign in to comment.