-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathStyle.js
More file actions
49 lines (44 loc) · 1.43 KB
/
Style.js
File metadata and controls
49 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const style = {}
const sidebarWidth = 250
style.menu = {
position: 'fixed',
display: 'flex',
flexDirection: 'column',
top: 0,
bottom: 0,
left: 0,
width: sidebarWidth,
// match menu background
// prevents a white background when items are filtered out by search
background: '#1B1C1D',
overflowX: 'hidden',
// --- START OF READABILITY FIX ---
// Targets the medium screen width (~910px) identified in the issue
'@media only screen and (min-width: 768px) and (max-width: 910px)': {
'& .ui.vertical.menu .item': {
fontSize: '14px !important', // Increased from 12px for legibility
lineHeight: '1.6 !important', // Added breathing room between lines
paddingTop: '0.9em !important', // Increased vertical hit area
paddingBottom: '0.9em !important',
},
'& .ui.vertical.menu .header': {
fontSize: '1.1em !important', // Improved visual hierarchy for section titles
color: '#fff !important', // High contrast for headers
marginBottom: '0.5em !important',
},
'& .ui.vertical.menu .menu .item': {
color: 'rgba(255, 255, 255, 0.8) !important', // Increased text contrast (WCAG AA)
fontSize: '13px !important',
},
},
// --- END OF READABILITY FIX ---
}
style.sidebarMain = {
marginLeft: sidebarWidth,
minWidth: parseInt(sidebarWidth, 10) + 300,
}
style.main = {
...style.sidebarMain,
maxWidth: parseInt(sidebarWidth, 10) + 900,
}
export default style