Add custom scroll on sidebar
This commit is contained in:
parent
80f2a47586
commit
e54da717df
@ -1,7 +1,7 @@
|
||||
<!-- 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,6 +20,27 @@ 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;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar" id="sidebar">
|
||||
<!-- <h5>Sidebar</h5> -->
|
||||
<ul class="navbar-nav flex-column pb-5">
|
||||
<ul class="navbar-nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-white" href="#">
|
||||
<i class="fa-solid fa-gauge me-3"></i> Dashboard
|
||||
|
@ -20,6 +20,27 @@ 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user