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