Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidenav: support open/closed sections #970

Merged
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
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