@stainless-api/docs-ui 0.1.0-beta.8 → 0.1.0-beta.80

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 (155) hide show
  1. package/dist/chunk-BYypO7fO.js +18 -0
  2. package/dist/components/MaskedInput.d.ts +14 -0
  3. package/dist/components/MaskedInput.js +76 -0
  4. package/dist/components/breadcrumbs.d.ts +25 -0
  5. package/dist/components/breadcrumbs.js +64 -0
  6. package/dist/components/icons.d.ts +65 -0
  7. package/dist/components/icons.js +941 -0
  8. package/dist/components/index.d.ts +16 -0
  9. package/dist/components/index.js +75 -0
  10. package/dist/components/method.d.ts +59 -0
  11. package/dist/components/method.js +97 -0
  12. package/dist/components/overview.d.ts +39 -0
  13. package/dist/components/overview.js +139 -0
  14. package/dist/components/primitives.d.ts +107 -0
  15. package/dist/components/primitives.js +253 -0
  16. package/dist/components/properties.d.ts +54 -0
  17. package/dist/components/properties.js +140 -0
  18. package/dist/components/sdk-sidebar.d.ts +15 -0
  19. package/dist/components/sdk-sidebar.js +52 -0
  20. package/dist/components/sdk.d.ts +128 -0
  21. package/dist/components/sdk.js +490 -0
  22. package/dist/components/snippets.d.ts +71 -0
  23. package/dist/components/snippets.js +184 -0
  24. package/dist/components/stl-sidebar.d.ts +58 -0
  25. package/dist/components/stl-sidebar.js +114 -0
  26. package/dist/contexts/component-generics.d.ts +30 -0
  27. package/dist/contexts/component-generics.js +33 -0
  28. package/dist/contexts/component-types.d.ts +8 -0
  29. package/dist/contexts/component-types.js +0 -0
  30. package/dist/contexts/component.d.ts +21 -0
  31. package/dist/contexts/component.js +24 -0
  32. package/dist/contexts/docs.d.ts +62 -0
  33. package/dist/contexts/docs.js +91 -0
  34. package/dist/contexts/index.d.ts +13 -0
  35. package/dist/contexts/index.js +45 -0
  36. package/dist/contexts/markdown.d.ts +22 -0
  37. package/dist/contexts/markdown.js +49 -0
  38. package/dist/contexts/navigation.d.ts +29 -0
  39. package/dist/contexts/navigation.js +24 -0
  40. package/dist/contexts/use-components.d.ts +6 -0
  41. package/dist/contexts/use-components.js +8 -0
  42. package/dist/index-pvh-w1xa.d.ts +1776 -0
  43. package/dist/index.d.ts +7 -0
  44. package/dist/index.js +9 -7542
  45. package/dist/languages/cli.d.ts +38 -0
  46. package/dist/languages/cli.js +167 -0
  47. package/dist/languages/csharp.d.ts +42 -0
  48. package/dist/languages/csharp.js +284 -0
  49. package/dist/languages/go.d.ts +40 -0
  50. package/dist/languages/go.js +304 -0
  51. package/dist/languages/http.d.ts +46 -0
  52. package/dist/languages/http.js +391 -0
  53. package/dist/languages/index.d.ts +51 -0
  54. package/dist/languages/index.js +33 -0
  55. package/dist/languages/java.d.ts +43 -0
  56. package/dist/languages/java.js +404 -0
  57. package/dist/languages/php.d.ts +40 -0
  58. package/dist/languages/php.js +313 -0
  59. package/dist/languages/python.d.ts +40 -0
  60. package/dist/languages/python.js +270 -0
  61. package/dist/languages/ruby.d.ts +40 -0
  62. package/dist/languages/ruby.js +388 -0
  63. package/dist/languages/terraform.d.ts +48 -0
  64. package/dist/languages/terraform.js +244 -0
  65. package/dist/languages/typescript.d.ts +40 -0
  66. package/dist/languages/typescript.js +450 -0
  67. package/dist/markdown/index.d.ts +11 -0
  68. package/dist/markdown/index.js +80 -0
  69. package/dist/markdown/md.d.ts +15 -0
  70. package/dist/markdown/md.js +41 -0
  71. package/dist/markdown/printer.d.ts +13 -0
  72. package/dist/markdown/printer.js +76 -0
  73. package/dist/markdown/utils.d.ts +21 -0
  74. package/dist/markdown/utils.js +31 -0
  75. package/dist/routing.d.ts +61 -0
  76. package/dist/routing.js +176 -150
  77. package/dist/spec.d.ts +65 -0
  78. package/dist/spec.js +167 -0
  79. package/dist/style.d.ts +177 -0
  80. package/dist/style.js +178 -0
  81. package/dist/styles/main.css +788 -752
  82. package/dist/styles/main.js +0 -0
  83. package/dist/styles/primitives.css +326 -458
  84. package/dist/styles/primitives.js +0 -0
  85. package/dist/styles/resets.css +32 -41
  86. package/dist/styles/resets.js +0 -0
  87. package/dist/styles/search.css +192 -270
  88. package/dist/styles/search.js +0 -0
  89. package/dist/styles/sidebar.css +182 -69
  90. package/dist/styles/sidebar.js +0 -0
  91. package/dist/styles/variables.css +28 -89
  92. package/dist/styles/variables.js +0 -0
  93. package/dist/styles.css +3333 -0
  94. package/dist/styles.mjs +1 -0
  95. package/dist/use-strict-context-L0c8JKg4.js +16 -0
  96. package/dist/utils.d.ts +20 -0
  97. package/dist/utils.js +54 -0
  98. package/package.json +74 -22
  99. package/dist/mcp.js +0 -16003
  100. package/dist/styles/snippets.css +0 -132
  101. package/src/components/breadcrumbs.tsx +0 -94
  102. package/src/components/chat.tsx +0 -154
  103. package/src/components/dropdown.tsx +0 -91
  104. package/src/components/icons.tsx +0 -584
  105. package/src/components/index.ts +0 -9
  106. package/src/components/method.tsx +0 -146
  107. package/src/components/overview.tsx +0 -160
  108. package/src/components/primitives.tsx +0 -284
  109. package/src/components/properties.tsx +0 -130
  110. package/src/components/scripts/dropdown.ts +0 -78
  111. package/src/components/sdk.tsx +0 -403
  112. package/src/components/sidebar.tsx +0 -99
  113. package/src/components/snippets.tsx +0 -180
  114. package/src/contexts/component-generics.tsx +0 -48
  115. package/src/contexts/component-types.tsx +0 -5
  116. package/src/contexts/component.tsx +0 -32
  117. package/src/contexts/docs.tsx +0 -75
  118. package/src/contexts/index.tsx +0 -17
  119. package/src/contexts/markdown.tsx +0 -43
  120. package/src/contexts/navigation.tsx +0 -44
  121. package/src/contexts/search.tsx +0 -28
  122. package/src/contexts/use-components.tsx +0 -4
  123. package/src/index.ts +0 -6
  124. package/src/languages/go.tsx +0 -281
  125. package/src/languages/http.tsx +0 -321
  126. package/src/languages/index.ts +0 -26
  127. package/src/languages/java.tsx +0 -358
  128. package/src/languages/python.tsx +0 -255
  129. package/src/languages/ruby.tsx +0 -320
  130. package/src/languages/typescript.tsx +0 -393
  131. package/src/markdown/index.ts +0 -107
  132. package/src/markdown/md.ts +0 -45
  133. package/src/markdown/utils.ts +0 -49
  134. package/src/routing.ts +0 -238
  135. package/src/search/form.tsx +0 -127
  136. package/src/search/index.tsx +0 -1
  137. package/src/search/indexer.ts +0 -246
  138. package/src/search/mcp.ts +0 -61
  139. package/src/search/printer.tsx +0 -86
  140. package/src/search/providers/algolia.ts +0 -88
  141. package/src/search/providers/fuse.ts +0 -19
  142. package/src/search/providers/pagefind.ts +0 -17
  143. package/src/search/providers/walker.ts +0 -30
  144. package/src/search/results.tsx +0 -182
  145. package/src/search/state.ts +0 -64
  146. package/src/search/types.ts +0 -116
  147. package/src/style.ts +0 -196
  148. package/src/styles/main.css +0 -986
  149. package/src/styles/primitives.css +0 -580
  150. package/src/styles/resets.css +0 -39
  151. package/src/styles/search.css +0 -341
  152. package/src/styles/sidebar.css +0 -85
  153. package/src/styles/snippets.css +0 -130
  154. package/src/styles/variables.css +0 -86
  155. package/src/utils.ts +0 -41
