husstanden/templates/layout/includes/side_nav.html
2019-04-25 18:07:46 +01:00

109 lines
3.1 KiB
HTML

<style>
#sidenav {
background-color: #B507DB;
border-radius: 4px;
z-index: 100;
display: flex;
flex-direction: column;
max-width: 100%;
height: 100%;
}
#sidenav div {
display: flex;
flex-direction: column;
}
#sidenav a, #sidenav h4 {
color: white;
}
.navlist div, .navlist div > a {
display: flex;
flex-grow: 1;
}
.navlist div > a > span {
flex-grow: 1;
}
.navlist div > a > i:last-child {
justify-content: flex-end;
}
.navlist div > a > * {
margin-left: 10px;
margin-right: 10px;
}
.hidden {
display: none !important;
}
</style>
<div class="d-flex flex-column" id="sidenav">
<div class="top">
<!-- Here be logo area -->
<!-- <img alt="Logo" src="{{ url_for('static', filename='img/logo.svg') }}" height="40px"/> -->
</div>
<div class="navlist">
<!-- Here be dropdown menus -->
<div class="p-2"> <!-- Padding -->
<div class="flex-column">
<div> <!-- Collection -->
<a href="#dash">
<i class="fa fa-chart-bar"></i><span>Dashboard</span>
<i class="fas fa-chevron-right"></i>
</a>
<div class="hidden"> <!-- Hidden until clicked #dash -->
<div class="flex-column">
<div>
<a href="#dash-test">Test</a> <!-- TODO: Add dot prefix -->
</div>
<div>
<a href="#dash-demo">Demo</a>
</div>
</div>
</div>
</div>
<div>
<h4>Title card</h4> <!-- TODO: Padding and such -->
</div>
<div>
<a href="#bills">
<i class="fa fa-chart-bar"></i><span>Bills</span>
<i class="fas fa-chevron-right"></i>
</a>
<div class="hidden">
<ul>
<li>
<a href="#bills-bills">Bills</a>
</li>
<li>
<a href="#bills-log">Log</a>
</li>
</ul>
</div>
</div>
<div>
<a href="#recieps">
<i class="fa fa-chart-bar"></i><span>Recieps</span>
<i class="fas fa-chevron-right"></i>
</a>
<div class="hidden">
<ul>
<li>
<a href="#recieps-recieps">Recieps</a>
</li>
<li>
<a href="#recieps-log">Log</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>