Skip to content

Commit

Permalink
docs: fix mobile nav on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Apr 15, 2024
1 parent 60a38e4 commit f31d9ee
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions docs/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
{% block styles %}
{{ super () }}
<link rel="stylesheet" href="/assets/github-dark.min.css">

<style>
/* Hide TOC */
@media screen and (min-width: 60em) {
.md-sidebar--secondary {
display: none;
}
}

/* Hide navigation */
@media screen and (min-width: 76.25em) {
.md-sidebar--primary {
display: none;
}
}
</style>
{% endblock %}

{% block scripts %}
Expand All @@ -11,10 +27,6 @@
<script>hljs.highlightAll();</script>
{% endblock %}

<!-- Disable site nav on the home page -->
{% block site_nav %}
{% endblock %}

{% block hero %}

<div class="relative isolate overflow-hidden pt-14">
Expand Down Expand Up @@ -715,8 +727,7 @@ <h2 class="text-2xl mb-6">Built by</h2>
{% endblock %}

<!-- Override content -->
{% block content %}
{% endblock %}
{% block content %}{% endblock %}

<!-- Application footer -->
{% block footer %}
Expand Down

0 comments on commit f31d9ee

Please sign in to comment.