generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstyle.css
More file actions
256 lines (221 loc) · 7.16 KB
/
style.css
File metadata and controls
256 lines (221 loc) · 7.16 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/* Left sidebar vertical navigation - more compact */
/* Reduce font size for sidebar like before */
#sidebar * {
font-size: 12px !important;
}
/* Reduce vertical padding for sidebar navigation items */
#sidebar .sidebar-title,
#sidebar a,
#sidebar-content a,
.sidebar-title {
padding-top: 0.125rem !important;
padding-bottom: 0.125rem !important;
}
/* Reduce spacing for sidebar group sections */
#sidebar .sidebar-group-header,
.sidebar-group-header {
padding-top: 0.3rem !important;
padding-bottom: 0.1rem !important; /* Reduce bottom padding for tighter hierarchy */
}
/* Target the margin below headers to tighten hierarchy */
#sidebar .mb-3\.5 {
margin-bottom: 0.15rem !important; /* Much smaller gap between header and first item */
}
#sidebar [class*="mb-2.5"] {
margin-bottom: 0.1rem !important; /* Even tighter on large screens */
}
/* Eliminate ALL top padding/margin */
#sidebar,
#sidebar-content {
line-height: 1.3 !important;
padding-top: 0 !important; /* Complete elimination */
margin-top: 0 !important;
}
/* Target the section containers directly - reduce spacing between sections */
#sidebar .mt-6 {
margin-top: 0.75rem !important; /* Reduce from 1.5rem to 0.75rem */
}
#sidebar .lg\\:mt-8 {
margin-top: 1rem !important; /* Reduce from 2rem to 1rem on large screens */
}
/* Alternative approach - target div containers within sidebar */
#sidebar > div > div.mt-6,
#sidebar-content > div > div.mt-6 {
margin-top: 0.75rem !important;
}
@media (min-width: 1024px) {
#sidebar .lg\\:mt-8 {
margin-top: 1rem !important; /* Even more compact on large screens */
}
}
/* Nuclear approach - eliminate ALL top spacing */
#sidebar > *:first-child,
#sidebar-content > *:first-child,
#sidebar *:first-child {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* Target any potential containers */
#sidebar nav,
#sidebar div,
#sidebar ul,
#sidebar li:first-child {
margin-top: 0 !important;
padding-top: 0 !important;
}
#sidebar * {
line-height: 1.3 !important;
}
/* Fix vertical centering of navigation items and hover states */
#sidebar ul li a.group {
display: flex !important;
align-items: center !important;
line-height: 1 !important; /* Override line-height for perfect centering */
padding-top: 0.125rem !important; /* Half the original padding */
padding-bottom: 0.125rem !important;
}
/* Specifically target the inner content div for alignment */
#sidebar a.group > div.flex-1 {
display: flex !important;
align-items: center !important;
line-height: 1 !important;
}
/* Ensure selected/hover state background is perfectly centered */
#sidebar [class*="bg-primary"] {
align-items: center !important;
line-height: 1 !important;
}
/* Fix method pill spacing and text centering */
#sidebar .method-nav-pill {
margin-right: 0.5rem !important; /* Add space between pill and text */
min-width: 2.5rem !important; /* Ensure wider pills don't overlap */
}
/* Fix vertical centering of text inside pills - use height and line-height trick */
#sidebar .method-nav-pill span[class*="px-1"] {
height: 1.25rem !important; /* Set explicit height */
line-height: 1.25rem !important; /* Match line-height to height for perfect centering */
display: inline-block !important;
vertical-align: middle !important;
}
/* Fix expandable items - equal top and bottom spacing */
#sidebar div.group.flex.items-center {
padding-top: 0.125rem !important; /* Match reduced padding of other nav items */
padding-bottom: 0.125rem !important; /* Equal top and bottom */
}
/* Fix centering of robot icon SVG within its container */
div.mr-4.p-1 {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Alternative selector for the robot icon container */
a[href*="llms-full.txt"] div.rounded-md.p-1 {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Adjust the SVG mask position to center it properly */
a[href*="llms-full.txt"] svg[style*="robot.svg"] {
-webkit-mask-position: center center !important;
mask-position: center center !important;
transform: translateY(1px) !important; /* Fine-tune vertical position */
}
/* Fix agent card image spacing */
[data-component-part="card-title"] [data-rmiz] {
margin-right: 12px !important;
display: inline-block !important;
vertical-align: middle !important;
width: 48px !important;
height: 48px !important;
flex-shrink: 0 !important;
}
/* Ensure images maintain exact size */
[data-component-part="card-title"] [data-rmiz] img {
width: 48px !important;
height: 48px !important;
object-fit: cover !important;
}
/* Keep agent card titles on one line */
[data-component-part="card-title"] > span[style*="display: flex"] {
flex-wrap: nowrap !important;
align-items: center !important;
}
/* Reduce text sizes for better fit */
[data-component-part="card-title"] {
font-size: 14px !important;
}
[data-component-part="card-content"] {
font-size: 13px !important;
line-height: 1.4 !important;
}
/* Agent card plugin pill styling */
.agent-plugin-pill {
display: inline-block;
padding: 3px 10px;
background: transparent;
border: 1px solid rgba(156, 163, 175, 0.3);
border-radius: 14px;
font-size: 11px;
color: #6b7280;
margin-left: 8px;
vertical-align: middle;
height: 24px;
line-height: 18px;
white-space: nowrap;
width: auto;
min-width: fit-content;
}
/* Stacked circles for plugin count */
.agent-plugin-stack {
display: inline-block;
position: relative;
margin-left: 12px;
width: 43px;
height: 24px;
vertical-align: middle;
}
.agent-plugin-circle {
position: absolute;
width: 24px;
height: 24px;
border: none;
border-radius: 50%;
background: transparent;
font-size: 10px;
display: flex;
align-items: center;
justify-content: center;
color: #6b7280;
font-weight: 500;
}
.agent-plugin-circle:nth-child(1) {
z-index: 3;
left: -4px;
}
.agent-plugin-circle:nth-child(2),
.agent-plugin-circle:nth-child(3) {
display: none;
}
/* SVG background for stacked circles outline */
.agent-plugin-stack::before {
content: '';
position: absolute;
width: 50px;
height: 24px;
left: -7px;
top: 0;
background-image: url("data:image/svg+xml,%3Csvg width='50' height='24' viewBox='0 0 50 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath id='clip'%3E%3Crect x='0' y='0' width='50' height='24'/%3E%3C/clipPath%3E%3Cmask id='mask'%3E%3Crect x='0' y='0' width='50' height='24' fill='white'/%3E%3Ccircle cx='15' cy='12' r='10.5' fill='black'/%3E%3Ccircle cx='18.5' cy='12' r='10.5' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Cg fill='none' stroke='%239CA3AF' stroke-width='1' opacity='0.5'%3E%3Ccircle cx='15' cy='12' r='11'/%3E%3Ccircle cx='18.5' cy='12' r='11' mask='url(%23mask)'/%3E%3Ccircle cx='22' cy='12' r='11' mask='url(%23mask)'/%3E%3C/g%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
pointer-events: none;
z-index: 0;
}
/* Navbar "Join Community" button hover - match GitHub button blue text */
a[href*="discord.gg"]:hover {
color: #0B35F1 !important;
}
/* Make Discord icon turn blue on hover (Mintlify uses mask-based icons) */
a[href*="discord.gg"]:hover * {
color: #0B35F1 !important;
background-color: currentColor !important;
}