@stainless-api/docs-ui 0.1.0-beta.7 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/method.tsx +4 -2
- package/src/components/overview.tsx +1 -0
- package/src/components/sdk.tsx +3 -2
- package/src/components/snippets.tsx +3 -2
- package/src/search/results.tsx +1 -0
- package/src/style.ts +0 -1
- package/src/styles/main.css +739 -746
- package/src/styles/primitives.css +435 -427
- package/src/styles/resets.css +33 -41
- package/src/styles/search.css +247 -248
- package/src/styles/sidebar.css +58 -60
- package/src/styles/snippets.css +86 -88
- package/src/styles/variables.css +85 -89
package/src/styles/main.css
CHANGED
|
@@ -1,990 +1,983 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
.stldocs-
|
|
4
|
-
|
|
5
|
-
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
|
|
1
|
+
/* Overview page content */
|
|
2
|
+
.stldocs-root .stldocs-overview {
|
|
3
|
+
.stldocs-overview-header {
|
|
4
|
+
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
& > * {
|
|
7
|
+
max-width: var(--stldocs-content-width);
|
|
8
|
+
margin: auto 0;
|
|
9
|
+
}
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
.stldocs-overview-header-info {
|
|
12
|
+
margin-top: 16px;
|
|
13
|
+
height: 40px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
17
|
+
.stldocs-overview-header-info-timestamp {
|
|
18
|
+
font-size: var(--stldocs-font-size-small);
|
|
19
|
+
color: var(--stldocs-color-text);
|
|
20
|
+
opacity: 50%;
|
|
23
21
|
}
|
|
24
22
|
}
|
|
23
|
+
}
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.stldocs-resource-content {
|
|
30
|
-
max-width: var(--stldocs-content-width);
|
|
31
|
-
padding: 0 calc(var(--stldocs-content-padding));
|
|
32
|
-
margin: auto 0;
|
|
33
|
-
}
|
|
25
|
+
.stldocs-resource {
|
|
26
|
+
padding: 2rem 0;
|
|
34
27
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.stldocs-resource-title {
|
|
42
|
-
.stldocs-icon {
|
|
43
|
-
margin-left: 8px;
|
|
44
|
-
color: var(--stldocs-color-text-tertiary);
|
|
45
|
-
vertical-align: middle;
|
|
46
|
-
display: inline;
|
|
47
|
-
height: 1rem;
|
|
48
|
-
}
|
|
28
|
+
.stldocs-resource-content {
|
|
29
|
+
max-width: var(--stldocs-content-width);
|
|
30
|
+
padding: 0 calc(var(--stldocs-content-padding));
|
|
31
|
+
margin: auto 0;
|
|
32
|
+
}
|
|
49
33
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
.stldocs-resource-header {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 16px;
|
|
38
|
+
opacity: 85%;
|
|
53
39
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
.stldocs-resource-title {
|
|
41
|
+
.stldocs-icon {
|
|
42
|
+
margin-left: 8px;
|
|
43
|
+
color: var(--stldocs-color-text-tertiary);
|
|
44
|
+
vertical-align: middle;
|
|
45
|
+
display: inline;
|
|
46
|
+
height: 1rem;
|
|
59
47
|
}
|
|
60
48
|
|
|
61
|
-
.stldocs-resource-
|
|
62
|
-
|
|
49
|
+
.stldocs-resource-title-segment {
|
|
50
|
+
margin-right: 8px;
|
|
63
51
|
color: var(--stldocs-color-text);
|
|
64
|
-
}
|
|
65
52
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
&:not(:last-child) {
|
|
54
|
+
color: var(--stldocs-color-text-secondary);
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
}
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
59
|
|
|
73
|
-
.stldocs-resource-
|
|
74
|
-
|
|
60
|
+
.stldocs-resource-name {
|
|
61
|
+
font-family: var(--stldocs-font-mono);
|
|
62
|
+
color: var(--stldocs-color-text);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.stldocs-resource-description {
|
|
66
|
+
font-size: var(--stldocs-font-size-body);
|
|
67
|
+
color: var(--stldocs-color-text-secondary);
|
|
68
|
+
line-height: 150%;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.stldocs-resource-content {
|
|
73
|
+
.stldocs-resource-content-group {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
|
|
77
|
+
.stldocs-resource-content-group-model-title {
|
|
78
|
+
padding-top: var(--stldocs-content-padding);
|
|
79
|
+
color: var(--stldocs-color-text-tertiary);
|
|
80
|
+
font-weight: normal;
|
|
81
|
+
font-size: 1rem;
|
|
82
|
+
padding-bottom: 0.5rem;
|
|
75
83
|
display: flex;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.stldocs-resource-content-group-model-title {
|
|
79
|
-
padding-top: var(--stldocs-content-padding);
|
|
80
|
-
color: var(--stldocs-color-text-tertiary);
|
|
81
|
-
font-weight: normal;
|
|
82
|
-
font-size: 1rem;
|
|
83
|
-
padding-bottom: 0.5rem;
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
84
|
+
}
|
|
86
85
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
.stldocs-resource-content-group-name {
|
|
87
|
+
color: var(--stldocs-color-text-muted);
|
|
88
|
+
}
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
90
|
+
.stldocs-resource-content-properties {
|
|
91
|
+
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
}
|
|
95
|
+
}
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
97
|
+
> .stldocs-resource:nth-child(2) {
|
|
98
|
+
padding-top: 0;
|
|
101
99
|
}
|
|
100
|
+
}
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
/* Overview page method summary */
|
|
103
|
+
.stldocs-root .stldocs-overview .stldocs-method-summary {
|
|
104
|
+
padding: var(--stldocs-content-padding) 0;
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
.stldocs-method-header {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: 4px;
|
|
111
110
|
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
.stldocs-method-title {
|
|
112
|
+
margin-bottom: 2px;
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
114
|
+
a:hover {
|
|
115
|
+
text-decoration: underline;
|
|
118
116
|
}
|
|
117
|
+
}
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
119
|
+
.stldocs-method-route {
|
|
120
|
+
padding-top: 4px;
|
|
123
121
|
}
|
|
122
|
+
}
|
|
124
123
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
124
|
+
.stldocs-method-signature {
|
|
125
|
+
max-width: var(--stldocs-content-width);
|
|
126
|
+
font-family: var(--stldocs-font-mono);
|
|
127
|
+
font-size: var(--stldocs-font-size-body);
|
|
128
|
+
color: var(--stldocs-color-text-tertiary);
|
|
129
|
+
white-space: pre-wrap;
|
|
130
|
+
word-wrap: break-word;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
text-overflow: ellipsis;
|
|
133
|
+
line-height: 1.5rem;
|
|
134
|
+
|
|
135
|
+
.stldocs-signature-qualified {
|
|
136
|
+
color: var(--stldocs-color-text-secondary);
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
}
|
|
135
139
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
.stldocs-signature-name {
|
|
141
|
+
color: var(--stldocs-color-text);
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
}
|
|
140
144
|
|
|
141
|
-
|
|
145
|
+
.stldoc-signature-params {
|
|
146
|
+
.stldocs-text-identifier {
|
|
142
147
|
color: var(--stldocs-color-text);
|
|
143
|
-
font-weight: 600;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.stldoc-signature-params {
|
|
147
|
-
.stldocs-text-identifier {
|
|
148
|
-
color: var(--stldocs-color-text);
|
|
149
|
-
}
|
|
150
148
|
}
|
|
149
|
+
}
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
.stldocs-type {
|
|
152
|
+
color: var(--stldocs-color-text);
|
|
153
|
+
}
|
|
155
154
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
155
|
+
.stldocs-type-preview[data-stldocs-type-preview='properties'] {
|
|
156
|
+
display: none;
|
|
159
157
|
}
|
|
158
|
+
}
|
|
160
159
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
.stldocs-method-description {
|
|
161
|
+
color: var(--stldocs-color-text-muted);
|
|
162
|
+
height: 1.7rem;
|
|
163
|
+
overflow-y: hidden;
|
|
164
|
+
line-height: 1.7rem;
|
|
165
|
+
padding-bottom: var(--stldocs-content-padding);
|
|
167
166
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
167
|
+
.stldocs-content > * {
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
overflow-x: hidden;
|
|
170
|
+
text-overflow: ellipsis;
|
|
173
171
|
}
|
|
174
172
|
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Method route rendering is shared between method previews and pages */
|
|
176
|
+
.stldocs-root .stldocs-method-header .stldocs-method-route {
|
|
177
|
+
display: flex;
|
|
178
|
+
gap: 4px;
|
|
179
|
+
padding: 0;
|
|
180
|
+
|
|
181
|
+
.stldocs-method-route-endpoint {
|
|
182
|
+
font-family: var(--stldocs-font-mono);
|
|
183
|
+
font-size: var(--stldocs-font-size-body);
|
|
184
|
+
color: var(--stldocs-color-text-tertiary);
|
|
185
|
+
align-content: center;
|
|
186
|
+
line-height: 120%;
|
|
187
|
+
overflow-x: hidden;
|
|
188
|
+
text-overflow: ellipsis;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
175
191
|
|
|
176
|
-
|
|
177
|
-
.stldocs-
|
|
192
|
+
.stldocs-root {
|
|
193
|
+
.stldocs-method-route-httpmethod {
|
|
178
194
|
display: flex;
|
|
179
195
|
gap: 4px;
|
|
180
|
-
padding:
|
|
196
|
+
padding: 4px 8px 4px 4px;
|
|
197
|
+
text-transform: uppercase;
|
|
198
|
+
border-radius: 4px;
|
|
199
|
+
font-size: var(--stldocs-font-size-body-xs);
|
|
200
|
+
line-height: 100%;
|
|
201
|
+
align-content: center;
|
|
202
|
+
font-weight: 600;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: center;
|
|
181
205
|
|
|
182
|
-
.stldocs-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
text-overflow: ellipsis;
|
|
206
|
+
.stldocs-icon {
|
|
207
|
+
max-width: unset;
|
|
208
|
+
stroke-width: 3px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&.stldocs-method-route-httpmethod-icon-only {
|
|
212
|
+
padding: 4px;
|
|
190
213
|
}
|
|
191
214
|
}
|
|
215
|
+
}
|
|
192
216
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
font-size: var(--stldocs-font-size-body-xs);
|
|
201
|
-
line-height: 100%;
|
|
202
|
-
align-content: center;
|
|
203
|
-
font-weight: 600;
|
|
204
|
-
align-items: center;
|
|
205
|
-
justify-content: center;
|
|
217
|
+
/* Models and properties */
|
|
218
|
+
.stldocs-root .stldocs-property,
|
|
219
|
+
.stldocs-root .stldocs-model {
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
gap: 0.8rem;
|
|
223
|
+
padding: 0.5rem 0;
|
|
206
224
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
225
|
+
.stldocs-expander-summary-content {
|
|
226
|
+
width: 100%;
|
|
227
|
+
}
|
|
211
228
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
229
|
+
.stldocs-property-header {
|
|
230
|
+
align-items: first baseline;
|
|
231
|
+
display: flex;
|
|
232
|
+
gap: 0.5rem;
|
|
233
|
+
flex-wrap: wrap;
|
|
216
234
|
}
|
|
217
235
|
|
|
218
|
-
|
|
219
|
-
.stldocs-root .stldocs-property,
|
|
220
|
-
.stldocs-root .stldocs-model {
|
|
236
|
+
.stldocs-property-info {
|
|
221
237
|
display: flex;
|
|
222
238
|
flex-direction: column;
|
|
223
|
-
gap: 0.8rem;
|
|
224
|
-
padding: 0.5rem 0;
|
|
225
239
|
|
|
226
|
-
.stldocs-
|
|
227
|
-
|
|
240
|
+
& > .stldocs-property-type > .stldocs-text-identifier {
|
|
241
|
+
color: var(--stldocs-color-text);
|
|
228
242
|
}
|
|
243
|
+
}
|
|
229
244
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
245
|
+
.stldocs-property-type {
|
|
246
|
+
font-family: var(--stldocs-font-mono);
|
|
247
|
+
color: var(--stldocs-color-text-muted);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.stldocs-property-type,
|
|
251
|
+
.stldocs-property-declaration {
|
|
252
|
+
.stldocs-type-preview[data-stldocs-type-preview='union']
|
|
253
|
+
.stldocs-type-preview[data-stldocs-type-preview='properties'] {
|
|
254
|
+
display: none;
|
|
235
255
|
}
|
|
256
|
+
}
|
|
236
257
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
258
|
+
.stldocs-property-deprecated {
|
|
259
|
+
font-family: var(--stldocs-font);
|
|
260
|
+
color: var(--stldocs-color-red);
|
|
261
|
+
font-size: var(--stldocs-font-size-body);
|
|
262
|
+
font-weight: 600;
|
|
263
|
+
}
|
|
240
264
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
265
|
+
.stldocs-property-deprecated-message {
|
|
266
|
+
color: var(--stldocs-color-red);
|
|
267
|
+
font-size: var(--stldocs-font-size-small);
|
|
268
|
+
}
|
|
245
269
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
270
|
+
.stldocs-property-declaration {
|
|
271
|
+
white-space: nowrap;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
text-overflow: ellipsis;
|
|
274
|
+
font-size: var(--stldocs-font-size-body);
|
|
275
|
+
flex: 1;
|
|
276
|
+
min-width: 0;
|
|
277
|
+
|
|
278
|
+
.stldocs-property-deprecated {
|
|
279
|
+
margin-right: 0.44rem;
|
|
249
280
|
}
|
|
281
|
+
}
|
|
250
282
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
283
|
+
.stldocs-property-description {
|
|
284
|
+
font-size: 0.9rem;
|
|
285
|
+
color: var(--stldocs-color-text-secondary);
|
|
286
|
+
|
|
287
|
+
& .stldocs-content {
|
|
288
|
+
color: var(--stldocs-color-text-secondary);
|
|
257
289
|
}
|
|
290
|
+
}
|
|
258
291
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
292
|
+
.stldocs-property-name {
|
|
293
|
+
font-family: var(--stldocs-font-mono);
|
|
294
|
+
font-size: var(--stldocs-font-size-body);
|
|
295
|
+
color: var(--stldocs-color-text-bright);
|
|
296
|
+
font-weight: 700;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.stldocs-property-annotation {
|
|
300
|
+
color: var(--stldocs-color-text-tertiary);
|
|
301
|
+
font-size: var(--stldocs-font-size-body);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.stldocs-property-typename {
|
|
305
|
+
font-size: var(--stldocs-font-size-small);
|
|
306
|
+
color: var(--stldocs-color-text-tertiary);
|
|
307
|
+
line-height: 175%;
|
|
308
|
+
|
|
309
|
+
.stldocs-type-reference {
|
|
310
|
+
font-size: 0.8rem;
|
|
311
|
+
color: var(--stldocs-syntax-color-blue);
|
|
263
312
|
font-weight: 600;
|
|
264
313
|
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.stldocs-property-type {
|
|
317
|
+
.stldocs-truncation {
|
|
318
|
+
margin-right: 0.2rem;
|
|
319
|
+
white-space: nowrap;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.stldocs-property-badges {
|
|
324
|
+
display: flex;
|
|
325
|
+
font-size: 0.85rem;
|
|
326
|
+
gap: 0.5rem;
|
|
327
|
+
text-transform: lowercase;
|
|
328
|
+
line-height: 1.5rem;
|
|
265
329
|
|
|
266
|
-
|
|
330
|
+
[data-badge-id='deprecated'] {
|
|
267
331
|
color: var(--stldocs-color-red);
|
|
268
|
-
|
|
332
|
+
background-color: var(--stldocs--color-red-low);
|
|
333
|
+
padding: 0px 6px;
|
|
334
|
+
border-radius: 4px;
|
|
335
|
+
text-transform: capitalize;
|
|
269
336
|
}
|
|
270
337
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
338
|
+
[data-badge-id='optional'] {
|
|
339
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
340
|
+
padding: 0px 6px;
|
|
341
|
+
border-radius: 4px;
|
|
342
|
+
text-transform: capitalize;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.stldocs-property-constraints {
|
|
347
|
+
display: flex;
|
|
348
|
+
font-size: var(--stldocs-font-size-body);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.stldocs-property-constraint {
|
|
352
|
+
color: var(--stldocs-color-text-muted);
|
|
278
353
|
|
|
279
|
-
|
|
280
|
-
|
|
354
|
+
&:not(:last-child) {
|
|
355
|
+
&::after {
|
|
356
|
+
content: ', ';
|
|
357
|
+
margin-right: 0.4rem;
|
|
358
|
+
color: var(--stldocs-color-text-tertiary);
|
|
281
359
|
}
|
|
282
360
|
}
|
|
283
361
|
|
|
284
|
-
.stldocs-property-
|
|
285
|
-
|
|
286
|
-
color: var(--stldocs-color-text-secondary);
|
|
362
|
+
.stldocs-property-constraint-name {
|
|
363
|
+
color: var(--stldocs-color-text-tertiary);
|
|
287
364
|
|
|
288
|
-
|
|
289
|
-
|
|
365
|
+
&::after {
|
|
366
|
+
content: ':';
|
|
367
|
+
margin-right: 0.4rem;
|
|
290
368
|
}
|
|
291
369
|
}
|
|
292
370
|
|
|
293
|
-
.stldocs-property-
|
|
371
|
+
.stldocs-property-constraint-value {
|
|
372
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
373
|
+
color: var(--stldocs-color-text-secondary);
|
|
294
374
|
font-family: var(--stldocs-font-mono);
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
font-weight: 700;
|
|
375
|
+
border-radius: 4px;
|
|
376
|
+
padding: 3px 4px;
|
|
298
377
|
}
|
|
378
|
+
}
|
|
299
379
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
380
|
+
.stldocs-property-type:not(:first-child) {
|
|
381
|
+
font-size: 0.8rem;
|
|
382
|
+
}
|
|
304
383
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
384
|
+
.stldocs-property .stldocs-property-type {
|
|
385
|
+
font-size: 0.8rem;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
309
388
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
389
|
+
.stldocs-root {
|
|
390
|
+
.stldocs-properties {
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
line-height: 150%;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
316
396
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
margin-right: 0.2rem;
|
|
320
|
-
white-space: nowrap;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
397
|
+
.stldocs-root .stldocs-property {
|
|
398
|
+
padding: 0.2rem 0;
|
|
323
399
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
text-transform: lowercase;
|
|
329
|
-
line-height: 1.5rem;
|
|
400
|
+
[open] > .stldocs-expander-summary {
|
|
401
|
+
padding-bottom: 0;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
330
404
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
padding: 0px 6px;
|
|
335
|
-
border-radius: 4px;
|
|
336
|
-
text-transform: capitalize;
|
|
337
|
-
}
|
|
405
|
+
.stldocs-root .stldocs-property:not(.stldocs-property .stldocs-property) > .stldocs-property-info {
|
|
406
|
+
margin-left: var(--stldocs-expander-margin-shift);
|
|
407
|
+
}
|
|
338
408
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
409
|
+
.stldocs-root .stldocs-tooltip-content .stldocs-property {
|
|
410
|
+
gap: 0.1rem;
|
|
411
|
+
padding: 0.1rem !important;
|
|
412
|
+
border: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* Method Pages */
|
|
416
|
+
.stldocs-root .stldocs-method {
|
|
417
|
+
.stldocs-method-content-column {
|
|
418
|
+
display: contents;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.stldocs-method-header {
|
|
422
|
+
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
|
|
423
|
+
|
|
424
|
+
.stldocs-method-title {
|
|
425
|
+
font-size: var(--stldocs-font-size-h1);
|
|
426
|
+
letter-spacing: -0.03em;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.stldocs-method-badges {
|
|
430
|
+
margin-top: 1rem;
|
|
431
|
+
|
|
432
|
+
.stldocs-badge {
|
|
433
|
+
display: inline-block;
|
|
434
|
+
background-color: var(--stldocs-color-gray-5);
|
|
435
|
+
padding: 0 0.5rem;
|
|
342
436
|
border-radius: 4px;
|
|
343
|
-
|
|
437
|
+
font-size: var(--stldocs-font-size-small);
|
|
438
|
+
font-weight: 500;
|
|
344
439
|
}
|
|
345
440
|
}
|
|
346
441
|
|
|
347
|
-
.stldocs-
|
|
348
|
-
|
|
442
|
+
.stldocs-method-signature {
|
|
443
|
+
margin-top: 0.75rem;
|
|
444
|
+
font-family: var(--stldocs-font-mono);
|
|
349
445
|
font-size: var(--stldocs-font-size-body);
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
446
|
+
color: var(--stldocs-color-text-tertiary);
|
|
447
|
+
white-space: pre-wrap;
|
|
448
|
+
word-wrap: break-word;
|
|
449
|
+
font-weight: 400;
|
|
354
450
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
margin-right: 0.4rem;
|
|
359
|
-
color: var(--stldocs-color-text-tertiary);
|
|
360
|
-
}
|
|
451
|
+
.stldocs-signature-qualified {
|
|
452
|
+
color: var(--stldocs-color-text-secondary);
|
|
453
|
+
font-weight: 400;
|
|
361
454
|
}
|
|
362
455
|
|
|
363
|
-
.stldocs-
|
|
364
|
-
color: var(--stldocs-color-text
|
|
456
|
+
.stldocs-signature-name {
|
|
457
|
+
color: var(--stldocs-color-text);
|
|
458
|
+
font-weight: 600;
|
|
459
|
+
}
|
|
365
460
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
461
|
+
.stldoc-signature-params {
|
|
462
|
+
.stldocs-text-identifier {
|
|
463
|
+
color: var(--stldocs-color-text);
|
|
369
464
|
}
|
|
370
465
|
}
|
|
371
466
|
|
|
372
|
-
.stldocs-
|
|
373
|
-
|
|
374
|
-
color: var(--stldocs-color-text-secondary);
|
|
375
|
-
font-family: var(--stldocs-font-mono);
|
|
376
|
-
border-radius: 4px;
|
|
377
|
-
padding: 3px 4px;
|
|
467
|
+
.stldocs-type {
|
|
468
|
+
color: var(--stldocs-color-text);
|
|
378
469
|
}
|
|
379
470
|
}
|
|
380
471
|
|
|
381
|
-
.stldocs-
|
|
382
|
-
|
|
472
|
+
.stldocs-method-route {
|
|
473
|
+
padding-top: 12px;
|
|
383
474
|
}
|
|
384
475
|
|
|
385
|
-
.stldocs-
|
|
386
|
-
|
|
476
|
+
.stldocs-type-preview[data-stldocs-type-preview='properties'] {
|
|
477
|
+
display: none;
|
|
387
478
|
}
|
|
388
479
|
}
|
|
389
480
|
|
|
390
|
-
.stldocs-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
481
|
+
.stldocs-method-description {
|
|
482
|
+
grid-area: 1 / 1/ 2/ 2;
|
|
483
|
+
padding-bottom: var(--stldocs-content-padding);
|
|
484
|
+
|
|
485
|
+
code {
|
|
394
486
|
line-height: 150%;
|
|
487
|
+
font-size: 0.93rem;
|
|
395
488
|
}
|
|
396
489
|
}
|
|
397
490
|
|
|
398
|
-
.stldocs-
|
|
399
|
-
|
|
491
|
+
.stldocs-method-example {
|
|
492
|
+
margin-top: 1rem;
|
|
493
|
+
grid-area: 2/ 1/ 3/ 2;
|
|
400
494
|
|
|
401
|
-
|
|
402
|
-
|
|
495
|
+
.stldocs-snippet-multi-response {
|
|
496
|
+
display: none;
|
|
403
497
|
}
|
|
404
498
|
}
|
|
405
499
|
|
|
406
|
-
.stldocs-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
.stldocs-root .stldocs-tooltip-content .stldocs-property {
|
|
411
|
-
gap: 0.1rem;
|
|
412
|
-
padding: 0.1rem !important;
|
|
413
|
-
border: 0;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* Method Pages */
|
|
417
|
-
.stldocs-root .stldocs-method {
|
|
418
|
-
.stldocs-method-content-column {
|
|
419
|
-
display: contents;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.stldocs-method-header {
|
|
423
|
-
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
|
|
424
|
-
|
|
425
|
-
.stldocs-method-title {
|
|
426
|
-
font-size: var(--stldocs-font-size-h1);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.stldocs-method-badges {
|
|
430
|
-
margin-top: 1rem;
|
|
431
|
-
|
|
432
|
-
.stldocs-badge {
|
|
433
|
-
display: inline-block;
|
|
434
|
-
background-color: var(--stldocs-color-gray-5);
|
|
435
|
-
padding: 0 0.5rem;
|
|
436
|
-
border-radius: 4px;
|
|
437
|
-
font-size: var(--stldocs-font-size-small);
|
|
438
|
-
font-weight: 500;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.stldocs-method-signature {
|
|
443
|
-
margin-top: 0.75rem;
|
|
444
|
-
font-family: var(--stldocs-font-mono);
|
|
445
|
-
font-size: var(--stldocs-font-size-body);
|
|
446
|
-
color: var(--stldocs-color-text-tertiary);
|
|
447
|
-
white-space: pre-wrap;
|
|
448
|
-
word-wrap: break-word;
|
|
449
|
-
font-weight: 400;
|
|
450
|
-
|
|
451
|
-
.stldocs-signature-qualified {
|
|
452
|
-
color: var(--stldocs-color-text-secondary);
|
|
453
|
-
font-weight: 400;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.stldocs-signature-name {
|
|
457
|
-
color: var(--stldocs-color-text);
|
|
458
|
-
font-weight: 600;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.stldoc-signature-params {
|
|
462
|
-
.stldocs-text-identifier {
|
|
463
|
-
color: var(--stldocs-color-text);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.stldocs-type {
|
|
468
|
-
color: var(--stldocs-color-text);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.stldocs-method-route {
|
|
473
|
-
padding-top: 12px;
|
|
474
|
-
}
|
|
500
|
+
.stldocs-snippet-multi-response {
|
|
501
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
502
|
+
border-radius: 12px;
|
|
475
503
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
504
|
+
.stldocs-snippet {
|
|
505
|
+
background-color: transparent;
|
|
479
506
|
}
|
|
507
|
+
}
|
|
480
508
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
509
|
+
.stldocs-method-info {
|
|
510
|
+
padding: var(--stldocs-content-padding) 0;
|
|
511
|
+
grid-area: 3/ 1/ 4/ 2;
|
|
512
|
+
display: flex;
|
|
513
|
+
gap: 2rem;
|
|
514
|
+
flex-direction: column;
|
|
515
|
+
margin-top: 2.5rem;
|
|
484
516
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
font-size: 0.93rem;
|
|
488
|
-
}
|
|
517
|
+
h5 {
|
|
518
|
+
display: flex;
|
|
489
519
|
}
|
|
520
|
+
}
|
|
490
521
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
522
|
+
.stldocs-method-info-section {
|
|
523
|
+
display: flex;
|
|
524
|
+
gap: 0.5rem;
|
|
525
|
+
flex-direction: column;
|
|
526
|
+
}
|
|
494
527
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
528
|
+
.stldocs-method-content-column {
|
|
529
|
+
display: contents;
|
|
530
|
+
}
|
|
499
531
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
532
|
+
.stldocs-method-body {
|
|
533
|
+
display: grid;
|
|
534
|
+
gap: 2rem;
|
|
535
|
+
grid-template-columns: minmax(0, 1fr);
|
|
536
|
+
grid-template-rows: repeat(4, auto);
|
|
537
|
+
padding: var(--stldocs-content-padding) 0 var(--stldocs-content-padding) var(--stldocs-content-padding);
|
|
503
538
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
539
|
+
.stldocs-method-description p {
|
|
540
|
+
color: var(--stldocs-color-text-secondary);
|
|
541
|
+
line-height: 150%;
|
|
507
542
|
}
|
|
508
543
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
gap: 2rem;
|
|
514
|
-
flex-direction: column;
|
|
515
|
-
margin-top: 2.5rem;
|
|
544
|
+
h5 {
|
|
545
|
+
font-weight: 400;
|
|
546
|
+
color: var(--stldocs-color-text-tertiary);
|
|
547
|
+
}
|
|
516
548
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
549
|
+
.stldocs-method-parameters,
|
|
550
|
+
.stldocs-method-parameters,
|
|
551
|
+
.stldocs-method-returns {
|
|
552
|
+
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
520
553
|
}
|
|
521
554
|
|
|
522
|
-
.stldocs-method-
|
|
555
|
+
.stldocs-method-parameters {
|
|
523
556
|
display: flex;
|
|
524
|
-
gap: 0.5rem;
|
|
525
557
|
flex-direction: column;
|
|
558
|
+
gap: 0.5rem;
|
|
526
559
|
}
|
|
527
560
|
|
|
528
|
-
.stldocs-method-
|
|
529
|
-
|
|
561
|
+
.stldocs-method-parameters h5 {
|
|
562
|
+
margin-left: var(--stldocs-expander-margin-shift);
|
|
530
563
|
}
|
|
564
|
+
}
|
|
531
565
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
566
|
+
.stldocs-snippet {
|
|
567
|
+
top: calc(var(--sl-nav-height) + 1rem);
|
|
568
|
+
position: sticky;
|
|
569
|
+
z-index: 10;
|
|
570
|
+
border-radius: 16px;
|
|
571
|
+
background-color: transparent;
|
|
572
|
+
padding: 0;
|
|
573
|
+
font-size: 0.8rem;
|
|
574
|
+
font-family: var(--stldocs-font-mono);
|
|
538
575
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
576
|
+
.stldocs-snippet-request {
|
|
577
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
578
|
+
border-radius: 12px;
|
|
579
|
+
position: relative;
|
|
543
580
|
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
581
|
+
.stldocs-snippet-code {
|
|
582
|
+
background-color: var(--stldocs-color-bg);
|
|
583
|
+
border-bottom-left-radius: 12px;
|
|
584
|
+
border-bottom-right-radius: 12px;
|
|
547
585
|
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.stldocs-snippet-request-title {
|
|
589
|
+
--stldocs-snippet-request-title-bg: var(--stldocs-color-bg);
|
|
590
|
+
|
|
591
|
+
display: flex;
|
|
592
|
+
justify-content: space-between;
|
|
593
|
+
background-color: var(--stldocs-snippet-request-title-bg);
|
|
594
|
+
color: var(--stldocs-color-snippet-title-muted);
|
|
595
|
+
border-bottom: 1px solid var(--stldocs-color-hairline);
|
|
596
|
+
border-top-right-radius: 12px;
|
|
597
|
+
border-top-left-radius: 12px;
|
|
598
|
+
padding: 0.5rem;
|
|
599
|
+
padding-left: 1rem;
|
|
600
|
+
gap: 0.5rem;
|
|
548
601
|
|
|
549
|
-
.stldocs-method
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
602
|
+
.stldocs-snippet-request-title-method {
|
|
603
|
+
flex-grow: 1;
|
|
604
|
+
min-width: 0;
|
|
553
605
|
}
|
|
554
606
|
|
|
555
|
-
|
|
607
|
+
> div {
|
|
556
608
|
display: flex;
|
|
557
|
-
flex-direction: column;
|
|
558
609
|
gap: 0.5rem;
|
|
610
|
+
align-items: center;
|
|
559
611
|
}
|
|
560
612
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
z-index: 10;
|
|
570
|
-
border-radius: 16px;
|
|
571
|
-
background-color: transparent;
|
|
572
|
-
padding: 0;
|
|
573
|
-
font-size: 0.8rem;
|
|
574
|
-
font-family: var(--stldocs-font-mono);
|
|
613
|
+
h5 {
|
|
614
|
+
font-weight: 500;
|
|
615
|
+
font-style: normal;
|
|
616
|
+
line-height: 100%;
|
|
617
|
+
font-size: var(--stldocs-font-size-body);
|
|
618
|
+
font-family: var(--stldocs-font);
|
|
619
|
+
color: var(--stldocs-color-text);
|
|
620
|
+
margin: 0;
|
|
575
621
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
white-space: nowrap;
|
|
624
|
+
text-overflow: ellipsis;
|
|
625
|
+
}
|
|
580
626
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
border-bottom-right-radius: 12px;
|
|
627
|
+
@media (min-width: 1280px) {
|
|
628
|
+
.stldocs-snippet-request-title-label {
|
|
629
|
+
display: none;
|
|
585
630
|
}
|
|
586
631
|
}
|
|
587
632
|
|
|
588
|
-
.stldocs-
|
|
633
|
+
.stldocs-icon {
|
|
634
|
+
width: 16px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.stldocs-snippet-request-title-content {
|
|
638
|
+
font-family: var(--stldocs-font);
|
|
589
639
|
display: flex;
|
|
590
|
-
justify-content: space-between;
|
|
591
|
-
background-color: var(--stldocs-color-bg);
|
|
592
|
-
color: var(--stldocs-color-snippet-title-muted);
|
|
593
|
-
border-bottom: 1px solid var(--stldocs-color-hairline);
|
|
594
|
-
border-top-right-radius: 12px;
|
|
595
|
-
border-top-left-radius: 12px;
|
|
596
|
-
padding: 0.5rem;
|
|
597
|
-
padding-left: 1rem;
|
|
598
640
|
gap: 0.5rem;
|
|
599
641
|
|
|
600
|
-
.stldocs-snippet-request-title-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
> div {
|
|
642
|
+
.stldocs-snippet-request-title-language {
|
|
643
|
+
position: relative;
|
|
644
|
+
color: var(--stldocs-color-text);
|
|
645
|
+
cursor: pointer;
|
|
606
646
|
display: flex;
|
|
607
|
-
gap: 0.5rem;
|
|
608
647
|
align-items: center;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
h5 {
|
|
612
|
-
font-weight: 500;
|
|
613
|
-
font-style: normal;
|
|
614
|
-
line-height: 100%;
|
|
615
|
-
font-size: var(--stldocs-font-size-body);
|
|
616
|
-
font-family: var(--stldocs-font);
|
|
617
|
-
color: var(--stldocs-color-text);
|
|
618
|
-
|
|
619
|
-
overflow: hidden;
|
|
620
|
-
white-space: nowrap;
|
|
621
|
-
text-overflow: ellipsis;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
@media (min-width: 1280px) {
|
|
625
|
-
.stldocs-snippet-request-title-label {
|
|
626
|
-
display: none;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
648
|
+
gap: 4px;
|
|
629
649
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
font-family: var(--stldocs-font);
|
|
636
|
-
display: flex;
|
|
637
|
-
gap: 0.5rem;
|
|
638
|
-
|
|
639
|
-
.stldocs-snippet-request-title-language {
|
|
640
|
-
position: relative;
|
|
641
|
-
color: var(--stldocs-color-text);
|
|
642
|
-
cursor: pointer;
|
|
643
|
-
|
|
644
|
-
select {
|
|
645
|
-
z-index: 5;
|
|
646
|
-
padding-right: 25px;
|
|
647
|
-
display: flex;
|
|
648
|
-
align-items: center;
|
|
649
|
-
}
|
|
650
|
+
select {
|
|
651
|
+
z-index: 5;
|
|
652
|
+
padding-right: 25px;
|
|
653
|
+
display: flex;
|
|
654
|
+
align-items: center;
|
|
650
655
|
}
|
|
651
656
|
}
|
|
652
657
|
}
|
|
658
|
+
}
|
|
653
659
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
display: flex;
|
|
659
|
-
align-items: center;
|
|
660
|
-
justify-content: center;
|
|
661
|
-
border-radius: 4px;
|
|
662
|
-
align-self: center;
|
|
663
|
-
cursor: pointer;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.stldocs-snippet-request-title-copy-button:hover {
|
|
667
|
-
color: var(--stldocs-color-snippet-title-bright);
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.stldocs-snippet-response-pane {
|
|
671
|
-
padding: 0.5rem;
|
|
672
|
-
background-color: var(--stldocs-color-bg-inline-code);
|
|
673
|
-
display: none;
|
|
660
|
+
.stldocs-snippet-response-pane {
|
|
661
|
+
padding: 0.5rem;
|
|
662
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
663
|
+
display: none;
|
|
674
664
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
}
|
|
665
|
+
&.stldocs-snippet-response-pane-active {
|
|
666
|
+
display: block;
|
|
678
667
|
}
|
|
668
|
+
}
|
|
679
669
|
|
|
680
|
-
|
|
681
|
-
|
|
670
|
+
.stldocs-snippet-response {
|
|
671
|
+
margin-top: 1rem;
|
|
682
672
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
673
|
+
.stldocs-snippet-response-title {
|
|
674
|
+
display: flex;
|
|
675
|
+
gap: 0.5rem;
|
|
676
|
+
color: var(--stldocs-color-snippet-title-muted);
|
|
677
|
+
padding: 0 1rem;
|
|
678
|
+
font-family: var(--stldocs-font);
|
|
690
679
|
}
|
|
691
680
|
}
|
|
681
|
+
}
|
|
692
682
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
683
|
+
.stldocs-method-response-column {
|
|
684
|
+
display: flex;
|
|
685
|
+
flex-direction: column;
|
|
686
|
+
gap: 1rem;
|
|
687
|
+
margin-top: 2.5rem;
|
|
688
|
+
}
|
|
699
689
|
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
690
|
+
.stldocs-snippet-code {
|
|
691
|
+
width: 0;
|
|
692
|
+
min-width: 100%;
|
|
693
|
+
overflow: auto;
|
|
694
|
+
display: block;
|
|
695
|
+
white-space: preserve nowrap;
|
|
696
|
+
padding: 1rem;
|
|
697
|
+
max-height: 560px;
|
|
698
|
+
line-height: 1.75;
|
|
699
|
+
transition: height 240ms ease;
|
|
700
|
+
will-change: height;
|
|
701
|
+
|
|
702
|
+
.shiki {
|
|
706
703
|
padding: 1rem;
|
|
707
|
-
|
|
708
|
-
line-height: 1.75;
|
|
709
|
-
transition: height 240ms ease;
|
|
710
|
-
will-change: height;
|
|
711
|
-
|
|
712
|
-
.shiki {
|
|
713
|
-
padding: 1rem;
|
|
714
|
-
--shiki-dark-bg: var(--sl-color-bg) !important;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
pre.shiki {
|
|
718
|
-
counter-reset: codeblock-line;
|
|
719
|
-
|
|
720
|
-
.line {
|
|
721
|
-
counter-increment: codeblock-line;
|
|
722
|
-
|
|
723
|
-
&::before {
|
|
724
|
-
content: counter(codeblock-line);
|
|
725
|
-
color: var(--sl-color-text-tertiary);
|
|
726
|
-
margin-right: 1rem;
|
|
727
|
-
opacity: 0.5;
|
|
728
|
-
display: inline-flex;
|
|
729
|
-
width: 1rem;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
&.ellipsis {
|
|
733
|
-
color: var(--sl-color-text-tertiary) !important;
|
|
734
|
-
opacity: 0.5;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
704
|
+
--shiki-dark-bg: var(--sl-color-bg) !important;
|
|
738
705
|
}
|
|
739
706
|
|
|
740
|
-
.
|
|
741
|
-
|
|
742
|
-
gap: 0.5rem;
|
|
743
|
-
overflow-x: auto;
|
|
707
|
+
pre.shiki {
|
|
708
|
+
counter-reset: codeblock-line;
|
|
744
709
|
|
|
745
|
-
.
|
|
746
|
-
|
|
747
|
-
display: inline-block;
|
|
748
|
-
text-align: center;
|
|
749
|
-
padding: 0 0.5rem;
|
|
750
|
-
border-bottom: 2px solid transparent;
|
|
751
|
-
cursor: pointer;
|
|
752
|
-
font-weight: 500;
|
|
753
|
-
line-height: 100%;
|
|
754
|
-
font-size: var(--stldocs-font-size-body);
|
|
755
|
-
font-family: var(--stldocs-font);
|
|
756
|
-
height: 40px;
|
|
757
|
-
min-width: 160px;
|
|
758
|
-
white-space: nowrap;
|
|
759
|
-
overflow: hidden;
|
|
760
|
-
text-overflow: ellipsis;
|
|
761
|
-
vertical-align: middle;
|
|
710
|
+
.line {
|
|
711
|
+
counter-increment: codeblock-line;
|
|
762
712
|
|
|
763
|
-
|
|
764
|
-
|
|
713
|
+
&::before {
|
|
714
|
+
content: counter(codeblock-line);
|
|
715
|
+
color: var(--sl-color-text-tertiary);
|
|
716
|
+
margin-right: 1rem;
|
|
717
|
+
opacity: 0.5;
|
|
718
|
+
display: inline-flex;
|
|
719
|
+
width: 1rem;
|
|
765
720
|
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
.stldocs-snippet-response-tab-item-active {
|
|
769
|
-
border-color: var(--stldocs-color-bg-accent);
|
|
770
|
-
}
|
|
771
721
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
border-top-right-radius: 12px;
|
|
776
|
-
|
|
777
|
-
.stldocs-snippet-response-tab-item {
|
|
778
|
-
border: none;
|
|
779
|
-
color: var(--stldocs-color-text-secondary);
|
|
780
|
-
text-align: left;
|
|
781
|
-
cursor: default;
|
|
782
|
-
font-weight: 400;
|
|
722
|
+
&.ellipsis {
|
|
723
|
+
color: var(--sl-color-text-tertiary) !important;
|
|
724
|
+
opacity: 0.5;
|
|
783
725
|
}
|
|
784
726
|
}
|
|
785
727
|
}
|
|
786
728
|
}
|
|
787
729
|
|
|
788
|
-
.stldocs-
|
|
789
|
-
background-color: var(--stldocs-color-bg);
|
|
790
|
-
border: 1px solid var(--stldocs-color-hairline);
|
|
791
|
-
border-radius: 8px;
|
|
792
|
-
padding: 16px;
|
|
730
|
+
.stldocs-snippet-response-tab {
|
|
793
731
|
display: flex;
|
|
794
|
-
|
|
795
|
-
|
|
732
|
+
gap: 0.5rem;
|
|
733
|
+
overflow-x: auto;
|
|
796
734
|
|
|
797
|
-
.stldocs-
|
|
798
|
-
|
|
799
|
-
|
|
735
|
+
.stldocs-snippet-response-tab-item {
|
|
736
|
+
flex: 1;
|
|
737
|
+
display: inline-block;
|
|
738
|
+
text-align: center;
|
|
739
|
+
padding: 0 0.5rem;
|
|
740
|
+
border-bottom: 2px solid transparent;
|
|
741
|
+
cursor: pointer;
|
|
742
|
+
font-weight: 500;
|
|
743
|
+
line-height: 100%;
|
|
744
|
+
font-size: var(--stldocs-font-size-body);
|
|
745
|
+
font-family: var(--stldocs-font);
|
|
746
|
+
height: 40px;
|
|
747
|
+
min-width: 160px;
|
|
748
|
+
white-space: nowrap;
|
|
749
|
+
overflow: hidden;
|
|
750
|
+
text-overflow: ellipsis;
|
|
751
|
+
vertical-align: middle;
|
|
752
|
+
background: none;
|
|
800
753
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
border: 1px solid var(--stldocs-color-hairline);
|
|
804
|
-
border-radius: 4px;
|
|
805
|
-
padding: 12px;
|
|
806
|
-
aspect-ratio: 1 / 1;
|
|
754
|
+
&:hover {
|
|
755
|
+
background-color: var(--stldocs-color-bg-hover);
|
|
807
756
|
}
|
|
757
|
+
}
|
|
808
758
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
font-weight: 600;
|
|
813
|
-
}
|
|
759
|
+
.stldocs-snippet-response-tab-item-active {
|
|
760
|
+
border-color: var(--stldocs-color-bg-accent);
|
|
761
|
+
}
|
|
814
762
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
763
|
+
&.stldocs-snippet-response-tab-single-return {
|
|
764
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
765
|
+
border-top-left-radius: 12px;
|
|
766
|
+
border-top-right-radius: 12px;
|
|
767
|
+
|
|
768
|
+
.stldocs-snippet-response-tab-item {
|
|
769
|
+
border: none;
|
|
770
|
+
color: var(--stldocs-color-text-secondary);
|
|
771
|
+
text-align: left;
|
|
772
|
+
cursor: default;
|
|
773
|
+
font-weight: 400;
|
|
820
774
|
}
|
|
821
775
|
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
822
778
|
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
779
|
+
.stldocs-root .stldocs-language-block {
|
|
780
|
+
background-color: var(--stldocs-color-bg);
|
|
781
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
782
|
+
border-radius: 8px;
|
|
783
|
+
padding: 16px;
|
|
784
|
+
display: flex;
|
|
785
|
+
flex-direction: column;
|
|
786
|
+
gap: 8px;
|
|
787
|
+
|
|
788
|
+
.stldocs-language-block-content {
|
|
789
|
+
display: flex;
|
|
790
|
+
gap: 12px;
|
|
791
|
+
|
|
792
|
+
.stldocs-language-block-content-icon {
|
|
793
|
+
display: inline-flex;
|
|
828
794
|
border: 1px solid var(--stldocs-color-hairline);
|
|
829
795
|
border-radius: 4px;
|
|
830
|
-
padding:
|
|
796
|
+
padding: 12px;
|
|
797
|
+
aspect-ratio: 1 / 1;
|
|
798
|
+
}
|
|
831
799
|
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
text-overflow: ellipsis;
|
|
800
|
+
.stldocs-language-block-content-info {
|
|
801
|
+
.stldocs-language-block-content-info-language {
|
|
802
|
+
line-height: 120%;
|
|
803
|
+
font-weight: 600;
|
|
837
804
|
}
|
|
838
805
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
806
|
+
.stldocs-language-block-content-info-version {
|
|
807
|
+
font-family: var(--stldocs-font-mono);
|
|
808
|
+
font-size: var(--stldocs-font-size-code);
|
|
809
|
+
font-weight: 200;
|
|
842
810
|
}
|
|
843
811
|
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.stldocs-language-block-install {
|
|
815
|
+
display: flex;
|
|
816
|
+
font-family: var(--stldocs-font-mono);
|
|
817
|
+
font-size: var(--stldocs-font-size-code);
|
|
818
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
819
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
820
|
+
color: var(--stldocs-color-text-secondary);
|
|
821
|
+
border-radius: 4px;
|
|
822
|
+
padding: 4px 8px;
|
|
844
823
|
|
|
845
|
-
|
|
824
|
+
pre {
|
|
825
|
+
flex-grow: 1;
|
|
826
|
+
white-space: nowrap;
|
|
827
|
+
overflow-x: hidden;
|
|
828
|
+
text-overflow: ellipsis;
|
|
846
829
|
display: flex;
|
|
847
|
-
|
|
830
|
+
align-items: center;
|
|
831
|
+
}
|
|
848
832
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
833
|
+
svg {
|
|
834
|
+
vertical-align: middle;
|
|
835
|
+
min-width: 16px;
|
|
852
836
|
}
|
|
853
837
|
}
|
|
854
838
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
839
|
+
.stldocs-language-block-links {
|
|
840
|
+
display: flex;
|
|
841
|
+
gap: 8px;
|
|
858
842
|
|
|
859
|
-
|
|
860
|
-
|
|
843
|
+
& > a:last-child {
|
|
844
|
+
flex-grow: 1;
|
|
845
|
+
}
|
|
861
846
|
}
|
|
847
|
+
}
|
|
862
848
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
.stldocs-method-example {
|
|
867
|
-
flex: 1 1 500px;
|
|
868
|
-
max-width: 100%;
|
|
869
|
-
width: 100%;
|
|
870
|
-
}
|
|
849
|
+
starlight-theme-select label {
|
|
850
|
+
height: 2rem;
|
|
851
|
+
}
|
|
871
852
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
853
|
+
starlight-theme-select select {
|
|
854
|
+
height: 100%;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* Media Queries */
|
|
858
|
+
@media (min-width: 1280px) {
|
|
859
|
+
.stldocs-root .stldocs-method.stldocs-method-double-pane {
|
|
860
|
+
.stldocs-method-example {
|
|
861
|
+
flex: 1 1 500px;
|
|
862
|
+
max-width: 100%;
|
|
863
|
+
width: 100%;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.stldocs-method-body {
|
|
867
|
+
flex-direction: row;
|
|
868
|
+
gap: 2rem;
|
|
876
869
|
}
|
|
877
870
|
}
|
|
871
|
+
}
|
|
878
872
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
873
|
+
/* Don't put expanders in the margin on mobile */
|
|
874
|
+
@media (max-width: 50rem) {
|
|
875
|
+
.stldocs-root .stldocs-method-body {
|
|
876
|
+
padding: 1rem var(--stldocs-content-padding) !important;
|
|
883
877
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
878
|
+
.stldocs-method-parameters,
|
|
879
|
+
.stldocs-method-returns {
|
|
880
|
+
margin-left: 0 !important;
|
|
888
881
|
}
|
|
882
|
+
}
|
|
889
883
|
|
|
890
|
-
|
|
891
|
-
|
|
884
|
+
.stldocs-root .stldocs-resource .stldocs-resource-content {
|
|
885
|
+
padding: 0 var(--stldocs-content-padding) !important;
|
|
892
886
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
887
|
+
.stldocs-resource-content-properties {
|
|
888
|
+
margin-left: 0 !important;
|
|
889
|
+
}
|
|
896
890
|
|
|
897
|
-
|
|
898
|
-
|
|
891
|
+
.stldocs-snippet-response-closed {
|
|
892
|
+
background-color: var(--stldocs-color-snippet-box-bg);
|
|
899
893
|
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}
|
|
894
|
+
.stldocs-snippet-response {
|
|
895
|
+
max-height: 1000px;
|
|
896
|
+
opacity: 1;
|
|
904
897
|
}
|
|
905
898
|
}
|
|
906
899
|
}
|
|
900
|
+
}
|
|
907
901
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
.stldocs-method.stldocs-method-double-pane .stldocs-method-body {
|
|
915
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
916
|
-
grid-template-areas: 'description example';
|
|
917
|
-
grid-template-rows: unset;
|
|
902
|
+
@media (min-width: 1280px) {
|
|
903
|
+
.stldocs-root {
|
|
904
|
+
.stldocs-method.stldocs-method-double-pane .stldocs-method-content-column {
|
|
905
|
+
display: block;
|
|
906
|
+
}
|
|
918
907
|
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
background-color: var(--stldocs-color-bg-inline-code);
|
|
908
|
+
.stldocs-method.stldocs-method-double-pane .stldocs-method-body {
|
|
909
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
910
|
+
grid-template-areas: 'description example';
|
|
911
|
+
grid-template-rows: unset;
|
|
924
912
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
913
|
+
.stldocs-snippet {
|
|
914
|
+
padding: 0.5rem;
|
|
915
|
+
display: flex;
|
|
916
|
+
flex-direction: column;
|
|
917
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
928
918
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
919
|
+
.stldocs-snippet-response {
|
|
920
|
+
display: block;
|
|
921
|
+
}
|
|
932
922
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
width: calc(100% + 2rem);
|
|
937
|
-
height: 1px;
|
|
938
|
-
position: absolute;
|
|
939
|
-
top: calc(-0.5rem);
|
|
940
|
-
left: -1rem;
|
|
941
|
-
background-color: var(--stldocs-color-hairline);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
923
|
+
.stldocs-snippet-response-pane {
|
|
924
|
+
position: relative;
|
|
925
|
+
padding: 0;
|
|
944
926
|
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
927
|
+
&::before {
|
|
928
|
+
content: '';
|
|
929
|
+
flex: 0 0 1rem;
|
|
930
|
+
width: calc(100% + 2rem);
|
|
931
|
+
height: 1px;
|
|
932
|
+
position: absolute;
|
|
933
|
+
top: calc(-0.5rem);
|
|
934
|
+
left: -1rem;
|
|
935
|
+
background-color: var(--stldocs-color-hairline);
|
|
948
936
|
}
|
|
949
937
|
}
|
|
950
938
|
|
|
951
|
-
.stldocs-
|
|
952
|
-
display:
|
|
953
|
-
|
|
939
|
+
.stldocs-snippet-multi-response {
|
|
940
|
+
display: block;
|
|
941
|
+
padding: 0;
|
|
954
942
|
}
|
|
943
|
+
}
|
|
955
944
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
945
|
+
.stldocs-method-response-column {
|
|
946
|
+
display: none;
|
|
947
|
+
margin-top: 0;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.stldocs-method-content-column {
|
|
951
|
+
grid-area: description;
|
|
952
|
+
}
|
|
959
953
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
954
|
+
.stldocs-method-example {
|
|
955
|
+
margin-top: 0;
|
|
956
|
+
grid-area: example;
|
|
963
957
|
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
958
|
+
.stldocs-snippet-multi-response {
|
|
959
|
+
display: block;
|
|
960
|
+
border: none;
|
|
967
961
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
962
|
+
.stldocs-snippet {
|
|
963
|
+
background-color: transparent;
|
|
971
964
|
}
|
|
972
965
|
}
|
|
966
|
+
}
|
|
973
967
|
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
968
|
+
.stldocs-method-info {
|
|
969
|
+
grid-area: unset;
|
|
970
|
+
margin-top: 0;
|
|
971
|
+
}
|
|
978
972
|
|
|
979
|
-
|
|
980
|
-
|
|
973
|
+
.stldocs-snippet-response-tab {
|
|
974
|
+
margin-bottom: 0.5rem;
|
|
981
975
|
|
|
982
|
-
|
|
983
|
-
|
|
976
|
+
&.stldocs-snippet-response-tab-single-return {
|
|
977
|
+
background-color: transparent;
|
|
984
978
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
}
|
|
979
|
+
.stldocs-snippet-response-tab-item {
|
|
980
|
+
padding: 0;
|
|
988
981
|
}
|
|
989
982
|
}
|
|
990
983
|
}
|