Skip to content

Commit 5849660

Browse files
committed
chore: wip
1 parent 2c7e18e commit 5849660

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

resources/components/Dashboard/Sidebar.vue

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@
155155

156156
<ul role="list" class="mt-2 -mx-2 space-y-1">
157157
<li>
158-
<!-- Current: "bg-gray-50 text-blue-600", Default: "text-gray-700 hover:text-blue-600 hover:bg-gray-50" -->
159158
<RouterLink to="/models/users" class="sidebar-links">
160159
<span
161160
class="h-6 w-6 flex shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white text-[0.625rem] text-gray-400 font-medium dark:border-gray-600 group-hover:border-blue-600 group-hover:text-blue-600">U</span>
@@ -193,7 +192,6 @@
193192

194193
<ul role="list" class="mt-2 -mx-2 space-y-1">
195194
<li>
196-
<!-- Current: "bg-gray-50 text-blue-600", Default: "text-gray-700 hover:text-blue-600 hover:bg-gray-50" -->
197195
<RouterLink to="/dns" class="sidebar-links">
198196
<!-- <span class="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white text-gray-400 border-gray-200 dark:border-gray-600 group-hover:border-blue-600 group-hover:text-blue-600">U</span> -->
199197
<div
@@ -203,7 +201,6 @@
203201
</li>
204202

205203
<li>
206-
<!-- Current: "bg-gray-50 text-blue-600", Default: "text-gray-700 hover:text-blue-600 hover:bg-gray-50" -->
207204
<RouterLink to="/emails" class="sidebar-links">
208205
<!-- <span class="flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white text-gray-400 border-gray-200 dark:border-gray-600 group-hover:border-blue-600 group-hover:text-blue-600">U</span> -->
209206
<div
@@ -263,6 +260,21 @@
263260

264261
<style scoped>
265262
.sidebar-links {
266-
@apply text-blue-gray-600 dark:text-blue-gray-200 hover:text-blue-gray-800 duration-150 ease-in-out transition dark-hover:bg-gray-700 hover:bg-blue-gray-50 flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold
263+
@apply text-blue-gray-600 dark:text-blue-gray-200 hover:text-blue-gray-800 duration-150 ease-in-out transition dark-hover:bg-gray-700 hover:bg-blue-gray-50 flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold;
264+
}
265+
266+
/* Add styles for active state */
267+
.router-link-active {
268+
@apply bg-blue-gray-50 text-blue-600 dark:bg-gray-700 dark:text-blue-400;
269+
}
270+
271+
/* Style for the icons when link is active */
272+
.router-link-active div[class^="i-hugeicons"] {
273+
@apply text-blue-600 dark:text-blue-400;
274+
}
275+
276+
/* Style for the model section letters when active */
277+
.router-link-active span.h-6 {
278+
@apply border-blue-600 text-blue-600 dark:border-blue-400 dark:text-blue-400;
267279
}
268280
</style>

0 commit comments

Comments
 (0)