feat(meta): meta interface sidebar is now responsive #11
cargo devel CI / cargo CI (push) Successful in 1m56s Details

This commit is contained in:
Christoph J. Scherr 2024-09-11 22:43:09 +02:00
parent d74b8d7e66
commit 8cad7c4e83
2 changed files with 23 additions and 22 deletions

View File

@ -110,16 +110,18 @@
</ul>
</div>
<div class="container-fluid">
<div class="row">
<!-- basically everything but with some margin -->
<div class="d-flex flex-nowrap m-0 container-fluid border-collapse" style="min-height: 90vh;">
<div class="row mb-0 border-collapse">
<!-- side panel -->
<div class="d-flex flex-column flex-shrink-0 p-3 border-end" style="width: 280px;">
<div class="col-sm-2 border-end border-collapse pt-2" style="min-width: 26vw;">
<a href="/"
class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-decoration-none text-body-emphasis">
<svg class="bi pe-none me-2" width="40" height="32">
<use xlink:href="#vault"></use>
</svg>
<span class="fs-4">{{app_name}}</span>
{% block header_ext %}{% endblock %}
</a>
<hr>
<ul class="nav nav-pills flex-column mb-auto">
@ -168,32 +170,23 @@
</div>
</div>
<!-- basically everything but with some margin -->
<div class="col-lg-8 mx-auto p-4 py-md-5">
<header class="d-flex align-items-center pb-3 mb-5 border-bottom">
<div class="col-md-3 col-12 col-md-auto">
<a href="/" class="d-flex align-items-center text-body-emphasis text-decoration-none">
<svg class="bi me-2" width="40" height="32">
<use xlink:href="#vault" />
</svg>
<span class="fs-4">{{app_name}}</span>
</a>
<div class="col ms-3 mt-4">
<main class="d-flex flex-nowrap">
<!-- real content -->
<div class="container-fluid">
{% block main %}{% endblock %}
</div>
{% block header_ext %}{% endblock %}
</header>
<main>
{% block main %}{% endblock %}
</main>
<footer class="pt-5 my-5 text-body-secondary border-top">
Created by {{ author }} &copy; {{year}}
</footer>
</div>
</div>
</div>
<footer class="pt-2 pb-2 text-body-secondary text-center border-top
border-collapse">
Created by {{ author }} &copy; {{year}}
</footer>
<script src="https://getbootstrap.com/docs/5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>

View File

@ -1,3 +1,11 @@
body {
border-collapse: collapse;
}
.border-collapse {
border-collapse: collapse;
}
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;