@stainless-api/docs-ui 0.1.0-beta.84 → 0.1.0-beta.86

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.
Files changed (110) hide show
  1. package/dist/breadcrumbs-DC2_z7nh.d.ts +25 -0
  2. package/dist/chunk-pbuEa-1d.js +13 -0
  3. package/dist/component-generics-DYxBWv1v.js +42 -0
  4. package/dist/component-generics-q-ujwX4P.d.ts +30 -0
  5. package/dist/components/MaskedInput.d.ts +1 -1
  6. package/dist/components/MaskedInput.js +2 -4
  7. package/dist/components/breadcrumbs.d.ts +1 -24
  8. package/dist/components/breadcrumbs.js +2 -4
  9. package/dist/components/icons.js +4 -6
  10. package/dist/components/index.d.ts +10 -16
  11. package/dist/components/index.js +3 -5
  12. package/dist/components/method.d.ts +1 -58
  13. package/dist/components/method.js +12 -14
  14. package/dist/components/overview.d.ts +1 -38
  15. package/dist/components/overview.js +6 -5
  16. package/dist/components/primitives.d.ts +1 -106
  17. package/dist/components/primitives.js +5 -7
  18. package/dist/components/properties.d.ts +1 -53
  19. package/dist/components/properties.js +17 -19
  20. package/dist/components/sdk-sidebar.d.ts +1 -14
  21. package/dist/components/sdk-sidebar.js +2 -4
  22. package/dist/components/sdk.d.ts +1 -127
  23. package/dist/components/sdk.js +17 -22
  24. package/dist/components/snippets.d.ts +1 -70
  25. package/dist/components/snippets.js +16 -16
  26. package/dist/components/stl-sidebar.d.ts +1 -57
  27. package/dist/components/stl-sidebar.js +2 -4
  28. package/dist/contexts/component-generics.d.ts +1 -29
  29. package/dist/contexts/component-generics.js +2 -33
  30. package/dist/contexts/component-types.d.ts +3 -5
  31. package/dist/contexts/component.d.ts +4 -5
  32. package/dist/contexts/component.js +2 -5
  33. package/dist/contexts/docs.d.ts +1 -61
  34. package/dist/contexts/docs.js +1 -3
  35. package/dist/contexts/index.d.ts +6 -13
  36. package/dist/contexts/index.js +3 -6
  37. package/dist/contexts/markdown.d.ts +1 -21
  38. package/dist/contexts/markdown.js +5 -7
  39. package/dist/contexts/navigation.d.ts +1 -28
  40. package/dist/contexts/navigation.js +9 -12
  41. package/dist/contexts/use-components.d.ts +1 -2
  42. package/dist/contexts/use-components.js +2 -5
  43. package/dist/docs-DSjdvCh5.d.ts +62 -0
  44. package/dist/index-HcWFtzlc.d.ts +464 -0
  45. package/dist/index.d.ts +2 -4
  46. package/dist/index.js +2 -3
  47. package/dist/languages/cli.d.ts +2 -38
  48. package/dist/languages/cli.js +7 -9
  49. package/dist/languages/csharp.d.ts +2 -42
  50. package/dist/languages/csharp.js +5 -7
  51. package/dist/languages/go.d.ts +2 -40
  52. package/dist/languages/go.js +3 -5
  53. package/dist/languages/http.d.ts +2 -46
  54. package/dist/languages/http.js +7 -9
  55. package/dist/languages/index.d.ts +2 -51
  56. package/dist/languages/index.js +3 -5
  57. package/dist/languages/java.d.ts +2 -43
  58. package/dist/languages/java.js +3 -5
  59. package/dist/languages/php.d.ts +2 -40
  60. package/dist/languages/php.js +3 -5
  61. package/dist/languages/python.d.ts +2 -40
  62. package/dist/languages/python.js +4 -6
  63. package/dist/languages/ruby.d.ts +2 -40
  64. package/dist/languages/ruby.js +3 -5
  65. package/dist/languages/terraform.d.ts +2 -48
  66. package/dist/languages/terraform.js +25 -10
  67. package/dist/languages/typescript.d.ts +2 -40
  68. package/dist/languages/typescript.js +5 -7
  69. package/dist/markdown/index.d.ts +1 -1
  70. package/dist/markdown/index.js +10 -9
  71. package/dist/markdown/md.js +1 -3
  72. package/dist/markdown/printer.d.ts +2 -2
  73. package/dist/markdown/printer.js +3 -5
  74. package/dist/markdown/utils.d.ts +3 -3
  75. package/dist/markdown/utils.js +2 -4
  76. package/dist/markdown-ClGRntP5.d.ts +22 -0
  77. package/dist/method-CNRMOUfn.d.ts +59 -0
  78. package/dist/navigation-C9ckAfpV.d.ts +29 -0
  79. package/dist/overview-CDvh184n.d.ts +39 -0
  80. package/dist/primitives-DFE_4MvV.d.ts +107 -0
  81. package/dist/properties-CVwrzWVa.d.ts +54 -0
  82. package/dist/routing-yTSG7nWM.d.ts +61 -0
  83. package/dist/routing.d.ts +2 -61
  84. package/dist/routing.js +2 -4
  85. package/dist/sdk-BkW3MDco.d.ts +128 -0
  86. package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
  87. package/dist/spec.d.ts +4 -4
  88. package/dist/spec.js +1 -3
  89. package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
  90. package/dist/style.js +1 -2
  91. package/dist/styles/main.css +320 -349
  92. package/dist/styles/primitives.css +133 -185
  93. package/dist/styles/resets.css +7 -14
  94. package/dist/styles/search.css +91 -96
  95. package/dist/styles/sidebar.css +44 -71
  96. package/dist/styles/variables.css +0 -5
  97. package/dist/styles.css +995 -1261
  98. package/dist/utils.d.ts +1 -1
  99. package/dist/utils.js +2 -4
  100. package/package.json +7 -6
  101. package/dist/chunk-BYypO7fO.js +0 -18
  102. package/dist/styles/main.js +0 -0
  103. package/dist/styles/primitives.js +0 -0
  104. package/dist/styles/resets.js +0 -0
  105. package/dist/styles/search.js +0 -0
  106. package/dist/styles/sidebar.js +0 -0
  107. package/dist/styles/variables.js +0 -0
  108. package/dist/styles.mjs +0 -1
  109. package/dist/use-strict-context-L0c8JKg4.js +0 -16
  110. /package/dist/{index-pvh-w1xa.d.ts → index-DFr9Mesr.d.ts} +0 -0
