Skip to content

Commit 71e306e

Browse files
authored
add active states to categorypanel (denoland#629)
1 parent bde785a commit 71e306e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

styles.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,20 @@ body:not(:has(.ddoc)) {
222222
/* Custom DDOC styles for the Deno documentation */
223223
.ddoc {
224224
@apply pt-0 !important;
225-
225+
226226
#categoryPanel {
227227
@apply border-r border-gray-000;
228+
@apply pt-4 !important;
229+
230+
li:hover {
231+
@apply bg-blue-50 rounded-md !important;
232+
> a {
233+
@apply no-underline !important;
234+
}
235+
}
236+
.active {
237+
@apply bg-blue-50 rounded-md !important;
238+
}
228239
}
229240

230241
.contextLink {
@@ -240,7 +251,7 @@ body:not(:has(.ddoc)) {
240251

241252
> ul {
242253
@apply border-l border-gray-000 !important;
243-
254+
244255
> li > a {
245256
@apply text-gray-3 hover:bg-blue-50 rounded-lg hover:no-underline py-1.5 px-3.5 !important;
246257
}

0 commit comments

Comments
 (0)