fixed navbar collapse on mobile
All checks were successful
ci/woodpecker/push/main Pipeline was successful
All checks were successful
ci/woodpecker/push/main Pipeline was successful
This commit is contained in:
parent
d1de0d218c
commit
c2714a6bc0
1 changed files with 5 additions and 3 deletions
|
@ -19,9 +19,6 @@
|
|||
|
||||
<!-- Navbar content -->
|
||||
<div class="collapse navbar-collapse" id="navbar-content">
|
||||
<script>
|
||||
$(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide"));
|
||||
</script>
|
||||
<div class="navbar-nav mr-auto" id="nav-items">
|
||||
{% if page.nav %}
|
||||
{% include {{ page.nav }} %}
|
||||
|
@ -29,6 +26,7 @@
|
|||
{% include {{ layout.nav }} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<span class="navbar-text custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="dark-mode">
|
||||
<label class="custom-control-label" for="dark-mode">🌙 Dark Mode</label>
|
||||
|
@ -42,5 +40,9 @@
|
|||
});
|
||||
</script>
|
||||
</span>
|
||||
|
||||
<script>
|
||||
$(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide"));
|
||||
</script>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue