Skip to content

Commit

Permalink
fix(layouts): add a top margin to the doc footer and remove borders f…
Browse files Browse the repository at this point in the history
…rom sidebars (#934)
  • Loading branch information
julien-deramond authored Nov 25, 2021
1 parent df23a3d commit 3473256
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions site/layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ partial "docs-subnav" . }}

<div class="container-xxl bd-layout">
<aside class="bd-sidebar border-end border-light border-1">
<aside class="bd-sidebar">
{{ partial "docs-sidebar" . }}
</aside>

Expand All @@ -17,9 +17,9 @@ <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
</div>

{{ if (eq .Page.Params.toc true) }}
<div class="bd-toc mt-4 mb-5 my-md-0 py-md-4 border-start border-light border-1">
<strong class="d-block h6 my-2 ps-lg-3 pb-2 border-bottom border-light border-1">On this page</strong>
<div class="ps-lg-3">{{ .TableOfContents }}</div>
<div class="bd-toc mt-4 mb-5 my-md-0 py-md-4 ps-xl-3 mb-lg-5">
<strong class="d-block h6 my-2 pb-2 border-bottom border-light border-1">On this page</strong>
{{ .TableOfContents }}
</div>
{{ end }}

Expand Down
8 changes: 4 additions & 4 deletions site/layouts/_default/guidelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ partial "guidelines-subnav" . }}

<div class="container-xxl bd-layout">
<aside class="bd-sidebar border-end border-light border-1">
<aside class="bd-sidebar">
{{ partial "guidelines-sidebar" . }}
</aside>

Expand All @@ -23,9 +23,9 @@ <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
</div>

{{ if (eq .Page.Params.toc true) }}
<div class="bd-toc mt-4 mb-5 my-md-0 py-md-4 border-start border-light border-1">
<strong class="d-block h6 my-2 ps-lg-3 pb-2 border-bottom border-light border-1">On this page</strong>
<div class="ps-lg-3">{{ .TableOfContents }}</div>
<div class="bd-toc mt-4 mb-5 my-md-0 py-md-4 ps-xl-3 mb-lg-5">
<strong class="d-block h6 my-2 pb-2 border-bottom border-light border-1">On this page</strong>
{{ .TableOfContents }}
</div>
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<footer class="bd-footer py-3 py-md-4 bg-dark">
<footer class="bd-footer py-3 py-md-4 mt-5 bg-dark">
<div class="container py-1">
<div class="row">
<div class="col-lg-3 mb-3">
Expand Down

0 comments on commit 3473256

Please sign in to comment.