Skip to content

Commit 676d28c

Browse files
committed
docs(sidebar): improve readability and contrast at 910px
1 parent e0a42b5 commit 676d28c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/src/Style.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@ style.menu = {
1313
// prevents a white background when items are filtered out by search
1414
background: '#1B1C1D',
1515
overflowX: 'hidden',
16+
17+
// --- START OF READABILITY FIX ---
18+
// Targets the medium screen width (~910px) identified in the issue
19+
'@media only screen and (min-width: 768px) and (max-width: 910px)': {
20+
'& .ui.vertical.menu .item': {
21+
fontSize: '14px !important', // Increased from 12px for legibility
22+
lineHeight: '1.6 !important', // Added breathing room between lines
23+
paddingTop: '0.9em !important', // Increased vertical hit area
24+
paddingBottom: '0.9em !important',
25+
},
26+
'& .ui.vertical.menu .header': {
27+
fontSize: '1.1em !important', // Improved visual hierarchy for section titles
28+
color: '#fff !important', // High contrast for headers
29+
marginBottom: '0.5em !important',
30+
},
31+
'& .ui.vertical.menu .menu .item': {
32+
color: 'rgba(255, 255, 255, 0.8) !important', // Increased text contrast (WCAG AA)
33+
fontSize: '13px !important',
34+
},
35+
},
36+
// --- END OF READABILITY FIX ---
1637
}
1738

1839
style.sidebarMain = {

0 commit comments

Comments
 (0)