Skip to content

Commit 03b84c2

Browse files
committed
Make it easier to understand which subnav page you're on at a glance
1 parent e4f243d commit 03b84c2

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

resources/css/core/layout.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
ul li ul {
32-
@apply ml-3.5 pl-3.5 translate-x-px my-1.5 text-[0.8125rem] min-w-0 flex-col gap-1.5 border-s border-gray-300 dark:border-gray-600;
32+
@apply ml-3.5 pl-3.5 translate-x-px my-1.5 text-[0.8125rem] min-w-0 flex-col gap-1.5 border-s border-gray-300 dark:border-gray-700;
3333
}
3434

3535
ul li ul li a {
@@ -38,6 +38,15 @@
3838

3939
ul li ul li a.active {
4040
@apply text-black dark:text-white font-medium bg-transparent;
41+
&::before {
42+
content: '';
43+
position: absolute;
44+
left: -1px;
45+
@apply h-4 border-s border-s-black;
46+
}
47+
:where(.dark) &::before {
48+
@apply border-s-white;
49+
}
4150
}
4251

4352
.section-title {

0 commit comments

Comments
 (0)