Skip to content

Commit 918381b

Browse files
committed
Fix arrow visibility
1 parent ab3cc70 commit 918381b

1 file changed

Lines changed: 37 additions & 6 deletions

File tree

src/css/custom.css

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,18 +269,23 @@ code {
269269
color: white !important;
270270
}
271271

272-
[data-theme='dark'] .menu__list-item .menu__link {
273-
color: #cbd5e1 !important; /* Slightly darker for hierarchy */
272+
[data-theme='dark'] .menu__list-item:not(.menu__list-item-collapsible) .menu__link {
273+
color: #cbd5e1 !important; /* Slightly darker for hierarchy - but not dropdowns */
274274
}
275275

276-
[data-theme='dark'] .menu__list-item .menu__link:hover {
276+
[data-theme='dark'] .menu__list-item:not(.menu__list-item-collapsible) .menu__link:hover {
277277
color: #f1f5f9 !important; /* Brighter on hover for better contrast */
278278
}
279279

280+
/* Ensure dropdown headers stay bright */
281+
[data-theme='dark'] .menu__list-item-collapsible > .menu__link {
282+
color: #f1f5f9 !important;
283+
}
284+
280285
/* Additional contrast for category labels */
281286
.menu__list-item-collapsible .menu__link {
282287
font-weight: 600;
283-
color: #94a3b8 !important; /* Darker color for dropdown headers */
288+
color: #f1f5f9 !important; /* Same as regular menu items */
284289
}
285290

286291
/* Ensure proper contrast for nested items */
@@ -563,12 +568,38 @@ html[data-theme='dark'] .menu__list-item:not(.menu__list-item-collapsible) .menu
563568

564569
/* Restore proper styling for collapsible/dropdown category headers in dark mode */
565570
html[data-theme='dark'] .menu__list-item-collapsible .menu__link {
566-
color: #94a3b8 !important; /* Darker grey for better distinction */
571+
color: #f1f5f9 !important; /* Same as regular menu items */
567572
background-color: transparent !important;
568573
font-weight: 600 !important;
569574
}
570575

571576
html[data-theme='dark'] .menu__list-item-collapsible .menu__link:hover {
572-
color: #cbd5e1 !important; /* Lighter on hover */
577+
color: #f1f5f9 !important; /* Keep same color on hover */
573578
background-color: rgba(51, 65, 85, 0.5) !important; /* Subtle background on hover */
574579
}
580+
581+
/* Fix dropdown arrow visibility - using Unicode arrow only */
582+
.menu__caret::after {
583+
content: '▶';
584+
color: #f1f5f9;
585+
font-size: 0.6rem;
586+
transition: transform 0.2s;
587+
display: inline-block;
588+
line-height: 1;
589+
}
590+
591+
/* Rotate arrow when expanded */
592+
.menu__list-item:not(.menu__list-item--collapsed) .menu__caret::after {
593+
transform: rotate(90deg);
594+
}
595+
596+
/* Ensure dark mode visibility */
597+
html[data-theme='dark'] .menu__caret::after {
598+
color: #f1f5f9 !important;
599+
}
600+
601+
/* Hover state */
602+
html[data-theme='dark'] .menu__list-item-collapsible:hover .menu__caret::after {
603+
color: #f1f5f9 !important;
604+
opacity: 1;
605+
}

0 commit comments

Comments
 (0)