Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the sidebar scrollable above 768px #305

Merged
merged 2 commits into from
Feb 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make the sidebar scrollable above 768px
rik authored Feb 11, 2023
commit 4ac5804715cafb6e15e94605be64c3d590a72e05
4 changes: 2 additions & 2 deletions docs/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<aside class="sidebar position-md-sticky px-4 col-lg-3 py-4 py-md-1 mb-4 mb-md-0 pb-1 bg-gray">
<aside class="sidebar position-md-sticky overflow-y-auto px-4 col-lg-3 py-4 py-md-1 mb-4 mb-md-0 pb-1 bg-gray">
<label class="d-flex mr-4 flex-items-center">
<span class="mr-4">Version</span>
<span class="mr-4">Version</span>
<select class="flex-1" onchange="window.location.href = this.value">
<option value="{{ site.baseurl }}/guide/introduction" {% if page.version == 1 %} selected{% endif %}>v1.x.x</option>
<option value="{{ site.baseurl }}/guide-v2/introduction" {% if page.version == 2 %} selected{% endif %}>v2.x.x</option>
2 changes: 1 addition & 1 deletion docs/custom.css
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ a {
min-width: var(--logo-width);
}

@media only screen and (max-device-width : 768px) {
@media only screen and (max-width : 768px) {
.main-header {
height: auto;
background: none;