Compare commits
4 Commits
d5c6cad096
...
80935615dd
Author | SHA1 | Date | |
---|---|---|---|
80935615dd | |||
e01da22290 | |||
e3337cd502 | |||
d23f3357e3 |
@ -1,7 +1,7 @@
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar p-3" id="sidebar">
|
||||
<div class="sidebar" id="sidebar">
|
||||
<!-- <h5>Sidebar</h5> -->
|
||||
<ul class="navbar-nav flex-column pb-5">
|
||||
<ul class="navbar-nav flex-column">
|
||||
% for item in menu:
|
||||
% if any(role in item['roles'] for role in user_roles):
|
||||
<li class="nav-item">
|
||||
|
@ -20,10 +20,39 @@ body {
|
||||
overflow-y: auto; /* Make sidebar scrollable */
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-track {
|
||||
background: #bbb;
|
||||
border-radius: 3px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-thumb {
|
||||
background: #ddd;
|
||||
border-radius: 3px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.sidebar .navbar-nav {
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
.sidebar .navbar-nav .nav-item .active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sidebar .navbar-nav .nav-item :hover {
|
||||
background-color: rgba(0, 0, 0, 0.2); /* Darkens on hover */
|
||||
}
|
||||
|
||||
.sidebar .navbar-nav .nav-item .nav-link {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.sidebar.minimized {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
@ -64,7 +93,7 @@ body {
|
||||
left: 20px;
|
||||
background-color: #343a40;
|
||||
color: white;
|
||||
border: none;
|
||||
border: 1px solid #fff;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
|
Loading…
Reference in New Issue
Block a user