-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
198 lines (173 loc) · 6.51 KB
/
Copy pathstyle.css
File metadata and controls
198 lines (173 loc) · 6.51 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
/* ============================================================
Interfere docs theme overrides
Mirrors the Interfere design system (@interfere/design-system,
@interfere/fonts) so the docs match the app, website, and emails.
============================================================ */
/* --- Berkeley Mono (code) -------------------------------------------------
Sans (InterVariable) is loaded via docs.json `fonts`. The monospace face
is applied here to match @interfere/fonts/css/berkeley-mono.css. */
@font-face {
font-family: "BerkeleyMono";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/BerkeleyMono/Berkeley%20Mono%20Variable%20Interfere.woff2") format("woff2");
}
@font-face {
font-family: "BerkeleyMono";
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/BerkeleyMono/Berkeley%20Mono%20Variable%20Interfere.woff2") format("woff2");
}
/* --- Base typography ------------------------------------------------------
Matches @interfere/design-system base layer: ss03 stylistic set, no
synthetic faux-bold/italic, antialiased rendering. */
body {
font-feature-settings: "ss03";
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Apply Berkeley Mono everywhere code is rendered. */
code,
kbd,
samp,
pre,
code-block,
code-block *,
code-group,
[class*="language-"],
.token {
font-family:
"BerkeleyMono", ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas",
"Liberation Mono", "Courier New", monospace;
font-variant-ligatures: none;
}
/* Keyboard keys: force Berkeley Mono to match the app UI. Mintlify styles
`kbd` with its own font, so this needs to win on specificity. */
kbd {
font-family:
"BerkeleyMono", ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas",
"Liberation Mono", "Courier New", monospace !important;
font-variant-ligatures: none;
}
/* --- Selection ------------------------------------------------------------
Inverted/standout treatment from the design system (kept monochrome to
match the docs palette). */
::selection {
background: #202020;
color: #ffffff;
}
.dark ::selection {
background: #eeeeee;
color: #111111;
}
/* --- Primary CTA button ---------------------------------------------------
Matches the design system's default button (int-btn-primary), which uses
the inverted-solid token: black-a12 on white in light mode, white-a12 on
black in dark mode, with -a10 hover / -a9 active. Mintlify only supports a
single accent hex, so the topbar CTA is matched here directly. */
#topbar-cta-button,
#topbar-cta-button:is(a, button) {
background: rgba(0, 0, 0, 0.95) !important; /* inverted-solid (black-a12) */
color: #ffffff !important; /* on-inverted-foreground */
border: none !important;
border-radius: 8px !important; /* int-btn-rounded (rounded-lg) */
font-weight: 500 !important; /* font-medium */
box-shadow: none !important;
transition:
background-color 150ms ease-out,
color 150ms ease-out !important;
}
#topbar-cta-button:hover {
background: rgba(0, 0, 0, 0.8) !important; /* inverted-solid-hover (black-a10) */
}
#topbar-cta-button:active {
background: rgba(0, 0, 0, 0.7) !important; /* inverted-solid-active (black-a9) */
}
.dark #topbar-cta-button,
.dark #topbar-cta-button:is(a, button) {
background: rgba(255, 255, 255, 0.95) !important; /* inverted-solid (white-a12) */
color: #000000 !important; /* on-inverted-foreground */
}
.dark #topbar-cta-button:hover {
background: rgba(255, 255, 255, 0.8) !important; /* white-a10 */
}
.dark #topbar-cta-button:active {
background: rgba(255, 255, 255, 0.7) !important; /* white-a9 */
}
/* Align the CTA's right edge with the content panel. The topbar gutter
(lg:px-7) stops the button ~20px short of the panel's right edge, so pull it
back into line. Only applies where the button shows (lg and up). */
@media (min-width: 1024px) {
#topbar-cta-button {
margin-right: -1.25rem !important;
}
}
/* --- Surfaces -------------------------------------------------------------
Soften borders and round surfaces to match the design system's hairline
borders (gray-a3) and rounded containers (radius-2xl = 12px). */
code-block,
pre {
border-radius: 12px !important;
}
:not(pre) > code {
border-radius: 6px !important;
}
/* --- Dark-mode logos ------------------------------------------------------
The `currentcolor` brand marks (Next.js, Vercel, GitHub, …) render as solid
black when Mintlify inlines them as <img>, so they vanish on the dark
background. They're single-color marks, so inverting them to white in dark
mode is safe. Colored variants (`transparent`, `original`) are left alone,
since inverting those would wreck their brand colors. */
.dark img[src$="/currentcolor.svg"] {
filter: invert(1);
}
/* --- TechIcon light/dark swap ---------------------------------------------
Backs the light/dark <img> pair emitted by components/TechIcon.tsx so it
shows the right variant per theme. */
.tech-icon__image--dark {
display: none;
}
.dark .tech-icon__image--light {
display: none;
}
.dark .tech-icon__image--dark {
display: inline-block;
}
/* --- Page subtitle --------------------------------------------------------
The description under the H1 uses semi-medium weight, matching the app. */
#content-area header p,
header h1 + p {
font-weight: 550;
}
/* --- Table identifier tokens ----------------------------------------------
Mintlify breaks inline code mid-token in table cells (INTERFERE_PUBLIC_KE /
Y). Keep first-column identifiers on one line so env-var names read cleanly;
description-column code is left free to wrap. */
table td:first-child code,
table th:first-child code {
white-space: nowrap;
}
/* --- Content width --------------------------------------------------------
The theme caps the article at max-w-xl (576px), which is too narrow for our
env-var tables and code. Widen it, and trim the oversized desktop gutters to
give the extra room back to content. The right-hand "On this page" column
still fits alongside. */
#content-area {
max-width: 48rem !important;
}
@media (min-width: 1024px) {
#content-container {
padding-left: 2.5rem !important;
padding-right: 2.5rem !important;
}
}
/* Drop the right/bottom gutter on the main content wrapper so it sits flush
against the viewport edge. (Left padding is left intact.) */
.lg\:flex-1.lg\:overflow-x-clip > div {
padding-right: 0 !important;
padding-bottom: 0 !important;
}