husstanden/templates/layout/includes/side_nav.html

161 lines
3.9 KiB
HTML
Raw Normal View History

2019-03-29 15:14:45 +01:00
<style>
2019-04-25 22:13:44 +02:00
#sidenav-parent {
display: flex;
flex-direction: column;
height:100%;
min-height: 100%;
}
2019-03-29 15:14:45 +01:00
#sidenav {
2019-04-23 12:05:51 +02:00
background-color: #B507DB;
2019-03-29 15:14:45 +01:00
border-radius: 4px;
z-index: 100;
display: flex;
flex-direction: column;
max-width: 100%;
2019-04-25 22:13:44 +02:00
height: 100%;
2019-03-29 15:14:45 +01:00
}
2019-04-25 19:07:46 +02:00
#sidenav div {
2019-03-29 15:14:45 +01:00
display: flex;
flex-direction: column;
}
2019-04-25 22:13:44 +02:00
#sidenav h4 {
margin-top: 20px;
2019-03-29 15:14:45 +01:00
color: white;
}
2019-04-25 22:13:44 +02:00
#sidenav a {
color: #e9d9fc;
line-height: 1;
}
#sidenav a:hover {
color: white;
}
2019-04-25 19:07:46 +02:00
.navlist div, .navlist div > a {
2019-03-29 15:14:45 +01:00
display: flex;
flex-grow: 1;
2019-04-25 22:13:44 +02:00
text-decoration: none;
2019-03-29 15:14:45 +01:00
}
2019-04-25 19:07:46 +02:00
.navlist div > a > span {
2019-03-29 15:14:45 +01:00
flex-grow: 1;
}
2019-04-25 19:07:46 +02:00
.navlist div > a > i:last-child {
2019-03-29 15:14:45 +01:00
justify-content: flex-end;
}
2019-04-25 19:07:46 +02:00
.navlist div > a > * {
margin-left: 10px;
margin-right: 10px;
}
2019-04-25 22:13:44 +02:00
.navlist .item {
cursor: pointer;
padding-top: 3px;
padding-bottom: 3px;
}
#sidenav .flex-column .flex-column {
margin-left: 30px;
margin-right: 30px;
}
#sidenav .flex-column .flex-column > div {
padding-top: 5px;
padding-bottom: 5px;
padding-right: 30px;
padding-left: 30px;
}
#sidenav .flex-column .flex-column > div > a {
display: list-item;
list-style-type: disc;
}
.page.selected {
background-color: #9F07C1;
border-radius: 100px;
}
.downtab {
}
2019-03-29 15:14:45 +01:00
.hidden {
2019-04-25 19:07:46 +02:00
display: none !important;
2019-04-25 22:13:44 +02:00
overflow: hidden !important;
2019-03-29 15:14:45 +01:00
}
</style>
2019-04-25 22:13:44 +02:00
<div id="sidenav-parent">
2019-04-25 19:07:46 +02:00
<div class="d-flex flex-column" id="sidenav">
2019-03-29 15:14:45 +01:00
<div class="top">
<!-- Here be logo area -->
2019-04-25 19:07:46 +02:00
<!-- <img alt="Logo" src="{{ url_for('static', filename='img/logo.svg') }}" height="40px"/> -->
2019-03-29 15:14:45 +01:00
</div>
<div class="navlist">
<!-- Here be dropdown menus -->
<div class="p-2"> <!-- Padding -->
2019-04-25 19:07:46 +02:00
<div class="flex-column">
<div> <!-- Collection -->
2019-04-25 22:13:44 +02:00
<a class="item" onclick="toggleCategory(this)">
2019-03-29 15:14:45 +01:00
<i class="fa fa-chart-bar"></i><span>Dashboard</span>
<i class="fas fa-chevron-right"></i>
</a>
2019-04-25 22:13:44 +02:00
<div class="downtab hidden">
2019-04-25 19:07:46 +02:00
<div class="flex-column">
2019-04-25 22:13:44 +02:00
<div class="page">
<a href="#dash-test">Test</a>
2019-04-25 19:07:46 +02:00
</div>
2019-04-25 22:13:44 +02:00
<div class="page">
2019-03-29 15:14:45 +01:00
<a href="#dash-demo">Demo</a>
2019-04-25 19:07:46 +02:00
</div>
</div>
2019-03-29 15:14:45 +01:00
</div>
2019-04-25 19:07:46 +02:00
</div>
<div>
2019-04-25 22:13:44 +02:00
<h4>Title card</h4>
2019-04-25 19:07:46 +02:00
</div>
<div>
2019-04-25 22:13:44 +02:00
<a class="item" onclick="toggleCategory(this)">
2019-03-29 15:14:45 +01:00
<i class="fa fa-chart-bar"></i><span>Bills</span>
<i class="fas fa-chevron-right"></i>
</a>
2019-04-25 22:13:44 +02:00
<div class="downtab hidden">
<div class="flex-column">
<div class="page">
2019-03-29 15:14:45 +01:00
<a href="#bills-bills">Bills</a>
2019-04-25 22:13:44 +02:00
</div>
<div class="page">
2019-03-29 15:14:45 +01:00
<a href="#bills-log">Log</a>
2019-04-25 22:13:44 +02:00
</div>
</div>
2019-03-29 15:14:45 +01:00
</div>
2019-04-25 19:07:46 +02:00
</div>
<div>
2019-04-25 22:13:44 +02:00
<a class="item" onclick="toggleCategory(this)">
2019-03-29 15:14:45 +01:00
<i class="fa fa-chart-bar"></i><span>Recieps</span>
<i class="fas fa-chevron-right"></i>
</a>
2019-04-25 22:13:44 +02:00
<div class="downtab hidden">
<div class="flex-column">
<div class="page">
2019-03-29 15:14:45 +01:00
<a href="#recieps-recieps">Recieps</a>
2019-04-25 22:13:44 +02:00
</div>
<div class="page">
2019-03-29 15:14:45 +01:00
<a href="#recieps-log">Log</a>
2019-04-25 22:13:44 +02:00
</div>
</div>
2019-03-29 15:14:45 +01:00
</div>
2019-04-25 19:07:46 +02:00
</div>
</div>
2019-03-29 15:14:45 +01:00
</div>
</div>
2019-04-25 22:13:44 +02:00
</div>
2019-03-29 15:14:45 +01:00
</div>