@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.
@@ -1,990 +1,983 @@
1
- @layer docs-ui {
2
- /* Overview page content */
3
- .stldocs-root .stldocs-overview {
4
- .stldocs-overview-header {
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
- max-width: var(--stldocs-content-width);
9
- margin: auto 0;
10
- }
6
+ & > * {
7
+ max-width: var(--stldocs-content-width);
8
+ margin: auto 0;
9
+ }
11
10
 
12
- .stldocs-overview-header-info {
13
- margin-top: 16px;
14
- height: 40px;
15
- display: flex;
16
- align-items: center;
11
+ .stldocs-overview-header-info {
12
+ margin-top: 16px;
13
+ height: 40px;
14
+ display: flex;
15
+ align-items: center;
17
16
 
18
- .stldocs-overview-header-info-timestamp {
19
- font-size: var(--stldocs-font-size-small);
20
- color: var(--stldocs-color-text);
21
- opacity: 50%;
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
- .stldocs-resource {
27
- padding: 2rem 0;
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
- .stldocs-resource-header {
36
- display: flex;
37
- flex-direction: column;
38
- gap: 16px;
39
- opacity: 85%;
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
- .stldocs-resource-title-segment {
51
- margin-right: 8px;
52
- color: var(--stldocs-color-text);
34
+ .stldocs-resource-header {
35
+ display: flex;
36
+ flex-direction: column;
37
+ gap: 16px;
38
+ opacity: 85%;
53
39
 
54
- &:not(:last-child) {
55
- color: var(--stldocs-color-text-secondary);
56
- font-weight: 400;
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-name {
62
- font-family: var(--stldocs-font-mono);
49
+ .stldocs-resource-title-segment {
50
+ margin-right: 8px;
63
51
  color: var(--stldocs-color-text);
64
- }
65
52
 
66
- .stldocs-resource-description {
67
- font-size: var(--stldocs-font-size-body);
68
- color: var(--stldocs-color-text-secondary);
69
- line-height: 150%;
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-content {
74
- .stldocs-resource-content-group {
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
- flex-direction: column;
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
- .stldocs-resource-content-group-name {
88
- color: var(--stldocs-color-text-muted);
89
- }
86
+ .stldocs-resource-content-group-name {
87
+ color: var(--stldocs-color-text-muted);
88
+ }
90
89
 
91
- .stldocs-resource-content-properties {
92
- margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
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
- > .stldocs-resource:nth-child(2) {
99
- padding-top: 0;
100
- }
97
+ > .stldocs-resource:nth-child(2) {
98
+ padding-top: 0;
101
99
  }
100
+ }
102
101
 
103
- /* Overview page method summary */
104
- .stldocs-root .stldocs-overview .stldocs-method-summary {
105
- padding: var(--stldocs-content-padding) 0;
102
+ /* Overview page method summary */
103
+ .stldocs-root .stldocs-overview .stldocs-method-summary {
104
+ padding: var(--stldocs-content-padding) 0;
106
105
 
107
- .stldocs-method-header {
108
- display: flex;
109
- flex-direction: column;
110
- gap: 4px;
106
+ .stldocs-method-header {
107
+ display: flex;
108
+ flex-direction: column;
109
+ gap: 4px;
111
110
 
112
- .stldocs-method-title {
113
- margin-bottom: 2px;
111
+ .stldocs-method-title {
112
+ margin-bottom: 2px;
114
113
 
115
- a:hover {
116
- text-decoration: underline;
117
- }
114
+ a:hover {
115
+ text-decoration: underline;
118
116
  }
117
+ }
119
118
 
120
- .stldocs-method-route {
121
- padding-top: 4px;
122
- }
119
+ .stldocs-method-route {
120
+ padding-top: 4px;
123
121
  }
122
+ }
124
123
 
125
- .stldocs-method-signature {
126
- max-width: var(--stldocs-content-width);
127
- font-family: var(--stldocs-font-mono);
128
- font-size: var(--stldocs-font-size-body);
129
- color: var(--stldocs-color-text-tertiary);
130
- white-space: pre-wrap;
131
- word-wrap: break-word;
132
- overflow: hidden;
133
- text-overflow: ellipsis;
134
- line-height: 1.5rem;
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
- .stldocs-signature-qualified {
137
- color: var(--stldocs-color-text-secondary);
138
- font-weight: 400;
139
- }
140
+ .stldocs-signature-name {
141
+ color: var(--stldocs-color-text);
142
+ font-weight: 600;
143
+ }
140
144
 
141
- .stldocs-signature-name {
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
- .stldocs-type {
153
- color: var(--stldocs-color-text);
154
- }
151
+ .stldocs-type {
152
+ color: var(--stldocs-color-text);
153
+ }
155
154
 
156
- .stldocs-type-preview[data-stldocs-type-preview='properties'] {
157
- display: none;
158
- }
155
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
156
+ display: none;
159
157
  }
158
+ }
160
159
 
161
- .stldocs-method-description {
162
- color: var(--stldocs-color-text-muted);
163
- height: 1.7rem;
164
- overflow-y: hidden;
165
- line-height: 1.7rem;
166
- padding-bottom: var(--stldocs-content-padding);
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
- .stldocs-content > * {
169
- white-space: nowrap;
170
- overflow-x: hidden;
171
- text-overflow: ellipsis;
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
- /* Method route rendering is shared between method previews and pages */
177
- .stldocs-root .stldocs-method-header .stldocs-method-route {
192
+ .stldocs-root {
193
+ .stldocs-method-route-httpmethod {
178
194
  display: flex;
179
195
  gap: 4px;
180
- padding: 0;
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-method-route-endpoint {
183
- font-family: var(--stldocs-font-mono);
184
- font-size: var(--stldocs-font-size-body);
185
- color: var(--stldocs-color-text-tertiary);
186
- align-content: center;
187
- line-height: 120%;
188
- overflow-x: hidden;
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
- .stldocs-root {
194
- .stldocs-method-route-httpmethod {
195
- display: flex;
196
- gap: 4px;
197
- padding: 4px 8px 4px 4px;
198
- text-transform: uppercase;
199
- border-radius: 4px;
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
- .stldocs-icon {
208
- max-width: unset;
209
- stroke-width: 3px;
210
- }
225
+ .stldocs-expander-summary-content {
226
+ width: 100%;
227
+ }
211
228
 
212
- &.stldocs-method-route-httpmethod-icon-only {
213
- padding: 4px;
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
- /* Models and properties */
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-expander-summary-content {
227
- width: 100%;
240
+ & > .stldocs-property-type > .stldocs-text-identifier {
241
+ color: var(--stldocs-color-text);
228
242
  }
243
+ }
229
244
 
230
- .stldocs-property-header {
231
- align-items: first baseline;
232
- display: flex;
233
- gap: 0.5rem;
234
- flex-wrap: wrap;
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
- .stldocs-property-info {
238
- display: flex;
239
- flex-direction: column;
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
- & > .stldocs-property-type > .stldocs-text-identifier {
242
- color: var(--stldocs-color-text);
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
- .stldocs-property-type {
247
- font-family: var(--stldocs-font-mono);
248
- color: var(--stldocs-color-text-muted);
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
- .stldocs-property-type,
252
- .stldocs-property-declaration {
253
- .stldocs-type-preview[data-stldocs-type-preview='union']
254
- .stldocs-type-preview[data-stldocs-type-preview='properties'] {
255
- display: none;
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
- .stldocs-property-deprecated {
260
- font-family: var(--stldocs-font);
261
- color: var(--stldocs-color-red);
262
- font-size: var(--stldocs-font-size-body);
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
- .stldocs-property-deprecated-message {
330
+ [data-badge-id='deprecated'] {
267
331
  color: var(--stldocs-color-red);
268
- font-size: var(--stldocs-font-size-small);
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
- .stldocs-property-declaration {
272
- white-space: nowrap;
273
- overflow: hidden;
274
- text-overflow: ellipsis;
275
- font-size: var(--stldocs-font-size-body);
276
- flex: 1;
277
- min-width: 0;
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
- .stldocs-property-deprecated {
280
- margin-right: 0.44rem;
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-description {
285
- font-size: 0.9rem;
286
- color: var(--stldocs-color-text-secondary);
362
+ .stldocs-property-constraint-name {
363
+ color: var(--stldocs-color-text-tertiary);
287
364
 
288
- & .stldocs-content {
289
- color: var(--stldocs-color-text-secondary);
365
+ &::after {
366
+ content: ':';
367
+ margin-right: 0.4rem;
290
368
  }
291
369
  }
292
370
 
293
- .stldocs-property-name {
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
- font-size: var(--stldocs-font-size-body);
296
- color: var(--stldocs-color-text-bright);
297
- font-weight: 700;
375
+ border-radius: 4px;
376
+ padding: 3px 4px;
298
377
  }
378
+ }
299
379
 
300
- .stldocs-property-annotation {
301
- color: var(--stldocs-color-text-tertiary);
302
- font-size: var(--stldocs-font-size-body);
303
- }
380
+ .stldocs-property-type:not(:first-child) {
381
+ font-size: 0.8rem;
382
+ }
304
383
 
305
- .stldocs-property-typename {
306
- font-size: var(--stldocs-font-size-small);
307
- color: var(--stldocs-color-text-tertiary);
308
- line-height: 175%;
384
+ .stldocs-property .stldocs-property-type {
385
+ font-size: 0.8rem;
386
+ }
387
+ }
309
388
 
310
- .stldocs-type-reference {
311
- font-size: 0.8rem;
312
- color: var(--stldocs-syntax-color-blue);
313
- font-weight: 600;
314
- }
315
- }
389
+ .stldocs-root {
390
+ .stldocs-properties {
391
+ display: flex;
392
+ flex-direction: column;
393
+ line-height: 150%;
394
+ }
395
+ }
316
396
 
317
- .stldocs-property-type {
318
- .stldocs-truncation {
319
- margin-right: 0.2rem;
320
- white-space: nowrap;
321
- }
322
- }
397
+ .stldocs-root .stldocs-property {
398
+ padding: 0.2rem 0;
323
399
 
324
- .stldocs-property-badges {
325
- display: flex;
326
- font-size: 0.85rem;
327
- gap: 0.5rem;
328
- text-transform: lowercase;
329
- line-height: 1.5rem;
400
+ [open] > .stldocs-expander-summary {
401
+ padding-bottom: 0;
402
+ }
403
+ }
330
404
 
331
- [data-badge-id='deprecated'] {
332
- color: var(--stldocs-color-red);
333
- background-color: var(--stldocs--color-red-low);
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
- [data-badge-id='optional'] {
340
- background-color: var(--stldocs-color-bg-inline-code);
341
- padding: 0px 6px;
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
- text-transform: capitalize;
437
+ font-size: var(--stldocs-font-size-small);
438
+ font-weight: 500;
344
439
  }
345
440
  }
346
441
 
347
- .stldocs-property-constraints {
348
- display: flex;
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
- .stldocs-property-constraint {
353
- color: var(--stldocs-color-text-muted);
446
+ color: var(--stldocs-color-text-tertiary);
447
+ white-space: pre-wrap;
448
+ word-wrap: break-word;
449
+ font-weight: 400;
354
450
 
355
- &:not(:last-child) {
356
- &::after {
357
- content: ', ';
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-property-constraint-name {
364
- color: var(--stldocs-color-text-tertiary);
456
+ .stldocs-signature-name {
457
+ color: var(--stldocs-color-text);
458
+ font-weight: 600;
459
+ }
365
460
 
366
- &::after {
367
- content: ':';
368
- margin-right: 0.4rem;
461
+ .stldoc-signature-params {
462
+ .stldocs-text-identifier {
463
+ color: var(--stldocs-color-text);
369
464
  }
370
465
  }
371
466
 
372
- .stldocs-property-constraint-value {
373
- background-color: var(--stldocs-color-bg-inline-code);
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-property-type:not(:first-child) {
382
- font-size: 0.8rem;
472
+ .stldocs-method-route {
473
+ padding-top: 12px;
383
474
  }
384
475
 
385
- .stldocs-property .stldocs-property-type {
386
- font-size: 0.8rem;
476
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
477
+ display: none;
387
478
  }
388
479
  }
389
480
 
390
- .stldocs-root {
391
- .stldocs-properties {
392
- display: flex;
393
- flex-direction: column;
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-root .stldocs-property {
399
- padding: 0.2rem 0;
491
+ .stldocs-method-example {
492
+ margin-top: 1rem;
493
+ grid-area: 2/ 1/ 3/ 2;
400
494
 
401
- [open] > .stldocs-expander-summary {
402
- padding-bottom: 0;
495
+ .stldocs-snippet-multi-response {
496
+ display: none;
403
497
  }
404
498
  }
405
499
 
406
- .stldocs-root .stldocs-property:not(.stldocs-property .stldocs-property) > .stldocs-property-info {
407
- margin-left: var(--stldocs-expander-margin-shift);
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
- .stldocs-type-preview[data-stldocs-type-preview='properties'] {
477
- display: none;
478
- }
504
+ .stldocs-snippet {
505
+ background-color: transparent;
479
506
  }
507
+ }
480
508
 
481
- .stldocs-method-description {
482
- grid-area: 1 / 1/ 2/ 2;
483
- padding-bottom: var(--stldocs-content-padding);
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
- code {
486
- line-height: 150%;
487
- font-size: 0.93rem;
488
- }
517
+ h5 {
518
+ display: flex;
489
519
  }
520
+ }
490
521
 
491
- .stldocs-method-example {
492
- margin-top: 1rem;
493
- grid-area: 2/ 1/ 3/ 2;
522
+ .stldocs-method-info-section {
523
+ display: flex;
524
+ gap: 0.5rem;
525
+ flex-direction: column;
526
+ }
494
527
 
495
- .stldocs-snippet-multi-response {
496
- display: none;
497
- }
498
- }
528
+ .stldocs-method-content-column {
529
+ display: contents;
530
+ }
499
531
 
500
- .stldocs-snippet-multi-response {
501
- border: 1px solid var(--stldocs-color-hairline);
502
- border-radius: 12px;
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
- .stldocs-snippet {
505
- background-color: transparent;
506
- }
539
+ .stldocs-method-description p {
540
+ color: var(--stldocs-color-text-secondary);
541
+ line-height: 150%;
507
542
  }
508
543
 
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;
544
+ h5 {
545
+ font-weight: 400;
546
+ color: var(--stldocs-color-text-tertiary);
547
+ }
516
548
 
517
- h5 {
518
- display: flex;
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-info-section {
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-content-column {
529
- display: contents;
561
+ .stldocs-method-parameters h5 {
562
+ margin-left: var(--stldocs-expander-margin-shift);
530
563
  }
564
+ }
531
565
 
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);
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
- .stldocs-method-description p {
540
- color: var(--stldocs-color-text-secondary);
541
- line-height: 150%;
542
- }
576
+ .stldocs-snippet-request {
577
+ border: 1px solid var(--stldocs-color-hairline);
578
+ border-radius: 12px;
579
+ position: relative;
543
580
 
544
- h5 {
545
- font-weight: 400;
546
- color: var(--stldocs-color-text-tertiary);
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-parameters,
550
- .stldocs-method-parameters,
551
- .stldocs-method-returns {
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
- .stldocs-method-parameters {
607
+ > div {
556
608
  display: flex;
557
- flex-direction: column;
558
609
  gap: 0.5rem;
610
+ align-items: center;
559
611
  }
560
612
 
561
- .stldocs-method-parameters h5 {
562
- margin-left: var(--stldocs-expander-margin-shift);
563
- }
564
- }
565
-
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);
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
- .stldocs-snippet-request {
577
- border: 1px solid var(--stldocs-color-hairline);
578
- border-radius: 12px;
579
- position: relative;
622
+ overflow: hidden;
623
+ white-space: nowrap;
624
+ text-overflow: ellipsis;
625
+ }
580
626
 
581
- .stldocs-snippet-code {
582
- background-color: var(--stldocs-color-bg);
583
- border-bottom-left-radius: 12px;
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-snippet-request-title {
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-method {
601
- flex-grow: 1;
602
- min-width: 0;
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
- .stldocs-icon {
631
- width: 16px;
632
- }
633
-
634
- .stldocs-snippet-request-title-content {
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
- .stldocs-snippet-request-title-copy-button {
655
- color: var(--stldocs-color-snippet-title-muted);
656
- width: 1.5rem;
657
- height: 1.5rem;
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
- &.stldocs-snippet-response-pane-active {
676
- display: block;
677
- }
665
+ &.stldocs-snippet-response-pane-active {
666
+ display: block;
678
667
  }
668
+ }
679
669
 
680
- .stldocs-snippet-response {
681
- margin-top: 1rem;
670
+ .stldocs-snippet-response {
671
+ margin-top: 1rem;
682
672
 
683
- .stldocs-snippet-response-title {
684
- display: flex;
685
- gap: 0.5rem;
686
- color: var(--stldocs-color-snippet-title-muted);
687
- padding: 0 1rem;
688
- font-family: var(--stldocs-font);
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
- .stldocs-method-response-column {
694
- display: flex;
695
- flex-direction: column;
696
- gap: 1rem;
697
- margin-top: 2.5rem;
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
- .stldocs-snippet-code {
701
- width: 0;
702
- min-width: 100%;
703
- overflow: auto;
704
- display: block;
705
- white-space: preserve nowrap;
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
- max-height: 560px;
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
- .stldocs-snippet-response-tab {
741
- display: flex;
742
- gap: 0.5rem;
743
- overflow-x: auto;
707
+ pre.shiki {
708
+ counter-reset: codeblock-line;
744
709
 
745
- .stldocs-snippet-response-tab-item {
746
- flex: 1;
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
- &:hover {
764
- background-color: var(--stldocs-color-bg-hover);
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
- &.stldocs-snippet-response-tab-single-return {
773
- background-color: var(--stldocs-color-bg-inline-code);
774
- border-top-left-radius: 12px;
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-root .stldocs-language-block {
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
- flex-direction: column;
795
- gap: 8px;
732
+ gap: 0.5rem;
733
+ overflow-x: auto;
796
734
 
797
- .stldocs-language-block-content {
798
- display: flex;
799
- gap: 12px;
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
- .stldocs-language-block-content-icon {
802
- display: inline-flex;
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
- .stldocs-language-block-content-info {
810
- .stldocs-language-block-content-info-language {
811
- line-height: 120%;
812
- font-weight: 600;
813
- }
759
+ .stldocs-snippet-response-tab-item-active {
760
+ border-color: var(--stldocs-color-bg-accent);
761
+ }
814
762
 
815
- .stldocs-language-block-content-info-version {
816
- font-family: var(--stldocs-font-mono);
817
- font-size: var(--stldocs-font-size-code);
818
- font-weight: 200;
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
- .stldocs-language-block-install {
824
- display: flex;
825
- font-family: var(--stldocs-font-mono);
826
- font-size: var(--stldocs-font-size-code);
827
- background-color: var(--stldocs-color-bg-inline-code);
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: 4px 8px;
796
+ padding: 12px;
797
+ aspect-ratio: 1 / 1;
798
+ }
831
799
 
832
- pre {
833
- flex-grow: 1;
834
- white-space: nowrap;
835
- overflow-x: hidden;
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
- svg {
840
- vertical-align: middle;
841
- min-width: 16px;
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
- .stldocs-language-block-links {
824
+ pre {
825
+ flex-grow: 1;
826
+ white-space: nowrap;
827
+ overflow-x: hidden;
828
+ text-overflow: ellipsis;
846
829
  display: flex;
847
- gap: 8px;
830
+ align-items: center;
831
+ }
848
832
 
849
- & > a:last-child {
850
- flex-grow: 1;
851
- }
833
+ svg {
834
+ vertical-align: middle;
835
+ min-width: 16px;
852
836
  }
853
837
  }
854
838
 
855
- starlight-theme-select label {
856
- height: 2rem;
857
- }
839
+ .stldocs-language-block-links {
840
+ display: flex;
841
+ gap: 8px;
858
842
 
859
- starlight-theme-select select {
860
- height: 100%;
843
+ & > a:last-child {
844
+ flex-grow: 1;
845
+ }
861
846
  }
847
+ }
862
848
 
863
- /* Media Queries */
864
- @media (min-width: 1280px) {
865
- .stldocs-root .stldocs-method.stldocs-method-double-pane {
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
- .stldocs-method-body {
873
- flex-direction: row;
874
- gap: 2rem;
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
- /* Don't put expanders in the margin on mobile */
880
- @media (max-width: 50rem) {
881
- .stldocs-root .stldocs-method-body {
882
- padding: 1rem var(--stldocs-content-padding) !important;
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
- .stldocs-method-parameters,
885
- .stldocs-method-returns {
886
- margin-left: 0 !important;
887
- }
878
+ .stldocs-method-parameters,
879
+ .stldocs-method-returns {
880
+ margin-left: 0 !important;
888
881
  }
882
+ }
889
883
 
890
- .stldocs-root .stldocs-resource .stldocs-resource-content {
891
- padding: 0 var(--stldocs-content-padding) !important;
884
+ .stldocs-root .stldocs-resource .stldocs-resource-content {
885
+ padding: 0 var(--stldocs-content-padding) !important;
892
886
 
893
- .stldocs-resource-content-properties {
894
- margin-left: 0 !important;
895
- }
887
+ .stldocs-resource-content-properties {
888
+ margin-left: 0 !important;
889
+ }
896
890
 
897
- .stldocs-snippet-response-closed {
898
- background-color: var(--stldocs-color-snippet-box-bg);
891
+ .stldocs-snippet-response-closed {
892
+ background-color: var(--stldocs-color-snippet-box-bg);
899
893
 
900
- .stldocs-snippet-response {
901
- max-height: 1000px;
902
- opacity: 1;
903
- }
894
+ .stldocs-snippet-response {
895
+ max-height: 1000px;
896
+ opacity: 1;
904
897
  }
905
898
  }
906
899
  }
900
+ }
907
901
 
908
- @media (min-width: 1280px) {
909
- .stldocs-root {
910
- .stldocs-method.stldocs-method-double-pane .stldocs-method-content-column {
911
- display: block;
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
- .stldocs-snippet {
920
- padding: 0.5rem;
921
- display: flex;
922
- flex-direction: column;
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
- .stldocs-snippet-response {
926
- display: block;
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
- .stldocs-snippet-response-pane {
930
- position: relative;
931
- padding: 0;
919
+ .stldocs-snippet-response {
920
+ display: block;
921
+ }
932
922
 
933
- &::before {
934
- content: '';
935
- flex: 0 0 1rem;
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
- .stldocs-snippet-multi-response {
946
- display: block;
947
- padding: 0;
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-method-response-column {
952
- display: none;
953
- margin-top: 0;
939
+ .stldocs-snippet-multi-response {
940
+ display: block;
941
+ padding: 0;
954
942
  }
943
+ }
955
944
 
956
- .stldocs-method-content-column {
957
- grid-area: description;
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
- .stldocs-method-example {
961
- margin-top: 0;
962
- grid-area: example;
954
+ .stldocs-method-example {
955
+ margin-top: 0;
956
+ grid-area: example;
963
957
 
964
- .stldocs-snippet-multi-response {
965
- display: block;
966
- border: none;
958
+ .stldocs-snippet-multi-response {
959
+ display: block;
960
+ border: none;
967
961
 
968
- .stldocs-snippet {
969
- background-color: transparent;
970
- }
962
+ .stldocs-snippet {
963
+ background-color: transparent;
971
964
  }
972
965
  }
966
+ }
973
967
 
974
- .stldocs-method-info {
975
- grid-area: unset;
976
- margin-top: 0;
977
- }
968
+ .stldocs-method-info {
969
+ grid-area: unset;
970
+ margin-top: 0;
971
+ }
978
972
 
979
- .stldocs-snippet-response-tab {
980
- margin-bottom: 0.5rem;
973
+ .stldocs-snippet-response-tab {
974
+ margin-bottom: 0.5rem;
981
975
 
982
- &.stldocs-snippet-response-tab-single-return {
983
- background-color: transparent;
976
+ &.stldocs-snippet-response-tab-single-return {
977
+ background-color: transparent;
984
978
 
985
- .stldocs-snippet-response-tab-item {
986
- padding: 0;
987
- }
979
+ .stldocs-snippet-response-tab-item {
980
+ padding: 0;
988
981
  }
989
982
  }
990
983
  }