Skip to content

Commit c6f7738

Browse files
committed
Tidy
1 parent 44c8909 commit c6f7738

1 file changed

Lines changed: 20 additions & 16 deletions

File tree

resources/css/core/layout.css

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,28 @@
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-gray-400;
49-
}
5041
}
51-
52-
/* Less distracting for single-subnav items */
53-
ul li ul li:only-child a.active {
54-
&::before {
55-
@apply border-s-gray-400;
42+
ul li ul li {
43+
a.active {
44+
/* [1] Add a little vertical line to indicate the "active" subnav item */
45+
&::before {
46+
content: '';
47+
position: absolute;
48+
left: -1px;
49+
@apply h-4 border-s border-s-black;
50+
}
51+
:where(.dark) &::before {
52+
@apply border-s-gray-400;
53+
}
5654
}
57-
:where(.dark) &::before {
58-
@apply border-s-gray-500;
55+
&:only-child a.active {
56+
/* [/2] Make the "active" subnav item less distracting for single-subnav items such as Assets/assets */
57+
&::before {
58+
@apply border-s-gray-400;
59+
}
60+
:where(.dark) &::before {
61+
@apply border-s-gray-500;
62+
}
5963
}
6064
}
6165

0 commit comments

Comments
 (0)