Add hover effect on sidebar items
This commit is contained in:
parent
f6cdd3d9bb
commit
80f2a47586
@ -1,5 +1,5 @@
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar p-3" id="sidebar">
|
||||
<div class="sidebar" id="sidebar">
|
||||
<!-- <h5>Sidebar</h5> -->
|
||||
<ul class="navbar-nav flex-column pb-5">
|
||||
% for item in menu:
|
||||
|
@ -24,6 +24,14 @@ body {
|
||||
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%);
|
||||
}
|
||||
|
@ -49,7 +49,7 @@
|
||||
</nav>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar p-3" id="sidebar">
|
||||
<div class="sidebar" id="sidebar">
|
||||
<!-- <h5>Sidebar</h5> -->
|
||||
<ul class="navbar-nav flex-column pb-5">
|
||||
<li class="nav-item">
|
||||
|
@ -24,6 +24,14 @@ body {
|
||||
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%);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user