Skip to content

Commit

Permalink
update simplebar & fix mobile height
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Jan 26, 2024
1 parent 80de0a8 commit b8cb064
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions themes/aurora/assets/js/simplebar.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions themes/aurora/assets/scss/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ article {
text-rendering: optimizeLegibility;
line-height: 1.7rem;
flex: 0 1 $content-width;
flex-direction: row;
}

article.wide {
flex: 0 1 $content-width + $toc-width;
flex-direction: row;
}

@include mobile-only() {
[data-simplebar] {
max-height: 100vh;
}
article {
padding: 12px;
}
Expand Down
4 changes: 2 additions & 2 deletions themes/aurora/layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="/">Introduction</a>
</li>
</ul>

{{ $cur := . }}
{{ range $.Site.Sections.ByParam "order" }}
<span class="nav-title">{{ .Title }}</span>
Expand All @@ -28,4 +28,4 @@
{{ end }}
</div>
</div>
</nav>
</nav>
2 changes: 1 addition & 1 deletion themes/aurora/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{{ $tabs := resources.Get "js/tabs-script.js" }}
{{ $mobile := resources.Get "js/mobile.js" }}
{{ $scroll := resources.Get "js/scroll-offset.js" }}
{{ $simplebar := resources.Get "js/simplebar.min.js" }}
{{ $simplebar := resources.GetRemote "https://unpkg.com/simplebar@latest/dist/simplebar.min.js" }}
{{ $scripts := slice $externalLink $tabs $mobile $scroll $simplebar | resources.Concat "app.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $scripts.Permalink }}"></script>

0 comments on commit b8cb064

Please sign in to comment.