Skip to content

Commit e98393c

Browse files
committed
Updated UI 2.7
Signed-off-by: Someshdiwan <[email protected]>
1 parent ba65f70 commit e98393c

File tree

1 file changed

+50
-3
lines changed

1 file changed

+50
-3
lines changed

site/assets/style.css

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,54 @@ body {
9999
visibility: visible;
100100
}
101101

102-
/* 7. Sidebar */
102+
/* 8. Sidebar Links */
103+
.sidebar-link {
104+
display: flex;
105+
align-items: center;
106+
padding: 0.75rem 1rem;
107+
color: var(--primary-color);
108+
text-decoration: none;
109+
border-radius: 6px;
110+
margin-bottom: 0.75rem;
111+
transition: transform 0.2s, background-color 0.2s;
112+
}
113+
114+
.sidebar-link i {
115+
margin-right: 0.75rem;
116+
}
117+
118+
.sidebar-link:hover {
119+
transform: scale(1.03);
120+
background-color: var(--hover-bg);
121+
}
122+
123+
.sidebar-link.active {
124+
color: var(--active-color);
125+
font-weight: bold;
126+
}
127+
128+
/* Remove underline from icon, apply only to text */
129+
.sidebar-link.active i {
130+
text-decoration: none; /* Ensure icon has no underline */
131+
}
132+
133+
.sidebar-link.active::after {
134+
content: "";
135+
position: absolute;
136+
left: 2.5rem; /* Adjust to start after the icon (2.5rem accounts for icon + margin) */
137+
right: 1rem;
138+
bottom: 0;
139+
height: 2px;
140+
background: var(--active-color);
141+
transform: scaleX(0);
142+
transition: transform 0.2s ease;
143+
}
144+
145+
.sidebar-link.active:hover::after {
146+
transform: scaleX(1);
147+
}
148+
149+
/* 7. Sidebar
103150
.sidebar {
104151
width: 200px;
105152
height: 100vh;
@@ -118,7 +165,7 @@ body {
118165
transform: translateX(-100%);
119166
}
120167
121-
/* 8. Sidebar Links */
168+
*//* 8. Sidebar Links *//*
122169
.sidebar-link {
123170
display: flex;
124171
align-items: center;
@@ -143,7 +190,7 @@ body {
143190
color: var(--active-color);
144191
font-weight: bold;
145192
text-decoration: underline;
146-
}
193+
}*/
147194

148195
/* 9. Toggle Button (Fallback) */
149196
.toggle-btn {

0 commit comments

Comments
 (0)