@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,572 +1,580 @@
1
- @layer docs-ui {
2
- /* Design System Defaults */
3
- .stldocs-root {
4
- font-family: var(--stldocs-font);
5
- background-color: var(--stldocs-color-bg);
1
+ /* Design System Defaults */
2
+ .stldocs-root {
3
+ font-family: var(--stldocs-font);
4
+ background-color: var(--stldocs-color-bg);
5
+ color: var(--stldocs-color-text);
6
+ letter-spacing: -0.01em;
7
+
8
+ h1 {
9
+ font-size: var(--stldocs-font-size-h1);
10
+ letter-spacing: -0.03em;
11
+ }
12
+
13
+ h2 {
14
+ font-size: var(--stldocs-font-size-h2);
15
+ letter-spacing: -0.03em;
16
+ }
17
+
18
+ h3 {
19
+ font-size: var(--stldocs-font-size-h3);
20
+ letter-spacing: -0.02em;
21
+ }
22
+
23
+ h4 {
24
+ font-size: var(--stldocs-font-size-h4);
25
+ letter-spacing: -0.02em;
26
+ }
27
+
28
+ h5 {
29
+ font-size: var(--stldocs-font-size-h5);
30
+ letter-spacing: -0.02em;
31
+ }
32
+ }
33
+
34
+ /* Color mapping for types */
35
+ .stldocs-root {
36
+ .stldocs-text-keyword {
37
+ color: var(--stldocs-color-text-muted);
38
+ }
6
39
 
7
- h1 {
8
- font-size: var(--stldocs-font-size-h1);
40
+ .stldocs-property-type,
41
+ .stldocs-property-declaration,
42
+ .stldocs-type:not(.stldocs-property-typename .stldocs-type) {
43
+ font-family: var(--stldocs-font-mono);
44
+
45
+ .stldocs-type-keyword {
46
+ color: var(--stldocs-syntax-color-orange);
9
47
  }
10
48
 
11
- h2 {
12
- font-size: var(--stldocs-font-size-h2);
49
+ .stldocs-type-string {
50
+ color: var(--stldocs-syntax-color-green);
13
51
  }
14
52
 
15
- h3 {
16
- font-size: var(--stldocs-font-size-h3);
53
+ .stldocs-type-brace,
54
+ .stldocs-type-bracket,
55
+ .stldocs-type-plain,
56
+ .stldocs-text-operator,
57
+ .stldocs-text-punctuation,
58
+ .stldocs-truncation,
59
+ .stldocs-type-array {
60
+ color: var(--stldocs-color-text-tertiary);
17
61
  }
18
62
 
19
- h4 {
20
- font-size: var(--stldocs-font-size-h4);
63
+ .stldocs-type-plain {
64
+ font-family: var(--stldocs-font);
21
65
  }
22
66
 
23
- h5 {
24
- font-size: var(--stldocs-font-size-h5);
67
+ .stldocs-type-reference {
68
+ color: var(--stldocs-syntax-color-blue);
69
+ font-weight: 600;
70
+ a:hover {
71
+ text-decoration: underline;
72
+ }
25
73
  }
26
- }
27
74
 
28
- /* Color mapping for types */
29
- .stldocs-root {
30
- .stldocs-text-keyword {
31
- color: var(--stldocs-color-text-muted);
75
+ .stldocs-literal-string {
76
+ color: var(--stldocs-syntax-color-green);
32
77
  }
33
78
 
34
- .stldocs-property-type,
35
- .stldocs-property-declaration,
36
- .stldocs-type:not(.stldocs-property-typename .stldocs-type) {
37
- font-family: var(--stldocs-font-mono);
79
+ .stldocs-literal-numeric {
80
+ color: var(--stldocs-syntax-color-orange);
81
+ }
38
82
 
39
- .stldocs-type-keyword {
40
- color: var(--stldocs-syntax-color-orange);
41
- }
83
+ .stldocs-text-identifier {
84
+ font-family: var(--stldocs-font-mono);
85
+ color: var(--stldocs-color-text);
86
+ }
42
87
 
43
- .stldocs-type-string {
44
- color: var(--stldocs-syntax-color-green);
45
- }
88
+ .stldocs-type-propertyname .stldocs-text-identifier {
89
+ font-family: var(--stldocs-font);
90
+ font-weight: 600;
91
+ }
92
+ }
46
93
 
47
- .stldocs-type-brace,
48
- .stldocs-type-bracket,
49
- .stldocs-type-plain,
50
- .stldocs-text-operator,
51
- .stldocs-text-punctuation,
94
+ [data-stldocs-language='http'] {
95
+ .stldocs-property-type,
96
+ .stldocs-property-declaration {
52
97
  .stldocs-truncation,
53
- .stldocs-type-array {
54
- color: var(--stldocs-color-text-tertiary);
55
- }
56
-
57
- .stldocs-type-plain {
98
+ .stldocs-type-array,
99
+ .stldocs-text-punctuation {
58
100
  font-family: var(--stldocs-font);
59
101
  }
102
+ }
103
+ }
104
+ }
60
105
 
61
- .stldocs-type-reference {
62
- color: var(--stldocs-syntax-color-blue);
63
- font-weight: 600;
64
- }
106
+ /* HTTP Method Color Settings */
107
+ .stldocs-root .stldocs-method-route,
108
+ .stldocs-root .stldocs-sidebar-method {
109
+ [data-method='get'] {
110
+ background: var(--stldocs-color-http-get-bg);
111
+ color: var(--stldocs-color-http-get);
112
+ border-color: var(--stldocs-color-http-get);
113
+ }
65
114
 
66
- .stldocs-literal-string {
67
- color: var(--stldocs-syntax-color-green);
68
- }
115
+ [data-method='post'] {
116
+ background: var(--stldocs-color-http-post-bg);
117
+ color: var(--stldocs-color-http-post);
118
+ border-color: var(--stldocs-color-http-post);
119
+ }
69
120
 
70
- .stldocs-literal-numeric {
71
- color: var(--stldocs-syntax-color-orange);
72
- }
121
+ [data-method='patch'],
122
+ [data-method='put'] {
123
+ background: var(--stldocs-color-http-put-bg);
124
+ color: var(--stldocs-color-http-put);
125
+ border-color: var(--stldocs-color-http-put);
126
+ }
73
127
 
74
- .stldocs-text-identifier {
75
- font-family: var(--stldocs-font-mono);
76
- color: var(--stldocs-color-text);
77
- }
128
+ [data-method='delete'] {
129
+ background: var(--stldocs-color-http-delete-bg);
130
+ color: var(--stldocs-color-http-delete);
131
+ border-color: var(--stldocs-color-http-delete);
132
+ }
133
+ }
78
134
 
79
- .stldocs-type-propertyname .stldocs-text-identifier {
80
- font-family: var(--stldocs-font);
81
- font-weight: 600;
82
- }
135
+ /* Generic expand/collapse button */
136
+ .stldocs-root .stldocs-expander {
137
+ &[data-stldocs-expander-muted='true'] {
138
+ .stldocs-icon {
139
+ visibility: hidden;
83
140
  }
84
141
 
85
- [data-stldocs-language='http'] {
86
- .stldocs-property-type,
87
- .stldocs-property-declaration {
88
- .stldocs-truncation,
89
- .stldocs-type-array,
90
- .stldocs-text-punctuation {
91
- font-family: var(--stldocs-font);
92
- }
142
+ &:hover {
143
+ .stldocs-icon {
144
+ visibility: visible;
93
145
  }
94
146
  }
95
147
  }
96
148
 
97
- /* HTTP Method Color Settings */
98
- .stldocs-root .stldocs-method-route,
99
- .stldocs-root .stldocs-sidebar-method {
100
- [data-method='get'] {
101
- background: var(--stldocs-color-http-get-bg);
102
- color: var(--stldocs-color-http-get);
103
- border-color: var(--stldocs-color-http-get);
104
- }
105
-
106
- [data-method='post'] {
107
- background: var(--stldocs-color-http-post-bg);
108
- color: var(--stldocs-color-http-post);
109
- border-color: var(--stldocs-color-http-post);
110
- }
149
+ .stldocs-expander-summary {
150
+ cursor: pointer;
151
+ display: flex;
152
+ /* padding: 0.4rem 0; */
111
153
 
112
- [data-method='patch'],
113
- [data-method='put'] {
114
- background: var(--stldocs-color-http-put-bg);
115
- color: var(--stldocs-color-http-put);
116
- border-color: var(--stldocs-color-http-put);
117
- }
154
+ & > .stldocs-expander-summary-icon {
155
+ margin-right: 8px;
156
+ transform: translateX(-0.5px) translateY(-0.5px);
118
157
 
119
- [data-method='delete'] {
120
- background: var(--stldocs-color-http-delete-bg);
121
- color: var(--stldocs-color-http-delete);
122
- border-color: var(--stldocs-color-http-delete);
123
- }
124
- }
125
-
126
- /* Generic expand/collapse button */
127
- .stldocs-root .stldocs-expander {
128
- &[data-stldocs-expander-muted='true'] {
129
- .stldocs-icon {
130
- visibility: hidden;
158
+ & > .stldocs-icon {
159
+ vertical-align: middle;
160
+ color: var(--stldocs-color-text-tertiary);
161
+ background-color: var(--stldocs-color-bg);
131
162
  }
132
163
 
133
- &:hover {
134
- .stldocs-icon {
135
- visibility: visible;
136
- }
164
+ & > :last-child {
165
+ display: none;
137
166
  }
138
167
  }
168
+ }
139
169
 
140
- .stldocs-expander-summary {
141
- cursor: pointer;
142
- display: flex;
143
- /* padding: 0.4rem 0; */
170
+ &[open],
171
+ &[data-open='true'] {
172
+ & > .stldocs-expander-summary {
173
+ .stldocs-type-preview-content {
174
+ display: none;
175
+ }
144
176
 
145
177
  & > .stldocs-expander-summary-icon {
146
- margin-right: 8px;
147
- transform: translateX(-0.5px) translateY(-0.5px);
148
-
149
- & > .stldocs-icon {
150
- vertical-align: middle;
151
- color: var(--stldocs-color-text-tertiary);
152
- background-color: var(--stldocs-color-bg);
178
+ & > :first-child {
179
+ display: none;
153
180
  }
154
181
 
155
182
  & > :last-child {
156
- display: none;
183
+ display: inline;
157
184
  }
158
185
  }
159
186
  }
160
187
 
161
- &[open],
162
- &[data-open='true'] {
163
- & > .stldocs-expander-summary {
164
- .stldocs-type-preview-content {
165
- display: none;
166
- }
188
+ & > .stldocs-expander-content {
189
+ margin-left: var(--stldocs-expander-margin-shift);
190
+ line-height: 150%;
167
191
 
168
- & > .stldocs-expander-summary-icon {
169
- & > :first-child {
170
- display: none;
171
- }
192
+ & > .stldocs-property-children {
193
+ border-left: 1px solid var(--stldocs-color-hairline-light);
194
+ padding-left: 16px;
172
195
 
173
- & > :last-child {
174
- display: inline;
175
- }
196
+ .stldocs-expander {
197
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
198
+ padding-right: var(--stldocs-expander-right-margin);
176
199
  }
177
200
  }
201
+ }
202
+ }
203
+ }
178
204
 
179
- & > .stldocs-expander-content {
180
- margin-left: var(--stldocs-expander-margin-shift);
181
- line-height: 150%;
205
+ /* Markdown content */
206
+ .stldocs-root .stldocs-content {
207
+ a {
208
+ color: var(--stldocs-color-text-accent);
209
+ }
182
210
 
183
- & > .stldocs-property-children {
184
- border-left: 1px solid var(--stldocs-color-hairline-light);
185
- padding-left: 16px;
211
+ code {
212
+ font-family: var(--stldocs-font-mono);
213
+ border-radius: 4px;
214
+ padding: 0 4px;
215
+ background-color: var(--stldocs-color-bg-inline-code);
216
+ word-break: break-all;
217
+ font-size: 0.84rem;
218
+ }
186
219
 
187
- .stldocs-expander {
188
- margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
189
- padding-right: var(--stldocs-expander-right-margin);
190
- }
191
- }
192
- }
193
- }
220
+ strong {
221
+ font-weight: bold;
194
222
  }
195
223
 
196
- /* Markdown content */
197
- .stldocs-root .stldocs-content {
198
- a {
199
- color: var(--stldocs-color-text-accent);
200
- }
224
+ em {
225
+ font-style: italic;
226
+ }
201
227
 
202
- code {
203
- font-family: var(--stldocs-font-mono);
204
- border-radius: 4px;
205
- padding: 0 4px;
206
- background-color: var(--stldocs-color-bg-inline-code);
207
- word-break: break-all;
208
- font-size: 0.84rem;
209
- }
228
+ p {
229
+ display: block;
230
+ margin: 0 0 1em;
210
231
 
211
- strong {
212
- font-weight: bold;
232
+ &:last-child {
233
+ margin: 0;
213
234
  }
235
+ }
214
236
 
215
- em {
216
- font-style: italic;
217
- }
237
+ li {
238
+ margin-bottom: 0.25rem;
239
+ display: list-item;
240
+ }
218
241
 
219
- p {
220
- display: block;
221
- margin: 0 0 1em;
242
+ ol,
243
+ ul {
244
+ display: block;
245
+ list-style-type: initial;
246
+ margin-left: 2rem;
247
+ margin-bottom: 0.8rem;
248
+ }
222
249
 
223
- &:last-child {
224
- margin: 0;
225
- }
226
- }
250
+ ol {
251
+ list-style-type: decimal;
252
+ }
253
+ }
227
254
 
228
- li {
229
- margin-bottom: 0.25rem;
230
- display: list-item;
231
- }
255
+ .stldocs-root .stldocs-input {
256
+ border: 1px solid var(--stldocs-color-hairline);
257
+ border-radius: 0.3rem;
258
+ padding: 0.5rem;
259
+ display: flex;
260
+ gap: 0.5rem;
232
261
 
233
- ol,
234
- ul {
235
- display: block;
236
- list-style-type: initial;
237
- margin-left: 2rem;
238
- margin-bottom: 0.8rem;
239
- }
262
+ input {
263
+ flex-grow: 1;
264
+ }
240
265
 
241
- ol {
242
- list-style-type: decimal;
243
- }
266
+ .stldocs-icon {
267
+ margin-top: auto;
268
+ margin-bottom: auto;
244
269
  }
270
+ }
245
271
 
246
- .stldocs-root .stldocs-input {
247
- border: 1px solid var(--stldocs-color-hairline);
248
- border-radius: 0.3rem;
249
- padding: 0.5rem;
250
- display: flex;
251
- gap: 0.5rem;
272
+ .stldocs-root .stldocs-listview {
273
+ overflow-y: scroll;
252
274
 
253
- input {
254
- flex-grow: 1;
255
- }
275
+ .stldocs-listview-item:not(:last-child) {
276
+ border-bottom: 1px solid var(--stldocs-color-hairline);
277
+ }
256
278
 
257
- .stldocs-icon {
258
- margin-top: auto;
259
- margin-bottom: auto;
260
- }
279
+ [data-stldocs-listview-selected='true'] > :first-child {
280
+ background-color: var(--stldocs-color-selected);
281
+ border-radius: 0.5rem;
261
282
  }
283
+ }
262
284
 
263
- .stldocs-root .stldocs-listview {
264
- overflow-y: scroll;
285
+ .stldocs-root {
286
+ .stldocs-tooltip-host {
287
+ display: inline-block;
288
+ }
265
289
 
266
- .stldocs-listview-item:not(:last-child) {
267
- border-bottom: 1px solid var(--stldocs-color-hairline);
268
- }
290
+ .stldocs-tooltip-content {
291
+ border: 1px solid var(--stldocs-color-hairline);
292
+ background: var(--stldocs-color-bg);
293
+ border-radius: 8px;
294
+ padding: 0.2rem 0.4rem;
269
295
 
270
- [data-stldocs-listview-selected='true'] > :first-child {
271
- background-color: var(--stldocs-color-selected);
272
- border-radius: 0.5rem;
296
+ * {
297
+ font-size: 0.8rem !important;
273
298
  }
274
- }
275
299
 
276
- .stldocs-root {
277
- .stldocs-tooltip-host {
278
- display: inline-block;
279
- }
300
+ position: absolute;
280
301
 
281
- .stldocs-tooltip-content {
282
- border: 1px solid var(--stldocs-color-hairline);
283
- background: var(--stldocs-color-bg);
284
- border-radius: 8px;
285
- padding: 0.2rem 0.4rem;
302
+ transition:
303
+ opacity 0.3s ease-in-out,
304
+ visibility 0.3s step-end 0.3s;
305
+ visibility: hidden;
306
+ opacity: 0;
286
307
 
287
- * {
288
- font-size: 0.8rem !important;
289
- }
308
+ max-width: 400px;
309
+ max-height: 300px;
310
+ overflow: auto;
290
311
 
291
- position: absolute;
312
+ .stldocs-property-description {
313
+ display: none;
314
+ }
315
+ }
292
316
 
293
- transition:
294
- opacity 0.3s ease-in-out,
295
- visibility 0.3s step-end 0.3s;
296
- visibility: hidden;
297
- opacity: 0;
317
+ .stldocs-tooltip:hover .stldocs-tooltip-content {
318
+ transition-delay: 0s, 0s;
319
+ visibility: visible;
320
+ opacity: 1;
321
+ }
322
+ }
298
323
 
299
- max-width: 400px;
300
- max-height: 300px;
301
- overflow: auto;
324
+ .stldocs-root {
325
+ .stldocs-breadcrumbs {
326
+ display: flex;
327
+ align-items: center;
328
+ gap: 0.5rem;
302
329
 
303
- .stldocs-property-description {
304
- display: none;
305
- }
330
+ svg {
331
+ width: 1rem;
332
+ min-width: 1rem;
333
+ stroke: var(--stldocs-color-text-secondary);
334
+ opacity: 0.25;
335
+ margin: 0;
306
336
  }
307
337
 
308
- .stldocs-tooltip:hover .stldocs-tooltip-content {
309
- transition-delay: 0s, 0s;
310
- visibility: visible;
311
- opacity: 1;
338
+ .stldocs-breadcrumbs-non-link,
339
+ .stldocs-breadcrumbs-link {
340
+ color: var(--stldocs-color-text-secondary);
341
+ font-size: var(--stldocs-font-size-small);
342
+ line-height: 150%;
343
+ text-decoration: none;
312
344
  }
313
- }
314
345
 
315
- .stldocs-root {
316
- .stldocs-breadcrumbs {
346
+ .stldocs-breadcrumbs-link:hover {
347
+ text-decoration: underline;
348
+ color: var(--stldocs-color-text);
349
+ }
350
+
351
+ .stldocs-breadcrumbs-item {
317
352
  display: flex;
318
353
  align-items: center;
319
354
  gap: 0.5rem;
355
+ margin: 0;
356
+ height: var(--stldocs-button-size);
357
+ }
358
+ }
320
359
 
321
- svg {
322
- width: 1rem;
323
- min-width: 1rem;
324
- stroke: var(--stldocs-color-text-secondary);
325
- opacity: 0.25;
326
- margin: 0;
327
- }
360
+ /* Dropdown component styles */
361
+ .stldocs-dropdown {
362
+ position: relative;
363
+ font-size: 0.85rem;
328
364
 
329
- .stldocs-breadcrumbs-non-link,
330
- .stldocs-breadcrumbs-link {
331
- color: var(--stldocs-color-text-secondary);
332
- font-size: var(--stldocs-font-size-small);
333
- line-height: 150%;
334
- text-decoration: none;
335
- }
365
+ span {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: center;
369
+ }
370
+ }
336
371
 
337
- .stldocs-breadcrumbs-link:hover {
338
- text-decoration: underline;
339
- color: var(--stldocs-color-text);
340
- }
372
+ .stldocs-dropdown-trigger {
373
+ display: flex;
374
+ align-items: center;
375
+ justify-content: space-between;
376
+ gap: 6px;
377
+ padding: 0.5rem;
341
378
 
342
- .stldocs-breadcrumbs-item {
343
- display: flex;
344
- align-items: center;
345
- gap: 0.5rem;
346
- margin: 0;
347
- height: var(--stldocs-button-size);
348
- }
379
+ .stldocs-icon {
380
+ margin: unset;
381
+ width: 16px;
349
382
  }
350
383
 
351
- /* Dropdown component styles */
352
- .stldocs-dropdown {
353
- position: relative;
354
- font-size: 0.85rem;
355
-
356
- span {
357
- display: flex;
358
- align-items: center;
359
- justify-content: center;
360
- }
384
+ &:hover {
385
+ border-color: var(--stldocs-color-hairline-shade);
361
386
  }
387
+ }
362
388
 
363
- .stldocs-dropdown-trigger {
364
- display: flex;
365
- align-items: center;
366
- justify-content: space-between;
367
- gap: 6px;
368
- padding: 0.5rem;
389
+ .stldocs-dropdown-trigger-content {
390
+ display: flex;
391
+ align-items: center;
392
+ gap: 8px;
393
+ }
369
394
 
370
- .stldocs-icon {
371
- margin: unset;
372
- width: 16px;
373
- }
395
+ .stldocs-dropdown-chevron {
396
+ margin-right: calc(-1 * var(--sl-button-icon-offset));
397
+ padding: 0;
398
+ opacity: 0.25;
399
+ }
374
400
 
375
- &:hover {
376
- border-color: var(--stldocs-color-hairline-shade);
377
- }
401
+ .stldocs-dropdown-chevron svg path {
402
+ stroke: var(--stldocs-color-text-secondary);
403
+ }
404
+
405
+ .stldocs-dropdown-menu {
406
+ position: absolute;
407
+ right: 0;
408
+ bottom: 100%;
409
+ z-index: var(--stldocs-z-index-theme-select);
410
+ background: var(--stldocs-color-bg);
411
+ border: 1px solid var(--stldocs-color-hairline);
412
+ border-radius: var(--stldocs-button-border-radius);
413
+ margin-bottom: 4px;
414
+ padding: 0;
415
+ width: 100%;
416
+ min-width: 100px;
417
+ overflow: hidden;
418
+ display: none;
419
+ box-shadow: 0px 4px 4px -2px #00000014;
420
+
421
+ &.below {
422
+ margin-bottom: unset;
423
+ bottom: unset;
424
+ top: 100%;
425
+ margin-top: 4px;
378
426
  }
427
+ }
379
428
 
380
- .stldocs-dropdown-trigger-content {
429
+ .stldocs-dropdown-menu.open {
430
+ display: block;
431
+ }
432
+
433
+ .stldocs-dropdown-item {
434
+ display: flex;
435
+ align-items: center;
436
+ justify-content: space-between;
437
+ gap: 8px;
438
+ padding: 6px 10px;
439
+ cursor: pointer;
440
+ height: 32px;
441
+
442
+ div {
381
443
  display: flex;
382
444
  align-items: center;
383
445
  gap: 8px;
384
446
  }
385
447
 
386
- .stldocs-dropdown-chevron {
387
- margin-right: calc(-1 * var(--sl-button-icon-offset));
388
- padding: 0;
389
- opacity: 0.25;
390
- }
391
-
392
- .stldocs-dropdown-chevron svg path {
393
- stroke: var(--stldocs-color-text-secondary);
394
- }
395
-
396
- .stldocs-dropdown-menu {
397
- position: absolute;
398
- right: 0;
399
- bottom: 100%;
400
- z-index: var(--stldocs-z-index-theme-select);
401
- background: var(--stldocs-color-bg);
402
- border: 1px solid var(--stldocs-color-hairline);
403
- border-radius: var(--stldocs-button-border-radius);
404
- margin-bottom: 4px;
405
- padding: 0;
406
- width: 100%;
407
- min-width: 100px;
408
- overflow: hidden;
448
+ .lucide-check {
449
+ height: var(--stlodcs-font-size-body);
450
+ width: var(--stlodcs-font-size-body);
409
451
  display: none;
410
- box-shadow: 0px 4px 4px -2px #00000014;
411
-
412
- &.below {
413
- margin-bottom: unset;
414
- bottom: unset;
415
- top: 100%;
416
- margin-top: 4px;
417
- }
418
452
  }
419
453
 
420
- .stldocs-dropdown-menu.open {
421
- display: block;
454
+ .stldocs-icon {
455
+ width: 16px;
422
456
  }
423
457
 
424
- .stldocs-dropdown-item {
425
- display: flex;
426
- align-items: center;
427
- justify-content: space-between;
428
- gap: 8px;
429
- padding: 6px 10px;
430
- cursor: pointer;
431
- height: 32px;
458
+ &.stldocs-dropdown-item-link {
459
+ padding: 0;
460
+ height: unset;
461
+ gap: 0;
432
462
 
433
- div {
463
+ a {
434
464
  display: flex;
435
465
  align-items: center;
466
+ justify-content: space-between;
436
467
  gap: 8px;
437
- }
438
-
439
- .lucide-check {
440
- height: var(--stlodcs-font-size-body);
441
- width: var(--stlodcs-font-size-body);
442
- display: none;
443
- }
444
-
445
- .stldocs-icon {
446
- width: 16px;
447
- }
448
-
449
- &.stldocs-dropdown-item-link {
450
- padding: 0;
451
- height: unset;
452
- gap: 0;
453
-
454
- a {
455
- display: flex;
456
- align-items: center;
457
- justify-content: space-between;
458
- gap: 8px;
459
- padding: 6px 10px;
460
- cursor: pointer;
461
- height: 32px;
462
- width: 100%;
463
- text-decoration: none;
464
- color: inherit;
465
- }
468
+ padding: 6px 10px;
469
+ cursor: pointer;
470
+ height: 32px;
471
+ width: 100%;
472
+ text-decoration: none;
473
+ color: inherit;
466
474
  }
467
475
  }
476
+ }
468
477
 
469
- .stldocs-dropdown-item:hover {
470
- background-color: var(--stldocs-color-bg-inline-code);
471
- }
478
+ .stldocs-dropdown-item:hover {
479
+ background-color: var(--stldocs-color-bg-inline-code);
480
+ }
472
481
 
473
- .stldocs-dropdown-item.selected {
474
- .lucide-check {
475
- display: inline;
476
- }
482
+ .stldocs-dropdown-item.selected {
483
+ .lucide-check {
484
+ display: inline;
477
485
  }
486
+ }
478
487
 
479
- @media (min-width: 50rem) {
480
- .stldocs-dropdown-menu {
481
- margin-bottom: unset;
482
- bottom: unset;
483
- top: 100%;
484
- margin-top: 4px;
485
- }
488
+ @media (min-width: 50rem) {
489
+ .stldocs-dropdown-menu {
490
+ margin-bottom: unset;
491
+ bottom: unset;
492
+ top: 100%;
493
+ margin-top: 4px;
486
494
  }
487
495
  }
496
+ }
488
497
 
489
- /* Intentionally not using the stldocs-root selector here, as buttons are sometimes outside the stldocs-root. */
490
- .stldocs-button {
491
- border-radius: var(--stldocs-button-border-radius);
492
- display: flex;
493
- padding: var(--stldocs-button-padding-y) var(--stldocs-button-padding-x);
494
- justify-content: center;
495
- align-items: center;
496
- height: var(--stldocs-button-size);
497
- cursor: pointer;
498
- text-decoration: none;
499
- text-wrap: nowrap;
500
- font-weight: 500;
501
- line-height: 150%;
498
+ /* Intentionally not using the stldocs-root selector here, as buttons are sometimes outside the stldocs-root. */
499
+ .stldocs-button {
500
+ border-radius: var(--stldocs-button-border-radius);
501
+ display: flex;
502
+ padding: var(--stldocs-button-padding-y) var(--stldocs-button-padding-x);
503
+ justify-content: center;
504
+ align-items: center;
505
+ height: var(--stldocs-button-size);
506
+ cursor: pointer;
507
+ text-decoration: none;
508
+ text-wrap: nowrap;
509
+ font-weight: 500;
510
+ line-height: 150%;
511
+ font-size: var(--sl-text-sm);
512
+
513
+ span {
514
+ padding-left: var(--sl-button-icon-offset);
515
+ padding-right: var(--sl-button-icon-offset);
502
516
  font-size: var(--sl-text-sm);
503
-
504
- span {
505
- padding-left: var(--sl-button-icon-offset);
506
- padding-right: var(--sl-button-icon-offset);
507
- font-size: var(--sl-text-sm);
508
- }
509
-
510
- &.stldocs-button-icon {
511
- > svg {
512
- margin: 0;
513
- }
514
- }
515
517
  }
516
518
 
517
- .stldocs-button-icon {
519
+ &.stldocs-button-icon {
518
520
  > svg {
519
521
  margin: 0;
520
522
  }
521
523
  }
524
+ }
522
525
 
523
- .stldocs-button-primary {
524
- background-color: var(--stldocs-color-text);
525
- color: var(--stldocs-color-text-invert);
526
+ .stldocs-button-icon {
527
+ > svg {
528
+ margin: 0;
526
529
  }
530
+ }
527
531
 
528
- .stldocs-button-secondary {
529
- background-color: var(--stldocs-color-bg-ui);
530
- border: 1px solid var(--stldocs-color-hairline);
531
- border-radius: var(--stldocs-button-border-radius);
532
- font-weight: 400;
532
+ .stldocs-button-primary {
533
+ background-color: var(--stldocs-color-text);
534
+ color: var(--stldocs-color-text-invert);
535
+ }
533
536
 
534
- &:hover {
535
- border-color: var(--stldocs-color-hairline-shade);
536
- }
537
- }
537
+ .stldocs-button-secondary {
538
+ background-color: var(--stldocs-color-bg-ui);
539
+ border: 1px solid var(--stldocs-color-hairline);
540
+ border-radius: var(--stldocs-button-border-radius);
541
+ font-weight: 400;
538
542
 
539
- .stldocs-button-tertiary {
540
- border: none;
541
- color: var(--stldocs-color-text-secondary);
542
- background-color: transparent;
543
+ &:hover {
544
+ border-color: var(--stldocs-color-hairline-shade);
543
545
  }
546
+ }
544
547
 
545
- .stldocs-root .stldocs-expand-toggle {
546
- font-size: var(--stldocs-font-size-body);
547
- display: flex;
548
- flex-grow: 1;
549
- justify-content: flex-end;
550
- user-select: none;
548
+ .stldocs-button-tertiary {
549
+ border: none;
550
+ color: var(--stldocs-color-text-secondary);
551
+ background-color: transparent;
552
+ }
551
553
 
552
- &[data-stldocs-property-toggle-expanded='false'] {
553
- .stldocs-expand-toggle-content:last-child {
554
- display: none;
555
- }
554
+ .stldocs-root .stldocs-expand-toggle {
555
+ font-size: var(--stldocs-font-size-body);
556
+ display: flex;
557
+ flex-grow: 1;
558
+ justify-content: flex-end;
559
+ user-select: none;
560
+
561
+ &[data-stldocs-property-toggle-expanded='false'] {
562
+ .stldocs-expand-toggle-content:last-child {
563
+ display: none;
556
564
  }
565
+ }
557
566
 
558
- &[data-stldocs-property-toggle-expanded='true'] {
559
- .stldocs-expand-toggle-content:first-child {
560
- display: none;
561
- }
567
+ &[data-stldocs-property-toggle-expanded='true'] {
568
+ .stldocs-expand-toggle-content:first-child {
569
+ display: none;
562
570
  }
571
+ }
563
572
 
564
- .stldocs-expand-toggle-content {
565
- cursor: pointer;
573
+ .stldocs-expand-toggle-content {
574
+ cursor: pointer;
566
575
 
567
- .stldocs-icon {
568
- vertical-align: middle;
569
- }
576
+ .stldocs-icon {
577
+ vertical-align: middle;
570
578
  }
571
579
  }
572
580
  }