Fix responsive wrapping and collapsing of navbar

This commit is contained in:
s3lph 2023-01-04 04:26:43 +01:00
parent e79b7774af
commit 57139eedc8
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5

View file

@ -15,34 +15,39 @@
<script src="chaostreff.js"></script> <script src="chaostreff.js"></script>
</head> </head>
<body> <body>
<header class="navbar navbar-expand-sm navbar-dark bg-dark"> <header class="navbar navbar-expand-lg navbar-dark bg-dark">
<nav class="container-fluid"> <nav class="container-fluid">
<a class="navbar-brand" href="#">{{ h_pagetitle }}</a> <a class="navbar-brand" href="#">{{ h_pagetitle }}</a>
<ul class="navbar-nav navbar-expand me-auto"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-collapse" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<li class="nav-item"><a href="#spaces" class="nav-link">{{ h_spaces }}</a></li> <span class="navbar-toggler-icon"></span>
<li class="nav-item"><a href="#contact" class="nav-link">{{ h_contact }}</a></li> </button>
<li class="nav-item me-auto"><a href="#services" class="nav-link">{{ h_services }}</a></li> <div class="collapse navbar-collapse" id="navbar-collapse">
<li class="nav-item dropdown ms-auto"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown-language" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <li class="nav-item"><a href="#spaces" class="nav-link">{{ h_spaces }}</a></li>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16"> <li class="nav-item"><a href="#contact" class="nav-link">{{ h_contact }}</a></li>
<!-- <li class="nav-item"><a href="#services" class="nav-link">{{ h_services }}</a></li>
https://icons.getbootstrap.com/icons/translate/ <li class="nav-item dropdown">
Copyright (c) 2011-2023 The Bootstrap Authors <a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown-language" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Licensed under the MIT license <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-translate" viewBox="0 0 16 16">
https://github.com/twbs/bootstrap/blob/main/LICENSE <!--
--> https://icons.getbootstrap.com/icons/translate/
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> Copyright (c) 2011-2023 The Bootstrap Authors
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> Licensed under the MIT license
</svg> https://github.com/twbs/bootstrap/blob/main/LICENSE
{{ h_language }} -->
</a> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
<ul class="dropdown-menu dropdown-menu-dark dropdown-menu-end" aria-labelledby="navbar-dropdown-language"> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
{% for language, name in languages.items() %} </svg>
<li><a rel="self" href="/{{ language }}" class="{% if language == lang %}active{% endif %} dropdown-item" alt="{{ name }}" title="{{ name }}">{{ name }}</a></li> {{ h_language }}
{% endfor %} </a>
</ul> <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbar-dropdown-language">
</li> {% for language, name in languages.items() %}
</ul> <li><a rel="self" href="/{{ language }}" class="{% if language == lang %}active{% endif %} dropdown-item" alt="{{ name }}" title="{{ name }}">{{ name }}</a></li>
{% endfor %}
</ul>
</li>
</ul>
</div>
</nav> </nav>
</header> </header>
<main class="container-fluid"> <main class="container-fluid">
@ -94,7 +99,7 @@
<section id="contact"> <section id="contact">
<h2 class="mt-2-lg mb-1-lg">{{ h_contact }}</h2> <h2 class="mt-2-lg mb-1-lg">{{ h_contact }}</h2>
<p> <p>
{{ contact_table_link}} {{ contact_table_link }}
</p> </p>
<p> <p>
{{ contact_swiss_chaos }} {{ contact_swiss_chaos }}