Skip to content

Commit

Permalink
Expand mobile navigation to whole viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Jul 2, 2024
1 parent b4b7c5b commit 20a5d7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions scss/_patterns_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,14 @@ $spv-navigation-logo-bottom-position: 0.125rem; // 2px when 1rem is 16px
.p-navigation--reduced.has-menu-open {
height: 100vh;
overflow-y: hidden;
position: fixed;
width: 100vw;

@media (min-width: $breakpoint-navigation-threshold) {
height: auto;
overflow-y: visible;
position: static;
width: auto;
}

.p-navigation__banner .p-navigation__items {
Expand Down
15 changes: 11 additions & 4 deletions templates/docs/examples/patterns/navigation/reduced.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,16 @@ <h1>Ubuntu for desktops</h1>
</div>
</section>
</main>
{% endblock %}

<script>
{% include 'docs/examples/patterns/navigation/_script-sliding.js' %}
</script>
{% block script %}
<script>
{% include 'docs/examples/patterns/navigation/_script-sliding.js' %}
</script>
{% endblock %}

{% endblock %}
{% block style %}
<style>
body { margin: 0; }
</style>
{% endblock %}

0 comments on commit 20a5d7e

Please sign in to comment.