@@ -0,0 +1,3333 @@
1
+ /* Typography - Stainless */
2
+ @layer stl-ui.tokens {
3
+ :root {
4
+ --stl-typography-font: 'Geist', system-ui, sans-serif;
5
+ --stl-typography-font-mono: 'Geist Mono', ui-monospace, monospace;
6
+ --stl-typography-font-heading: var(--stl-typography-font);
7
+
8
+ --stl-typography-line-height: 1.5;
9
+ --stl-typography-line-height-heading: 1.2;
10
+
11
+ --stl-typography-text-body: var(--stl-typography-scale-base);
12
+ --stl-typography-text-body-sm: var(--stl-typography-scale-sm);
13
+ --stl-typography-text-body-xs: var(--stl-typography-scale-xs);
14
+
15
+ --stl-typography-text-code: max(0.875em, var(--stl-typography-scale-xs));
16
+
17
+ --stl-typography-text-h1: var(--stl-typography-scale-5xl);
18
+ --stl-typography-text-h2: var(--stl-typography-scale-4xl);
19
+ --stl-typography-text-h3: var(--stl-typography-scale-3xl);
20
+ --stl-typography-text-h4: var(--stl-typography-scale-2xl);
21
+ --stl-typography-text-h5: var(--stl-typography-scale-xl);
22
+ --stl-typography-scale-xs: 12px;
23
+ --stl-typography-scale-sm: 14px;
24
+ --stl-typography-scale-base: 16px;
25
+ --stl-typography-scale-lg: 18px;
26
+ --stl-typography-scale-xl: 20px;
27
+ --stl-typography-scale-2xl: 24px;
28
+ --stl-typography-scale-3xl: 29px;
29
+ --stl-typography-scale-4xl: 35px;
30
+ --stl-typography-scale-5xl: 42px;
31
+ --stl-typography-scale-6xl: 64px;
32
+
33
+ --stl-color-text-selection-foreground: /* unset by default; text colors are unchanged */;
34
+ --stl-color-text-selection-background: light-dark(
35
+ rgb(from var(--stl-color-text-selection) r g b / calc(alpha * 0.15)),
36
+ rgb(from var(--stl-color-text-selection) r g b / calc(alpha * 0.35))
37
+ );
38
+ }
39
+ }
40
+
41
+ /* Prose exists in its own sub-layer for easy reverting */
42
+ body {
43
+ font-family: var(--stl-typography-font);
44
+ }
45
+
46
+ .stl-ui-prose {
47
+ letter-spacing: -0.01em;
48
+ font-weight: 400;
49
+ line-height: var(--stl-typography-line-height);
50
+ font-size: var(--stl-typography-text-body);
51
+ color: var(--stl-color-foreground-reduced);
52
+
53
+ :where(.stl-ui-not-prose) {
54
+ letter-spacing: initial;
55
+ font-weight: initial;
56
+ line-height: initial;
57
+ font-size: initial;
58
+ color: initial;
59
+ }
60
+
61
+ &.small {
62
+ font-size: var(--stl-typography-scale-sm);
63
+ letter-spacing: normal;
64
+ }
65
+
66
+ :where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
67
+ color: rgb(from currentColor r g b / 1);
68
+ }
69
+
70
+ :where(a:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose a) {
71
+ color: var(--stl-color-link-foreground);
72
+ text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
73
+ transition: text-decoration-color 0.1s ease-out;
74
+ &:hover {
75
+ text-decoration-color: currentColor;
76
+ }
77
+ }
78
+
79
+ :where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
80
+ color: var(--stl-color-foreground);
81
+ font-weight: 500;
82
+ line-height: var(--stl-typography-line-height-heading);
83
+ font-family: var(--stl-typography-font-heading);
84
+
85
+ text-wrap: pretty;
86
+ &:where(h1, h2, h3) {
87
+ text-wrap: balance;
88
+ }
89
+ }
90
+
91
+ :where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
92
+ /* Heading 1/Medium */
93
+ font-size: var(--stl-typography-text-h1);
94
+ letter-spacing: -0.03em;
95
+ margin-top: 1.5em;
96
+ }
97
+
98
+ :where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
99
+ /* Heading 2/Medium */
100
+ font-size: var(--stl-typography-text-h2);
101
+ letter-spacing: -0.03em;
102
+ margin-top: 1.35em;
103
+ }
104
+
105
+ :where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
106
+ /* Heading 3/Medium */
107
+ font-size: var(--stl-typography-text-h3);
108
+ letter-spacing: -0.02em;
109
+ margin-top: 1.35em;
110
+ }
111
+
112
+ :where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
113
+ /* Heading 4/Medium */
114
+ font-size: var(--stl-typography-text-h4);
115
+ letter-spacing: -0.02em;
116
+ margin-top: 1.35em;
117
+ }
118
+
119
+ :where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
120
+ /* Heading 5/Medium */
121
+ font-size: var(--stl-typography-text-h5);
122
+ letter-spacing: -0.02em;
123
+ margin-top: 1.2em;
124
+ }
125
+
126
+ :where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
127
+ &:where(:not(:last-child)) {
128
+ margin-bottom: 8px;
129
+ }
130
+ }
131
+
132
+ &.smaller-headings {
133
+ --stl-typography-text-h1: var(--stl-typography-scale-3xl);
134
+ --stl-typography-text-h2: var(--stl-typography-scale-2xl);
135
+ --stl-typography-text-h3: var(--stl-typography-scale-xl);
136
+ --stl-typography-text-h4: var(--stl-typography-scale-lg);
137
+ --stl-typography-text-h5: var(--stl-typography-scale-base);
138
+
139
+ :where(h1) {
140
+ margin-top: 1.5em;
141
+ }
142
+ :where(h2, h3, h4) {
143
+ margin-top: 1.25em;
144
+ }
145
+ :where(h5) {
146
+ margin-top: 1em;
147
+ }
148
+ }
149
+
150
+ /* code blocks */
151
+ :where(
152
+ pre:not(.stl-ui-not-prose *, .expressive-code *),
153
+ .stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)
154
+ ) {
155
+ padding: 12px 20px;
156
+ border-radius: var(--stl-ui-layout-border-radius-sml);
157
+ border: 1px solid var(--stl-color-border);
158
+ background-color: var(--stl-color-faint-background);
159
+ overflow: auto;
160
+ margin-bottom: 1rem;
161
+ }
162
+
163
+ :where(ol, ul) {
164
+ &:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
165
+ padding-left: 26px;
166
+ }
167
+ }
168
+
169
+ :where(ol, ul, aside, img, figure, details):where(
170
+ :not(.stl-ui-not-prose *),
171
+ .stl-ui-not-prose .stl-ui-prose *
172
+ ) {
173
+ margin-top: 16px;
174
+ }
175
+
176
+ /* all code (inline + block) */
177
+ :where(code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
178
+ font-family: var(--stl-typography-font-mono);
179
+ font-feature-settings:
180
+ 'ss01' on,
181
+ 'ss03' on,
182
+ 'ss04' on,
183
+ 'ss06' on;
184
+
185
+ font-size: var(--stl-typography-text-code);
186
+ font-weight: inherit;
187
+ letter-spacing: normal;
188
+ white-space: pre;
189
+
190
+ /* inline code */
191
+ &:where(:not(pre > code)) {
192
+ color: var(--stl-color-foreground);
193
+ padding: 0 0.2em;
194
+ background-color: rgb(from var(--stl-color-foreground) r g b / 0.1);
195
+ border-radius: 0.2em;
196
+ }
197
+
198
+ /* code blocks */
199
+ /* &:where(pre > &) { } */
200
+ }
201
+ }
202
+
203
+ /* _direct_ children of stl-ui-prose should get a margin-top by default for spacing. */
204
+ :where(.stl-ui-prose, .stl-ui-prose > .sl-markdown-content) > :where(:not(:first-child)) {
205
+ margin-top: 16px;
206
+ }
207
+
208
+ @layer starlight.content {
209
+ .stl-ui-prose .sl-markdown-content {
210
+ a,
211
+ a:hover {
212
+ color: revert-layer;
213
+ }
214
+ }
215
+ }
216
+
217
+ ::selection {
218
+ background-color: var(--stl-color-text-selection-background);
219
+ color: var(--stl-color-text-selection-foreground);
220
+ }
221
+
222
+ @layer stl-ui.tokens {
223
+ /* Layout - Stainless */
224
+ :root {
225
+ --stl-ui-layout-border-radius-xs: 4px;
226
+ --stl-ui-layout-border-radius-sml: 8px;
227
+ --stl-ui-layout-border-radius: 12px;
228
+ --stl-ui-layout-border-radius-med: 16px;
229
+ --stl-ui-layout-border-radius-max: 100vmax;
230
+ --stl-ui-left-content-indent: 24px;
231
+
232
+ --stl-ui-page-padding-inline: 20px;
233
+ }
234
+ }
235
+
236
+ /* 1. Base colors */
237
+ @layer stl-ui.tokens {
238
+ :root {
239
+ --stl-opacity-level-080: 0.80;
240
+ --stl-opacity-level-040: 0.40;
241
+ --stl-opacity-level-016: 0.16;
242
+ --stl-opacity-level-008: 0.08;
243
+ --stl-opacity-level-004: 0.04;
244
+ /* background */
245
+ --stl-color-background: light-dark(rgb(255 255 255), rgb(10 10 10));
246
+ --stl-color-background-hover: light-dark(rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-004))), rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))));
247
+ /* background shades */
248
+ /* muted background */
249
+ --stl-color-muted-background: light-dark(rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
250
+ --stl-color-muted-background-hover: rgb(from var(--stl-color-muted-background) r g b/calc(alpha * 2));
251
+ /* faint background */
252
+ --stl-color-faint-background: rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-004)));
253
+ --stl-color-faint-background-hover: rgb(from var(--stl-color-faint-background) r g b/calc(alpha * 2));
254
+ /* ui elements like cards and buttons match --stl-color-background in light mode, but have a slight tint in dark mode */
255
+ --stl-color-ui-background: light-dark(
256
+ var(--stl-color-background),
257
+ rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-004)))
258
+ );
259
+ --stl-color-ui-background-hover: light-dark(
260
+ var(--stl-color-background-hover),
261
+ rgb(from var(--stl-color-ui-background) r g b/calc(alpha * 2))
262
+ );
263
+ /* foreground */
264
+ --stl-color-foreground: light-dark(rgb(38 38 38), rgb(245 245 245));
265
+ --stl-color-foreground-reduced: rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
266
+ --stl-color-foreground-muted: rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
267
+ /* inverse */
268
+ --stl-color-inverse-background: var(--stl-color-foreground);
269
+ --stl-color-inverse-background-hover: rgb(from var(--stl-color-inverse-background) r g b/calc(alpha * 0.9));
270
+ --stl-color-inverse-foreground: var(--stl-color-background);
271
+ /* default border (“foreground border”) */
272
+ --stl-color-border: rgb(from var(--stl-color-foreground) r g b/calc(alpha * var(--stl-opacity-level-016)));
273
+ --stl-color-border-faint: rgb(from var(--stl-color-border) r g b/calc(alpha * 0.5));
274
+ --stl-color-border-strong: rgb(from var(--stl-color-border) r g b/calc(alpha * 2.5));
275
+ }
276
+ }
277
+ /* 2. Color palettes (accent, red, green, etc) */
278
+ @layer stl-ui.tokens {
279
+ :root {
280
+ /* accent */
281
+ --stl-color-accent: light-dark(#155dfc, #2b7fff);
282
+ --stl-color-accent-foreground: var(--stl-color-accent);
283
+ --stl-color-accent-foreground-reduced: rgb(from var(--stl-color-accent-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
284
+ --stl-color-accent-foreground-muted: rgb(from var(--stl-color-accent-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
285
+ --stl-color-accent-muted-background: light-dark(rgb(from var(--stl-color-accent-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-accent-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
286
+ --stl-color-accent-muted-background-hover: rgb(from var(--stl-color-accent-muted-background) r g b/calc(alpha * 2));
287
+ --stl-color-accent-border: light-dark(rgb(from var(--stl-color-accent) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-accent) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
288
+ --stl-color-accent-border-faint: rgb(from var(--stl-color-accent-border) r g b/calc(alpha * 0.5));
289
+ --stl-color-accent-border-strong: var(--stl-color-accent);
290
+ --stl-color-accent-inverse-background: var(--stl-color-accent);
291
+ --stl-color-accent-inverse-background-hover: rgb(from var(--stl-color-accent-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
292
+ --stl-color-accent-inverse-foreground: rgb(255, 255, 255);
293
+ /* red */
294
+ --stl-color-red: light-dark(#d01e22, #e34041);
295
+ --stl-color-red-foreground: var(--stl-color-red);
296
+ --stl-color-red-foreground-reduced: rgb(from var(--stl-color-red-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
297
+ --stl-color-red-foreground-muted: rgb(from var(--stl-color-red-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
298
+ --stl-color-red-muted-background: light-dark(rgb(from var(--stl-color-red-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-red-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
299
+ --stl-color-red-muted-background-hover: rgb(from var(--stl-color-red-muted-background) r g b/calc(alpha * 2));
300
+ --stl-color-red-border: light-dark(rgb(from var(--stl-color-red) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-red) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
301
+ --stl-color-red-border-faint: rgb(from var(--stl-color-red-border) r g b/calc(alpha * 0.5));
302
+ --stl-color-red-border-strong: var(--stl-color-red);
303
+ --stl-color-red-inverse-background: var(--stl-color-red);
304
+ --stl-color-red-inverse-background-hover: rgb(from var(--stl-color-red-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
305
+ --stl-color-red-inverse-foreground: rgb(255, 255, 255);
306
+ /* green */
307
+ --stl-color-green: light-dark(#16a34a, #22c55e);
308
+ --stl-color-green-foreground: var(--stl-color-green);
309
+ --stl-color-green-foreground-reduced: rgb(from var(--stl-color-green-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
310
+ --stl-color-green-foreground-muted: rgb(from var(--stl-color-green-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
311
+ --stl-color-green-muted-background: light-dark(rgb(from var(--stl-color-green-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-green-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
312
+ --stl-color-green-muted-background-hover: rgb(from var(--stl-color-green-muted-background) r g b/calc(alpha * 2));
313
+ --stl-color-green-border: light-dark(rgb(from var(--stl-color-green) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-green) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
314
+ --stl-color-green-border-faint: rgb(from var(--stl-color-green-border) r g b/calc(alpha * 0.5));
315
+ --stl-color-green-border-strong: var(--stl-color-green);
316
+ --stl-color-green-inverse-background: var(--stl-color-green);
317
+ --stl-color-green-inverse-background-hover: rgb(from var(--stl-color-green-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
318
+ --stl-color-green-inverse-foreground: rgb(255, 255, 255);
319
+ /* blue */
320
+ --stl-color-blue: light-dark(#155dfc, #2b7fff);
321
+ --stl-color-blue-foreground: var(--stl-color-blue);
322
+ --stl-color-blue-foreground-reduced: rgb(from var(--stl-color-blue-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
323
+ --stl-color-blue-foreground-muted: rgb(from var(--stl-color-blue-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
324
+ --stl-color-blue-muted-background: light-dark(rgb(from var(--stl-color-blue-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-blue-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
325
+ --stl-color-blue-muted-background-hover: rgb(from var(--stl-color-blue-muted-background) r g b/calc(alpha * 2));
326
+ --stl-color-blue-border: light-dark(rgb(from var(--stl-color-blue) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-blue) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
327
+ --stl-color-blue-border-faint: rgb(from var(--stl-color-blue-border) r g b/calc(alpha * 0.5));
328
+ --stl-color-blue-border-strong: var(--stl-color-blue);
329
+ --stl-color-blue-inverse-background: var(--stl-color-blue);
330
+ --stl-color-blue-inverse-background-hover: rgb(from var(--stl-color-blue-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
331
+ --stl-color-blue-inverse-foreground: rgb(255, 255, 255);
332
+ /* yellow */
333
+ --stl-color-yellow: light-dark(#ca8a04, #eab308);
334
+ --stl-color-yellow-foreground: var(--stl-color-yellow);
335
+ --stl-color-yellow-foreground-reduced: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
336
+ --stl-color-yellow-foreground-muted: rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
337
+ --stl-color-yellow-muted-background: light-dark(rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-yellow-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
338
+ --stl-color-yellow-muted-background-hover: rgb(from var(--stl-color-yellow-muted-background) r g b/calc(alpha * 2));
339
+ --stl-color-yellow-border: light-dark(rgb(from var(--stl-color-yellow) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-yellow) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
340
+ --stl-color-yellow-border-faint: rgb(from var(--stl-color-yellow-border) r g b/calc(alpha * 0.5));
341
+ --stl-color-yellow-border-strong: var(--stl-color-yellow);
342
+ --stl-color-yellow-inverse-background: var(--stl-color-yellow);
343
+ --stl-color-yellow-inverse-background-hover: rgb(from var(--stl-color-yellow-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
344
+ --stl-color-yellow-inverse-foreground: rgb(255, 255, 255);
345
+ /* orange */
346
+ --stl-color-orange: light-dark(#ea580c, #f97316);
347
+ --stl-color-orange-foreground: var(--stl-color-orange);
348
+ --stl-color-orange-foreground-reduced: rgb(from var(--stl-color-orange-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
349
+ --stl-color-orange-foreground-muted: rgb(from var(--stl-color-orange-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
350
+ --stl-color-orange-muted-background: light-dark(rgb(from var(--stl-color-orange-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-orange-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
351
+ --stl-color-orange-muted-background-hover: rgb(from var(--stl-color-orange-muted-background) r g b/calc(alpha * 2));
352
+ --stl-color-orange-border: light-dark(rgb(from var(--stl-color-orange) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-orange) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
353
+ --stl-color-orange-border-faint: rgb(from var(--stl-color-orange-border) r g b/calc(alpha * 0.5));
354
+ --stl-color-orange-border-strong: var(--stl-color-orange);
355
+ --stl-color-orange-inverse-background: var(--stl-color-orange);
356
+ --stl-color-orange-inverse-background-hover: rgb(from var(--stl-color-orange-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
357
+ --stl-color-orange-inverse-foreground: rgb(255, 255, 255);
358
+ /* purple */
359
+ --stl-color-purple: light-dark(#9333ea, #a855f7);
360
+ --stl-color-purple-foreground: var(--stl-color-purple);
361
+ --stl-color-purple-foreground-reduced: rgb(from var(--stl-color-purple-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
362
+ --stl-color-purple-foreground-muted: rgb(from var(--stl-color-purple-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
363
+ --stl-color-purple-muted-background: light-dark(rgb(from var(--stl-color-purple-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-purple-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
364
+ --stl-color-purple-muted-background-hover: rgb(from var(--stl-color-purple-muted-background) r g b/calc(alpha * 2));
365
+ --stl-color-purple-border: light-dark(rgb(from var(--stl-color-purple) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-purple) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
366
+ --stl-color-purple-border-faint: rgb(from var(--stl-color-purple-border) r g b/calc(alpha * 0.5));
367
+ --stl-color-purple-border-strong: var(--stl-color-purple);
368
+ --stl-color-purple-inverse-background: var(--stl-color-purple);
369
+ --stl-color-purple-inverse-background-hover: rgb(from var(--stl-color-purple-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
370
+ --stl-color-purple-inverse-foreground: rgb(255, 255, 255);
371
+ /* cyan */
372
+ --stl-color-cyan: light-dark(#0891b2, #06b6d4);
373
+ --stl-color-cyan-foreground: var(--stl-color-cyan);
374
+ --stl-color-cyan-foreground-reduced: rgb(from var(--stl-color-cyan-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
375
+ --stl-color-cyan-foreground-muted: rgb(from var(--stl-color-cyan-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
376
+ --stl-color-cyan-muted-background: light-dark(rgb(from var(--stl-color-cyan-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-cyan-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
377
+ --stl-color-cyan-muted-background-hover: rgb(from var(--stl-color-cyan-muted-background) r g b/calc(alpha * 2));
378
+ --stl-color-cyan-border: light-dark(rgb(from var(--stl-color-cyan) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-cyan) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
379
+ --stl-color-cyan-border-faint: rgb(from var(--stl-color-cyan-border) r g b/calc(alpha * 0.5));
380
+ --stl-color-cyan-border-strong: var(--stl-color-cyan);
381
+ --stl-color-cyan-inverse-background: var(--stl-color-cyan);
382
+ --stl-color-cyan-inverse-background-hover: rgb(from var(--stl-color-cyan-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
383
+ --stl-color-cyan-inverse-foreground: rgb(255, 255, 255);
384
+ /* pink */
385
+ --stl-color-pink: light-dark(#ec4899, #ec4899);
386
+ --stl-color-pink-foreground: var(--stl-color-pink);
387
+ --stl-color-pink-foreground-reduced: rgb(from var(--stl-color-pink-foreground) r g b/calc(alpha * var(--stl-opacity-level-080)));
388
+ --stl-color-pink-foreground-muted: rgb(from var(--stl-color-pink-foreground) r g b/calc(alpha * var(--stl-opacity-level-040)));
389
+ --stl-color-pink-muted-background: light-dark(rgb(from var(--stl-color-pink-foreground) r g b/calc(alpha * var(--stl-opacity-level-008))), rgb(from var(--stl-color-pink-foreground) r g b/calc(alpha * var(--stl-opacity-level-016))));
390
+ --stl-color-pink-muted-background-hover: rgb(from var(--stl-color-pink-muted-background) r g b/calc(alpha * 2));
391
+ --stl-color-pink-border: light-dark(rgb(from var(--stl-color-pink) r g b/calc(alpha * var(--stl-opacity-level-016))), rgb(from var(--stl-color-pink) r g b/calc(alpha * calc(var(--stl-opacity-level-016) * 1.5))));
392
+ --stl-color-pink-border-faint: rgb(from var(--stl-color-pink-border) r g b/calc(alpha * 0.5));
393
+ --stl-color-pink-border-strong: var(--stl-color-pink);
394
+ --stl-color-pink-inverse-background: var(--stl-color-pink);
395
+ --stl-color-pink-inverse-background-hover: rgb(from var(--stl-color-pink-inverse-background) r g b/calc(alpha * var(--stl-opacity-level-080)));
396
+ --stl-color-pink-inverse-foreground: rgb(255, 255, 255);
397
+ }
398
+ :root[data-theme=dark],
399
+ .stl-theme-dark {
400
+ color-scheme: dark;
401
+ background: var(--stl-color-background);
402
+ color: var(--stl-color-foreground);
403
+ }
404
+ :root[data-theme=light],
405
+ .stl-theme-light {
406
+ color-scheme: light;
407
+ background: var(--stl-color-background);
408
+ color: var(--stl-color-foreground);
409
+ }
410
+ }
411
+ /* Semantic color roles */
412
+ @layer stl-ui.tokens {
413
+ :root {
414
+ --stl-color-link-foreground: var(--stl-color-accent-foreground);
415
+ --stl-color-text-selection: var(--stl-color-accent-inverse-background);
416
+ }
417
+ }
418
+ .stl-ui-button {
419
+ height: 32px;
420
+ padding: 8px 10px;
421
+ border-radius: var(--stl-ui-layout-border-radius-sml);
422
+ line-height: 150%;
423
+ font-weight: 500;
424
+ font-size: var(--stl-typography-text-body-sm);
425
+ font-family: var(--stl-typography-font);
426
+
427
+ cursor: pointer;
428
+ display: inline-flex;
429
+ align-items: center;
430
+ justify-content: center;
431
+ gap: 2px;
432
+ white-space: nowrap;
433
+ flex-shrink: 0;
434
+
435
+ border: 1px solid transparent;
436
+ color: var(--stl-color-inverse-foreground);
437
+ background-color: var(--stl-color-inverse-background);
438
+
439
+ &:hover {
440
+ background-color: var(--stl-color-inverse-background-hover);
441
+ }
442
+
443
+ &[hidden] {
444
+ display: none;
445
+ }
446
+ }
447
+
448
+ /* --- COLOR VARIANTS --- */
449
+
450
+ .stl-ui-button--accent {
451
+ color: var(--stl-color-accent-inverse-foreground);
452
+ background-color: var(--stl-color-accent-inverse-background);
453
+ &:hover {
454
+ background-color: var(--stl-color-accent-inverse-background-hover);
455
+ }
456
+ }
457
+
458
+ .stl-ui-button--accent-muted {
459
+ color: var(--stl-color-accent-foreground);
460
+ background-color: var(--stl-color-accent-muted-background);
461
+ &:hover {
462
+ background-color: var(--stl-color-accent-muted-background-hover);
463
+ }
464
+ &.stl-ui-button--with-border {
465
+ border-color: var(--stl-color-accent-border);
466
+ }
467
+ }
468
+
469
+ .stl-ui-button--muted {
470
+ color: var(--stl-color-foreground);
471
+ background-color: var(--stl-color-muted-background);
472
+ &:hover {
473
+ background-color: var(--stl-color-muted-background-hover);
474
+ }
475
+ &.stl-ui-button--with-border {
476
+ border-color: var(--stl-color-border);
477
+ }
478
+ }
479
+
480
+ .stl-ui-button--outline {
481
+ color: var(--stl-color-foreground);
482
+ background-color: var(--stl-color-ui-background);
483
+ border-color: var(--stl-color-border);
484
+ &:hover {
485
+ background:
486
+ linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
487
+ linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
488
+ }
489
+ }
490
+
491
+ .stl-ui-button--ghost {
492
+ color: var(--stl-color-foreground);
493
+ background-color: transparent;
494
+ &:hover {
495
+ background-color: var(--stl-color-background-hover);
496
+ }
497
+ &.stl-ui-button--with-border {
498
+ border-color: var(--stl-color-border);
499
+ }
500
+ }
501
+
502
+ .stl-ui-button--success {
503
+ color: var(--stl-color-green-inverse-foreground);
504
+ background-color: var(--stl-color-green-inverse-background);
505
+ &:hover {
506
+ background-color: var(--stl-color-green-inverse-background-hover);
507
+ }
508
+ }
509
+
510
+ .stl-ui-button--destructive {
511
+ color: var(--stl-color-red-inverse-foreground);
512
+ background-color: var(--stl-color-red-inverse-background);
513
+ &:hover {
514
+ background-color: var(--stl-color-red-inverse-background-hover);
515
+ }
516
+ }
517
+
518
+ /* --- LOADING STATE --- */
519
+
520
+ /**
521
+ * When loading, set aria-disabled="true" and aria-label="<Doing action...>"
522
+ * Don't use disabled, it loses focus.
523
+ */
524
+
525
+ .stl-ui-button--loading {
526
+ -webkit-text-fill-color: transparent;
527
+ position: relative;
528
+
529
+ & * {
530
+ color: transparent;
531
+ }
532
+
533
+ &::before {
534
+ content: '';
535
+ animation: stl-ui-button--loading-spin 1s linear infinite;
536
+ position: absolute;
537
+ width: 16px;
538
+ height: 16px;
539
+ mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxvYWRlci1jaXJjbGUtaWNvbiBsdWNpZGUtbG9hZGVyLWNpcmNsZSI+PHBhdGggZD0iTTIxIDEyYTkgOSAwIDEgMS02LjIxOS04LjU2Ii8+PC9zdmc+');
540
+ mask-size: contain;
541
+ mask-position: center;
542
+ mask-repeat: no-repeat;
543
+ background: currentColor;
544
+ }
545
+ }
546
+
547
+ @keyframes stl-ui-button--loading-spin {
548
+ to {
549
+ transform: rotate(360deg);
550
+ }
551
+ }
552
+
553
+ /* --- SIZE VARIANTS --- */
554
+ .stl-ui-button--size-sm {
555
+ height: 24px;
556
+ padding: 0 6px;
557
+ border-radius: var(--stl-ui-layout-border-radius-xs);
558
+ line-height: 100%;
559
+ font-weight: 500;
560
+ font-size: var(--stl-typography-text-body-xs);
561
+ }
562
+
563
+ .stl-ui-button--size-lg {
564
+ height: 40px;
565
+ padding: 8px 14px;
566
+ border-radius: var(--stl-ui-layout-border-radius);
567
+ line-height: 150%;
568
+ font-weight: 500;
569
+ font-size: var(--stl-typography-text-body);
570
+ }
571
+
572
+ /* --- ICONS --- */
573
+ .stl-ui-button__icon {
574
+ flex-shrink: 0;
575
+ display: flex;
576
+ align-items: center;
577
+ justify-content: center;
578
+
579
+ svg {
580
+ margin-top: 0;
581
+ }
582
+ }
583
+
584
+ /* Left Icon */
585
+ .stl-ui-button:has(.stl-ui-button__icon:first-child) .stl-ui-button__icon {
586
+ margin-left: -4px;
587
+ margin-right: 4px;
588
+ }
589
+
590
+ .stl-ui-button:has(.stl-ui-button__icon:last-child) .stl-ui-button__icon {
591
+ /* Right Icon */
592
+ margin-right: -4px;
593
+ margin-left: 4px;
594
+
595
+ /* Right & Left Icon */
596
+ &:first-child {
597
+ margin-left: -4px;
598
+ margin-right: 4px;
599
+ }
600
+ }
601
+
602
+ /* Only Icon */
603
+ .stl-ui-button:not(:has(.stl-ui-button-label)):has(.stl-ui-button__icon:last-child):has(
604
+ .stl-ui-button__icon:first-child
605
+ ) {
606
+ aspect-ratio: 1 / 1;
607
+
608
+ .stl-ui-button__icon {
609
+ margin-left: -4px;
610
+ margin-right: -4px;
611
+ }
612
+ }
613
+
614
+ /* --- LINKS --- */
615
+
616
+ a.stl-ui-button {
617
+ text-decoration: none;
618
+ text-align: center;
619
+ }
620
+
621
+ .stl-ui-dropdown {
622
+ --stl-ui-dropdown-button-color: var(--stl-color-foreground);
623
+ --stl-ui-dropdown-button-background-color: var(--stl-color-ui-background);
624
+ --stl-ui-dropdown-button-border-color: var(--stl-color-border);
625
+
626
+ --stl-ui-dropdown-button-border-radius: var(--stl-ui-layout-border-radius-sml);
627
+ --stl-ui-dropdown-button-font-size: var(--stl-typography-scale-sm);
628
+
629
+ --stl-ui-dropdown-button-height: 2rem;
630
+ --stl-ui-dropdown-button-padding-inline: calc(0.75rem - 1px);
631
+ --stl-ui-dropdown-button-line-height: 100%;
632
+ --stl-ui-dropdown-button-font-weight: 500;
633
+
634
+ position: relative;
635
+ display: inline-flex;
636
+ align-items: center;
637
+
638
+ color: var(--stl-ui-dropdown-button-color);
639
+ gap: 0;
640
+ font-size: var(--stl-ui-dropdown-button-font-size);
641
+
642
+ hr {
643
+ --stl-ui-dropdown-button__divider-height: 1px;
644
+ --stl-ui-dropdown-button__divider-color: var(--stl-color-border);
645
+
646
+ height: var(--stl-ui-dropdown-button__divider-height);
647
+ background-color: var(--stl-ui-dropdown-button__divider-color);
648
+ border: none;
649
+
650
+ margin: 4px 0;
651
+ width: calc(100% + 8px);
652
+ transform: translateX(-4px);
653
+ }
654
+
655
+ .stl-ui-dropdown__button {
656
+ background-color: var(--stl-ui-dropdown-button-background-color);
657
+
658
+ border: 1px solid var(--stl-ui-dropdown-button-border-color);
659
+ border-radius: var(--stl-ui-dropdown-button-border-radius);
660
+ height: var(--stl-ui-dropdown-button-height);
661
+ padding-inline: var(--stl-ui-dropdown-button-padding-inline);
662
+ line-height: var(--stl-ui-dropdown-button-line-height);
663
+ font-weight: var(--stl-ui-dropdown-button-font-weight);
664
+ cursor: pointer;
665
+ display: flex;
666
+ align-items: center;
667
+ justify-content: center;
668
+ color: inherit;
669
+
670
+ &:focus {
671
+ outline: 1px auto Highlight;
672
+ }
673
+
674
+ &:hover {
675
+ background-color: var(--stl-color-ui-background-hover);
676
+ }
677
+
678
+ .stl-ui-dropdown__trigger-icon {
679
+ margin-right: -4px;
680
+ margin-left: 4px;
681
+ display: flex;
682
+ align-items: center;
683
+ justify-content: center;
684
+ }
685
+ }
686
+
687
+ .stl-ui-dropdown__icon {
688
+ display: flex;
689
+ align-items: center;
690
+ justify-content: center;
691
+
692
+ svg {
693
+ width: 16px;
694
+ height: 16px;
695
+ }
696
+ }
697
+
698
+ /**
699
+ * Dropdown Button
700
+ */
701
+ .stl-ui-dropdown-button--action {
702
+ display: flex;
703
+ align-items: center;
704
+ gap: 8px;
705
+ border-top-right-radius: 0;
706
+ border-bottom-right-radius: 0;
707
+ border-right-width: 0;
708
+
709
+ &:hover {
710
+ background-color: var(--stl-color-ui-background-hover);
711
+ z-index: 1;
712
+ border-right-width: 1px;
713
+ & + .stl-ui-dropdown-button__trigger {
714
+ border-left-width: 0;
715
+ }
716
+ }
717
+
718
+ &.disabled {
719
+ cursor: not-allowed;
720
+ background-color: var(--stl-color-ui-background);
721
+ }
722
+ }
723
+
724
+ .stl-ui-dropdown-button__trigger {
725
+ border-radius: 0;
726
+ border-top-right-radius: var(--stl-ui-dropdown-button-border-radius);
727
+ border-bottom-right-radius: var(--stl-ui-dropdown-button-border-radius);
728
+
729
+ &:hover {
730
+ background-color: var(--stl-color-ui-background-hover);
731
+ }
732
+ }
733
+
734
+ .stl-ui-dropdown__trigger-selected {
735
+ display: flex;
736
+ align-items: center;
737
+ gap: 8px;
738
+ }
739
+
740
+ /**
741
+ * Dropdown Menu
742
+ */
743
+ .stl-ui-dropdown-menu {
744
+ --stl-ui-dropdown-menu-background-color: var(--stl-color-ui-background);
745
+ --stl-ui-dropdown-menu-border-color: var(--stl-color-border);
746
+ --stl-ui-dropdown-menu-box-shadow: 0px 4px 4px -2px #00000014;
747
+ --stl-ui-dropdown-menu-border-radius: var(--stl-ui-layout-border-radius-sml);
748
+
749
+ /* opaque background with sometimes-transparent color on top in image layer*/
750
+ background-color: var(--stl-color-background);
751
+ background-image: linear-gradient(
752
+ to right,
753
+ var(--stl-ui-dropdown-menu-background-color),
754
+ var(--stl-ui-dropdown-menu-background-color)
755
+ );
756
+
757
+ border: 1px solid var(--stl-ui-dropdown-menu-border-color);
758
+ box-shadow: var(--stl-ui-dropdown-menu-box-shadow);
759
+ border-radius: var(--stl-ui-dropdown-menu-border-radius);
760
+
761
+ position: absolute;
762
+ right: 0;
763
+ z-index: 1000;
764
+ min-width: 100%;
765
+ width: max-content;
766
+ padding: 4px;
767
+ display: none;
768
+
769
+ &.stl-ui-dropdown-menu--above {
770
+ top: auto;
771
+ bottom: 100%;
772
+ margin-bottom: 4px;
773
+ }
774
+
775
+ &.stl-ui-dropdown-menu--below {
776
+ top: 100%;
777
+ bottom: auto;
778
+ margin-top: 4px;
779
+ }
780
+
781
+ &[data-state='open'] {
782
+ display: block;
783
+ }
784
+
785
+ .stl-ui-dropdown-menu__item {
786
+ --stl-ui-dropdown-menu__item-border-radius: var(--stl-ui-dropdown-button-border-radius);
787
+ --stl-ui-dropdown-menu__item-height: var(--stl-ui-dropdown-button-height);
788
+ --stl-ui-dropdown-menu__item-line-height: var(--stl-ui-dropdown-button-line-height);
789
+ --stl-ui-dropdown-menu__item-hover-background-color: var(--stl-color-ui-background-hover);
790
+
791
+ border-radius: var(--stl-ui-dropdown-menu__item-border-radius);
792
+ height: var(--stl-ui-dropdown-menu__item-height);
793
+ line-height: var(--stl-ui-dropdown-menu__item-line-height);
794
+
795
+ background: transparent;
796
+ border: none;
797
+
798
+ padding: 8px;
799
+ cursor: pointer;
800
+ display: flex;
801
+ align-items: center;
802
+ justify-content: space-between;
803
+ gap: 16px;
804
+ width: 100%;
805
+
806
+ &:hover,
807
+ &:focus-visible {
808
+ background-color: var(--stl-ui-dropdown-menu__item-hover-background-color);
809
+ }
810
+
811
+ &:hover,
812
+ &:focus-visible,
813
+ &:focus {
814
+ color: var(--stl-color-foreground);
815
+ }
816
+
817
+ &.stl-ui-dropdown-menu__item-link {
818
+ display: flex;
819
+ align-items: center;
820
+ justify-content: space-between;
821
+ gap: 16px;
822
+ width: 100%;
823
+
824
+ &:hover {
825
+ color: var(--stl-color-foreground);
826
+ }
827
+ }
828
+
829
+ .stl-ui-dropdown-menu__item-icon {
830
+ display: flex;
831
+ }
832
+
833
+ .stl-ui-dropdown-menu__item-content {
834
+ display: flex;
835
+ align-items: center;
836
+ gap: 8px;
837
+ }
838
+
839
+ .stl-ui-dropdown-menu__item-text {
840
+ white-space: nowrap;
841
+ }
842
+
843
+ .stl-ui-dropdown-menu__item-text--subtle {
844
+ color: var(--stl-color-foreground-muted);
845
+ }
846
+
847
+ strong {
848
+ color: var(--stl-color-foreground);
849
+ font-weight: 500;
850
+ }
851
+
852
+ .stl-ui-dropdown-menu__item-subtle-icon {
853
+ --stl-ui-dropdown-menu__item-subtle-icon-color: rgb(from var(--stl-color-foreground) r g b / 0.25);
854
+
855
+ svg {
856
+ color: var(--stl-ui-dropdown-menu__item-subtle-icon-color);
857
+ }
858
+ }
859
+ }
860
+ }
861
+ }
862
+
863
+ .stl-ui-callout {
864
+ --stl-ui-callout-background-color: var(--stl-color-faint-background);
865
+ --stl-ui-callout-border-color: var(--stl-color-border);
866
+ --stl-ui-callout-accent-color: var(--stl-color-foreground);
867
+
868
+ border: 1px solid var(--stl-ui-callout-border-color);
869
+ background-color: var(--stl-ui-callout-background-color);
870
+ border-radius: var(--stl-ui-layout-border-radius);
871
+ padding: 12px;
872
+ line-height: var(--stl-typography-line-height);
873
+ font-weight: 400;
874
+ font-size: var(--stl-typography-text-body);
875
+ color: var(--stl-color-foreground);
876
+
877
+ display: flex;
878
+ align-items: flex-start;
879
+ gap: 8px;
880
+
881
+ :where(a, strong) {
882
+ color: var(--stl-ui-callout-strong-color, var(--stl-ui-callout-accent-color));
883
+ }
884
+ :where(a) {
885
+ text-decoration-color: rgba(from currentColor r g b / 0.4);
886
+ transition: text-decoration-color 0.1s ease;
887
+ &:hover {
888
+ text-decoration-color: rgba(from currentColor r g b / 0.8);
889
+ }
890
+ }
891
+
892
+ ::selection {
893
+ background-color: light-dark(
894
+ rgb(from var(--stl-ui-callout-background-color) r g b / 0.2),
895
+ rgb(from var(--stl-ui-callout-background-color) r g b / 0.35)
896
+ );
897
+ color: var(--stl-color-foreground);
898
+ }
899
+ }
900
+
901
+ .stl-ui-callout--info {
902
+ --stl-ui-callout-background-color: var(--stl-color-faint-background);
903
+ --stl-ui-callout-border-color: var(--stl-color-border);
904
+ --stl-ui-callout-accent-color: var(--stl-color-foreground-reduced);
905
+ --stl-ui-callout-strong-color: var(--stl-color-foreground);
906
+ }
907
+
908
+ .stl-ui-callout--note {
909
+ --stl-ui-callout-background-color: var(--stl-color-blue-muted-background);
910
+ --stl-ui-callout-border-color: var(--stl-color-blue-border);
911
+ --stl-ui-callout-accent-color: var(--stl-color-blue-foreground);
912
+ }
913
+
914
+ .stl-ui-callout--tip {
915
+ --stl-ui-callout-background-color: var(--stl-color-purple-muted-background);
916
+ --stl-ui-callout-border-color: var(--stl-color-purple-border);
917
+ --stl-ui-callout-accent-color: var(--stl-color-purple-foreground);
918
+ }
919
+
920
+ .stl-ui-callout--success {
921
+ --stl-ui-callout-background-color: var(--stl-color-green-muted-background);
922
+ --stl-ui-callout-border-color: var(--stl-color-green-border);
923
+ --stl-ui-callout-accent-color: var(--stl-color-green-foreground);
924
+ }
925
+
926
+ .stl-ui-callout--warning {
927
+ --stl-ui-callout-background-color: var(--stl-color-yellow-muted-background);
928
+ --stl-ui-callout-border-color: var(--stl-color-yellow-border);
929
+ --stl-ui-callout-accent-color: var(--stl-color-yellow-foreground);
930
+ }
931
+
932
+ .stl-ui-callout--danger {
933
+ --stl-ui-callout-background-color: var(--stl-color-red-muted-background);
934
+ --stl-ui-callout-border-color: var(--stl-color-red-border);
935
+ --stl-ui-callout-accent-color: var(--stl-color-red-foreground);
936
+ }
937
+
938
+ .stl-ui-callout__icon {
939
+ color: var(--stl-ui-callout-accent-color);
940
+ flex-shrink: 0;
941
+ width: 1em;
942
+ height: 1em;
943
+ margin: calc((1lh - 1em) / 2);
944
+ }
945
+
946
+ .stl-ui-callout__content {
947
+ flex: 1;
948
+ margin-top: 0;
949
+
950
+ & > :first-child {
951
+ margin-top: 0;
952
+ }
953
+ }
954
+
955
+ /* revert starlight details styles */
956
+ @layer starlight.content {
957
+ /* artificially increase specificity to outcompete selectors in the same layer whose styles we want to revert */
958
+ .stl-ui-prose .sl-markdown-content.sl-markdown-content.sl-markdown-content {
959
+ details,
960
+ summary,
961
+ summary::before,
962
+ summary::marker {
963
+ all: revert-layer;
964
+ }
965
+ }
966
+ }
967
+
968
+ .stl-ui-accordion {
969
+ --stl-ui-accordion-padding: 12px;
970
+ --stl-ui-accordion-content-padding-bottom: 4px;
971
+ --stl-ui-accordion-marker-size: 1em;
972
+ --stl-ui-accordion-marker-margin: calc((1lh - var(--stl-ui-accordion-marker-size)) / 2);
973
+ --stl-ui-accordion-marker-color: var(--stl-color-border-strong);
974
+ --stl-ui-accordion-row-gap: 8px;
975
+ --stl-ui-accordion-summary-column-gap: 8px;
976
+ --stl-ui-accordion-border-radius: var(--stl-ui-layout-border-radius);
977
+ /* left inset to make content line up with summary content (after chevron) */
978
+ --stl-ui--internal--accordion-padding-start: calc(
979
+ var(--stl-ui-accordion-padding) + var(--stl-ui-accordion-marker-size) +
980
+ var(--stl-ui-accordion-marker-margin) * 2 + var(--stl-ui-accordion-summary-column-gap)
981
+ );
982
+
983
+ background-color: var(--stl-color-ui-background);
984
+ border: 1px solid var(--stl-color-border);
985
+ border-radius: var(--stl-ui-accordion-border-radius);
986
+ font-size: var(--stl-typography-text-body);
987
+
988
+ padding: var(--stl-ui-accordion-padding);
989
+ /* indent content to line up with left edge of summary content */
990
+ padding-inline-start: var(--stl-ui--internal--accordion-padding-start);
991
+
992
+ & > .stl-ui-accordion__summary {
993
+ display: block;
994
+ list-style: none;
995
+
996
+ /* summary extends to the edges of the element in order to increase click target */
997
+ padding: var(--stl-ui-accordion-padding);
998
+ padding-inline-start: var(--stl-ui--internal--accordion-padding-start);
999
+ margin: calc(-1 * var(--stl-ui-accordion-padding));
1000
+ margin-inline-start: calc(-1 * var(--stl-ui--internal--accordion-padding-start));
1001
+
1002
+ cursor: pointer;
1003
+ font-weight: 500;
1004
+
1005
+ border-radius: var(--stl-ui-accordion-border-radius);
1006
+
1007
+ &::before {
1008
+ content: '';
1009
+ width: var(--stl-ui-accordion-marker-size);
1010
+ height: var(--stl-ui-accordion-marker-size);
1011
+ margin: var(--stl-ui-accordion-marker-margin);
1012
+ background-color: var(--stl-ui-accordion-marker-color);
1013
+ display: block;
1014
+ position: absolute;
1015
+ --stl-ui-accordion--internal--marker-width: calc(
1016
+ var(--stl-ui-accordion-marker-size) + var(--stl-ui-accordion-marker-margin) * 2
1017
+ );
1018
+ --stl-ui-accordion--internal--summary-marker-transform: translateX(
1019
+ calc(
1020
+ -1 * var(--stl-ui-accordion--internal--marker-width) - var(--stl-ui-accordion-summary-column-gap)
1021
+ )
1022
+ );
1023
+ transform: var(--stl-ui-accordion--internal--summary-marker-transform);
1024
+
1025
+ --lucide-chevron-right: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZXZyb24tcmlnaHQtaWNvbiBsdWNpZGUtY2hldnJvbi1yaWdodCI+PHBhdGggZD0ibTkgMTggNi02LTYtNiIvPjwvc3ZnPg==');
1026
+ mask-image: var(--lucide-chevron-right);
1027
+ mask-size: contain;
1028
+ mask-repeat: no-repeat;
1029
+
1030
+ transition: transform 0.1s ease-out;
1031
+ }
1032
+
1033
+ & > :first-child {
1034
+ margin-top: 0;
1035
+ }
1036
+ }
1037
+
1038
+ &[open] {
1039
+ border-color: var(--stl-color-border-strong);
1040
+ padding-bottom: calc(var(--stl-ui-accordion-padding) + var(--stl-ui-accordion-content-padding-bottom));
1041
+
1042
+ & > .stl-ui-accordion__summary {
1043
+ /* padding-bottom shouldn’t extend beyond the row gap while open, i.e. we shouldn’t be negative-margin-placing content overlapping summary */
1044
+ --stl-ui--internal--summary-padding-bottom: min(
1045
+ var(--stl-ui-accordion-padding),
1046
+ var(--stl-ui-accordion-row-gap)
1047
+ );
1048
+ padding-bottom: var(--stl-ui--internal--summary-padding-bottom);
1049
+ margin-bottom: calc(var(--stl-ui-accordion-row-gap) - var(--stl-ui--internal--summary-padding-bottom));
1050
+ border-bottom-left-radius: 0;
1051
+ border-bottom-right-radius: 0;
1052
+
1053
+ &::before {
1054
+ transform: var(--stl-ui-accordion--internal--summary-marker-transform) rotate(90deg);
1055
+ }
1056
+ }
1057
+ }
1058
+
1059
+ &:has(> .stl-ui-accordion__summary:hover) {
1060
+ background-color: var(--stl-color-ui-background-hover);
1061
+ }
1062
+
1063
+ & > .stl-ui-accordion__summary + * {
1064
+ margin-top: 0;
1065
+ }
1066
+ }
1067
+
1068
+ /* Groups */
1069
+
1070
+ .stl-ui-accordion-group {
1071
+ & > .stl-ui-accordion:has(+ .stl-ui-accordion) {
1072
+ border-bottom-left-radius: 0;
1073
+ border-bottom-right-radius: 0;
1074
+ & > .stl-ui-accordion__summary {
1075
+ border-bottom-left-radius: 0;
1076
+ border-bottom-right-radius: 0;
1077
+ }
1078
+ }
1079
+
1080
+ & > .stl-ui-accordion + .stl-ui-accordion {
1081
+ margin-top: 0;
1082
+ border-top-width: 0;
1083
+ border-top-left-radius: 0;
1084
+ border-top-right-radius: 0;
1085
+
1086
+ & > .stl-ui-accordion__summary {
1087
+ border-top-left-radius: 0;
1088
+ border-top-right-radius: 0;
1089
+ }
1090
+ }
1091
+
1092
+ /* Ensure the darker border always extends all the way around the active element, instead of
1093
+ * leaving an inactive border-top */
1094
+
1095
+ .stl-ui-accordion:not(:hover, [open]):has(+ .stl-ui-accordion:hover) {
1096
+ border-bottom-width: 0;
1097
+ }
1098
+ .stl-ui-accordion:not(:hover, [open]) + .stl-ui-accordion:hover {
1099
+ border-top-width: 1px;
1100
+ }
1101
+
1102
+ .stl-ui-accordion:not([open]):has(+ .stl-ui-accordion[open]) {
1103
+ border-bottom-width: 0;
1104
+ }
1105
+ .stl-ui-accordion:not([open]) + .stl-ui-accordion[open] {
1106
+ border-top-width: 1px;
1107
+ }
1108
+ }
1109
+
1110
+ .stl-ui-steps {
1111
+ padding-left: 0;
1112
+ }
1113
+
1114
+ .stl-ui-steps__step {
1115
+ --step-icon-width: 24px;
1116
+ --step-padding: 12px;
1117
+ list-style: none;
1118
+ position: relative;
1119
+ padding: var(--step-padding);
1120
+ /* Space for the custom marker */
1121
+ padding-left: calc(var(--step-icon-width) + var(--step-padding));
1122
+ margin: 0;
1123
+
1124
+ &::before {
1125
+ content: counter(list-item);
1126
+ position: absolute;
1127
+ left: 0;
1128
+ top: var(--step-padding);
1129
+ width: var(--step-icon-width);
1130
+ height: var(--step-icon-width);
1131
+ border: 1px solid var(--stl-color-border);
1132
+ border-radius: 100%;
1133
+ display: flex;
1134
+ align-items: center;
1135
+ justify-content: center;
1136
+ background: var(--stl-color-bg);
1137
+ z-index: 1;
1138
+ font-size: var(--stl-typography-text-body-xs);
1139
+ font-style: normal;
1140
+ font-weight: 600;
1141
+ line-height: 100%;
1142
+ }
1143
+
1144
+ &::after {
1145
+ content: '';
1146
+ position: absolute;
1147
+ left: calc(var(--step-icon-width) / 2 - 0.5px);
1148
+ top: calc(var(--step-icon-width) + var(--step-padding));
1149
+ bottom: calc(-1 * (var(--step-padding)));
1150
+ width: 1px;
1151
+ background: var(--stl-color-border);
1152
+ }
1153
+
1154
+ &:last-child {
1155
+ padding-bottom: 0;
1156
+
1157
+ /* No line after the last step */
1158
+ &::after {
1159
+ display: none;
1160
+ }
1161
+ }
1162
+ }
1163
+ .stl-ui-steps__step-title {
1164
+ font-weight: 600;
1165
+ }
1166
+
1167
+ .stl-ui-steps__step-content {
1168
+ margin-bottom: 0;
1169
+ margin-top: 4px;
1170
+ }
1171
+
1172
+ .stl-ui-badge {
1173
+ display: inline-flex;
1174
+ align-items: center;
1175
+ gap: 0.125em;
1176
+
1177
+ font-weight: 500;
1178
+ letter-spacing: normal;
1179
+
1180
+ border-width: 1px;
1181
+ border-style: solid;
1182
+
1183
+ /* sizes */
1184
+ &.stl-ui-badge--size-sm {
1185
+ height: 20px;
1186
+ font-size: var(--stl-typography-scale-xs);
1187
+ padding: 0 2px;
1188
+ border-radius: var(--stl-ui-layout-border-radius-xs);
1189
+ --stl-ui-badge-icon-size: 14px;
1190
+ }
1191
+ &,
1192
+ &.stl-ui-badge--size-md {
1193
+ height: 24px;
1194
+ font-size: var(--stl-typography-scale-sm);
1195
+ padding: 0 4px;
1196
+ border-radius: var(--stl-ui-layout-border-radius-xs);
1197
+ --stl-ui-badge-icon-size: 14px;
1198
+ }
1199
+ &.stl-ui-badge--size-lg {
1200
+ height: 32px;
1201
+ font-size: var(--stl-typography-scale-md);
1202
+ padding: 0 6px;
1203
+ border-radius: var(--stl-ui-layout-border-radius-sml);
1204
+ --stl-ui-badge-icon-size: 16px;
1205
+ }
1206
+
1207
+ /* intents */
1208
+ &.stl-ui-badge--intent-none {
1209
+ background-color: var(--stl-color-ui-background);
1210
+ color: var(--stl-color-foreground-muted);
1211
+ --stl-ui-badge-icon-opacity: var(--stl-opacity-level-040);
1212
+ border-color: var(--stl-color-border);
1213
+ }
1214
+ &.stl-ui-badge--intent-info {
1215
+ background-color: var(--stl-color-muted-background);
1216
+ color: var(--stl-color-foreground);
1217
+ border-color: var(--stl-color-border);
1218
+ &.stl-ui-badge--solid {
1219
+ background-color: var(--stl-color-inverse-background);
1220
+ color: var(--stl-color-inverse-foreground);
1221
+ --stl-ui-badge-icon-opacity: 1;
1222
+ }
1223
+ }
1224
+ &.stl-ui-badge--intent-success,
1225
+ &.stl-ui-badge--http-get {
1226
+ background-color: var(--stl-color-green-muted-background);
1227
+ color: var(--stl-color-green-foreground);
1228
+ border-color: var(--stl-color-green-border);
1229
+ &.stl-ui-badge--solid {
1230
+ background-color: var(--stl-color-green-inverse-background);
1231
+ color: var(--stl-color-green-inverse-foreground);
1232
+ }
1233
+ }
1234
+ &.stl-ui-badge--intent-warning {
1235
+ background-color: var(--stl-color-yellow-muted-background);
1236
+ color: var(--stl-color-yellow-foreground);
1237
+ border-color: var(--stl-color-yellow-border);
1238
+ &.stl-ui-badge--solid {
1239
+ background-color: var(--stl-color-yellow-inverse-background);
1240
+ color: var(--stl-color-yellow-inverse-foreground);
1241
+ }
1242
+ }
1243
+ &.stl-ui-badge--intent-danger,
1244
+ &.stl-ui-badge--http-delete {
1245
+ background-color: var(--stl-color-red-muted-background);
1246
+ color: var(--stl-color-red-foreground);
1247
+ border-color: var(--stl-color-red-border);
1248
+ &.stl-ui-badge--solid {
1249
+ background-color: var(--stl-color-red-inverse-background);
1250
+ color: var(--stl-color-red-inverse-foreground);
1251
+ }
1252
+ }
1253
+ &.stl-ui-badge--intent-note,
1254
+ &.stl-ui-badge--http-post {
1255
+ background-color: var(--stl-color-blue-muted-background);
1256
+ color: var(--stl-color-blue-foreground);
1257
+ border-color: var(--stl-color-blue-border);
1258
+ &.stl-ui-badge--solid {
1259
+ background-color: var(--stl-color-blue-inverse-background);
1260
+ color: var(--stl-color-blue-inverse-foreground);
1261
+ }
1262
+ }
1263
+ &.stl-ui-badge--intent-tip {
1264
+ background-color: var(--stl-color-purple-muted-background);
1265
+ color: var(--stl-color-purple-foreground);
1266
+ border-color: var(--stl-color-purple-border);
1267
+ &.stl-ui-badge--solid {
1268
+ background-color: var(--stl-color-purple-inverse-background);
1269
+ color: var(--stl-color-purple-inverse-foreground);
1270
+ }
1271
+ }
1272
+ &.stl-ui-badge--intent-accent {
1273
+ background-color: var(--stl-color-accent-muted-background);
1274
+ color: var(--stl-color-accent-foreground);
1275
+ border-color: var(--stl-color-accent-border);
1276
+ &.stl-ui-badge--solid {
1277
+ background-color: var(--stl-color-accent-inverse-background);
1278
+ color: var(--stl-color-accent-inverse-foreground);
1279
+ }
1280
+ }
1281
+ &.stl-ui-badge--http-put,
1282
+ &.stl-ui-badge--http-patch {
1283
+ background-color: var(--stl-color-orange-muted-background);
1284
+ color: var(--stl-color-orange-foreground);
1285
+ border-color: var(--stl-color-orange-border);
1286
+ &.stl-ui-badge--solid {
1287
+ background-color: var(--stl-color-orange-inverse-background);
1288
+ color: var(--stl-color-orange-inverse-foreground);
1289
+ }
1290
+ }
1291
+
1292
+ /* Text content */
1293
+ .stl-ui-badge__content {
1294
+ display: inline-block;
1295
+ padding: 0.25em;
1296
+ }
1297
+
1298
+ /* Icons */
1299
+ svg {
1300
+ flex-shrink: 0;
1301
+ display: inline-block;
1302
+ color: rgb(from currentColor r g b / 1);
1303
+ opacity: var(--stl-ui-badge-icon-opacity, 1);
1304
+ width: var(--stl-ui-badge-icon-size);
1305
+ height: var(--stl-ui-badge-icon-size);
1306
+ }
1307
+ &:has(> svg:only-child) {
1308
+ padding: 0;
1309
+ aspect-ratio: 1;
1310
+ justify-content: center;
1311
+ }
1312
+
1313
+ /* HTTP */
1314
+ &.stl-ui-badge--http {
1315
+ font-family: var(--stl-typography-font-mono);
1316
+ font-variant-numeric: tabular-nums;
1317
+ text-transform: uppercase;
1318
+ }
1319
+ }
1320
+
1321
+ /* design system variables */
1322
+
1323
+ /* components */
1324
+
1325
+
1326
+ /* Resets */
1327
+ .stldocs-root {
1328
+ line-height: 1.5;
1329
+ letter-spacing: -0.01em;
1330
+
1331
+ a:not(.stl-ui-callout a) {
1332
+ color: inherit;
1333
+ cursor: pointer;
1334
+ text-decoration: none;
1335
+ }
1336
+
1337
+ *,
1338
+ *::before,
1339
+ *::after {
1340
+ box-sizing: border-box;
1341
+ }
1342
+
1343
+ /* Markdown content should get prose styling */
1344
+ :where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
1345
+ display: block;
1346
+ color: var(--stl-color-foreground);
1347
+ font-weight: 500;
1348
+ line-height: var(--stl-typography-line-height-heading);
1349
+ font-family: var(--stl-typography-font-heading);
1350
+ }
1351
+
1352
+ display: block;
1353
+ margin: 0;
1354
+ }
1355
+
1356
+ .sl-markdown-content {
1357
+ .stldocs-root
1358
+ :not(a, strong, em, del, span, input, code, br)
1359
+ + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) {
1360
+ margin-top: 0;
1361
+ }
1362
+ }
1363
+
1364
+ :root {
1365
+ --stldocs-color-selected: var(--stl-color-muted-background);
1366
+ --stldocs-color-bg-inline-code: var(--stl-color-muted-background);
1367
+
1368
+ --stldocs-content-width: 720px;
1369
+ --stldocs-content-padding: 16px;
1370
+ --stldocs-content-padding-inline: var(--stldocs-content-padding);
1371
+ --stldocs-content-padding-block: var(--stldocs-content-padding);
1372
+
1373
+ --stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
1374
+ --stldocs-color-http-get: var(--stl-color-green-foreground);
1375
+ --stldocs-color-http-put-bg: var(--stl-color-orange-muted-background);
1376
+ --stldocs-color-http-put: var(--stl-color-orange-foreground);
1377
+ --stldocs-color-http-post-bg: var(--stl-color-blue-muted-background);
1378
+ --stldocs-color-http-post: var(--stl-color-blue-foreground);
1379
+ --stldocs-color-http-delete-bg: var(--stl-color-red-muted-background);
1380
+ --stldocs-color-http-delete: var(--stl-color-red-foreground);
1381
+
1382
+ --stldocs-syntax-color-green: var(--stl-color-green-foreground);
1383
+ --stldocs-syntax-color-orange: var(--stl-color-orange-foreground);
1384
+ --stldocs-syntax-color-purple: var(--stl-color-purple-foreground);
1385
+ --stldocs-syntax-color-blue: var(--stl-color-blue-foreground);
1386
+
1387
+ --stldocs-expander-margin-shift: 24px;
1388
+ --stldocs-expander-right-margin: 8px;
1389
+ --stldocs-title-padding-y: 2.5rem;
1390
+ --stldocs-color-backdrop-overlay: var(--stl-color-muted-background);
1391
+ }
1392
+
1393
+ /* Design System Defaults */
1394
+ .stldocs-root {
1395
+ font-family: var(--stl-typography-font);
1396
+ color: var(--stl-color-foreground);
1397
+ letter-spacing: -0.01em;
1398
+
1399
+ :where(h1) {
1400
+ font-size: var(--stl-typography-text-h1);
1401
+ letter-spacing: -0.03em;
1402
+ }
1403
+
1404
+ :where(h2) {
1405
+ font-size: var(--stl-typography-text-h2);
1406
+ letter-spacing: -0.03em;
1407
+ }
1408
+
1409
+ :where(h3) {
1410
+ font-size: var(--stl-typography-text-h3);
1411
+ letter-spacing: -0.02em;
1412
+ }
1413
+
1414
+ :where(h4) {
1415
+ font-size: var(--stl-typography-text-h4);
1416
+ letter-spacing: -0.02em;
1417
+ }
1418
+
1419
+ :where(h5) {
1420
+ font-size: var(--stl-typography-text-h5);
1421
+ letter-spacing: -0.02em;
1422
+ }
1423
+ }
1424
+
1425
+ /* Color mapping for types */
1426
+ .stldocs-root {
1427
+ .stldocs-text-keyword {
1428
+ color: var(--stl-color-foreground-muted);
1429
+ }
1430
+
1431
+ .stldocs-property-type,
1432
+ .stldocs-property-declaration,
1433
+ .stldocs-type:not(.stldocs-property-typename .stldocs-type) {
1434
+ font-family: var(--stl-typography-font-mono);
1435
+
1436
+ .stldocs-type-keyword {
1437
+ color: var(--stldocs-syntax-color-orange);
1438
+ }
1439
+
1440
+ .stldocs-type-string {
1441
+ color: var(--stldocs-syntax-color-green);
1442
+ }
1443
+
1444
+ .stldocs-type-brace,
1445
+ .stldocs-type-bracket,
1446
+ .stldocs-type-plain,
1447
+ .stldocs-text-operator,
1448
+ .stldocs-text-punctuation,
1449
+ .stldocs-truncation,
1450
+ .stldocs-type-array {
1451
+ color: var(--stl-color-foreground-reduced);
1452
+ }
1453
+
1454
+ .stldocs-type-plain {
1455
+ font-family: var(--stl-typography-font);
1456
+ }
1457
+
1458
+ .stldocs-type-reference {
1459
+ color: var(--stldocs-syntax-color-blue);
1460
+ font-weight: 600;
1461
+ a:hover {
1462
+ text-decoration: underline;
1463
+ }
1464
+ }
1465
+
1466
+ .stldocs-literal-string {
1467
+ color: var(--stldocs-syntax-color-green);
1468
+ }
1469
+
1470
+ .stldocs-literal-numeric {
1471
+ color: var(--stldocs-syntax-color-orange);
1472
+ }
1473
+
1474
+ .stldocs-text-identifier {
1475
+ font-family: var(--stl-typography-font-mono);
1476
+ color: var(--stl-color-foreground);
1477
+ }
1478
+
1479
+ .stldocs-type-propertyname .stldocs-text-identifier {
1480
+ font-family: var(--stl-typography-font);
1481
+ font-weight: 600;
1482
+ }
1483
+ }
1484
+
1485
+ [data-stldocs-language='http'],
1486
+ [data-stldocs-language='cli'] {
1487
+ .stldocs-property-type,
1488
+ .stldocs-property-declaration {
1489
+ .stldocs-truncation,
1490
+ .stldocs-type-array,
1491
+ .stldocs-text-punctuation {
1492
+ font-family: var(--stl-typography-font);
1493
+ }
1494
+ }
1495
+ }
1496
+ }
1497
+
1498
+ /* HTTP Method Color Settings */
1499
+ .stldocs-root .stldocs-method-route,
1500
+ .stldocs-root .stldocs-sidebar-method {
1501
+ [data-method='get'] {
1502
+ background: var(--stldocs-color-http-get-bg);
1503
+ color: var(--stldocs-color-http-get);
1504
+ border-color: var(--stldocs-color-http-get);
1505
+ }
1506
+
1507
+ [data-method='post'] {
1508
+ background: var(--stldocs-color-http-post-bg);
1509
+ color: var(--stldocs-color-http-post);
1510
+ border-color: var(--stldocs-color-http-post);
1511
+ }
1512
+
1513
+ [data-method='patch'],
1514
+ [data-method='put'] {
1515
+ background: var(--stldocs-color-http-put-bg);
1516
+ color: var(--stldocs-color-http-put);
1517
+ border-color: var(--stldocs-color-http-put);
1518
+ }
1519
+
1520
+ [data-method='delete'] {
1521
+ background: var(--stldocs-color-http-delete-bg);
1522
+ color: var(--stldocs-color-http-delete);
1523
+ border-color: var(--stldocs-color-http-delete);
1524
+ }
1525
+ }
1526
+
1527
+ /* Generic expand/collapse button */
1528
+ .stldocs-root .stldocs-expander {
1529
+ &[data-stldocs-expander-muted='true'] {
1530
+ .stldocs-icon {
1531
+ visibility: hidden;
1532
+ }
1533
+
1534
+ &:hover {
1535
+ .stldocs-icon {
1536
+ visibility: visible;
1537
+ }
1538
+ }
1539
+ }
1540
+
1541
+ .stldocs-expander-summary {
1542
+ cursor: pointer;
1543
+ display: flex;
1544
+ /* padding: 0.4rem 0; */
1545
+
1546
+ & > .stldocs-expander-summary-icon {
1547
+ margin-right: 8px;
1548
+ transform: translateX(-0.5px) translateY(-0.5px);
1549
+
1550
+ & > .stldocs-icon {
1551
+ vertical-align: middle;
1552
+ color: var(--stl-color-foreground-muted);
1553
+ background-color: var(--stl-color-background);
1554
+ }
1555
+
1556
+ & > :last-child {
1557
+ display: none;
1558
+ }
1559
+ }
1560
+ }
1561
+
1562
+ &[open],
1563
+ &[data-open='true'] {
1564
+ & > .stldocs-expander-summary {
1565
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] .stldocs-type-preview-content {
1566
+ display: none;
1567
+ }
1568
+
1569
+ & > .stldocs-expander-summary-icon {
1570
+ & > :first-child {
1571
+ display: none;
1572
+ }
1573
+
1574
+ & > :last-child {
1575
+ display: inline;
1576
+ }
1577
+ }
1578
+ }
1579
+
1580
+ & > .stldocs-expander-content {
1581
+ margin-left: var(--stldocs-expander-margin-shift);
1582
+ line-height: 150%;
1583
+
1584
+ & > .stldocs-property-children {
1585
+ border-left: 1px solid var(--stl-color-border);
1586
+ padding-left: 16px;
1587
+
1588
+ .stldocs-expander {
1589
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
1590
+ padding-right: var(--stldocs-expander-right-margin);
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+ }
1596
+
1597
+ /* Markdown content */
1598
+ .stldocs-root .stldocs-content {
1599
+ a {
1600
+ color: var(--stl-color-link-foreground);
1601
+ }
1602
+
1603
+ code:not(pre code) {
1604
+ font-family: var(--stl-typography-font-mono);
1605
+ border-radius: 4px;
1606
+ padding: 0 4px;
1607
+ background-color: var(--stldocs-color-bg-inline-code);
1608
+ word-break: break-all;
1609
+ font-size: 0.84rem;
1610
+ }
1611
+
1612
+ strong {
1613
+ font-weight: bold;
1614
+ }
1615
+
1616
+ em {
1617
+ font-style: italic;
1618
+ }
1619
+
1620
+ p {
1621
+ display: block;
1622
+ margin: 0 0 1em;
1623
+
1624
+ &:last-child {
1625
+ margin: 0;
1626
+ }
1627
+ }
1628
+
1629
+ li {
1630
+ margin-bottom: 0.25rem;
1631
+ display: list-item;
1632
+ }
1633
+
1634
+ ol,
1635
+ ul {
1636
+ display: block;
1637
+ list-style-type: initial;
1638
+ margin-left: 2rem;
1639
+ margin-bottom: 0.8rem;
1640
+ }
1641
+
1642
+ ol {
1643
+ list-style-type: decimal;
1644
+ }
1645
+
1646
+ hr {
1647
+ margin-bottom: 16px;
1648
+ border: none;
1649
+ border-bottom: 1px solid var(--stl-color-border);
1650
+ }
1651
+ }
1652
+
1653
+ .stldocs-root .stldocs-input {
1654
+ border: 1px solid var(--stl-color-border);
1655
+ background: var(--stl-color-background);
1656
+ border-radius: var(--stl-ui-layout-border-radius-sml);
1657
+ display: flex;
1658
+
1659
+ &:focus-within {
1660
+ border-color: var(--stl-color-accent);
1661
+ }
1662
+
1663
+ &.stldocs-input-disabled {
1664
+ opacity: 0.5;
1665
+ }
1666
+
1667
+ input,
1668
+ .stldocs-masked-input-display {
1669
+ flex-grow: 1;
1670
+ border: none;
1671
+ background-color: transparent;
1672
+ margin: 0.5rem;
1673
+ font-size: 1rem;
1674
+ letter-spacing: initial;
1675
+ white-space: pre;
1676
+ contain: content;
1677
+ padding: 0;
1678
+
1679
+ &:focus {
1680
+ outline: none;
1681
+ }
1682
+ }
1683
+
1684
+ .stldocs-masked-input-wrapper {
1685
+ &:focus-within .stldocs-masked-input-display,
1686
+ &:not(:focus-within) input {
1687
+ opacity: 0;
1688
+ }
1689
+ }
1690
+
1691
+ .stldocs-masked-input-obscured {
1692
+ -webkit-text-stroke: currentColor 0.2em;
1693
+ }
1694
+
1695
+ .stldocs-icon {
1696
+ margin: auto 0.25rem auto 0.75rem;
1697
+ }
1698
+ }
1699
+
1700
+ .stldocs-root .stldocs-masked-input-wrapper {
1701
+ display: flex;
1702
+ flex-grow: 1;
1703
+ position: relative;
1704
+ font-family: var(--stl-typography-font-mono);
1705
+ }
1706
+
1707
+ .stldocs-root .stldocs-masked-input-display {
1708
+ position: absolute;
1709
+ inset: 0;
1710
+ display: flex;
1711
+ align-items: center;
1712
+ pointer-events: none; /* so you can click through to the real input */
1713
+ }
1714
+
1715
+ .stldocs-root .stldocs-listview {
1716
+ overflow-y: scroll;
1717
+
1718
+ .stldocs-listview-item:not(:last-child) {
1719
+ border-bottom: 1px solid var(--stl-color-border);
1720
+ }
1721
+
1722
+ [data-stldocs-listview-selected='true'] > :first-child {
1723
+ background:
1724
+ linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
1725
+ linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
1726
+ border-radius: 0.5rem;
1727
+ }
1728
+ }
1729
+
1730
+ .stldocs-root {
1731
+ .stldocs-tooltip-host {
1732
+ display: inline-block;
1733
+ }
1734
+
1735
+ .stldocs-tooltip-content {
1736
+ border: 1px solid var(--stl-color-border);
1737
+ background: var(--stl-color-background);
1738
+ border-radius: 8px;
1739
+ padding: 0.2rem 0.4rem;
1740
+
1741
+ * {
1742
+ font-size: 0.8rem !important;
1743
+ }
1744
+
1745
+ position: absolute;
1746
+
1747
+ transition:
1748
+ opacity 0.3s ease-in-out,
1749
+ visibility 0.3s step-end 0.3s;
1750
+ visibility: hidden;
1751
+ opacity: 0;
1752
+
1753
+ max-width: 400px;
1754
+ max-height: 300px;
1755
+ overflow: auto;
1756
+
1757
+ .stldocs-property-description {
1758
+ display: none;
1759
+ }
1760
+ }
1761
+
1762
+ .stldocs-tooltip:hover .stldocs-tooltip-content {
1763
+ transition-delay: 0s, 0s;
1764
+ visibility: visible;
1765
+ opacity: 1;
1766
+ }
1767
+ }
1768
+
1769
+ .stldocs-root {
1770
+ .stldocs-breadcrumbs {
1771
+ display: flex;
1772
+ align-items: center;
1773
+ gap: 0.5rem;
1774
+
1775
+ svg {
1776
+ width: 1rem;
1777
+ min-width: 1rem;
1778
+ stroke: var(--stl-color-foreground-reduced);
1779
+ opacity: 0.25;
1780
+ margin: 0;
1781
+ }
1782
+
1783
+ .stldocs-breadcrumbs-non-link,
1784
+ .stldocs-breadcrumbs-link {
1785
+ color: var(--stl-color-foreground-reduced);
1786
+ font-size: var(--stl-typography-scale-sm);
1787
+ line-height: 150%;
1788
+ text-decoration: none;
1789
+ }
1790
+
1791
+ .stldocs-breadcrumbs-link:hover {
1792
+ text-decoration: underline;
1793
+ color: var(--stl-color-foreground);
1794
+ }
1795
+
1796
+ .stldocs-breadcrumbs-item {
1797
+ display: flex;
1798
+ align-items: center;
1799
+ gap: 0.5rem;
1800
+ margin: 0;
1801
+ }
1802
+ }
1803
+ }
1804
+
1805
+ .stldocs-root .stldocs-expand-toggle {
1806
+ font-size: var(--stl-typography-scale-sm);
1807
+ display: flex;
1808
+ flex-grow: 1;
1809
+ justify-content: flex-end;
1810
+ user-select: none;
1811
+
1812
+ &[data-stldocs-property-toggle-expanded='false'] {
1813
+ .stldocs-expand-toggle-content:last-child {
1814
+ display: none;
1815
+ }
1816
+ }
1817
+
1818
+ &[data-stldocs-property-toggle-expanded='true'] {
1819
+ .stldocs-expand-toggle-content:first-child {
1820
+ display: none;
1821
+ }
1822
+ }
1823
+
1824
+ .stldocs-expand-toggle-content {
1825
+ cursor: pointer;
1826
+
1827
+ .stldocs-icon {
1828
+ vertical-align: middle;
1829
+ }
1830
+ }
1831
+ }
1832
+
1833
+ /* Overview page content */
1834
+ .stldocs-root .stldocs-overview {
1835
+ .stldocs-overview-header {
1836
+ padding: var(--stldocs-title-padding-y) 0;
1837
+
1838
+ & > * {
1839
+ max-width: var(--stldocs-content-width);
1840
+ margin: auto 0;
1841
+ }
1842
+
1843
+ .stldocs-overview-header-info {
1844
+ margin-top: 16px;
1845
+ height: 40px;
1846
+ display: flex;
1847
+ align-items: center;
1848
+
1849
+ .stldocs-overview-header-info-timestamp {
1850
+ font-size: var(--stl-typography-scale-xs);
1851
+ color: var(--stl-color-foreground);
1852
+ opacity: 50%;
1853
+ }
1854
+ }
1855
+ }
1856
+
1857
+ .stldocs-resource {
1858
+ padding: 2rem 0;
1859
+
1860
+ &:not([data-stl-resource-language='terraform']) .stldocs-resource-content {
1861
+ max-width: var(--stldocs-content-width);
1862
+ margin: auto 0;
1863
+ }
1864
+
1865
+ .stldocs-resource-header {
1866
+ display: flex;
1867
+ flex-direction: column;
1868
+ gap: 16px;
1869
+ opacity: 85%;
1870
+
1871
+ .stldocs-resource-title {
1872
+ .stldocs-icon {
1873
+ margin-left: 8px;
1874
+ color: var(--stl-color-foreground-muted);
1875
+ vertical-align: middle;
1876
+ display: inline;
1877
+ height: 1rem;
1878
+ }
1879
+
1880
+ .stldocs-resource-title-segment {
1881
+ margin-right: 8px;
1882
+ color: var(--stl-color-foreground);
1883
+
1884
+ &:not(:last-child) {
1885
+ color: var(--stl-color-foreground-reduced);
1886
+ font-weight: 400;
1887
+ }
1888
+ }
1889
+ }
1890
+
1891
+ .stldocs-resource-name {
1892
+ font-family: var(--stl-typography-font-mono);
1893
+ color: var(--stl-color-foreground);
1894
+ }
1895
+
1896
+ .stldocs-resource-description {
1897
+ font-size: var(--stl-typography-scale-base);
1898
+ color: var(--stl-color-foreground-reduced);
1899
+ line-height: 150%;
1900
+ }
1901
+ }
1902
+
1903
+ .stldocs-resource-content {
1904
+ .stldocs-resource-content-group {
1905
+ display: flex;
1906
+ flex-direction: column;
1907
+
1908
+ .stldocs-resource-content-group-model-title {
1909
+ padding-top: var(--stldocs-content-padding-block);
1910
+ color: var(--stl-color-foreground-muted);
1911
+ font-weight: normal;
1912
+ font-size: 1rem;
1913
+ padding-bottom: 0.5rem;
1914
+ display: flex;
1915
+ }
1916
+
1917
+ .stldocs-resource-content-group-name {
1918
+ color: var(--stl-color-foreground-muted);
1919
+ }
1920
+
1921
+ .stldocs-resource-content-properties {
1922
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
1923
+ }
1924
+ }
1925
+ }
1926
+ }
1927
+
1928
+ > .stldocs-resource:nth-child(2) {
1929
+ padding-top: 0;
1930
+ }
1931
+ }
1932
+
1933
+ /* Overview page method summary */
1934
+ .stldocs-root .stldocs-overview .stldocs-method-summary,
1935
+ .stldocs-root .stldocs-overview .stldocs-method {
1936
+ padding: var(--stldocs-content-padding-block) 0;
1937
+
1938
+ .stldocs-method-header {
1939
+ display: flex;
1940
+ flex-direction: column;
1941
+ gap: 4px;
1942
+
1943
+ .stldocs-method-title {
1944
+ margin-bottom: 2px;
1945
+
1946
+ a:hover {
1947
+ text-decoration: underline;
1948
+ }
1949
+ }
1950
+
1951
+ .stldocs-method-route {
1952
+ padding-top: 4px;
1953
+ }
1954
+ }
1955
+
1956
+ .stldocs-method-signature {
1957
+ max-width: var(--stldocs-content-width);
1958
+ overflow: hidden;
1959
+ text-overflow: ellipsis;
1960
+ }
1961
+
1962
+ .stldocs-method-description {
1963
+ color: var(--stl-color-foreground-muted);
1964
+ height: 1.7rem;
1965
+ overflow-y: hidden;
1966
+ line-height: 1.7rem;
1967
+ padding-bottom: var(--stldocs-content-padding-block);
1968
+
1969
+ .stldocs-content > * {
1970
+ white-space: nowrap;
1971
+ overflow-x: hidden;
1972
+ text-overflow: ellipsis;
1973
+ }
1974
+ }
1975
+ }
1976
+
1977
+ /* Method route rendering is shared between method previews and pages */
1978
+ .stldocs-root .stldocs-method-header .stldocs-method-route {
1979
+ display: flex;
1980
+ gap: 4px;
1981
+ padding: 0;
1982
+
1983
+ .stldocs-method-route-endpoint {
1984
+ font-family: var(--stl-typography-font-mono);
1985
+ font-size: var(--stl-typography-scale-sm);
1986
+ color: var(--stl-color-foreground-reduced);
1987
+ align-content: center;
1988
+ line-height: 120%;
1989
+ overflow: hidden;
1990
+ text-overflow: ellipsis;
1991
+ white-space: nowrap;
1992
+ }
1993
+ }
1994
+
1995
+ /* Models and properties */
1996
+ .stldocs-root .stldocs-property,
1997
+ .stldocs-root .stldocs-model {
1998
+ display: flex;
1999
+ flex-direction: column;
2000
+ gap: 0.8rem;
2001
+ padding: 0.5rem 0;
2002
+ font-size: var(--stl-typography-scale-sm);
2003
+
2004
+ &:has(.stldocs-expander-summary-content .stldocs-property-description)
2005
+ .stldocs-expander-content
2006
+ > .stldocs-property-description {
2007
+ padding-top: 0.75rem;
2008
+ }
2009
+
2010
+ .stldocs-expander-summary-content {
2011
+ width: 100%;
2012
+ }
2013
+
2014
+ .stldocs-property-header {
2015
+ align-items: first baseline;
2016
+ display: flex;
2017
+ gap: 0.5rem;
2018
+ flex-wrap: wrap;
2019
+ }
2020
+
2021
+ .stldocs-property-info {
2022
+ display: flex;
2023
+ flex-direction: column;
2024
+
2025
+ & > .stldocs-property-type > .stldocs-text-identifier {
2026
+ color: var(--stl-color-foreground);
2027
+ }
2028
+ }
2029
+
2030
+ .stldocs-property-type {
2031
+ font-family: var(--stl-typography-font-mono);
2032
+ color: var(--stl-color-foreground-muted);
2033
+ }
2034
+
2035
+ .stldocs-property-type,
2036
+ .stldocs-property-declaration {
2037
+ .stldocs-type-preview[data-stldocs-type-preview='union']
2038
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
2039
+ display: none;
2040
+ }
2041
+ }
2042
+
2043
+ .stldocs-property-deprecated {
2044
+ font-family: var(--stl-typography-font);
2045
+ color: var(--stl-color-red-foreground);
2046
+ font-size: var(--stl-typography-scale-sm);
2047
+ font-weight: 600;
2048
+ }
2049
+
2050
+ .stldocs-property-deprecated-message {
2051
+ color: var(--stl-color-red-foreground);
2052
+ font-size: var(--stl-typography-scale-sm);
2053
+ }
2054
+ .stldocs-property-declaration {
2055
+ white-space: nowrap;
2056
+ overflow: hidden;
2057
+ text-overflow: ellipsis;
2058
+ min-width: 0;
2059
+ max-width: max-content;
2060
+ border-radius: var(--stl-ui-layout-border-radius-xs);
2061
+ padding-inline: var(--stl-ui-layout-border-radius-xs);
2062
+ margin-left: calc(-1 * var(--stl-ui-layout-border-radius-xs));
2063
+ background-color: transparent;
2064
+ transition: 0.1s background-color ease;
2065
+
2066
+ .stldocs-property-deprecated {
2067
+ margin-right: 0.44rem;
2068
+ }
2069
+ }
2070
+ .stldocs-property-info:is(:target, .stldocs-property-highlighted) .stldocs-property-declaration {
2071
+ background-color: var(--stl-color-accent-muted-background);
2072
+ transition: 0.1s background-color ease;
2073
+ }
2074
+
2075
+ .stldocs-property-description,
2076
+ .stldocs-property-title {
2077
+ font-size: var(--stl-typography-scale-sm);
2078
+ color: var(--stl-color-foreground-reduced);
2079
+
2080
+ .stldocs-content {
2081
+ color: inherit;
2082
+ font-size: inherit;
2083
+ }
2084
+ }
2085
+
2086
+ .stldocs-property-name {
2087
+ font-family: var(--stl-typography-font-mono);
2088
+ color: var(--stl-color-foreground);
2089
+ font-weight: 700;
2090
+ }
2091
+
2092
+ .stldocs-property-annotation {
2093
+ color: var(--stl-color-foreground-reduced);
2094
+ }
2095
+
2096
+ .stldocs-property-typename {
2097
+ font-size: var(--stl-typography-scale-xs);
2098
+ color: var(--stl-color-foreground-muted);
2099
+ line-height: 175%;
2100
+
2101
+ .stldocs-type-reference {
2102
+ font-size: 0.8rem;
2103
+ color: var(--stldocs-syntax-color-blue);
2104
+ font-weight: 600;
2105
+ }
2106
+ }
2107
+
2108
+ .stldocs-property-type {
2109
+ .stldocs-truncation {
2110
+ margin-right: 0.2rem;
2111
+ white-space: nowrap;
2112
+ }
2113
+ }
2114
+
2115
+ .stldocs-property-badges {
2116
+ display: flex;
2117
+ font-size: 0.85rem;
2118
+ gap: 0.5rem;
2119
+ text-transform: lowercase;
2120
+ line-height: 1.5rem;
2121
+ }
2122
+
2123
+ .stldocs-property-constraints {
2124
+ display: flex;
2125
+ }
2126
+
2127
+ .stldocs-property-constraint {
2128
+ color: var(--stl-color-foreground-reduced);
2129
+
2130
+ &:not(:last-child) {
2131
+ &::after {
2132
+ content: ', ';
2133
+ margin-right: 0.4rem;
2134
+ color: var(--stl-color-foreground-reduced);
2135
+ }
2136
+ }
2137
+
2138
+ .stldocs-property-constraint-name {
2139
+ color: var(--stl-color-foreground-reduced);
2140
+
2141
+ &::after {
2142
+ content: ':';
2143
+ margin-right: 0.4rem;
2144
+ }
2145
+ }
2146
+
2147
+ .stldocs-property-constraint-value {
2148
+ background-color: var(--stldocs-color-bg-inline-code);
2149
+ color: var(--stl-color-foreground-reduced);
2150
+ font-family: var(--stl-typography-font-mono);
2151
+ border-radius: 4px;
2152
+ padding: 3px 4px;
2153
+ }
2154
+ }
2155
+
2156
+ .stldocs-property-type:not(:first-child) {
2157
+ font-size: 0.8rem;
2158
+ }
2159
+
2160
+ .stldocs-property .stldocs-property-type {
2161
+ font-size: 0.8rem;
2162
+ }
2163
+ }
2164
+
2165
+ .stldocs-root {
2166
+ .stldocs-properties {
2167
+ display: flex;
2168
+ flex-direction: column;
2169
+ line-height: 150%;
2170
+ }
2171
+ }
2172
+
2173
+ .stldocs-root .stldocs-property {
2174
+ padding: 0.2rem 0;
2175
+
2176
+ [open] > .stldocs-expander-summary {
2177
+ padding-bottom: 0;
2178
+ }
2179
+ }
2180
+
2181
+ .stldocs-root .stldocs-property:not(.stldocs-property .stldocs-property) > .stldocs-property-info {
2182
+ margin-left: var(--stldocs-expander-margin-shift);
2183
+ }
2184
+
2185
+ .stldocs-root .stldocs-tooltip-content .stldocs-property {
2186
+ gap: 0.1rem;
2187
+ padding: 0.1rem !important;
2188
+ border: 0;
2189
+ }
2190
+
2191
+ .stldocs-root .stldocs-badge {
2192
+ display: inline-block;
2193
+ background-color: var(--stl-color-muted-background);
2194
+ padding: 0 0.5rem;
2195
+ border-radius: 4px;
2196
+ font-size: var(--stl-typography-scale-xs);
2197
+ font-weight: 500;
2198
+
2199
+ &[data-badge-id='deprecated'] {
2200
+ background-color: var(--stl-color-red-muted-background);
2201
+ color: var(--stl-color-red-foreground);
2202
+ text-transform: capitalize;
2203
+ }
2204
+
2205
+ &[data-badge-id='optional'] {
2206
+ background-color: var(--stl-color-muted-background);
2207
+ text-transform: capitalize;
2208
+ }
2209
+ }
2210
+
2211
+ /* Method Pages */
2212
+
2213
+ .stldocs-root .stldocs-method-signature {
2214
+ font-family: var(--stl-typography-font-mono);
2215
+ font-size: var(--stl-typography-scale-sm);
2216
+ color: var(--stl-color-foreground-muted);
2217
+ white-space: pre-wrap;
2218
+ word-wrap: break-word;
2219
+ font-weight: 400;
2220
+ line-height: 1.5rem;
2221
+
2222
+ .stldocs-signature-qualified {
2223
+ color: var(--stl-color-foreground-reduced);
2224
+ font-weight: 400;
2225
+ }
2226
+
2227
+ .stldocs-signature-name {
2228
+ color: var(--stl-color-foreground);
2229
+ font-weight: 600;
2230
+ }
2231
+
2232
+ .stldoc-signature-params {
2233
+ .stldocs-text-identifier {
2234
+ color: var(--stl-color-foreground);
2235
+ }
2236
+ }
2237
+
2238
+ .stldocs-type {
2239
+ color: var(--stl-color-foreground);
2240
+ }
2241
+
2242
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
2243
+ display: none;
2244
+ }
2245
+
2246
+ .stldocs-method-badges {
2247
+ margin-top: 1rem;
2248
+ }
2249
+ }
2250
+
2251
+ .stldocs-root .stldocs-method {
2252
+ .stldocs-method-content-column {
2253
+ display: contents;
2254
+ }
2255
+
2256
+ .stldocs-method-header {
2257
+ padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding-inline)
2258
+ var(--stldocs-content-padding-block);
2259
+
2260
+ .stldocs-method-title {
2261
+ font-size: var(--stl-typography-text-h1);
2262
+ letter-spacing: -0.03em;
2263
+ }
2264
+
2265
+ .stldocs-method-signature {
2266
+ margin-top: 0.75rem;
2267
+ }
2268
+
2269
+ .stldocs-method-route {
2270
+ padding-top: 12px;
2271
+ }
2272
+ }
2273
+
2274
+ .stldocs-method-description {
2275
+ grid-area: 1 / 1 / 2 / 2;
2276
+ padding-bottom: var(--stldocs-content-padding-block);
2277
+
2278
+ code {
2279
+ line-height: 150%;
2280
+ font-size: 0.93rem;
2281
+ }
2282
+ }
2283
+
2284
+ .stldocs-method-example {
2285
+ margin-top: 1rem;
2286
+ grid-area: 2 / 1 / 3 / 2;
2287
+
2288
+ .stldocs-snippet-multi-response {
2289
+ display: none;
2290
+ }
2291
+ }
2292
+
2293
+ .stldocs-snippet-multi-response {
2294
+ border: 1px solid var(--stl-color-border);
2295
+ border-radius: 12px;
2296
+
2297
+ .stldocs-snippet {
2298
+ background-color: transparent;
2299
+ }
2300
+
2301
+ .stldocs-snippet-code .shiki {
2302
+ padding: 0.5rem;
2303
+ }
2304
+ }
2305
+
2306
+ .stldocs-method-info {
2307
+ padding: var(--stldocs-content-padding-block) 0;
2308
+ grid-area: 3 / 1 / 4 / 2;
2309
+ display: flex;
2310
+ gap: 2rem;
2311
+ flex-direction: column;
2312
+ margin-top: 2.5rem;
2313
+ font-size: var(--stl-typography-scale-sm);
2314
+
2315
+ h5 {
2316
+ display: flex;
2317
+ }
2318
+ }
2319
+
2320
+ /* TODO(soon): we shouldn't be copying these styles here. */
2321
+ .stldocs-method-available-languages a {
2322
+ color: var(--stl-color-link-foreground);
2323
+ text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
2324
+ transition: text-decoration-color 0.1s ease-out;
2325
+ }
2326
+
2327
+ .stldocs-method-info-section {
2328
+ display: flex;
2329
+ gap: 0.5rem;
2330
+ flex-direction: column;
2331
+
2332
+ h5 .stl-ui-badge {
2333
+ vertical-align: bottom;
2334
+ margin-left: 0.5em;
2335
+ margin-top: -1px;
2336
+ transform: translateY(1px);
2337
+ }
2338
+ }
2339
+
2340
+ .stldocs-method-content-column {
2341
+ display: contents;
2342
+ }
2343
+
2344
+ .stldocs-method-body {
2345
+ display: grid;
2346
+ gap: 2rem;
2347
+ grid-template-columns: minmax(0, 1fr);
2348
+ grid-template-rows: repeat(4, auto);
2349
+ padding: var(--stldocs-content-padding-block) 0;
2350
+
2351
+ .stldocs-method-description p {
2352
+ color: var(--stl-color-foreground-reduced);
2353
+ line-height: 150%;
2354
+ }
2355
+
2356
+ h5 {
2357
+ font-weight: 400;
2358
+ color: var(--stl-color-foreground-muted);
2359
+ font-size: var(--stl-typography-scale-base);
2360
+ }
2361
+
2362
+ .stldocs-method-parameters,
2363
+ .stldocs-method-parameters,
2364
+ .stldocs-method-returns {
2365
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
2366
+ }
2367
+
2368
+ .stldocs-method-parameters {
2369
+ display: flex;
2370
+ flex-direction: column;
2371
+ gap: 0.5rem;
2372
+ }
2373
+
2374
+ .stldocs-method-parameters h5 {
2375
+ margin-left: var(--stldocs-expander-margin-shift);
2376
+ }
2377
+
2378
+ .stldocs-terraform-resource-title {
2379
+ font-family: var(--stl-typography-font-mono);
2380
+ font-size: 1.1rem;
2381
+ white-space: nowrap;
2382
+ overflow: hidden;
2383
+ text-overflow: ellipsis;
2384
+ }
2385
+ }
2386
+
2387
+ .stldocs-snippet,
2388
+ .stldocs-snippet-multi {
2389
+ top: calc(var(--sl-nav-height) + 1rem);
2390
+ position: sticky;
2391
+ z-index: 5;
2392
+ }
2393
+
2394
+ .stldocs-snippet {
2395
+ font-size: var(--stl-typography-scale-sm);
2396
+ font-family: var(--stl-typography-font-mono);
2397
+
2398
+ padding: 0.25rem;
2399
+ border-radius: calc(12px + 0.25rem);
2400
+ display: flex;
2401
+ flex-direction: column;
2402
+ background-color: var(--stl-color-faint-background);
2403
+ border: 1px solid var(--stl-color-border-faint);
2404
+
2405
+ .stldocs-snippet-request {
2406
+ background-color: var(--stl-color-background);
2407
+ --shiki-background: var(--stl-color-background);
2408
+ border: 1px solid var(--stl-color-border);
2409
+ border-radius: 12px;
2410
+ position: relative;
2411
+
2412
+ .stldocs-snippet-code {
2413
+ border-bottom-left-radius: 12px;
2414
+ border-bottom-right-radius: 12px;
2415
+ }
2416
+ }
2417
+
2418
+ .stldocs-snippet-request-title {
2419
+ display: flex;
2420
+ justify-content: space-between;
2421
+ background-color: var(--stl-color-background);
2422
+ color: var(--stl-color-foreground-reduced);
2423
+ border-bottom: 1px solid var(--stl-color-border);
2424
+ border-top-right-radius: 12px;
2425
+ border-top-left-radius: 12px;
2426
+ padding: 0.5rem;
2427
+ padding-left: 0.75rem;
2428
+ gap: 0.5rem;
2429
+ font-family: var(--stl-typography-font);
2430
+
2431
+ .stldocs-snippet-request-title-method {
2432
+ flex-grow: 1;
2433
+ min-width: 0;
2434
+ }
2435
+
2436
+ .stldocs-snippet-request-title-method,
2437
+ .stldocs-snippet-request-title-content {
2438
+ display: flex;
2439
+ gap: 0.5rem;
2440
+ align-items: center;
2441
+ }
2442
+
2443
+ h3 {
2444
+ font-weight: 500;
2445
+ font-style: normal;
2446
+ line-height: 100%;
2447
+ font-size: inherit;
2448
+ font-family: var(--stl-typography-font);
2449
+ color: var(--stl-color-foreground);
2450
+ margin: 0;
2451
+
2452
+ overflow: hidden;
2453
+ white-space: nowrap;
2454
+ text-overflow: ellipsis;
2455
+ }
2456
+
2457
+ @media (min-width: 1280px) {
2458
+ .stldocs-snippet-request-title-label {
2459
+ display: none;
2460
+ }
2461
+ }
2462
+
2463
+ .stldocs-icon {
2464
+ width: 16px;
2465
+ }
2466
+
2467
+ .stldocs-snippet-request-title-content {
2468
+ font-family: var(--stl-typography-font);
2469
+ display: flex;
2470
+ gap: 0.5rem;
2471
+
2472
+ .stldocs-snippet-request-title-language {
2473
+ position: relative;
2474
+ color: var(--stl-color-foreground);
2475
+ cursor: pointer;
2476
+ display: flex;
2477
+ align-items: center;
2478
+ gap: 4px;
2479
+
2480
+ select {
2481
+ z-index: 5;
2482
+ padding-right: 25px;
2483
+ display: flex;
2484
+ align-items: center;
2485
+ }
2486
+ }
2487
+ }
2488
+ }
2489
+
2490
+ .stldocs-snippet-response-pane {
2491
+ padding: 0.5rem;
2492
+ display: none;
2493
+ --shiki-background: var(--stl-color-faint-background);
2494
+
2495
+ &.stldocs-snippet-response-pane-active {
2496
+ display: block;
2497
+ }
2498
+
2499
+ .stldocs-snippet-code {
2500
+ padding: 0;
2501
+ }
2502
+ }
2503
+
2504
+ .stldocs-snippet-response {
2505
+ margin-top: 1rem;
2506
+ }
2507
+ }
2508
+
2509
+ .stldocs-method-response-column {
2510
+ display: flex;
2511
+ flex-direction: column;
2512
+ gap: 1rem;
2513
+ margin-top: 2.5rem;
2514
+ }
2515
+
2516
+ .stldocs-snippet-code {
2517
+ width: 0;
2518
+ min-width: 100%;
2519
+ overflow: auto;
2520
+ display: block;
2521
+ white-space: preserve nowrap;
2522
+ padding: 1rem;
2523
+ max-height: 560px;
2524
+ font-size: var(--stl-typography-scale-sm);
2525
+ line-height: 1.5;
2526
+ transition: height 240ms ease;
2527
+ will-change: height;
2528
+ scrollbar-color: var(--stl-color-border) transparent;
2529
+
2530
+ pre,
2531
+ .shiki {
2532
+ margin: 0;
2533
+ padding: 0;
2534
+ width: max-content;
2535
+ min-width: 100%;
2536
+ }
2537
+
2538
+ pre.shiki {
2539
+ counter-reset: codeblock-line;
2540
+
2541
+ .line {
2542
+ counter-increment: codeblock-line;
2543
+
2544
+ &::before {
2545
+ content: counter(codeblock-line);
2546
+ color: var(--stl-color-foreground-muted);
2547
+ margin-right: 1rem;
2548
+ opacity: 0.5;
2549
+ display: inline-flex;
2550
+ width: 1rem;
2551
+ text-align: right;
2552
+ }
2553
+
2554
+ &.ellipsis {
2555
+ color: var(--stl-color-foreground-muted) !important;
2556
+ opacity: 0.5;
2557
+ }
2558
+ }
2559
+ }
2560
+ }
2561
+
2562
+ .stldocs-snippet-footer {
2563
+ border-top: 1px solid var(--stl-color-border);
2564
+ padding: 0.5rem;
2565
+ }
2566
+
2567
+ .stldocs-snippet-response-tab {
2568
+ display: flex;
2569
+ gap: 0.5rem;
2570
+ overflow-x: auto;
2571
+ border-bottom: 1px solid var(--stl-color-border-faint);
2572
+ margin-inline: -0.5rem;
2573
+ padding-inline: 0.5rem;
2574
+
2575
+ .stldocs-snippet-response-tab-item {
2576
+ flex: 1;
2577
+ border-bottom: 2px solid transparent;
2578
+ min-width: 160px;
2579
+ height: 40px;
2580
+
2581
+ button {
2582
+ width: 100%;
2583
+ white-space: nowrap;
2584
+ overflow: hidden;
2585
+ text-overflow: ellipsis;
2586
+ vertical-align: middle;
2587
+ color: var(--stl-color-foreground-reduced);
2588
+ }
2589
+
2590
+ button:hover {
2591
+ background-color: var(--stl-color-background-hover);
2592
+ }
2593
+ }
2594
+
2595
+ .stldocs-snippet-response-tab-item-active {
2596
+ border-color: var(--stl-color-accent-inverse-background);
2597
+
2598
+ button {
2599
+ color: var(--stl-color-foreground);
2600
+ }
2601
+ }
2602
+
2603
+ &.stldocs-snippet-response-tab-single-return {
2604
+ background-color: var(--stl-color-faint-background);
2605
+ border-top-left-radius: 12px;
2606
+ border-top-right-radius: 12px;
2607
+
2608
+ .stldocs-snippet-response-tab-item {
2609
+ border: none;
2610
+ color: var(--stl-color-foreground-reduced);
2611
+ font-weight: 400;
2612
+ display: flex;
2613
+
2614
+ button {
2615
+ justify-content: flex-start;
2616
+ cursor: default;
2617
+ height: auto;
2618
+
2619
+ &:hover {
2620
+ background-color: transparent;
2621
+ }
2622
+ }
2623
+ }
2624
+ }
2625
+ }
2626
+
2627
+ .stldocs-markdown {
2628
+ :first-child {
2629
+ margin-top: 0;
2630
+ }
2631
+ }
2632
+
2633
+ .stldocs-snippet-multi {
2634
+ .stldocs-snippet-multi-tabs {
2635
+ background: var(--stl-color-faint-background);
2636
+ border: 1px solid var(--stl-color-border-faint);
2637
+ padding: 0.25rem;
2638
+ border-radius: calc(var(--stl-ui-layout-border-radius) + 0.25rem);
2639
+ display: flex;
2640
+ flex-wrap: nowrap;
2641
+ margin-bottom: 0.5rem;
2642
+ overflow-x: scroll;
2643
+ scrollbar-color: var(--stl-color-border) transparent;
2644
+
2645
+ font-size: var(--stl-typography-scale-sm);
2646
+ line-height: 1;
2647
+
2648
+ max-width: max-content;
2649
+
2650
+ .stldocs-snippet-multi-tab {
2651
+ border-radius: var(--stl-ui-layout-border-radius);
2652
+ border: 1px solid transparent;
2653
+ padding: 9px 14px;
2654
+ font-weight: 400;
2655
+ color: var(--stl-color-foreground-reduced);
2656
+ flex: 0 0 auto;
2657
+
2658
+ & > input {
2659
+ display: none;
2660
+ }
2661
+ &:has(> :checked) {
2662
+ background-color: var(--stl-color-ui-background);
2663
+ border-color: var(--stl-color-border);
2664
+ font-weight: 500;
2665
+ color: var(--stl-color-foreground);
2666
+ }
2667
+ }
2668
+ }
2669
+ .stldocs-snippet-multi-pane {
2670
+ display: none;
2671
+ &.stldocs-snippet-multi-pane-active {
2672
+ display: block;
2673
+ }
2674
+ }
2675
+ }
2676
+ }
2677
+
2678
+ .stldocs-root .stldocs-language-block {
2679
+ background-color: var(--stl-color-background);
2680
+ border: 1px solid var(--stl-color-border);
2681
+ border-radius: 8px;
2682
+ padding: 16px;
2683
+ display: flex;
2684
+ flex-direction: column;
2685
+ gap: 8px;
2686
+
2687
+ .stldocs-language-block-content {
2688
+ display: flex;
2689
+ gap: 12px;
2690
+
2691
+ .stldocs-language-block-content-icon {
2692
+ display: inline-flex;
2693
+ border: 1px solid var(--stl-color-border);
2694
+ border-radius: 4px;
2695
+ padding: 12px;
2696
+ aspect-ratio: 1 / 1;
2697
+ }
2698
+
2699
+ .stldocs-language-block-content-info {
2700
+ .stldocs-language-block-content-info-language {
2701
+ line-height: 120%;
2702
+ font-weight: 600;
2703
+ }
2704
+
2705
+ .stldocs-language-block-content-info-version {
2706
+ font-family: var(--stl-typography-font-mono);
2707
+ font-size: var(--stl-typography-scale-sm);
2708
+ font-weight: 200;
2709
+ }
2710
+ }
2711
+ }
2712
+
2713
+ .stldocs-language-block-install {
2714
+ display: flex;
2715
+ font-family: var(--stl-typography-font-mono);
2716
+ font-size: var(--stl-typography-scale-sm);
2717
+ background-color: var(--stldocs-color-bg-inline-code);
2718
+ border: 1px solid var(--stl-color-border);
2719
+ color: var(--stl-color-foreground-reduced);
2720
+ border-radius: 4px;
2721
+ padding: 4px 8px;
2722
+
2723
+ pre {
2724
+ flex-grow: 1;
2725
+ white-space: nowrap;
2726
+ overflow-x: hidden;
2727
+ text-overflow: ellipsis;
2728
+ display: flex;
2729
+ align-items: center;
2730
+ }
2731
+
2732
+ svg {
2733
+ vertical-align: middle;
2734
+ min-width: 16px;
2735
+ }
2736
+ }
2737
+
2738
+ .stldocs-language-block-links {
2739
+ display: flex;
2740
+ gap: 8px;
2741
+
2742
+ & > a:last-child {
2743
+ flex-grow: 1;
2744
+ }
2745
+ }
2746
+ }
2747
+
2748
+ @media (min-width: 1280px) {
2749
+ .stldocs-root .stldocs-method.stldocs-method-double-pane {
2750
+ .stldocs-method-example {
2751
+ flex: 1 1 500px;
2752
+ max-width: 100%;
2753
+ width: 100%;
2754
+ }
2755
+
2756
+ .stldocs-method-body {
2757
+ flex-direction: row;
2758
+ gap: 2rem;
2759
+ }
2760
+ }
2761
+ }
2762
+
2763
+ /* Don't put expanders in the margin on mobile */
2764
+ @media (max-width: 50rem) {
2765
+ .stldocs-root .stldocs-method-body {
2766
+ padding: 1rem var(--stldocs-content-padding-inline) !important;
2767
+ }
2768
+
2769
+ .stldocs-root .stldocs-resource .stldocs-resource-content {
2770
+ padding: 0 var(--stldocs-content-padding-inline) !important;
2771
+
2772
+ .stldocs-resource-content-properties {
2773
+ margin-left: 0 !important;
2774
+ }
2775
+ }
2776
+ }
2777
+
2778
+ @media (min-width: 50rem) {
2779
+ .stldocs-root .stldocs-method {
2780
+ .stldocs-method-header {
2781
+ padding: var(--stldocs-title-padding-y) 0;
2782
+ }
2783
+ }
2784
+ }
2785
+
2786
+ @media (min-width: 1280px) {
2787
+ .stldocs-root {
2788
+ .stldocs-method.stldocs-method-double-pane .stldocs-method-content-column {
2789
+ display: block;
2790
+ }
2791
+
2792
+ .stldocs-method.stldocs-method-double-pane .stldocs-method-body {
2793
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2794
+ grid-template-areas: 'description example';
2795
+ grid-template-rows: unset;
2796
+
2797
+ .stldocs-snippet {
2798
+ .stldocs-snippet-response {
2799
+ display: block;
2800
+ }
2801
+
2802
+ .stldocs-snippet-response-pane {
2803
+ position: relative;
2804
+ padding: 0;
2805
+ --shiki-background: transparent;
2806
+ }
2807
+
2808
+ .stldocs-snippet-multi-response {
2809
+ display: block;
2810
+ padding: 0;
2811
+ }
2812
+ }
2813
+
2814
+ .stldocs-method-response-column {
2815
+ display: none;
2816
+ margin-top: 0;
2817
+ }
2818
+
2819
+ .stldocs-method-content-column {
2820
+ grid-area: description;
2821
+ }
2822
+
2823
+ .stldocs-method-example {
2824
+ margin-top: 0;
2825
+ grid-area: example;
2826
+
2827
+ .stldocs-snippet-multi-response {
2828
+ display: block;
2829
+ border: none;
2830
+
2831
+ .stldocs-snippet {
2832
+ background-color: transparent;
2833
+ border: none;
2834
+ }
2835
+ }
2836
+ }
2837
+
2838
+ .stldocs-method-info {
2839
+ grid-area: unset;
2840
+ margin-top: 0;
2841
+ }
2842
+
2843
+ .stldocs-snippet-response-tab {
2844
+ margin-bottom: 0.5rem;
2845
+
2846
+ &.stldocs-snippet-response-tab-single-return {
2847
+ background-color: transparent;
2848
+
2849
+ .stldocs-snippet-response-tab-item {
2850
+ button {
2851
+ &:hover {
2852
+ background-color: transparent;
2853
+ }
2854
+ }
2855
+ }
2856
+ }
2857
+ }
2858
+ }
2859
+ }
2860
+ }
2861
+
2862
+ :root {
2863
+ --stldocs-sidebar-item-padding-inline: 0.75rem;
2864
+ --stldocs-sidebar-item-padding-block: 0.375rem;
2865
+ --stldocs-sidebar-indent: 0.75rem;
2866
+ }
2867
+
2868
+ .stldocs-sidebar {
2869
+ font-family: var(--stl-typography-font);
2870
+ font-size: var(--stl-typography-scale-sm);
2871
+ /* Remove background color from stldocs-root reset. */
2872
+ background-color: transparent;
2873
+
2874
+ ul,
2875
+ summary {
2876
+ list-style-type: none;
2877
+ }
2878
+
2879
+ .stldocs-expander-summary,
2880
+ .stldocs-sidebar-entry-group > a {
2881
+ font-weight: 500;
2882
+ }
2883
+
2884
+ .stldocs-expander-summary {
2885
+ display: flex;
2886
+ align-items: center;
2887
+ user-select: none;
2888
+
2889
+ .stldocs-expander-summary-icon {
2890
+ margin-left: 4px;
2891
+ opacity: 0.65;
2892
+ transition:
2893
+ opacity 0.1s ease-out,
2894
+ transform 0.1s ease-out;
2895
+ border-radius: 4px;
2896
+
2897
+ &:hover {
2898
+ background-color: var(--stl-color-background-hover);
2899
+ }
2900
+ }
2901
+
2902
+ span[aria-hidden='true'] {
2903
+ opacity: 0;
2904
+ }
2905
+ }
2906
+
2907
+ .stldocs-sidebar-entry-group {
2908
+ position: relative;
2909
+
2910
+ /* Anchor is positioned over the <details>. */
2911
+ > a {
2912
+ position: absolute;
2913
+ top: 0;
2914
+ left: 0;
2915
+ right: 0;
2916
+ padding-block: var(--stldocs-sidebar-item-padding-block);
2917
+ padding-inline: var(--stldocs-sidebar-item-padding-inline);
2918
+ }
2919
+ }
2920
+
2921
+ .stldocs-sidebar-expander[open] > .stldocs-expander-summary .stldocs-expander-summary-icon {
2922
+ opacity: 1;
2923
+ transform: rotate(90deg);
2924
+ }
2925
+
2926
+ /* Explicitly prevent collapsed groups from painting.
2927
+ Browsers should not be computing styles/layout on collapsed <details> non-summary children, but Safari still seems to.
2928
+ Applying display: none lowers rendering cost for trees with many items (eg. the CF API which has ~2k+ items)
2929
+ In Arena's testing using dev server, Safari paint time for a CF page went from 10-14 seconds to ~3 seconds.
2930
+ */
2931
+ .stldocs-sidebar-expander:not([open]) > .stldocs-sidebar-list {
2932
+ display: none;
2933
+ }
2934
+
2935
+ /* List items. */
2936
+ .stldocs-sidebar-entry,
2937
+ .stldocs-expander-summary {
2938
+ margin: 0;
2939
+ border-radius: 8px;
2940
+ }
2941
+
2942
+ .stldocs-expander-summary,
2943
+ .stldocs-sidebar-entry-link a {
2944
+ padding: var(--stldocs-sidebar-item-padding-block) var(--stldocs-sidebar-item-padding-inline);
2945
+ }
2946
+
2947
+ summary.stldocs-expander-summary,
2948
+ .stldocs-sidebar-entry-link a {
2949
+ cursor: pointer;
2950
+ }
2951
+
2952
+ .stldocs-sidebar-entry-link a:hover {
2953
+ color: var(--stl-color-foreground);
2954
+ }
2955
+
2956
+ .stldocs-sidebar-entry-link a {
2957
+ color: var(--stl-color-foreground-reduced);
2958
+ font-weight: 400;
2959
+ display: flex;
2960
+ text-decoration: none;
2961
+ span {
2962
+ font-weight: inherit;
2963
+ }
2964
+
2965
+ &:hover {
2966
+ text-decoration: underline;
2967
+ text-decoration-color: var(--stl-color-foreground-reduced);
2968
+ }
2969
+ &[aria-current='page'] {
2970
+ font-weight: 500;
2971
+ color: var(--stl-color-foreground);
2972
+ }
2973
+ }
2974
+
2975
+ /* When the sidebar entry has a link, disable pointer events on the <details> text
2976
+ so that they pass through to the <a>. */
2977
+ .stldocs-sidebar-entry-group:has(> a) .stldocs-expander-summary > span {
2978
+ pointer-events: none;
2979
+ }
2980
+
2981
+ .stldocs-sidebar-entry-link:has(> a:is(:hover, [aria-current='page'])),
2982
+ .stldocs-sidebar-entry-group:has(> a:is(:hover, [aria-current='page']))
2983
+ > .stldocs-sidebar-expander
2984
+ > .stldocs-expander-summary,
2985
+ summary.stldocs-expander-summary:hover {
2986
+ background-color: var(--stl-color-background-hover);
2987
+ }
2988
+
2989
+ /* Nested list items have flat left edge. */
2990
+ .stldocs-sidebar-list .stldocs-sidebar-list :is(.stldocs-expander-summary, .stldocs-sidebar-entry) {
2991
+ border-start-start-radius: 0;
2992
+ border-end-start-radius: 0;
2993
+ }
2994
+
2995
+ .stldocs-sidebar-list {
2996
+ padding: 0;
2997
+ }
2998
+
2999
+ .stldocs-sidebar-list .stldocs-sidebar-list .stldocs-sidebar-entry {
3000
+ border-inline-start: 1px solid var(--stl-color-border-faint);
3001
+ margin-inline-start: var(--stldocs-sidebar-indent);
3002
+
3003
+ > a[aria-current='page'] {
3004
+ border-inline-start: 2px solid var(--stl-color-accent-border-strong);
3005
+ margin-left: -1px;
3006
+ }
3007
+ }
3008
+
3009
+ /* Icon positioning within links/groups. */
3010
+ .stldocs-sidebar-entry-link > a,
3011
+ .stldocs-sidebar-entry-group > a,
3012
+ .stldocs-sidebar-entry-group .stldocs-expander-summary > span {
3013
+ display: flex;
3014
+ align-items: center;
3015
+ gap: 8px;
3016
+ }
3017
+
3018
+ /* Hover/active states for HTTP badges. */
3019
+ a[aria-current='page'] .stl-ui-badge--http {
3020
+ &.stl-ui-badge--http-get {
3021
+ background-color: var(--stl-color-green-inverse-background);
3022
+ color: var(--stl-color-green-inverse-foreground);
3023
+ }
3024
+
3025
+ &.stl-ui-badge--http-post {
3026
+ background-color: var(--stl-color-blue-inverse-background);
3027
+ color: var(--stl-color-blue-inverse-foreground);
3028
+ }
3029
+
3030
+ &.stl-ui-badge--http-patch,
3031
+ &.stl-ui-badge--http-put {
3032
+ background-color: var(--stl-color-orange-inverse-background);
3033
+ color: var(--stl-color-orange-inverse-foreground);
3034
+ }
3035
+
3036
+ &.stl-ui-badge--http-delete {
3037
+ background-color: var(--stl-color-red-inverse-background);
3038
+ color: var(--stl-color-red-inverse-foreground);
3039
+ }
3040
+ }
3041
+
3042
+ a:hover:not([aria-current='page']) .stl-ui-badge--http {
3043
+ &.stl-ui-badge--http-get {
3044
+ background-color: var(--stl-color-green-muted-background-hover);
3045
+ }
3046
+
3047
+ &.stl-ui-badge--http-post {
3048
+ background-color: var(--stl-color-blue-muted-background-hover);
3049
+ }
3050
+
3051
+ &.stl-ui-badge--http-patch,
3052
+ &.stl-ui-badge--http-put {
3053
+ background-color: var(--stl-color-orange-muted-background-hover);
3054
+ }
3055
+
3056
+ &.stl-ui-badge--http-delete {
3057
+ background-color: var(--stl-color-red-muted-background-hover);
3058
+ }
3059
+ }
3060
+ }
3061
+
3062
+ .stldocs-root .stldocs-search-form {
3063
+ display: flex;
3064
+ flex-direction: column;
3065
+
3066
+ .stldocs-search-filter {
3067
+ margin-top: 0.5rem;
3068
+ display: flex;
3069
+ gap: 0.5rem;
3070
+
3071
+ .stl-ui-button {
3072
+ flex: 1 1 auto;
3073
+ padding: 0;
3074
+ display: flex;
3075
+ gap: 0.5em;
3076
+
3077
+ .stldocs-search-filter-count {
3078
+ font-size: 0.75rem;
3079
+ background-color: var(--stldocs-color-selected);
3080
+ border-radius: 100vmax;
3081
+ padding: 0 0.35rem;
3082
+ line-height: 1.5;
3083
+ font-variant-numeric: tabular-nums;
3084
+ }
3085
+
3086
+ svg {
3087
+ flex: 0 0 auto;
3088
+ }
3089
+ }
3090
+
3091
+ @media not (min-width: 50rem) {
3092
+ svg {
3093
+ display: block;
3094
+ }
3095
+ .stldocs-search-filter-label,
3096
+ .stldocs-search-filter-count {
3097
+ display: none;
3098
+ }
3099
+ }
3100
+ }
3101
+
3102
+ .stldocs-search-result {
3103
+ display: flex;
3104
+ flex-direction: column;
3105
+ gap: 0.5rem;
3106
+ cursor: pointer;
3107
+ margin: 0.5rem 0;
3108
+ padding: 0.5rem 0.8rem;
3109
+
3110
+ mark {
3111
+ color: var(--stl-color-foreground);
3112
+ background-color: var(--stl-color-text-selection-background);
3113
+ box-shadow: inset 0 -1px rgb(from var(--stl-color-text-selection-background) r g b / 1);
3114
+ }
3115
+
3116
+ &[data-stldocs-search-result='resource'] {
3117
+ .stldocs-search-result-resource-info {
3118
+ display: flex;
3119
+ gap: 0.5rem;
3120
+
3121
+ .stldocs-search-result-resource-title {
3122
+ font-weight: 600;
3123
+ }
3124
+
3125
+ .stldocs-search-result-resource-path {
3126
+ font-family: var(--stl-typography-font-mono);
3127
+ color: var(--stl-color-foreground);
3128
+ overflow: hidden;
3129
+ text-overflow: ellipsis;
3130
+ white-space: nowrap;
3131
+ }
3132
+ }
3133
+ }
3134
+
3135
+ &[data-stldocs-search-result='http_method'] {
3136
+ h3.stldocs-method-title {
3137
+ font-size: 1.2rem;
3138
+ }
3139
+
3140
+ .stldocs-method-header {
3141
+ display: flex;
3142
+ flex-direction: column;
3143
+ gap: 0.5rem;
3144
+
3145
+ .stldocs-method-signature {
3146
+ font-family: var(--stl-typography-font-mono);
3147
+ color: var(--stl-color-foreground);
3148
+ white-space: pre-wrap;
3149
+ word-break: break-word;
3150
+
3151
+ .stldocs-text-identifier {
3152
+ color: var(--stl-color-foreground);
3153
+ }
3154
+ }
3155
+
3156
+ .stldocs-method-route {
3157
+ font-size: 0.8rem;
3158
+
3159
+ .stldocs-method-route-endpoint {
3160
+ font-family: var(--stl-typography-font-mono);
3161
+ color: var(--stl-color-foreground-muted);
3162
+ }
3163
+ }
3164
+ }
3165
+
3166
+ .stldocs-method-description {
3167
+ color: var(--stl-color-foreground);
3168
+ }
3169
+ }
3170
+
3171
+ &[data-stldocs-search-result='property'] {
3172
+ .stldocs-property-info {
3173
+ display: flex;
3174
+ flex-direction: column;
3175
+ gap: 0.5rem;
3176
+ }
3177
+
3178
+ .stldocs-property-header {
3179
+ display: flex;
3180
+ gap: 0.5rem;
3181
+
3182
+ .stldocs-property-name {
3183
+ font-family: var(--stl-typography-font-mono);
3184
+ }
3185
+
3186
+ .stldocs-property-typename {
3187
+ color: var(--stl-color-foreground-muted);
3188
+ }
3189
+ }
3190
+
3191
+ .stldocs-property-description {
3192
+ color: var(--stl-color-foreground);
3193
+ }
3194
+ }
3195
+
3196
+ &[data-stldocs-search-result='model'] {
3197
+ .stldocs-property-info {
3198
+ display: flex;
3199
+ flex-direction: column;
3200
+ gap: 0.5rem;
3201
+
3202
+ .stldocs-property-type {
3203
+ font-family: var(--stl-typography-font-mono);
3204
+ color: var(--stl-color-foreground);
3205
+ }
3206
+ }
3207
+ }
3208
+
3209
+ &[data-stldocs-search-result='guide'] {
3210
+ .stldocs-search-result-guide-title {
3211
+ font-size: 1.2rem;
3212
+ }
3213
+
3214
+ .stldocs-search-result-guide-excerpt {
3215
+ color: var(--stl-color-foreground);
3216
+ }
3217
+
3218
+ .stldocs-search-breadcrumb-item {
3219
+ text-transform: capitalize;
3220
+ }
3221
+ }
3222
+ }
3223
+
3224
+ .stldocs-search-breadcrumb {
3225
+ display: flex;
3226
+ gap: 0.5rem;
3227
+ font-size: 0.8rem;
3228
+ overflow: hidden;
3229
+ text-overflow: ellipsis;
3230
+ white-space: nowrap;
3231
+
3232
+ .stldocs-search-breadcrumb-item {
3233
+ color: var(--stl-color-foreground-muted);
3234
+ }
3235
+
3236
+ .stldocs-icon {
3237
+ margin-top: auto;
3238
+ margin-bottom: auto;
3239
+ }
3240
+ }
3241
+
3242
+ .stldocs-search-disabled-state-container {
3243
+ margin: auto;
3244
+ text-align: center;
3245
+ }
3246
+ }
3247
+
3248
+ .stldocs-root .stldocs-search-modal {
3249
+ height: calc(100svh - var(--sl-nav-height));
3250
+ width: 100%;
3251
+ overflow: hidden;
3252
+ display: none;
3253
+ padding: 1rem 1rem 0;
3254
+ inset: 0;
3255
+ background-color: var(--stl-color-background);
3256
+ color: var(--stl-color-foreground);
3257
+ gap: 0.5rem;
3258
+ border: none;
3259
+
3260
+ &:popover-open,
3261
+ &[data-stldocs-modal-open='true'] {
3262
+ display: flex;
3263
+ flex-direction: column;
3264
+ position: fixed;
3265
+ top: var(--sl-nav-height);
3266
+ }
3267
+
3268
+ .stldocs-search-form {
3269
+ height: 100%;
3270
+ width: 100%;
3271
+
3272
+ .stldocs-listview {
3273
+ margin: 0.8rem 0 0;
3274
+ height: 100%;
3275
+ padding-bottom: 1rem;
3276
+ }
3277
+ }
3278
+
3279
+ .stldocs-search-modal-close-button {
3280
+ display: flex;
3281
+ justify-content: flex-end;
3282
+ }
3283
+
3284
+ &::backdrop {
3285
+ background-color: var(--stldocs-color-backdrop-overlay);
3286
+ -webkit-backdrop-filter: blur(0.25rem);
3287
+ backdrop-filter: blur(0.25rem);
3288
+ top: var(--sl-nav-height);
3289
+ }
3290
+ }
3291
+
3292
+ @keyframes stldocs-spinner-rotate {
3293
+ 100% {
3294
+ transform: rotate(360deg);
3295
+ }
3296
+ }
3297
+
3298
+ @media (min-width: 50rem) {
3299
+ .stldocs-root {
3300
+ .stldocs-search-modal {
3301
+ height: 100%;
3302
+ width: 1024px;
3303
+ max-width: calc(100% - 4rem);
3304
+ max-height: 80vh;
3305
+ margin: 3rem auto;
3306
+ border: 1px solid var(--stl-color-border);
3307
+ /* nest with input that has --stl-ui-layout-border-radius-sml */
3308
+ border-radius: calc(var(--stl-ui-layout-border-radius-sml) + 0.9rem);
3309
+
3310
+ .stldocs-search-modal-close-button {
3311
+ display: none;
3312
+ }
3313
+
3314
+ &:popover-open,
3315
+ &[data-stldocs-modal-open='true'] {
3316
+ top: 0;
3317
+ }
3318
+
3319
+ &::backdrop {
3320
+ top: 0;
3321
+ }
3322
+ }
3323
+ }
3324
+ }
3325
+
3326
+ /* For standalone usage of docs-ui */
3327
+
3328
+ /*
3329
+ * TODO: replace with real import once rolldown css support matures further
3330
+ * This import gets bundled so this import will should need to be resolved at runtime
3331
+ */
3332
+
3333
+