-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstyle.css
More file actions
223 lines (192 loc) · 7.12 KB
/
Copy pathstyle.css
File metadata and controls
223 lines (192 loc) · 7.12 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
/*
* OpenRouter Docs — Bauhaus theme overrides
*
* Custom CSS for Mintlify to align with the bauhaus design system.
* Uses Mintlify's exposed ID/element selectors for targeted styling.
*
* Brand palette:
* Ink #03080A Cloud #FCFCFE Grape #7624F4
* Volt #C8FF00 Coral #FF6849 Royal #035ADE
*/
/* ── Code font: Geist Mono ── */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');
/*
* Inverse semantic pair mirrors packages/frontend/components/v2/theme.css.
* Mintlify is a separate app, so its generated tooltip DOM uses the same
* light Ink/Cloud and dark Cloud/Ink values through RGB channel variables.
*/
:root {
--inverse: 3 8 10;
--inverse-foreground: 252 252 254;
--tooltip-background: var(--inverse);
--tooltip-foreground: var(--inverse-foreground);
}
code,
pre,
pre code,
.code-block code,
[class*="code"] code {
font-family: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}
/* ── Text selection: accent tint per DESIGN.md ── */
::selection {
background: rgb(118 36 244 / 0.14);
}
.dark ::selection,
html.dark ::selection {
background: rgb(200 255 0 / 0.14);
color: inherit;
}
/* ── Dark-mode accent swap: Volt (#C8FF00 = rgb(200 255 0)) per DESIGN.md ──
* Mintlify + Tailwind use space-separated RGB: rgb(var(--primary-light) / alpha).
* Override accent in dark mode from Grape to Volt. */
.dark,
[data-theme="dark"],
html.dark {
--primary: 200 255 0;
--primary-light: 200 255 0;
--primary-dark: 200 255 0;
--light-primary: 200 255 0;
--primary-foreground: 3 8 10;
--inverse: 252 252 254;
--inverse-foreground: 3 8 10;
/* ── Dark-mode border: Cloud at 14% per DESIGN.md ── */
--default-border-color: rgb(252 252 254 / 0.14);
}
/* ── Border radius: bauhaus 4/6/8px scale ── */
#navbar {
border-radius: 0;
}
/* Sidebar active item */
#sidebar a[aria-current="page"],
nav[aria-label="Pages"] a[aria-current="page"] {
border-radius: 8px;
}
/* Cards and code blocks */
[data-component-part="code-block-root"] {
border-radius: 8px;
}
/* ── Link styling per DESIGN.md ──
* underline at 40% opacity of current color, full on hover, offset 2px */
a:not([class]) {
text-decoration-thickness: 1px;
text-underline-offset: 2px;
text-decoration-color: rgb(0 0 0 / 0.4);
}
a:not([class]):hover {
text-decoration-color: currentColor;
}
.dark a:not([class]),
html.dark a:not([class]) {
text-decoration-color: rgb(255 255 255 / 0.4);
}
.dark a:not([class]):hover,
html.dark a:not([class]):hover {
text-decoration-color: currentColor;
}
/* ── Sidebar badges: outline style ── */
.nav-tag-pill-text {
background: transparent !important;
color: rgb(0 0 0 / 0.5) !important;
border: 1px solid rgb(0 0 0 / 0.2) !important;
}
.dark .nav-tag-pill-text,
html.dark .nav-tag-pill-text {
background: transparent !important;
color: rgb(252 252 254 / 0.5) !important;
border: 1px solid rgb(252 252 254 / 0.2) !important;
}
/* Match the home navbar logo height (h-6 / 1.5rem). */
.nav-logo {
height: 1.5rem;
}
/* ── Sidebar expand chevrons: raise dark-mode contrast ──
* Collapsible group toggles render a caret whose default dark tone
* (gray-600 on Ink) is nearly invisible, so it isn't clear which items
* have subsections. Derive the caret from Cloud via the DESIGN.md opacity
* scale: muted-foreground (Cloud `a0`) at rest, full Cloud (foreground) on
* hover — no custom hex outside the brand palette. */
.dark nav[aria-label="Pages"] button[aria-expanded] svg.transition-transform,
html.dark nav[aria-label="Pages"] button[aria-expanded] svg.transition-transform {
color: rgb(252 252 254 / 0.627);
}
.dark nav[aria-label="Pages"] button[aria-expanded]:hover svg.transition-transform,
html.dark nav[aria-label="Pages"] button[aria-expanded]:hover svg.transition-transform {
color: rgb(252 252 254);
}
/* ── Sidebar expand chevrons: enlarge for legibility ──
* The default caret (w-2 ≈ 8px) is easy to miss; bump its footprint so it
* reads clearly as an expandable affordance. */
nav[aria-label="Pages"] button[aria-expanded] svg.transition-transform {
width: 0.625rem;
height: 0.625rem;
}
/* ── Tooltips: inverse surface pairing ──
* Mintlify has a foreground variable for Radix tooltips but no matching
* background variable, so both values are mirrored here from the inverse pair.
* Radix opens tooltips as "delayed-open" on a normal hover but "instant-open"
* when moving between triggers within its skip-delay window; cover both. */
[data-radix-popper-content-wrapper]
> div[data-state="delayed-open"],
[data-radix-popper-content-wrapper]
> div[data-state="instant-open"] {
background-color: rgb(var(--tooltip-background)) !important;
color: rgb(var(--tooltip-foreground)) !important;
}
/* ── Callout + code block alignment ──
* A code block that is the only child of a callout body carries Mintlify's default
* prose margins (mt-5 mb-8), which push the snippet down so it no longer lines
* up with the top-aligned callout icon. Drop those margins so the snippet's
* top edge aligns with the icon. */
.callout [data-component-part="callout-content"] > .code-block:first-child {
margin-top: 0;
}
.callout [data-component-part="callout-content"] > .code-block:last-child {
margin-bottom: 0;
}
/* ── Floating code-block buttons: opaque background ──
* Mintlify only backs the floating buttons (report / copy / ask) with
* gray-100/gray-800 when the code block has no fade overlay
* (group-[:not(:has([data-fade-overlay]))]). Collapsible/expandable blocks
* always carry a fade overlay, so the buttons stay transparent and the code
* text bleeds through behind them. Apply the same background unconditionally
* so the buttons are legible on every code block. */
[data-floating-buttons] button {
background-color: rgb(241 239 245);
}
.dark [data-floating-buttons] button,
html.dark [data-floating-buttons] button {
background-color: rgb(40 38 44);
}
/* ── Changelog: Update tags as outline pills (matches sidebar badges) ── */
[data-component-part="update-tag"] {
border: 1px solid rgb(0 0 0 / 0.2);
border-radius: 9999px;
padding: 0.125rem 0.625rem;
font-size: 0.75rem;
line-height: 1.25rem;
color: rgb(0 0 0 / 0.6);
}
.dark [data-component-part="update-tag"],
html.dark [data-component-part="update-tag"] {
border-color: rgb(252 252 254 / 0.2);
color: rgb(252 252 254 / 0.6);
}
/* ── Changelog: selected filter pill readability ──
* Mintlify renders the active filter as bg-primary + text-white/90. In dark
* mode our primary is Volt (#C8FF00), so switch the text to Ink per DESIGN.md. */
.dark #changelog-filters-content button.bg-primary,
html.dark #changelog-filters-content button.bg-primary {
color: rgb(3 8 10 / 0.9) !important;
}
/* ── Changelog: separate inline status badges from bullet text ── */
.changelog-status-badge {
margin-left: 0.5rem;
}
.changelog-status-badge[data-color="gray"] {
border: 1px solid rgb(3 8 10 / 0.3) !important;
}
.dark .changelog-status-badge[data-color="gray"],
html.dark .changelog-status-badge[data-color="gray"] {
border-color: rgb(252 252 254 / 0.4) !important;
}