Compare commits
No commits in common. "80935615ddb0cf032095d686412636bd1b73b1fa" and "d5c6cad09658992a4c75ceea51a2efe58f5b7cd1" have entirely different histories.
80935615dd
...
d5c6cad096
@ -1,7 +1,7 @@
|
|||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<div class="sidebar" id="sidebar">
|
<div class="sidebar p-3" id="sidebar">
|
||||||
<!-- <h5>Sidebar</h5> -->
|
<!-- <h5>Sidebar</h5> -->
|
||||||
<ul class="navbar-nav flex-column">
|
<ul class="navbar-nav flex-column pb-5">
|
||||||
% for item in menu:
|
% for item in menu:
|
||||||
% if any(role in item['roles'] for role in user_roles):
|
% if any(role in item['roles'] for role in user_roles):
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
@ -20,39 +20,10 @@ body {
|
|||||||
overflow-y: auto; /* Make sidebar scrollable */
|
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 {
|
.sidebar .navbar-nav .nav-item .active {
|
||||||
font-weight: bold;
|
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 {
|
.sidebar.minimized {
|
||||||
transform: translateX(-100%);
|
transform: translateX(-100%);
|
||||||
}
|
}
|
||||||
@ -93,7 +64,7 @@ body {
|
|||||||
left: 20px;
|
left: 20px;
|
||||||
background-color: #343a40;
|
background-color: #343a40;
|
||||||
color: white;
|
color: white;
|
||||||
border: 1px solid #fff;
|
border: none;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
Reference in New Issue
Block a user