From 408a853d78ba7114afdf9d5d56c617fe8357e937 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Thu, 18 Nov 2021 11:03:27 -0800 Subject: [PATCH 1/2] Fix mobile rendering of sidebar tree --- daprdocs/assets/scss/_sidebar-tree.scss | 26 +++++++++--- daprdocs/layouts/partials/sidebar-tree.html | 47 --------------------- daprdocs/themes/docsy | 2 +- 3 files changed, 21 insertions(+), 54 deletions(-) delete mode 100644 daprdocs/layouts/partials/sidebar-tree.html diff --git a/daprdocs/assets/scss/_sidebar-tree.scss b/daprdocs/assets/scss/_sidebar-tree.scss index 025114590..cd8e4f69d 100644 --- a/daprdocs/assets/scss/_sidebar-tree.scss +++ b/daprdocs/assets/scss/_sidebar-tree.scss @@ -30,8 +30,8 @@ } @include media-breakpoint-up(md) { - & > ul { - padding-left: .5rem; + & .ul-1 ul { + padding-left: 1.5em; } } @@ -85,7 +85,22 @@ & > .td-sidebar-nav__section { padding-top: .5rem; - padding-left: 0rem; + padding-left: 1.5rem; + } + + li i { // Layout of icons + padding-right: 0.5em; + &:before{ + display: inline-block; + text-align: center; + min-width: 1em; + } + } + + .td-sidebar-link.tree-root{ + font-weight: $font-weight-bold; + color: $td-sidebar-tree-root-color; + margin-bottom: 1rem; } } @@ -93,8 +108,7 @@ @include media-breakpoint-up(md) { padding-top: 4rem; background-color: $td-sidebar-bg-color; - padding-right: .5rem; - padding-left: .5rem; + padding-right: 1rem; border-right: 1px solid $td-sidebar-border-color; } @@ -144,4 +158,4 @@ #content-desktop {display: none;} #content-mobile {display: block;} } -} \ No newline at end of file +} diff --git a/daprdocs/layouts/partials/sidebar-tree.html b/daprdocs/layouts/partials/sidebar-tree.html deleted file mode 100644 index 6f155591c..000000000 --- a/daprdocs/layouts/partials/sidebar-tree.html +++ /dev/null @@ -1,47 +0,0 @@ -{{/* We cache this partial for bigger sites and set the active class client side. */}} -{{ $shouldDelayActive := ge (len .Site.Pages) 2000 }} -
- {{ if not .Site.Params.ui.sidebar_search_disable }} - - {{ end }} - -
-{{ define "section-tree-nav-section" }} -{{ $s := .section }} -{{ $p := .page }} -{{ $shouldDelayActive := .delayActive }} -{{ $active := eq $p.CurrentSection $s }} -{{ $show := or (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsDescendant $s) }} -{{ $sid := $s.RelPermalink | anchorize }} - -{{ end }} \ No newline at end of file diff --git a/daprdocs/themes/docsy b/daprdocs/themes/docsy index c36be07b2..43361e98f 160000 --- a/daprdocs/themes/docsy +++ b/daprdocs/themes/docsy @@ -1 +1 @@ -Subproject commit c36be07b2dcb9aa5aa01bad6ed0f8e111dd0452c +Subproject commit 43361e98f128082158c479ecb94008f29dc8f4e0 From c9767a3f68726c5c43c286a36139db14fc8a1833 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Thu, 18 Nov 2021 11:04:34 -0800 Subject: [PATCH 2/2] Update footer margins --- daprdocs/layouts/partials/footer.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daprdocs/layouts/partials/footer.html b/daprdocs/layouts/partials/footer.html index ea35b9dd9..e159a171d 100644 --- a/daprdocs/layouts/partials/footer.html +++ b/daprdocs/layouts/partials/footer.html @@ -1,15 +1,15 @@ {{ $links := .Site.Params.links }}