From 3b1fd0188a34f5fe8aeb6ee574a061ff401449e9 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 1 Dec 2021 11:24:51 -0500 Subject: [PATCH 1/2] Sidenav: support open/closed sections --- assets/scss/_styles_project.scss | 12 +----------- config.yaml | 1 + 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 1cdab56e4140..aa571a98e459 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -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; @@ -145,7 +135,7 @@ a:hover { // Contribution section in community page .community-contribution { text-align: center; - + & > p { font-size: $h3-font-size; font-weight: $headings-font-weight; diff --git a/config.yaml b/config.yaml index a8ac8187569e..5ed74e4ed88e 100644 --- a/config.yaml +++ b/config.yaml @@ -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: From f982904a2655dddf1dce584722da4741e68edfdf Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 1 Dec 2021 11:33:09 -0500 Subject: [PATCH 2/2] Docsy style fix --- assets/scss/_styles_project.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index aa571a98e459..0734920109a8 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -65,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;