@@ -1,141 +1,124 @@
1
- /* Design System Defaults */
2
1
  .stldocs-root {
3
2
  font-family: var(--stl-typography-font);
4
3
  color: var(--stl-color-foreground);
5
- letter-spacing: -0.01em;
4
+ letter-spacing: -.01em;
6
5
 
7
- :where(h1) {
6
+ & :where(h1) {
8
7
  font-size: var(--stl-typography-text-h1);
9
- letter-spacing: -0.03em;
8
+ letter-spacing: -.03em;
10
9
  }
11
10
 
12
- :where(h2) {
11
+ & :where(h2) {
13
12
  font-size: var(--stl-typography-text-h2);
14
- letter-spacing: -0.03em;
13
+ letter-spacing: -.03em;
15
14
  }
16
15
 
17
- :where(h3) {
16
+ & :where(h3) {
18
17
  font-size: var(--stl-typography-text-h3);
19
- letter-spacing: -0.02em;
18
+ letter-spacing: -.02em;
20
19
  }
21
20
 
22
- :where(h4) {
21
+ & :where(h4) {
23
22
  font-size: var(--stl-typography-text-h4);
24
- letter-spacing: -0.02em;
23
+ letter-spacing: -.02em;
25
24
  }
26
25
 
27
- :where(h5) {
26
+ & :where(h5) {
28
27
  font-size: var(--stl-typography-text-h5);
29
- letter-spacing: -0.02em;
28
+ letter-spacing: -.02em;
30
29
  }
31
30
  }
32
31
 
33
- /* Color mapping for types */
34
32
  .stldocs-root {
35
- .stldocs-text-keyword {
33
+ & .stldocs-text-keyword {
36
34
  color: var(--stl-color-foreground-muted);
37
35
  }
38
36
 
39
- .stldocs-property-type,
40
- .stldocs-property-declaration,
41
- .stldocs-type:not(.stldocs-property-typename .stldocs-type) {
37
+ & .stldocs-property-type, & .stldocs-property-declaration, & .stldocs-type:not(.stldocs-property-typename .stldocs-type) {
42
38
  font-family: var(--stl-typography-font-mono);
43
39
 
44
- .stldocs-type-keyword {
40
+ & .stldocs-type-keyword {
45
41
  color: var(--stldocs-syntax-color-orange);
46
42
  }
47
43
 
48
- .stldocs-type-string {
44
+ & .stldocs-type-string {
49
45
  color: var(--stldocs-syntax-color-green);
50
46
  }
51
47
 
52
- .stldocs-type-brace,
53
- .stldocs-type-bracket,
54
- .stldocs-type-plain,
55
- .stldocs-text-operator,
56
- .stldocs-text-punctuation,
57
- .stldocs-truncation,
58
- .stldocs-type-array {
48
+ & .stldocs-type-brace, & .stldocs-type-bracket, & .stldocs-type-plain, & .stldocs-text-operator, & .stldocs-text-punctuation, & .stldocs-truncation, & .stldocs-type-array {
59
49
  color: var(--stl-color-foreground-reduced);
60
50
  }
61
51
 
62
- .stldocs-type-plain {
52
+ & .stldocs-type-plain {
63
53
  font-family: var(--stl-typography-font);
64
54
  }
65
55
 
66
- .stldocs-type-reference {
56
+ & .stldocs-type-reference {
67
57
  color: var(--stldocs-syntax-color-blue);
68
58
  font-weight: 600;
69
- a:hover {
59
+
60
+ & a:hover {
70
61
  text-decoration: underline;
71
62
  }
72
63
  }
73
64
 
74
- .stldocs-literal-string {
65
+ & .stldocs-literal-string {
75
66
  color: var(--stldocs-syntax-color-green);
76
67
  }
77
68
 
78
- .stldocs-literal-numeric {
69
+ & .stldocs-literal-numeric {
79
70
  color: var(--stldocs-syntax-color-orange);
80
71
  }
81
72
 
82
- .stldocs-text-identifier {
73
+ & .stldocs-text-identifier {
83
74
  font-family: var(--stl-typography-font-mono);
84
75
  color: var(--stl-color-foreground);
85
76
  }
86
77
 
87
- .stldocs-type-propertyname .stldocs-text-identifier {
78
+ & .stldocs-type-propertyname .stldocs-text-identifier {
88
79
  font-family: var(--stl-typography-font);
89
80
  font-weight: 600;
90
81
  }
91
82
  }
92
83
 
93
- [data-stldocs-language='http'],
94
- [data-stldocs-language='cli'] {
95
- .stldocs-property-type,
96
- .stldocs-property-declaration {
97
- .stldocs-truncation,
98
- .stldocs-type-array,
99
- .stldocs-text-punctuation {
84
+ & [data-stldocs-language="http"], & [data-stldocs-language="cli"] {
85
+ & .stldocs-property-type, & .stldocs-property-declaration {
86
+ & .stldocs-truncation, & .stldocs-type-array, & .stldocs-text-punctuation {
100
87
  font-family: var(--stl-typography-font);
101
88
  }
102
89
  }
103
90
  }
104
91
  }
105
92
 
106
- /* HTTP Method Color Settings */
107
- .stldocs-root .stldocs-method-route,
108
- .stldocs-root .stldocs-sidebar-method {
109
- [data-method='get'] {
93
+ .stldocs-root .stldocs-method-route, .stldocs-root .stldocs-sidebar-method {
94
+ & [data-method="get"] {
110
95
  background: var(--stldocs-color-http-get-bg);
111
96
  color: var(--stldocs-color-http-get);
112
97
  border-color: var(--stldocs-color-http-get);
113
98
  }
114
99
 
115
- [data-method='post'] {
100
+ & [data-method="post"] {
116
101
  background: var(--stldocs-color-http-post-bg);
117
102
  color: var(--stldocs-color-http-post);
118
103
  border-color: var(--stldocs-color-http-post);
119
104
  }
120
105
 
121
- [data-method='patch'],
122
- [data-method='put'] {
106
+ & [data-method="patch"], & [data-method="put"] {
123
107
  background: var(--stldocs-color-http-put-bg);
124
108
  color: var(--stldocs-color-http-put);
125
109
  border-color: var(--stldocs-color-http-put);
126
110
  }
127
111
 
128
- [data-method='delete'] {
112
+ & [data-method="delete"] {
129
113
  background: var(--stldocs-color-http-delete-bg);
130
114
  color: var(--stldocs-color-http-delete);
131
115
  border-color: var(--stldocs-color-http-delete);
132
116
  }
133
117
  }
134
118
 
135
- /* Generic expand/collapse button */
136
119
  .stldocs-root .stldocs-expander {
137
- &[data-stldocs-expander-muted='true'] {
138
- .stldocs-expander-summary-icon {
120
+ &[data-stldocs-expander-muted="true"] {
121
+ & .stldocs-expander-summary-icon {
139
122
  visibility: hidden;
140
123
  }
141
124
 
@@ -144,13 +127,13 @@
144
127
  }
145
128
  }
146
129
 
147
- .stldocs-expander-summary {
130
+ & .stldocs-expander-summary {
148
131
  cursor: pointer;
149
132
  display: flex;
150
133
 
151
134
  & > .stldocs-expander-summary-icon {
152
135
  margin-right: 8px;
153
- transform: translateX(-0.5px) translateY(-0.5px);
136
+ transform: translateX(-.5px) translateY(-.5px);
154
137
 
155
138
  & > .stldocs-icon {
156
139
  vertical-align: middle;
@@ -164,11 +147,9 @@
164
147
  }
165
148
  }
166
149
 
167
- &[open],
168
- &[data-open='true'] {
150
+ &[open], &[data-open="true"] {
169
151
  & > .stldocs-expander-summary {
170
- .stldocs-type-preview[data-stldocs-type-preview='properties']
171
- :is(.stldocs-type-preview-content, .stldocs-type-brace) {
152
+ & .stldocs-type-preview[data-stldocs-type-preview="properties"] :is(.stldocs-type-preview-content, .stldocs-type-brace) {
172
153
  display: none;
173
154
  }
174
155
 
@@ -190,13 +171,14 @@
190
171
  border-left: 1px solid var(--stl-color-border);
191
172
  padding-left: 16px;
192
173
 
193
- .stldocs-expander {
174
+ & .stldocs-expander {
194
175
  margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
195
176
  padding-right: var(--stldocs-expander-right-margin);
196
177
  }
197
- /* move margin to .stldocs-property parent where possible to fix safari subgrid bug */
198
- .stldocs-property:has(> .stldocs-expander) {
178
+
179
+ & .stldocs-property:has( > .stldocs-expander) {
199
180
  margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
181
+
200
182
  & > .stldocs-expander {
201
183
  margin-left: 0;
202
184
  }
@@ -205,65 +187,62 @@
205
187
  }
206
188
  }
207
189
 
208
- /* makes a big perf difference in browser calculating layout, even though the UA should do this? */
209
- &:not([open], [data-open='true']) .stldocs-expander-content {
190
+ &:not([open], [data-open="true"]) .stldocs-expander-content {
210
191
  display: none;
211
192
  }
212
193
  }
213
194
 
214
- /* Markdown content */
215
195
  .stldocs-root .stldocs-content {
216
- a {
196
+ & a {
217
197
  color: var(--stl-color-link-foreground);
218
198
  }
219
199
 
220
- code:not(pre code) {
200
+ & code:not(pre code) {
221
201
  font-family: var(--stl-typography-font-mono);
222
- border-radius: 4px;
223
- padding: 0 4px;
224
202
  background-color: var(--stldocs-color-bg-inline-code);
225
203
  word-break: break-all;
226
- font-size: 0.84rem;
204
+ border-radius: 4px;
205
+ padding: 0 4px;
206
+ font-size: .84rem;
227
207
  }
228
208
 
229
- strong {
209
+ & strong {
230
210
  font-weight: bold;
231
211
  }
232
212
 
233
- em {
213
+ & em {
234
214
  font-style: italic;
235
215
  }
236
216
 
237
- p {
238
- display: block;
217
+ & p {
239
218
  margin: 0 0 1em;
219
+ display: block;
240
220
 
241
221
  &:last-child {
242
222
  margin: 0;
243
223
  }
244
224
  }
245
225
 
246
- li {
247
- margin-bottom: 0.25rem;
226
+ & li {
227
+ margin-bottom: .25rem;
248
228
  display: list-item;
249
229
  }
250
230
 
251
- ol,
252
- ul {
253
- display: block;
231
+ & ol, & ul {
254
232
  list-style-type: initial;
233
+ margin-bottom: .8rem;
255
234
  margin-left: 2rem;
256
- margin-bottom: 0.8rem;
235
+ display: block;
257
236
  }
258
237
 
259
- ol {
238
+ & ol {
260
239
  list-style-type: decimal;
261
240
  }
262
241
 
263
- hr {
264
- margin-bottom: 16px;
242
+ & hr {
265
243
  border: none;
266
244
  border-bottom: 1px solid var(--stl-color-border);
245
+ margin-bottom: 16px;
267
246
  }
268
247
  }
269
248
 
@@ -278,264 +257,233 @@
278
257
  }
279
258
 
280
259
  &.stldocs-input-disabled {
281
- opacity: 0.5;
260
+ opacity: .5;
282
261
  }
283
262
 
284
- input,
285
- .stldocs-masked-input-display {
286
- flex-grow: 1;
287
- border: none;
288
- background-color: transparent;
289
- margin: 0.5rem;
290
- font-size: 1rem;
263
+ & input, & .stldocs-masked-input-display {
291
264
  letter-spacing: initial;
292
265
  white-space: pre;
293
266
  contain: content;
267
+ background-color: #0000;
268
+ border: none;
269
+ flex-grow: 1;
270
+ margin: .5rem;
294
271
  padding: 0;
272
+ font-size: 1rem;
295
273
 
296
274
  &:focus {
297
275
  outline: none;
298
276
  }
299
277
  }
300
278
 
301
- .stldocs-masked-input-wrapper {
302
- &:focus-within .stldocs-masked-input-display,
303
- &:not(:focus-within) input {
279
+ & .stldocs-masked-input-wrapper {
280
+ &:focus-within .stldocs-masked-input-display, &:not(:focus-within) input {
304
281
  opacity: 0;
305
282
  }
306
283
  }
307
284
 
308
- .stldocs-masked-input-obscured {
309
- -webkit-text-stroke: currentColor 0.2em;
285
+ & .stldocs-masked-input-obscured {
286
+ -webkit-text-stroke: currentColor .2em;
310
287
  }
311
288
 
312
- .stldocs-icon {
313
- margin: auto 0.25rem auto 0.75rem;
289
+ & .stldocs-icon {
290
+ margin: auto .25rem auto .75rem;
314
291
  }
315
292
  }
316
293
 
317
294
  .stldocs-root .stldocs-masked-input-wrapper {
318
- display: flex;
295
+ font-family: var(--stl-typography-font-mono);
319
296
  flex-grow: 1;
297
+ display: flex;
320
298
  position: relative;
321
- font-family: var(--stl-typography-font-mono);
322
299
  }
323
300
 
324
301
  .stldocs-root .stldocs-masked-input-display {
302
+ pointer-events: none;
303
+ align-items: center;
304
+ display: flex;
325
305
  position: absolute;
326
306
  inset: 0;
327
- display: flex;
328
- align-items: center;
329
- pointer-events: none; /* so you can click through to the real input */
330
307
  }
331
308
 
332
309
  .stldocs-root .stldocs-listview {
333
310
  overflow-y: scroll;
334
311
 
335
- .stldocs-listview-item:not(:last-child) {
312
+ & .stldocs-listview-item:not(:last-child) {
336
313
  border-bottom: 1px solid var(--stl-color-border);
337
314
  }
338
315
 
339
- [data-stldocs-listview-selected='true'] > :first-child {
340
- background:
341
- linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
316
+ & [data-stldocs-listview-selected="true"] > :first-child {
317
+ background: linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
342
318
  linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
343
- border-radius: 0.5rem;
319
+ border-radius: .5rem;
344
320
  }
345
321
  }
346
322
 
347
323
  .stldocs-root {
348
- .stldocs-tooltip-host {
324
+ & .stldocs-tooltip-host {
349
325
  display: inline-block;
350
326
  }
351
327
 
352
- .stldocs-tooltip-content {
328
+ & .stldocs-tooltip-content {
353
329
  border: 1px solid var(--stl-color-border);
354
330
  background: var(--stl-color-background);
355
331
  border-radius: 8px;
356
- padding: 0.2rem 0.4rem;
332
+ padding: .2rem .4rem;
357
333
 
358
- * {
359
- font-size: 0.8rem !important;
334
+ & * {
335
+ font-size: .8rem !important;
360
336
  }
361
337
 
362
- position: absolute;
363
-
364
- transition:
365
- opacity 0.3s ease-in-out,
366
- visibility 0.3s step-end 0.3s;
367
338
  visibility: hidden;
368
339
  opacity: 0;
369
-
370
340
  max-width: 400px;
371
341
  max-height: 300px;
342
+ transition: opacity .3s ease-in-out, visibility .3s step-end .3s;
343
+ position: absolute;
372
344
  overflow: auto;
373
345
 
374
- .stldocs-property-description {
346
+ & .stldocs-property-description {
375
347
  display: none;
376
348
  }
377
349
  }
378
350
 
379
- .stldocs-tooltip:hover .stldocs-tooltip-content {
380
- transition-delay: 0s, 0s;
351
+ & .stldocs-tooltip:hover .stldocs-tooltip-content {
381
352
  visibility: visible;
382
353
  opacity: 1;
354
+ transition-delay: 0s, 0s;
383
355
  }
384
356
  }
385
357
 
386
358
  .stldocs-root {
387
- .stldocs-breadcrumbs {
388
- display: flex;
359
+ & .stldocs-breadcrumbs {
389
360
  align-items: center;
390
- gap: 0.5rem;
361
+ gap: .5rem;
362
+ display: flex;
391
363
 
392
- svg {
364
+ & svg {
393
365
  width: 1rem;
394
366
  min-width: 1rem;
395
367
  stroke: var(--stl-color-foreground-reduced);
396
- opacity: 0.25;
368
+ opacity: .25;
397
369
  margin: 0;
398
370
  }
399
371
 
400
- .stldocs-breadcrumbs-non-link,
401
- .stldocs-breadcrumbs-link {
372
+ & .stldocs-breadcrumbs-non-link, & .stldocs-breadcrumbs-link {
402
373
  color: var(--stl-color-foreground-reduced);
403
374
  font-size: var(--stl-typography-scale-sm);
404
375
  line-height: 150%;
405
376
  text-decoration: none;
406
377
  }
407
378
 
408
- .stldocs-breadcrumbs-link:hover {
409
- text-decoration: underline;
379
+ & .stldocs-breadcrumbs-link:hover {
410
380
  color: var(--stl-color-foreground);
381
+ text-decoration: underline;
411
382
  }
412
383
 
413
- .stldocs-breadcrumbs-item {
414
- display: flex;
384
+ & .stldocs-breadcrumbs-item {
415
385
  align-items: center;
416
- gap: 0.5rem;
386
+ gap: .5rem;
417
387
  margin: 0;
388
+ display: flex;
418
389
  }
419
390
  }
420
391
  }
421
392
 
422
393
  .stldocs-root .stldocs-expand-toggle {
423
394
  font-size: var(--stl-typography-scale-sm);
424
- display: flex;
395
+ user-select: none;
425
396
  flex-grow: 1;
426
397
  justify-content: flex-end;
427
- user-select: none;
398
+ display: flex;
428
399
 
429
- &[data-stldocs-property-toggle-expanded='false'] {
430
- .stldocs-expand-toggle-content:last-child {
400
+ &[data-stldocs-property-toggle-expanded="false"] {
401
+ & .stldocs-expand-toggle-content:last-child {
431
402
  display: none;
432
403
  }
433
404
  }
434
405
 
435
- &[data-stldocs-property-toggle-expanded='true'] {
436
- .stldocs-expand-toggle-content:first-child {
406
+ &[data-stldocs-property-toggle-expanded="true"] {
407
+ & .stldocs-expand-toggle-content:first-child {
437
408
  display: none;
438
409
  }
439
410
  }
440
411
 
441
- .stldocs-expand-toggle-content {
412
+ & .stldocs-expand-toggle-content {
442
413
  cursor: pointer;
443
414
 
444
- .stldocs-icon {
415
+ & .stldocs-icon {
445
416
  vertical-align: middle;
446
417
  }
447
418
  }
448
419
  }
449
420
 
450
- /* Deeplink button */
451
-
452
- /* Link is not inside <summary> because interactive content in <summary> considered harmful
453
- * Subgrid must be applied from the top-level .stldocs-property all the way down to where the
454
- * inline summary content is rendered, so that the link button can be positioned at the “end” of
455
- * the summary line without actually shrinking the <details> or summary element.
456
- */
457
421
  .stldocs-root .stldocs-property:has(.stldocs-deep-link-button) {
458
- display: grid;
459
- /* expander | summary content | deeplink */
460
- grid-template-columns: auto minmax(0, max-content) 1fr;
461
422
  grid-template-rows: auto auto;
423
+ grid-template-columns: auto minmax(0, max-content) 1fr;
462
424
  gap: 0;
463
425
  width: 100%;
426
+ display: grid;
464
427
 
465
- /* expander child */
466
428
  & > .stldocs-expander {
467
- grid-column: 1 / -1;
468
- grid-row: 1 / -1;
469
-
470
- display: grid;
429
+ grid-area: 1 / 1 / -1 / -1;
471
430
  grid-template-columns: subgrid;
472
431
  grid-template-rows: subgrid;
432
+ display: grid;
473
433
 
474
434
  & > .stldocs-expander-summary {
475
- grid-column: 1 / -1;
476
- grid-row: 1;
477
- display: grid;
435
+ grid-area: 1 / 1 / auto / -1;
478
436
  grid-template-columns: subgrid;
479
437
  grid-template-rows: subgrid;
438
+ display: grid;
439
+
480
440
  & > .stldocs-expander-summary-icon {
481
441
  grid-column: 1;
482
442
  }
443
+
483
444
  & > .stldocs-expander-summary-content {
484
445
  grid-column: 2;
485
446
  }
486
447
  }
487
448
 
488
- &::details-content,
489
- & > .stldocs-expander-content {
490
- grid-row: 2;
491
- grid-column: 2 / -1;
449
+ &::details-content, & > .stldocs-expander-content {
450
+ grid-area: 2 / 2 / auto / -1;
492
451
  }
493
452
  }
494
453
 
495
- /* non-expanding child */
496
454
  & > .stldocs-property-info {
497
- grid-column: 2;
498
- grid-row: 1;
455
+ grid-area: 1 / 2;
499
456
  }
500
457
 
501
458
  & > .stldocs-deep-link-button {
502
- grid-column: span 1 / -1;
503
- grid-row: 1;
504
- align-self: center;
505
- justify-self: start;
506
- margin-left: 0.25em;
507
- display: none;
459
+ grid-area: 1 / span 1 / auto / -1;
460
+ place-self: center start;
508
461
  margin-top: -1rem;
509
462
  margin-bottom: -1rem;
510
- animation: stldocs-deep-link-delay-enter 0.2s ease-out;
511
- animation-delay: 0.3s;
512
- animation-fill-mode: both;
463
+ margin-left: .25em;
464
+ animation: .2s ease-out .3s both stldocs-deep-link-delay-enter;
465
+ display: none;
513
466
 
514
- svg {
467
+ & svg {
515
468
  width: 1em;
516
469
  height: 1em;
517
470
  }
518
471
  }
519
472
 
520
- /* show link button when expander summary is hovered */
521
- & > .stldocs-expander:has(> .stldocs-expander-summary:hover) + .stldocs-deep-link-button,
522
- /* show link button when non-expander rows are hovered */
523
- &:not(:has(> .stldocs-expander)):hover > .stldocs-deep-link-button,
524
- /* keep it visible when it itself is hovered or focused */
525
- & > .stldocs-deep-link-button:is(:hover, :focus) {
473
+ & > .stldocs-expander:has( > .stldocs-expander-summary:hover) + .stldocs-deep-link-button, &:not(:has( > .stldocs-expander)):hover > .stldocs-deep-link-button, & > .stldocs-deep-link-button:is(:hover, :focus) {
526
474
  display: flex;
527
475
  }
528
476
  }
529
477
 
530
478
  @keyframes stldocs-deep-link-delay-enter {
531
479
  from {
532
- display: none;
533
480
  opacity: 0;
534
- scale: 0.85;
481
+ display: none;
482
+ scale: .85;
535
483
  }
484
+
536
485
  to {
537
486
  opacity: 1;
538
- scale: 0.99;
487
+ scale: .99;
539
488
  }
540
489
  }
541
-
@@ -1,38 +1,31 @@
1
- /* Resets */
2
1
  .stldocs-root {
2
+ letter-spacing: -.01em;
3
3
  line-height: 1.5;
4
- letter-spacing: -0.01em;
5
4
 
6
- a:not(.stl-ui-callout a) {
5
+ & a:not(.stl-ui-callout a) {
7
6
  color: inherit;
8
7
  cursor: pointer;
9
8
  text-decoration: none;
10
9
  }
11
10
 
12
- *,
13
- *::before,
14
- *::after {
11
+ & *, & :before, & :after {
15
12
  box-sizing: border-box;
16
13
  }
17
14
 
18
- /* Markdown content should get prose styling */
19
- :where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
20
- display: block;
15
+ & :where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
21
16
  color: var(--stl-color-foreground);
22
17
  font-weight: 500;
23
18
  line-height: var(--stl-typography-line-height-heading);
24
19
  font-family: var(--stl-typography-font-heading);
20
+ display: block;
25
21
  }
26
22
 
27
- display: block;
28
23
  margin: 0;
24
+ display: block;
29
25
  }
30
26
 
31
27
  .sl-markdown-content {
32
- .stldocs-root
33
- :not(a, strong, em, del, span, input, code, br)
34
- + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) {
28
+ & .stldocs-root :not(a, strong, em, del, span, input, code, br) + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) {
35
29
  margin-top: 0;
36
30
  }
37
31
  }
38
-