Skip to content

Commit

Permalink
style: change the docs nav and version dropdown menus padding for lar…
Browse files Browse the repository at this point in the history
…ge screens only
  • Loading branch information
razonyang committed Nov 16, 2022
1 parent 91cbb7a commit f0bebc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exampleSite/layouts/partials/hooks/docs/nav-begin.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="mb-3 pe-3">
<div class="mb-3 pe-lg-3">
<select class="form-select" aria-label="Docs Versions" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
<option value="" selected>v1</option>
<option value="https://hbs.razonyang.com/v0/">v0</option>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/docs/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h5 class="offcanvas-title" id="offcanvasDocsNavLabel">Browse docs</h5>
{{- define "walk-nav" -}}
{{- $section := .section -}}
{{- $page := .page -}}
<ul class="list-unstyled mb-2 w-100{{ if eq $section $page.FirstSection }} pe-3{{ end }}">
<ul class="list-unstyled mb-2 w-100{{ if eq $section $page.FirstSection }} pe-lg-3{{ end }}">
{{- $expand := default false .page.Site.Params.docs.nav.expand -}}
{{- $pages := sort (where $section.Pages "Params.navWeight" ">" 0) "Params.navWeight" "desc" -}}
{{- $pages = union $pages (sort $section.Pages "Title") -}}
Expand Down

0 comments on commit f0bebc4

Please sign in to comment.