-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcustom.css
More file actions
161 lines (144 loc) · 5.63 KB
/
custom.css
File metadata and controls
161 lines (144 loc) · 5.63 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* Override Mintlify/Starlight CSS variables for hover colors */
:root {
--sl-color-white: #000000 !important; /* Override white to dark gray for light mode */
}
/* Alternative: Target the exact selector Mintlify uses */
a:hover, a[aria-current="true"] {
color: #000000 !important; /* Your desired hover color */
}
/* For light mode specifically */
[data-theme="light"] a:hover,
[data-theme="light"] a[aria-current="true"] {
color: #000000 !important;
}
/* Fix navigation hover background width consistency */
/* Make all navigation hover backgrounds 100% width for consistency */
/* Override Tailwind's w-full class */
/* Target Mintlify sidebar navigation links - ensure full width */
/* Scope to sidebar only to avoid affecting top navigation tabs */
#sidebar-group a,
ul#sidebar-group a,
#sidebar-group li[id] a,
#sidebar-group a.group.flex.items-center.pr-3,
#sidebar-group a.group.flex.items-center {
width: 100% !important;
max-width: 100% !important;
}
/* Hover states - ensure width is maintained */
#sidebar-group a:hover,
ul#sidebar-group a:hover,
#sidebar-group li[id] a:hover,
#sidebar-group a.group.flex.items-center.pr-3:hover,
#sidebar-group a.group.flex.items-center:hover {
width: 100% !important;
max-width: 100% !important;
}
/* Target list items to ensure full width */
/* Scope to sidebar only to avoid affecting top navigation tabs */
#sidebar-group li,
ul#sidebar-group li,
#sidebar-group li[id].relative.scroll-m-4 {
width: 100% !important;
max-width: 100% !important;
}
/* Fix navigation hover text color - ensure dark text on light background */
/* Scope to sidebar only to avoid affecting top navigation tabs */
#sidebar-group a:hover,
ul#sidebar-group a:hover,
#sidebar-group li[id] a:hover,
#sidebar-group a.group.flex.items-center.pr-3:hover,
#sidebar-group a.group.flex.items-center:hover {
color: inherit !important;
}
/* Ensure navigation links maintain readable text color on hover in light mode */
[data-theme="light"] #sidebar-group a:hover,
[data-theme="light"] ul#sidebar-group a:hover,
[data-theme="light"] #sidebar-group li[id] a:hover,
[data-theme="light"] #sidebar-group a.group.flex.items-center.pr-3:hover,
[data-theme="light"] #sidebar-group a.group.flex.items-center:hover {
color: #1f2937 !important; /* Dark gray text for light backgrounds */
}
/* Fix top navigation tabs hover text color */
/* Target Mintlify navigation tabs using the actual class - override Tailwind hover classes */
a.nav-tabs-item:hover,
a.link.nav-tabs-item:hover,
.nav-tabs-item.group:hover {
color: inherit !important;
}
/* Light mode navigation tabs hover - override Tailwind's hover:text-primary */
[data-theme="light"] a.nav-tabs-item:hover,
[data-theme="light"] a.link.nav-tabs-item:hover,
[data-theme="light"] .nav-tabs-item.group:hover,
html[data-theme="light"] a.nav-tabs-item:hover,
html[data-theme="light"] a.link.nav-tabs-item:hover,
body[data-theme="light"] a.nav-tabs-item:hover,
body[data-theme="light"] a.link.nav-tabs-item:hover,
[data-mode="light"] a.nav-tabs-item:hover,
[data-mode="light"] a.link.nav-tabs-item:hover,
.light a.nav-tabs-item:hover,
.light a.link.nav-tabs-item:hover,
html:not([data-theme="dark"]) a.nav-tabs-item:hover,
html:not([data-theme="dark"]) a.link.nav-tabs-item:hover {
color: #1f2937 !important; /* Dark gray text for light backgrounds */
}
/* Prevent text wrapping in navigation tabs */
/* Also ensure tabs don't get forced to 100% width from sidebar rules */
.nav-tabs-item,
a.nav-tabs-item {
white-space: nowrap !important;
width: auto !important;
max-width: none !important;
}
/* Fix global hover text color in light theme - override any white text on hover */
/* Target all links and text elements that might have hover states */
/* Use very high specificity to override Tailwind and Mintlify defaults */
[data-theme="light"] a:hover,
[data-theme="light"] a:focus,
html[data-theme="light"] a:hover,
html[data-theme="light"] a:focus,
body[data-theme="light"] a:hover,
body[data-theme="light"] a:focus,
html[data-theme="light"] body a:hover,
html[data-theme="light"] body a:focus,
[data-theme="light"] a[class*="hover"]:hover,
[data-theme="light"] a[class*="text-white"]:hover,
[data-theme="light"] a[class*="text-gray"]:hover,
[data-theme="light"] a.link:hover,
[data-theme="light"] a[href]:hover,
[data-theme="light"] p a:hover,
[data-theme="light"] div a:hover,
[data-theme="light"] span a:hover,
[data-theme="light"] li a:hover,
[data-theme="light"] td a:hover,
[data-theme="light"] th a:hover {
color: #6b7280 !important; /* Medium gray text for light backgrounds - more visible than dark gray */
}
/* Override any Tailwind hover:text-white classes */
[data-theme="light"] a.hover\:text-white:hover,
[data-theme="light"] a[class*="hover:text-white"]:hover {
color: #6b7280 !important;
}
/* Ensure primary/accent colored links maintain their color on hover in light mode */
[data-theme="light"] a.text-primary:hover,
[data-theme="light"] a.text-accent:hover,
[data-theme="light"] a[class*="text-primary"]:hover,
[data-theme="light"] a[class*="text-accent"]:hover,
[data-theme="light"] a[class*="primary"]:hover {
color: #bd0249 !important; /* Use accent color for primary links */
}
/* Target content area links specifically - Mintlify content links */
[data-theme="light"] main a:hover,
[data-theme="light"] article a:hover,
[data-theme="light"] .content a:hover,
[data-theme="light"] [class*="content"] a:hover,
[data-theme="light"] [class*="markdown"] a:hover,
[data-theme="light"] [class*="prose"] a:hover {
color: #6b7280 !important;
}
/* Override any computed white color on hover - use attribute selector for inline styles */
html[data-theme="light"] a:hover {
color: #6b7280 !important;
}
img.nav-logo {
height: 128px;
}