@stainless-api/docs-ui 0.1.0-beta.6 → 0.1.0-beta.60

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 (206) hide show
  1. package/dist/breadcrumbs-85Y-pybq.js +63 -0
  2. package/dist/breadcrumbs-BagP1oN2.d.ts +25 -0
  3. package/dist/breadcrumbs-seA1JsK4.d.ts +25 -0
  4. package/dist/chunk-Du3t87LU.js +18 -0
  5. package/dist/cli-CoLvH9jq.js +157 -0
  6. package/dist/component-CF9lLzZX.js +23 -0
  7. package/dist/component-generics-BblkOh-y.d.ts +30 -0
  8. package/dist/component-generics-CmIGbBLq.js +45 -0
  9. package/dist/component-generics-DS5pysMb.d.ts +30 -0
  10. package/dist/components/MaskedInput.d.ts +14 -0
  11. package/dist/components/MaskedInput.js +76 -0
  12. package/dist/components/breadcrumbs.d.ts +2 -0
  13. package/dist/components/breadcrumbs.js +9 -0
  14. package/dist/components/icons.d.ts +60 -0
  15. package/dist/components/icons.js +3 -0
  16. package/dist/components/index.d.ts +10 -0
  17. package/dist/components/index.js +18 -0
  18. package/dist/components/method.d.ts +2 -0
  19. package/dist/components/method.js +10 -0
  20. package/dist/components/overview.d.ts +2 -0
  21. package/dist/components/overview.js +11 -0
  22. package/dist/components/primitives.d.ts +2 -0
  23. package/dist/components/primitives.js +8 -0
  24. package/dist/components/properties.d.ts +2 -0
  25. package/dist/components/properties.js +9 -0
  26. package/dist/components/sdk.d.ts +2 -0
  27. package/dist/components/sdk.js +10 -0
  28. package/dist/components/sidebar.d.ts +2 -0
  29. package/dist/components/sidebar.js +9 -0
  30. package/dist/components/snippets.d.ts +3 -0
  31. package/dist/components/snippets.js +9 -0
  32. package/dist/components-Bz5h0Y4x.js +70 -0
  33. package/dist/contexts/component-generics.d.ts +2 -0
  34. package/dist/contexts/component-generics.js +3 -0
  35. package/dist/contexts/component-types.d.ts +16 -0
  36. package/dist/contexts/component-types.js +0 -0
  37. package/dist/contexts/component.d.ts +29 -0
  38. package/dist/contexts/component.js +28 -0
  39. package/dist/contexts/docs.d.ts +2 -0
  40. package/dist/contexts/docs.js +3 -0
  41. package/dist/contexts/index.d.ts +22 -0
  42. package/dist/contexts/index.js +7 -0
  43. package/dist/contexts/markdown.d.ts +2 -0
  44. package/dist/contexts/markdown.js +4 -0
  45. package/dist/contexts/navigation.d.ts +2 -0
  46. package/dist/contexts/navigation.js +3 -0
  47. package/dist/contexts/use-components.d.ts +14 -0
  48. package/dist/contexts/use-components.js +4 -0
  49. package/dist/contexts-DZfPd182.js +39 -0
  50. package/dist/csharp-BbNnLZWW.js +283 -0
  51. package/dist/docs-Bw-eLYjA.js +54 -0
  52. package/dist/docs-DFS6wkGm.d.ts +46 -0
  53. package/dist/docs-DdWB4Wsv.d.ts +46 -0
  54. package/dist/go-OFa_5xje.js +303 -0
  55. package/dist/http-olFAYLFq.js +331 -0
  56. package/dist/icons-DMkAA03z.js +885 -0
  57. package/dist/index-BdrPd64A.d.ts +302 -0
  58. package/dist/index-CLMudlDX.d.ts +302 -0
  59. package/dist/index-Ct7H30x1.d.ts +1691 -0
  60. package/dist/index-DTl8aUkb.d.ts +15 -0
  61. package/dist/index-Dp5biTf5.d.ts +15 -0
  62. package/dist/index.d.ts +19 -0
  63. package/dist/index.js +30 -7542
  64. package/dist/java-Bw0o13Wk.js +403 -0
  65. package/dist/languages/cli.d.ts +11 -0
  66. package/dist/languages/cli.js +20 -0
  67. package/dist/languages/csharp.d.ts +11 -0
  68. package/dist/languages/csharp.js +9 -0
  69. package/dist/languages/go.d.ts +11 -0
  70. package/dist/languages/go.js +9 -0
  71. package/dist/languages/http.d.ts +11 -0
  72. package/dist/languages/http.js +19 -0
  73. package/dist/languages/index.d.ts +11 -0
  74. package/dist/languages/index.js +27 -0
  75. package/dist/languages/java.d.ts +11 -0
  76. package/dist/languages/java.js +9 -0
  77. package/dist/languages/python.d.ts +11 -0
  78. package/dist/languages/python.js +9 -0
  79. package/dist/languages/ruby.d.ts +11 -0
  80. package/dist/languages/ruby.js +9 -0
  81. package/dist/languages/typescript.d.ts +11 -0
  82. package/dist/languages/typescript.js +9 -0
  83. package/dist/languages-DW_T-Th6.js +28 -0
  84. package/dist/markdown/index.d.ts +12 -0
  85. package/dist/markdown/index.js +105 -0
  86. package/dist/markdown/md.d.ts +15 -0
  87. package/dist/markdown/md.js +41 -0
  88. package/dist/markdown/printer.d.ts +13 -0
  89. package/dist/markdown/printer.js +98 -0
  90. package/dist/markdown/utils.d.ts +21 -0
  91. package/dist/markdown/utils.js +31 -0
  92. package/dist/markdown-DtbgEdDt.d.ts +22 -0
  93. package/dist/markdown-Dyn0NA2f.d.ts +22 -0
  94. package/dist/markdown-ZzVcn4kq.js +49 -0
  95. package/dist/method-C850sHPB.d.ts +59 -0
  96. package/dist/method-CxjUvijp.d.ts +59 -0
  97. package/dist/method-Dktsfckf.js +90 -0
  98. package/dist/navigation-By1sQl6M.js +24 -0
  99. package/dist/navigation-DLQvobDt.d.ts +29 -0
  100. package/dist/navigation-Dk55c7au.d.ts +29 -0
  101. package/dist/overview-DVu-9kpm.d.ts +39 -0
  102. package/dist/overview-EkRigi6e.js +139 -0
  103. package/dist/overview-rRsC-Yi_.d.ts +39 -0
  104. package/dist/primitives-BVaiiY63.js +250 -0
  105. package/dist/primitives-DP-cTr1W.d.ts +105 -0
  106. package/dist/primitives-DR4XbZ2t.d.ts +105 -0
  107. package/dist/properties-BHvUHbcf.js +131 -0
  108. package/dist/properties-Ll927UYJ.d.ts +54 -0
  109. package/dist/properties-lx53LZPl.d.ts +54 -0
  110. package/dist/python-D8NWX7Cb.js +269 -0
  111. package/dist/routing-Fzn1XfX_.js +197 -0
  112. package/dist/routing-sjrF8U7O.d.ts +54 -0
  113. package/dist/routing.d.ts +2 -0
  114. package/dist/routing.js +3 -180
  115. package/dist/ruby-DOUaLhKJ.js +387 -0
  116. package/dist/sdk-DdW_-RBy.d.ts +118 -0
  117. package/dist/sdk-Dhu_gfzq.d.ts +118 -0
  118. package/dist/sdk-DrK2bq-v.js +338 -0
  119. package/dist/sidebar-BLGIKgRI.js +85 -0
  120. package/dist/sidebar-CUaX1IBW.d.ts +36 -0
  121. package/dist/sidebar-DukWbBrE.d.ts +36 -0
  122. package/dist/snippets-Bi0ZADmt.d.ts +53 -0
  123. package/dist/snippets-CocIZMn0.d.ts +53 -0
  124. package/dist/snippets-D4VhtZIC.js +164 -0
  125. package/dist/spec.d.ts +65 -0
  126. package/dist/spec.js +167 -0
  127. package/dist/style-TeAZuiHh.js +170 -0
  128. package/dist/style.d.ts +169 -0
  129. package/dist/style.js +3 -0
  130. package/dist/styles/main.css +722 -755
  131. package/dist/styles/main.js +0 -0
  132. package/dist/styles/primitives.css +322 -459
  133. package/dist/styles/primitives.js +0 -0
  134. package/dist/styles/resets.css +32 -41
  135. package/dist/styles/resets.js +0 -0
  136. package/dist/styles/search.css +192 -270
  137. package/dist/styles/search.js +0 -0
  138. package/dist/styles/sidebar.css +56 -61
  139. package/dist/styles/sidebar.js +0 -0
  140. package/dist/styles/variables.css +26 -89
  141. package/dist/styles/variables.js +0 -0
  142. package/dist/styles.css +3140 -0
  143. package/dist/styles.mjs +1 -0
  144. package/dist/typescript-DDa446mB.js +449 -0
  145. package/dist/use-components-Dbin0y07.js +7 -0
  146. package/dist/utils-BoRmEFRn.js +32 -0
  147. package/dist/utils.d.ts +14 -0
  148. package/dist/utils.js +3 -0
  149. package/package.json +73 -21
  150. package/dist/mcp.js +0 -16003
  151. package/dist/styles/snippets.css +0 -132
  152. package/src/components/breadcrumbs.tsx +0 -94
  153. package/src/components/chat.tsx +0 -154
  154. package/src/components/dropdown.tsx +0 -91
  155. package/src/components/icons.tsx +0 -584
  156. package/src/components/index.ts +0 -9
  157. package/src/components/method.tsx +0 -144
  158. package/src/components/overview.tsx +0 -159
  159. package/src/components/primitives.tsx +0 -284
  160. package/src/components/properties.tsx +0 -130
  161. package/src/components/scripts/dropdown.ts +0 -78
  162. package/src/components/sdk.tsx +0 -402
  163. package/src/components/sidebar.tsx +0 -99
  164. package/src/components/snippets.tsx +0 -179
  165. package/src/contexts/component-generics.tsx +0 -48
  166. package/src/contexts/component-types.tsx +0 -5
  167. package/src/contexts/component.tsx +0 -32
  168. package/src/contexts/docs.tsx +0 -75
  169. package/src/contexts/index.tsx +0 -17
  170. package/src/contexts/markdown.tsx +0 -43
  171. package/src/contexts/navigation.tsx +0 -44
  172. package/src/contexts/search.tsx +0 -28
  173. package/src/contexts/use-components.tsx +0 -4
  174. package/src/index.ts +0 -6
  175. package/src/languages/go.tsx +0 -281
  176. package/src/languages/http.tsx +0 -321
  177. package/src/languages/index.ts +0 -26
  178. package/src/languages/java.tsx +0 -358
  179. package/src/languages/python.tsx +0 -255
  180. package/src/languages/ruby.tsx +0 -320
  181. package/src/languages/typescript.tsx +0 -393
  182. package/src/markdown/index.ts +0 -107
  183. package/src/markdown/md.ts +0 -45
  184. package/src/markdown/utils.ts +0 -49
  185. package/src/routing.ts +0 -238
  186. package/src/search/form.tsx +0 -127
  187. package/src/search/index.tsx +0 -1
  188. package/src/search/indexer.ts +0 -246
  189. package/src/search/mcp.ts +0 -61
  190. package/src/search/printer.tsx +0 -86
  191. package/src/search/providers/algolia.ts +0 -88
  192. package/src/search/providers/fuse.ts +0 -19
  193. package/src/search/providers/pagefind.ts +0 -17
  194. package/src/search/providers/walker.ts +0 -30
  195. package/src/search/results.tsx +0 -181
  196. package/src/search/state.ts +0 -64
  197. package/src/search/types.ts +0 -116
  198. package/src/style.ts +0 -197
  199. package/src/styles/main.css +0 -993
  200. package/src/styles/primitives.css +0 -573
  201. package/src/styles/resets.css +0 -47
  202. package/src/styles/search.css +0 -342
  203. package/src/styles/sidebar.css +0 -87
  204. package/src/styles/snippets.css +0 -132
  205. package/src/styles/variables.css +0 -90
  206. package/src/utils.ts +0 -41
@@ -0,0 +1,3140 @@
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
+ font-feature-settings:
45
+ 'ss01' on,
46
+ 'ss03' on,
47
+ 'ss04' on,
48
+ 'ss06' on,
49
+ 'ss08' on;
50
+ }
51
+
52
+ .stl-ui-prose {
53
+ letter-spacing: -0.01em;
54
+ font-weight: 400;
55
+ line-height: var(--stl-typography-line-height);
56
+ font-size: var(--stl-typography-text-body);
57
+ color: var(--stl-color-foreground-reduced);
58
+
59
+ :where(.stl-ui-not-prose) {
60
+ letter-spacing: initial;
61
+ font-weight: initial;
62
+ line-height: initial;
63
+ font-size: initial;
64
+ color: initial;
65
+ }
66
+
67
+ &.small {
68
+ font-size: var(--stl-typography-scale-sm);
69
+ letter-spacing: normal;
70
+ }
71
+
72
+ :where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
73
+ color: rgb(from currentColor r g b / 1);
74
+ }
75
+
76
+ :where(a:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose a) {
77
+ color: var(--stl-color-link-foreground);
78
+ text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
79
+ transition: text-decoration-color 0.1s ease-out;
80
+ &:hover {
81
+ text-decoration-color: currentColor;
82
+ }
83
+ }
84
+
85
+ :where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
86
+ color: var(--stl-color-foreground);
87
+ font-weight: 500;
88
+ line-height: var(--stl-typography-line-height-heading);
89
+ font-family: var(--stl-typography-font-heading);
90
+ }
91
+
92
+ :where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
93
+ /* Heading 1/Medium */
94
+ font-size: var(--stl-typography-text-h1);
95
+ letter-spacing: -0.03em;
96
+ margin-top: 1.5em;
97
+ }
98
+
99
+ :where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
100
+ /* Heading 2/Medium */
101
+ font-size: var(--stl-typography-text-h2);
102
+ letter-spacing: -0.03em;
103
+ margin-top: 1.35em;
104
+ }
105
+
106
+ :where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
107
+ /* Heading 3/Medium */
108
+ font-size: var(--stl-typography-text-h3);
109
+ letter-spacing: -0.02em;
110
+ margin-top: 1.35em;
111
+ }
112
+
113
+ :where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
114
+ /* Heading 4/Medium */
115
+ font-size: var(--stl-typography-text-h4);
116
+ letter-spacing: -0.02em;
117
+ margin-top: 1.35em;
118
+ }
119
+
120
+ :where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
121
+ /* Heading 5/Medium */
122
+ font-size: var(--stl-typography-text-h5);
123
+ letter-spacing: -0.02em;
124
+ margin-top: 1.2em;
125
+ }
126
+
127
+ :where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
128
+ &:where(:not(:last-child)) {
129
+ margin-bottom: 8px;
130
+ }
131
+ }
132
+
133
+ &.smaller-headings {
134
+ --stl-typography-text-h1: var(--stl-typography-scale-3xl);
135
+ --stl-typography-text-h2: var(--stl-typography-scale-2xl);
136
+ --stl-typography-text-h3: var(--stl-typography-scale-xl);
137
+ --stl-typography-text-h4: var(--stl-typography-scale-lg);
138
+ --stl-typography-text-h5: var(--stl-typography-scale-base);
139
+
140
+ :where(h1) {
141
+ margin-top: 1.5em;
142
+ }
143
+ :where(h2, h3, h4) {
144
+ margin-top: 1.25em;
145
+ }
146
+ :where(h5) {
147
+ margin-top: 1em;
148
+ }
149
+ }
150
+
151
+ /* code blocks */
152
+ :where(
153
+ pre:not(.stl-ui-not-prose *, .expressive-code *),
154
+ .stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)
155
+ ) {
156
+ padding: 12px 20px;
157
+ border-radius: var(--stl-ui-layout-border-radius-sml);
158
+ border: 1px solid var(--stl-color-border);
159
+ background-color: var(--stl-color-faint-background);
160
+ overflow: auto;
161
+ margin-bottom: 1rem;
162
+ }
163
+
164
+ :where(ol, ul) {
165
+ &:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
166
+ padding-left: 26px;
167
+ }
168
+ }
169
+
170
+ :where(ol, ul, aside, img, figure, details):where(
171
+ :not(.stl-ui-not-prose *),
172
+ .stl-ui-not-prose .stl-ui-prose *
173
+ ) {
174
+ margin-top: 16px;
175
+ }
176
+
177
+ /* all code (inline + block) */
178
+ :where(code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
179
+ font-family: var(--stl-typography-font-mono);
180
+ font-feature-settings:
181
+ 'ss01' on,
182
+ 'ss03' on,
183
+ 'ss04' on,
184
+ 'ss06' on;
185
+
186
+ font-size: var(--stl-typography-text-code);
187
+ font-weight: inherit;
188
+ letter-spacing: normal;
189
+
190
+ /* inline code */
191
+ &:where(:not(pre > &)) {
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: 32px;
630
+ --stl-ui-dropdown-button-padding: 0 10px;
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: var(--stl-ui-dropdown-button-padding);
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-muted);
1217
+ --stl-ui-badge-icon-opacity: var(--stl-opacity-level-040);
1218
+ border-color: var(--stl-color-border);
1219
+ &.stl-ui-badge--solid {
1220
+ background-color: var(--stl-color-inverse-background);
1221
+ color: var(--stl-color-inverse-foreground);
1222
+ --stl-ui-badge-icon-opacity: 1;
1223
+ }
1224
+ }
1225
+ &.stl-ui-badge--intent-success,
1226
+ &.stl-ui-badge--http-get {
1227
+ background-color: var(--stl-color-green-muted-background);
1228
+ color: var(--stl-color-green-foreground);
1229
+ border-color: var(--stl-color-green-border);
1230
+ &.stl-ui-badge--solid {
1231
+ background-color: var(--stl-color-green-inverse-background);
1232
+ color: var(--stl-color-green-inverse-foreground);
1233
+ }
1234
+ }
1235
+ &.stl-ui-badge--intent-warning {
1236
+ background-color: var(--stl-color-yellow-muted-background);
1237
+ color: var(--stl-color-yellow-foreground);
1238
+ border-color: var(--stl-color-yellow-border);
1239
+ &.stl-ui-badge--solid {
1240
+ background-color: var(--stl-color-yellow-inverse-background);
1241
+ color: var(--stl-color-yellow-inverse-foreground);
1242
+ }
1243
+ }
1244
+ &.stl-ui-badge--intent-danger,
1245
+ &.stl-ui-badge--http-delete {
1246
+ background-color: var(--stl-color-red-muted-background);
1247
+ color: var(--stl-color-red-foreground);
1248
+ border-color: var(--stl-color-red-border);
1249
+ &.stl-ui-badge--solid {
1250
+ background-color: var(--stl-color-red-inverse-background);
1251
+ color: var(--stl-color-red-inverse-foreground);
1252
+ }
1253
+ }
1254
+ &.stl-ui-badge--intent-note,
1255
+ &.stl-ui-badge--http-post {
1256
+ background-color: var(--stl-color-blue-muted-background);
1257
+ color: var(--stl-color-blue-foreground);
1258
+ border-color: var(--stl-color-blue-border);
1259
+ &.stl-ui-badge--solid {
1260
+ background-color: var(--stl-color-blue-inverse-background);
1261
+ color: var(--stl-color-blue-inverse-foreground);
1262
+ }
1263
+ }
1264
+ &.stl-ui-badge--intent-tip {
1265
+ background-color: var(--stl-color-purple-muted-background);
1266
+ color: var(--stl-color-purple-foreground);
1267
+ border-color: var(--stl-color-purple-border);
1268
+ &.stl-ui-badge--solid {
1269
+ background-color: var(--stl-color-purple-inverse-background);
1270
+ color: var(--stl-color-purple-inverse-foreground);
1271
+ }
1272
+ }
1273
+ &.stl-ui-badge--intent-accent {
1274
+ background-color: var(--stl-color-accent-muted-background);
1275
+ color: var(--stl-color-accent-foreground);
1276
+ border-color: var(--stl-color-accent-border);
1277
+ &.stl-ui-badge--solid {
1278
+ background-color: var(--stl-color-accent-inverse-background);
1279
+ color: var(--stl-color-accent-inverse-foreground);
1280
+ }
1281
+ }
1282
+ &.stl-ui-badge--http-put,
1283
+ &.stl-ui-badge--http-patch {
1284
+ background-color: var(--stl-color-orange-muted-background);
1285
+ color: var(--stl-color-orange-foreground);
1286
+ border-color: var(--stl-color-orange-border);
1287
+ &.stl-ui-badge--solid {
1288
+ background-color: var(--stl-color-orange-inverse-background);
1289
+ color: var(--stl-color-orange-inverse-foreground);
1290
+ }
1291
+ }
1292
+
1293
+ /* Text content */
1294
+ .stl-ui-badge__content {
1295
+ display: inline-block;
1296
+ padding: 0.25em;
1297
+ }
1298
+
1299
+ /* Icons */
1300
+ svg {
1301
+ flex-shrink: 0;
1302
+ display: inline-block;
1303
+ color: rgb(from currentColor r g b / 1);
1304
+ opacity: var(--stl-ui-badge-icon-opacity, 1);
1305
+ width: var(--stl-ui-badge-icon-size);
1306
+ height: var(--stl-ui-badge-icon-size);
1307
+ }
1308
+ &:has(> svg:only-child) {
1309
+ padding: 0;
1310
+ aspect-ratio: 1;
1311
+ justify-content: center;
1312
+ }
1313
+
1314
+ /* HTTP */
1315
+ &.stl-ui-badge--http {
1316
+ font-family: var(--stl-typography-font-mono);
1317
+ font-variant-numeric: tabular-nums;
1318
+ text-transform: uppercase;
1319
+ }
1320
+ }
1321
+
1322
+ /* design system variables */
1323
+
1324
+ /* components */
1325
+
1326
+
1327
+ /* Resets */
1328
+ .stldocs-root {
1329
+ line-height: 1.5;
1330
+ letter-spacing: -0.01em;
1331
+
1332
+ a {
1333
+ color: inherit;
1334
+ cursor: pointer;
1335
+ text-decoration: none;
1336
+ }
1337
+
1338
+ *,
1339
+ *::before,
1340
+ *::after {
1341
+ box-sizing: border-box;
1342
+ }
1343
+
1344
+ /* Markdown content should get prose styling */
1345
+ :where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
1346
+ display: block;
1347
+ color: var(--stl-color-foreground);
1348
+ font-weight: 500;
1349
+ line-height: var(--stl-typography-line-height-heading);
1350
+ font-family: var(--stl-typography-font-heading);
1351
+ }
1352
+
1353
+ display: block;
1354
+ margin: 0;
1355
+ }
1356
+
1357
+ .sl-markdown-content {
1358
+ .stldocs-root
1359
+ :not(a, strong, em, del, span, input, code, br)
1360
+ + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) {
1361
+ margin-top: 0;
1362
+ }
1363
+ }
1364
+
1365
+ :root {
1366
+ --stldocs-color-selected: var(--stl-color-muted-background);
1367
+ --stldocs-color-bg-inline-code: var(--stl-color-muted-background);
1368
+
1369
+ --stldocs-content-width: 720px;
1370
+ --stldocs-content-padding: 16px;
1371
+
1372
+ --stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
1373
+ --stldocs-color-http-get: var(--stl-color-green-foreground);
1374
+ --stldocs-color-http-put-bg: var(--stl-color-orange-muted-background);
1375
+ --stldocs-color-http-put: var(--stl-color-orange-foreground);
1376
+ --stldocs-color-http-post-bg: var(--stl-color-blue-muted-background);
1377
+ --stldocs-color-http-post: var(--stl-color-blue-foreground);
1378
+ --stldocs-color-http-delete-bg: var(--stl-color-red-muted-background);
1379
+ --stldocs-color-http-delete: var(--stl-color-red-foreground);
1380
+
1381
+ --stldocs-syntax-color-green: var(--stl-color-green-foreground);
1382
+ --stldocs-syntax-color-orange: var(--stl-color-orange-foreground);
1383
+ --stldocs-syntax-color-purple: var(--stl-color-purple-foreground);
1384
+ --stldocs-syntax-color-blue: var(--stl-color-blue-foreground);
1385
+
1386
+ --stldocs-expander-margin-shift: 24px;
1387
+ --stldocs-expander-right-margin: 8px;
1388
+ --stldocs-title-padding-y: 2.5rem;
1389
+ --stldocs-color-backdrop-overlay: var(--stl-color-muted-background);
1390
+ }
1391
+
1392
+ /* Design System Defaults */
1393
+ .stldocs-root {
1394
+ font-family: var(--stl-typography-font);
1395
+ background-color: var(--stl-color-background);
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-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
+
1647
+ .stldocs-root .stldocs-input {
1648
+ border: 1px solid var(--stl-color-border);
1649
+ background: var(--stl-color-background);
1650
+ border-radius: var(--stl-ui-layout-border-radius-sml);
1651
+ display: flex;
1652
+
1653
+ &:focus-within {
1654
+ border-color: var(--stl-color-accent);
1655
+ }
1656
+
1657
+ &.stldocs-input-disabled {
1658
+ opacity: 0.5;
1659
+ }
1660
+
1661
+ input,
1662
+ .stldocs-masked-input-display {
1663
+ flex-grow: 1;
1664
+ border: none;
1665
+ background-color: transparent;
1666
+ margin: 0.5rem;
1667
+ font-size: 1rem;
1668
+ letter-spacing: initial;
1669
+ white-space: pre;
1670
+ contain: content;
1671
+ padding: 0;
1672
+
1673
+ &:focus {
1674
+ outline: none;
1675
+ }
1676
+ }
1677
+
1678
+ .stldocs-masked-input-wrapper {
1679
+ &:focus-within .stldocs-masked-input-display,
1680
+ &:not(:focus-within) input {
1681
+ opacity: 0;
1682
+ }
1683
+ }
1684
+
1685
+ .stldocs-masked-input-obscured {
1686
+ -webkit-text-stroke: currentColor 0.2em;
1687
+ }
1688
+
1689
+ .stldocs-icon {
1690
+ margin: auto 0.25rem auto 0.75rem;
1691
+ }
1692
+ }
1693
+
1694
+ .stldocs-root .stldocs-masked-input-wrapper {
1695
+ display: flex;
1696
+ flex-grow: 1;
1697
+ position: relative;
1698
+ font-family: var(--stl-typography-font-mono);
1699
+ }
1700
+
1701
+ .stldocs-root .stldocs-masked-input-display {
1702
+ position: absolute;
1703
+ inset: 0;
1704
+ display: flex;
1705
+ align-items: center;
1706
+ pointer-events: none; /* so you can click through to the real input */
1707
+ }
1708
+
1709
+ .stldocs-root .stldocs-listview {
1710
+ overflow-y: scroll;
1711
+
1712
+ .stldocs-listview-item:not(:last-child) {
1713
+ border-bottom: 1px solid var(--stl-color-border);
1714
+ }
1715
+
1716
+ [data-stldocs-listview-selected='true'] > :first-child {
1717
+ background:
1718
+ linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
1719
+ linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
1720
+ border-radius: 0.5rem;
1721
+ }
1722
+ }
1723
+
1724
+ .stldocs-root {
1725
+ .stldocs-tooltip-host {
1726
+ display: inline-block;
1727
+ }
1728
+
1729
+ .stldocs-tooltip-content {
1730
+ border: 1px solid var(--stl-color-border);
1731
+ background: var(--stl-color-background);
1732
+ border-radius: 8px;
1733
+ padding: 0.2rem 0.4rem;
1734
+
1735
+ * {
1736
+ font-size: 0.8rem !important;
1737
+ }
1738
+
1739
+ position: absolute;
1740
+
1741
+ transition:
1742
+ opacity 0.3s ease-in-out,
1743
+ visibility 0.3s step-end 0.3s;
1744
+ visibility: hidden;
1745
+ opacity: 0;
1746
+
1747
+ max-width: 400px;
1748
+ max-height: 300px;
1749
+ overflow: auto;
1750
+
1751
+ .stldocs-property-description {
1752
+ display: none;
1753
+ }
1754
+ }
1755
+
1756
+ .stldocs-tooltip:hover .stldocs-tooltip-content {
1757
+ transition-delay: 0s, 0s;
1758
+ visibility: visible;
1759
+ opacity: 1;
1760
+ }
1761
+ }
1762
+
1763
+ .stldocs-root {
1764
+ .stldocs-breadcrumbs {
1765
+ display: flex;
1766
+ align-items: center;
1767
+ gap: 0.5rem;
1768
+
1769
+ svg {
1770
+ width: 1rem;
1771
+ min-width: 1rem;
1772
+ stroke: var(--stl-color-foreground-reduced);
1773
+ opacity: 0.25;
1774
+ margin: 0;
1775
+ }
1776
+
1777
+ .stldocs-breadcrumbs-non-link,
1778
+ .stldocs-breadcrumbs-link {
1779
+ color: var(--stl-color-foreground-reduced);
1780
+ font-size: var(--stl-typography-scale-sm);
1781
+ line-height: 150%;
1782
+ text-decoration: none;
1783
+ }
1784
+
1785
+ .stldocs-breadcrumbs-link:hover {
1786
+ text-decoration: underline;
1787
+ color: var(--stl-color-foreground);
1788
+ }
1789
+
1790
+ .stldocs-breadcrumbs-item {
1791
+ display: flex;
1792
+ align-items: center;
1793
+ gap: 0.5rem;
1794
+ margin: 0;
1795
+ }
1796
+ }
1797
+ }
1798
+
1799
+ .stldocs-root .stldocs-expand-toggle {
1800
+ font-size: var(--stl-typography-scale-sm);
1801
+ display: flex;
1802
+ flex-grow: 1;
1803
+ justify-content: flex-end;
1804
+ user-select: none;
1805
+
1806
+ &[data-stldocs-property-toggle-expanded='false'] {
1807
+ .stldocs-expand-toggle-content:last-child {
1808
+ display: none;
1809
+ }
1810
+ }
1811
+
1812
+ &[data-stldocs-property-toggle-expanded='true'] {
1813
+ .stldocs-expand-toggle-content:first-child {
1814
+ display: none;
1815
+ }
1816
+ }
1817
+
1818
+ .stldocs-expand-toggle-content {
1819
+ cursor: pointer;
1820
+
1821
+ .stldocs-icon {
1822
+ vertical-align: middle;
1823
+ }
1824
+ }
1825
+ }
1826
+
1827
+ /* Overview page content */
1828
+ .stldocs-root .stldocs-overview {
1829
+ .stldocs-overview-header {
1830
+ padding: var(--stldocs-title-padding-y) 0;
1831
+
1832
+ & > * {
1833
+ max-width: var(--stldocs-content-width);
1834
+ margin: auto 0;
1835
+ }
1836
+
1837
+ .stldocs-overview-header-info {
1838
+ margin-top: 16px;
1839
+ height: 40px;
1840
+ display: flex;
1841
+ align-items: center;
1842
+
1843
+ .stldocs-overview-header-info-timestamp {
1844
+ font-size: var(--stl-typography-scale-xs);
1845
+ color: var(--stl-color-foreground);
1846
+ opacity: 50%;
1847
+ }
1848
+ }
1849
+ }
1850
+
1851
+ .stldocs-resource {
1852
+ padding: 2rem 0;
1853
+
1854
+ .stldocs-resource-content {
1855
+ max-width: var(--stldocs-content-width);
1856
+ margin: auto 0;
1857
+ }
1858
+
1859
+ .stldocs-resource-header {
1860
+ display: flex;
1861
+ flex-direction: column;
1862
+ gap: 16px;
1863
+ opacity: 85%;
1864
+
1865
+ .stldocs-resource-title {
1866
+ .stldocs-icon {
1867
+ margin-left: 8px;
1868
+ color: var(--stl-color-foreground-muted);
1869
+ vertical-align: middle;
1870
+ display: inline;
1871
+ height: 1rem;
1872
+ }
1873
+
1874
+ .stldocs-resource-title-segment {
1875
+ margin-right: 8px;
1876
+ color: var(--stl-color-foreground);
1877
+
1878
+ &:not(:last-child) {
1879
+ color: var(--stl-color-foreground-reduced);
1880
+ font-weight: 400;
1881
+ }
1882
+ }
1883
+ }
1884
+
1885
+ .stldocs-resource-name {
1886
+ font-family: var(--stl-typography-font-mono);
1887
+ color: var(--stl-color-foreground);
1888
+ }
1889
+
1890
+ .stldocs-resource-description {
1891
+ font-size: var(--stl-typography-scale-base);
1892
+ color: var(--stl-color-foreground-reduced);
1893
+ line-height: 150%;
1894
+ }
1895
+ }
1896
+
1897
+ .stldocs-resource-content {
1898
+ .stldocs-resource-content-group {
1899
+ display: flex;
1900
+ flex-direction: column;
1901
+
1902
+ .stldocs-resource-content-group-model-title {
1903
+ padding-top: var(--stldocs-content-padding);
1904
+ color: var(--stl-color-foreground-muted);
1905
+ font-weight: normal;
1906
+ font-size: 1rem;
1907
+ padding-bottom: 0.5rem;
1908
+ display: flex;
1909
+ }
1910
+
1911
+ .stldocs-resource-content-group-name {
1912
+ color: var(--stl-color-foreground-muted);
1913
+ }
1914
+
1915
+ .stldocs-resource-content-properties {
1916
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
1917
+ }
1918
+ }
1919
+ }
1920
+ }
1921
+
1922
+ > .stldocs-resource:nth-child(2) {
1923
+ padding-top: 0;
1924
+ }
1925
+ }
1926
+
1927
+ /* Overview page method summary */
1928
+ .stldocs-root .stldocs-overview .stldocs-method-summary {
1929
+ padding: var(--stldocs-content-padding) 0;
1930
+
1931
+ .stldocs-method-header {
1932
+ display: flex;
1933
+ flex-direction: column;
1934
+ gap: 4px;
1935
+
1936
+ .stldocs-method-title {
1937
+ margin-bottom: 2px;
1938
+
1939
+ a:hover {
1940
+ text-decoration: underline;
1941
+ }
1942
+ }
1943
+
1944
+ .stldocs-method-route {
1945
+ padding-top: 4px;
1946
+ }
1947
+ }
1948
+
1949
+ .stldocs-method-signature {
1950
+ max-width: var(--stldocs-content-width);
1951
+ overflow: hidden;
1952
+ text-overflow: ellipsis;
1953
+ }
1954
+
1955
+ .stldocs-method-description {
1956
+ color: var(--stl-color-foreground-muted);
1957
+ height: 1.7rem;
1958
+ overflow-y: hidden;
1959
+ line-height: 1.7rem;
1960
+ padding-bottom: var(--stldocs-content-padding);
1961
+
1962
+ .stldocs-content > * {
1963
+ white-space: nowrap;
1964
+ overflow-x: hidden;
1965
+ text-overflow: ellipsis;
1966
+ }
1967
+ }
1968
+ }
1969
+
1970
+ /* Method route rendering is shared between method previews and pages */
1971
+ .stldocs-root .stldocs-method-header .stldocs-method-route {
1972
+ display: flex;
1973
+ gap: 4px;
1974
+ padding: 0;
1975
+
1976
+ .stldocs-method-route-endpoint {
1977
+ font-family: var(--stl-typography-font-mono);
1978
+ font-size: var(--stl-typography-scale-sm);
1979
+ color: var(--stl-color-foreground-reduced);
1980
+ align-content: center;
1981
+ line-height: 120%;
1982
+ overflow: hidden;
1983
+ text-overflow: ellipsis;
1984
+ white-space: nowrap;
1985
+ }
1986
+ }
1987
+
1988
+ /* Models and properties */
1989
+ .stldocs-root .stldocs-property,
1990
+ .stldocs-root .stldocs-model {
1991
+ display: flex;
1992
+ flex-direction: column;
1993
+ gap: 0.8rem;
1994
+ padding: 0.5rem 0;
1995
+ font-size: var(--stl-typography-scale-sm);
1996
+
1997
+ .stldocs-expander-summary-content {
1998
+ width: 100%;
1999
+ }
2000
+
2001
+ .stldocs-property-header {
2002
+ align-items: first baseline;
2003
+ display: flex;
2004
+ gap: 0.5rem;
2005
+ flex-wrap: wrap;
2006
+ }
2007
+
2008
+ .stldocs-property-info {
2009
+ display: flex;
2010
+ flex-direction: column;
2011
+
2012
+ & > .stldocs-property-type > .stldocs-text-identifier {
2013
+ color: var(--stl-color-foreground);
2014
+ }
2015
+ }
2016
+
2017
+ .stldocs-property-type {
2018
+ font-family: var(--stl-typography-font-mono);
2019
+ color: var(--stl-color-foreground-muted);
2020
+ }
2021
+
2022
+ .stldocs-property-type,
2023
+ .stldocs-property-declaration {
2024
+ .stldocs-type-preview[data-stldocs-type-preview='union']
2025
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
2026
+ display: none;
2027
+ }
2028
+ }
2029
+
2030
+ .stldocs-property-deprecated {
2031
+ font-family: var(--stl-typography-font);
2032
+ color: var(--stl-color-red-foreground);
2033
+ font-size: var(--stl-typography-scale-sm);
2034
+ font-weight: 600;
2035
+ }
2036
+
2037
+ .stldocs-property-deprecated-message {
2038
+ color: var(--stl-color-red-foreground);
2039
+ font-size: var(--stl-typography-scale-sm);
2040
+ }
2041
+ .stldocs-property-declaration {
2042
+ white-space: nowrap;
2043
+ overflow: hidden;
2044
+ text-overflow: ellipsis;
2045
+ min-width: 0;
2046
+ max-width: max-content;
2047
+ border-radius: var(--stl-ui-layout-border-radius-xs);
2048
+ padding-inline: var(--stl-ui-layout-border-radius-xs);
2049
+ margin-left: calc(-1 * var(--stl-ui-layout-border-radius-xs));
2050
+ background-color: transparent;
2051
+ transition: 0.1s background-color ease;
2052
+
2053
+ .stldocs-property-deprecated {
2054
+ margin-right: 0.44rem;
2055
+ }
2056
+ }
2057
+ .stldocs-property-info:is(:target, .stldocs-property-highlighted) .stldocs-property-declaration {
2058
+ background-color: var(--stl-color-accent-muted-background);
2059
+ transition: 0.1s background-color ease;
2060
+ }
2061
+
2062
+ .stldocs-property-description,
2063
+ .stldocs-property-title {
2064
+ font-size: var(--stl-typography-scale-sm);
2065
+ color: var(--stl-color-foreground-reduced);
2066
+
2067
+ .stldocs-content {
2068
+ color: inherit;
2069
+ font-size: inherit;
2070
+ }
2071
+ }
2072
+
2073
+ .stldocs-property-name {
2074
+ font-family: var(--stl-typography-font-mono);
2075
+ color: var(--stl-color-foreground);
2076
+ font-weight: 700;
2077
+ }
2078
+
2079
+ .stldocs-property-annotation {
2080
+ color: var(--stl-color-foreground-reduced);
2081
+ }
2082
+
2083
+ .stldocs-property-typename {
2084
+ font-size: var(--stl-typography-scale-xs);
2085
+ color: var(--stl-color-foreground-muted);
2086
+ line-height: 175%;
2087
+
2088
+ .stldocs-type-reference {
2089
+ font-size: 0.8rem;
2090
+ color: var(--stldocs-syntax-color-blue);
2091
+ font-weight: 600;
2092
+ }
2093
+ }
2094
+
2095
+ .stldocs-property-type {
2096
+ .stldocs-truncation {
2097
+ margin-right: 0.2rem;
2098
+ white-space: nowrap;
2099
+ }
2100
+ }
2101
+
2102
+ .stldocs-property-badges {
2103
+ display: flex;
2104
+ font-size: 0.85rem;
2105
+ gap: 0.5rem;
2106
+ text-transform: lowercase;
2107
+ line-height: 1.5rem;
2108
+ }
2109
+
2110
+ .stldocs-property-constraints {
2111
+ display: flex;
2112
+ }
2113
+
2114
+ .stldocs-property-constraint {
2115
+ color: var(--stl-color-foreground-reduced);
2116
+
2117
+ &:not(:last-child) {
2118
+ &::after {
2119
+ content: ', ';
2120
+ margin-right: 0.4rem;
2121
+ color: var(--stl-color-foreground-reduced);
2122
+ }
2123
+ }
2124
+
2125
+ .stldocs-property-constraint-name {
2126
+ color: var(--stl-color-foreground-reduced);
2127
+
2128
+ &::after {
2129
+ content: ':';
2130
+ margin-right: 0.4rem;
2131
+ }
2132
+ }
2133
+
2134
+ .stldocs-property-constraint-value {
2135
+ background-color: var(--stldocs-color-bg-inline-code);
2136
+ color: var(--stl-color-foreground-reduced);
2137
+ font-family: var(--stl-typography-font-mono);
2138
+ border-radius: 4px;
2139
+ padding: 3px 4px;
2140
+ }
2141
+ }
2142
+
2143
+ .stldocs-property-type:not(:first-child) {
2144
+ font-size: 0.8rem;
2145
+ }
2146
+
2147
+ .stldocs-property .stldocs-property-type {
2148
+ font-size: 0.8rem;
2149
+ }
2150
+ }
2151
+
2152
+ .stldocs-root {
2153
+ .stldocs-properties {
2154
+ display: flex;
2155
+ flex-direction: column;
2156
+ line-height: 150%;
2157
+ }
2158
+ }
2159
+
2160
+ .stldocs-root .stldocs-property {
2161
+ padding: 0.2rem 0;
2162
+
2163
+ [open] > .stldocs-expander-summary {
2164
+ padding-bottom: 0;
2165
+ }
2166
+ }
2167
+
2168
+ .stldocs-root .stldocs-property:not(.stldocs-property .stldocs-property) > .stldocs-property-info {
2169
+ margin-left: var(--stldocs-expander-margin-shift);
2170
+ }
2171
+
2172
+ .stldocs-root .stldocs-tooltip-content .stldocs-property {
2173
+ gap: 0.1rem;
2174
+ padding: 0.1rem !important;
2175
+ border: 0;
2176
+ }
2177
+
2178
+ .stldocs-root .stldocs-badge {
2179
+ display: inline-block;
2180
+ background-color: var(--stl-color-muted-background);
2181
+ padding: 0 0.5rem;
2182
+ border-radius: 4px;
2183
+ font-size: var(--stl-typography-scale-xs);
2184
+ font-weight: 500;
2185
+
2186
+ &[data-badge-id='deprecated'] {
2187
+ background-color: var(--stl-color-red-muted-background);
2188
+ color: var(--stl-color-red-foreground);
2189
+ text-transform: capitalize;
2190
+ }
2191
+
2192
+ &[data-badge-id='optional'] {
2193
+ background-color: var(--stl-color-muted-background);
2194
+ text-transform: capitalize;
2195
+ }
2196
+ }
2197
+
2198
+ /* Method Pages */
2199
+
2200
+ .stldocs-root .stldocs-method-signature {
2201
+ font-family: var(--stl-typography-font-mono);
2202
+ font-size: var(--stl-typography-scale-sm);
2203
+ color: var(--stl-color-foreground-muted);
2204
+ white-space: pre-wrap;
2205
+ word-wrap: break-word;
2206
+ font-weight: 400;
2207
+ line-height: 1.5rem;
2208
+
2209
+ .stldocs-signature-qualified {
2210
+ color: var(--stl-color-foreground-reduced);
2211
+ font-weight: 400;
2212
+ }
2213
+
2214
+ .stldocs-signature-name {
2215
+ color: var(--stl-color-foreground);
2216
+ font-weight: 600;
2217
+ }
2218
+
2219
+ .stldoc-signature-params {
2220
+ .stldocs-text-identifier {
2221
+ color: var(--stl-color-foreground);
2222
+ }
2223
+ }
2224
+
2225
+ .stldocs-type {
2226
+ color: var(--stl-color-foreground);
2227
+ }
2228
+
2229
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] {
2230
+ display: none;
2231
+ }
2232
+
2233
+ .stldocs-method-badges {
2234
+ margin-top: 1rem;
2235
+ }
2236
+ }
2237
+
2238
+ .stldocs-root .stldocs-method {
2239
+ .stldocs-method-content-column {
2240
+ display: contents;
2241
+ }
2242
+
2243
+ .stldocs-method-header {
2244
+ padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding) var(--stldocs-content-padding);
2245
+
2246
+ .stldocs-method-title {
2247
+ font-size: var(--stl-typography-text-h1);
2248
+ letter-spacing: -0.03em;
2249
+ }
2250
+
2251
+ .stldocs-method-signature {
2252
+ margin-top: 0.75rem;
2253
+ }
2254
+
2255
+ .stldocs-method-route {
2256
+ padding-top: 12px;
2257
+ }
2258
+ }
2259
+
2260
+ .stldocs-method-description {
2261
+ grid-area: 1 / 1 / 2 / 2;
2262
+ padding-bottom: var(--stldocs-content-padding);
2263
+
2264
+ code {
2265
+ line-height: 150%;
2266
+ font-size: 0.93rem;
2267
+ }
2268
+ }
2269
+
2270
+ .stldocs-method-example {
2271
+ margin-top: 1rem;
2272
+ grid-area: 2 / 1 / 3 / 2;
2273
+
2274
+ .stldocs-snippet-multi-response {
2275
+ display: none;
2276
+ }
2277
+ }
2278
+
2279
+ .stldocs-snippet-multi-response {
2280
+ border: 1px solid var(--stl-color-border);
2281
+ border-radius: 12px;
2282
+
2283
+ .stldocs-snippet {
2284
+ background-color: transparent;
2285
+ }
2286
+
2287
+ .stldocs-snippet-code .shiki {
2288
+ padding: 0.5rem;
2289
+ }
2290
+ }
2291
+
2292
+ .stldocs-method-info {
2293
+ padding: var(--stldocs-content-padding) 0;
2294
+ grid-area: 3 / 1 / 4 / 2;
2295
+ display: flex;
2296
+ gap: 2rem;
2297
+ flex-direction: column;
2298
+ margin-top: 2.5rem;
2299
+ font-size: var(--stl-typography-scale-sm);
2300
+
2301
+ h5 {
2302
+ display: flex;
2303
+ }
2304
+ }
2305
+
2306
+ .stldocs-method-info-section {
2307
+ display: flex;
2308
+ gap: 0.5rem;
2309
+ flex-direction: column;
2310
+ }
2311
+
2312
+ .stldocs-method-content-column {
2313
+ display: contents;
2314
+ }
2315
+
2316
+ .stldocs-method-body {
2317
+ display: grid;
2318
+ gap: 2rem;
2319
+ grid-template-columns: minmax(0, 1fr);
2320
+ grid-template-rows: repeat(4, auto);
2321
+ padding: var(--stldocs-content-padding) 0;
2322
+
2323
+ .stldocs-method-description p {
2324
+ color: var(--stl-color-foreground-reduced);
2325
+ line-height: 150%;
2326
+ }
2327
+
2328
+ h5 {
2329
+ font-weight: 400;
2330
+ color: var(--stl-color-foreground-muted);
2331
+ font-size: var(--stl-typography-scale-base);
2332
+ }
2333
+
2334
+ .stldocs-method-parameters,
2335
+ .stldocs-method-parameters,
2336
+ .stldocs-method-returns {
2337
+ margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
2338
+ }
2339
+
2340
+ .stldocs-method-parameters {
2341
+ display: flex;
2342
+ flex-direction: column;
2343
+ gap: 0.5rem;
2344
+ }
2345
+
2346
+ .stldocs-method-parameters h5 {
2347
+ margin-left: var(--stldocs-expander-margin-shift);
2348
+ }
2349
+ }
2350
+
2351
+ .stldocs-snippet {
2352
+ top: calc(var(--sl-nav-height) + 1rem);
2353
+ position: sticky;
2354
+ z-index: 5;
2355
+
2356
+ font-size: var(--stl-typography-scale-sm);
2357
+ font-family: var(--stl-typography-font-mono);
2358
+
2359
+ padding: 0.5rem;
2360
+ border-radius: calc(12px + 0.5rem);
2361
+ display: flex;
2362
+ flex-direction: column;
2363
+ background-color: var(--stl-color-faint-background);
2364
+ border: 1px solid var(--stl-color-border-faint);
2365
+
2366
+ .stldocs-snippet-request {
2367
+ background-color: var(--stl-color-background);
2368
+ --shiki-background: var(--stl-color-background);
2369
+ border: 1px solid var(--stl-color-border);
2370
+ border-radius: 12px;
2371
+ position: relative;
2372
+
2373
+ .stldocs-snippet-code {
2374
+ border-bottom-left-radius: 12px;
2375
+ border-bottom-right-radius: 12px;
2376
+ }
2377
+ }
2378
+
2379
+ .stldocs-snippet-request-title {
2380
+ display: flex;
2381
+ justify-content: space-between;
2382
+ background-color: var(--stl-color-background);
2383
+ color: var(--stl-color-foreground-reduced);
2384
+ border-bottom: 1px solid var(--stl-color-border);
2385
+ border-top-right-radius: 12px;
2386
+ border-top-left-radius: 12px;
2387
+ padding: 0.5rem;
2388
+ padding-left: 0.75rem;
2389
+ gap: 0.5rem;
2390
+ font-family: var(--stl-typography-font);
2391
+
2392
+ .stldocs-snippet-request-title-method {
2393
+ flex-grow: 1;
2394
+ min-width: 0;
2395
+ }
2396
+
2397
+ .stldocs-snippet-request-title-method,
2398
+ .stldocs-snippet-request-title-content {
2399
+ display: flex;
2400
+ gap: 0.5rem;
2401
+ align-items: center;
2402
+ }
2403
+
2404
+ h3 {
2405
+ font-weight: 500;
2406
+ font-style: normal;
2407
+ line-height: 100%;
2408
+ font-size: inherit;
2409
+ font-family: var(--stl-typography-font);
2410
+ color: var(--stl-color-foreground);
2411
+ margin: 0;
2412
+
2413
+ overflow: hidden;
2414
+ white-space: nowrap;
2415
+ text-overflow: ellipsis;
2416
+ }
2417
+
2418
+ @media (min-width: 1280px) {
2419
+ .stldocs-snippet-request-title-label {
2420
+ display: none;
2421
+ }
2422
+ }
2423
+
2424
+ .stldocs-icon {
2425
+ width: 16px;
2426
+ }
2427
+
2428
+ .stldocs-snippet-request-title-content {
2429
+ font-family: var(--stl-typography-font);
2430
+ display: flex;
2431
+ gap: 0.5rem;
2432
+
2433
+ .stldocs-snippet-request-title-language {
2434
+ position: relative;
2435
+ color: var(--stl-color-foreground);
2436
+ cursor: pointer;
2437
+ display: flex;
2438
+ align-items: center;
2439
+ gap: 4px;
2440
+
2441
+ select {
2442
+ z-index: 5;
2443
+ padding-right: 25px;
2444
+ display: flex;
2445
+ align-items: center;
2446
+ }
2447
+ }
2448
+ }
2449
+ }
2450
+
2451
+ .stldocs-snippet-response-pane {
2452
+ padding: 0.5rem;
2453
+ display: none;
2454
+ --shiki-background: var(--stl-color-faint-background);
2455
+
2456
+ &.stldocs-snippet-response-pane-active {
2457
+ display: block;
2458
+ }
2459
+
2460
+ .stldocs-snippet-code {
2461
+ padding: 0;
2462
+ }
2463
+ }
2464
+
2465
+ .stldocs-snippet-response {
2466
+ margin-top: 1rem;
2467
+ }
2468
+ }
2469
+
2470
+ .stldocs-method-response-column {
2471
+ display: flex;
2472
+ flex-direction: column;
2473
+ gap: 1rem;
2474
+ margin-top: 2.5rem;
2475
+ }
2476
+
2477
+ .stldocs-snippet-code {
2478
+ width: 0;
2479
+ min-width: 100%;
2480
+ overflow: auto;
2481
+ display: block;
2482
+ white-space: preserve nowrap;
2483
+ padding: 1rem;
2484
+ max-height: 560px;
2485
+ font-size: var(--stl-typography-scale-sm);
2486
+ line-height: 1.5;
2487
+ transition: height 240ms ease;
2488
+ will-change: height;
2489
+ scrollbar-color: var(--stl-color-border) transparent;
2490
+
2491
+ pre,
2492
+ .shiki {
2493
+ margin: 0;
2494
+ padding: 0;
2495
+ width: max-content;
2496
+ min-width: 100%;
2497
+ }
2498
+
2499
+ pre.shiki {
2500
+ counter-reset: codeblock-line;
2501
+
2502
+ .line {
2503
+ counter-increment: codeblock-line;
2504
+
2505
+ &::before {
2506
+ content: counter(codeblock-line);
2507
+ color: var(--stl-color-foreground-muted);
2508
+ margin-right: 1rem;
2509
+ opacity: 0.5;
2510
+ display: inline-flex;
2511
+ width: 1rem;
2512
+ text-align: right;
2513
+ }
2514
+
2515
+ &.ellipsis {
2516
+ color: var(--stl-color-foreground-muted) !important;
2517
+ opacity: 0.5;
2518
+ }
2519
+ }
2520
+ }
2521
+ }
2522
+
2523
+ .stldocs-snippet-footer {
2524
+ border-top: 1px solid var(--stl-color-border);
2525
+ padding: 0.5rem;
2526
+ }
2527
+
2528
+ .stldocs-snippet-response-tab {
2529
+ display: flex;
2530
+ gap: 0.5rem;
2531
+ overflow-x: auto;
2532
+
2533
+ .stldocs-snippet-response-tab-item {
2534
+ flex: 1;
2535
+ border-bottom: 2px solid transparent;
2536
+ min-width: 160px;
2537
+ height: 40px;
2538
+
2539
+ button {
2540
+ width: 100%;
2541
+ white-space: nowrap;
2542
+ overflow: hidden;
2543
+ text-overflow: ellipsis;
2544
+ vertical-align: middle;
2545
+ color: var(--stl-color-foreground-reduced);
2546
+ }
2547
+
2548
+ button:hover {
2549
+ background-color: var(--stl-color-background-hover);
2550
+ }
2551
+ }
2552
+
2553
+ .stldocs-snippet-response-tab-item-active {
2554
+ border-color: var(--stl-color-accent-inverse-background);
2555
+
2556
+ button {
2557
+ color: var(--stl-color-foreground);
2558
+ }
2559
+ }
2560
+
2561
+ &.stldocs-snippet-response-tab-single-return {
2562
+ background-color: var(--stl-color-faint-background);
2563
+ border-top-left-radius: 12px;
2564
+ border-top-right-radius: 12px;
2565
+
2566
+ .stldocs-snippet-response-tab-item {
2567
+ border: none;
2568
+ color: var(--stl-color-foreground-reduced);
2569
+ font-weight: 400;
2570
+ display: flex;
2571
+
2572
+ button {
2573
+ justify-content: flex-start;
2574
+ cursor: default;
2575
+ height: auto;
2576
+
2577
+ &:hover {
2578
+ background-color: transparent;
2579
+ }
2580
+ }
2581
+ }
2582
+ }
2583
+ }
2584
+
2585
+ .stldocs-markdown {
2586
+ :first-child {
2587
+ margin-top: 0;
2588
+ }
2589
+ }
2590
+ }
2591
+
2592
+ .stldocs-root .stldocs-language-block {
2593
+ background-color: var(--stl-color-background);
2594
+ border: 1px solid var(--stl-color-border);
2595
+ border-radius: 8px;
2596
+ padding: 16px;
2597
+ display: flex;
2598
+ flex-direction: column;
2599
+ gap: 8px;
2600
+
2601
+ .stldocs-language-block-content {
2602
+ display: flex;
2603
+ gap: 12px;
2604
+
2605
+ .stldocs-language-block-content-icon {
2606
+ display: inline-flex;
2607
+ border: 1px solid var(--stl-color-border);
2608
+ border-radius: 4px;
2609
+ padding: 12px;
2610
+ aspect-ratio: 1 / 1;
2611
+ }
2612
+
2613
+ .stldocs-language-block-content-info {
2614
+ .stldocs-language-block-content-info-language {
2615
+ line-height: 120%;
2616
+ font-weight: 600;
2617
+ }
2618
+
2619
+ .stldocs-language-block-content-info-version {
2620
+ font-family: var(--stl-typography-font-mono);
2621
+ font-size: var(--stl-typography-scale-sm);
2622
+ font-weight: 200;
2623
+ }
2624
+ }
2625
+ }
2626
+
2627
+ .stldocs-language-block-install {
2628
+ display: flex;
2629
+ font-family: var(--stl-typography-font-mono);
2630
+ font-size: var(--stl-typography-scale-sm);
2631
+ background-color: var(--stldocs-color-bg-inline-code);
2632
+ border: 1px solid var(--stl-color-border);
2633
+ color: var(--stl-color-foreground-reduced);
2634
+ border-radius: 4px;
2635
+ padding: 4px 8px;
2636
+
2637
+ pre {
2638
+ flex-grow: 1;
2639
+ white-space: nowrap;
2640
+ overflow-x: hidden;
2641
+ text-overflow: ellipsis;
2642
+ display: flex;
2643
+ align-items: center;
2644
+ }
2645
+
2646
+ svg {
2647
+ vertical-align: middle;
2648
+ min-width: 16px;
2649
+ }
2650
+ }
2651
+
2652
+ .stldocs-language-block-links {
2653
+ display: flex;
2654
+ gap: 8px;
2655
+
2656
+ & > a:last-child {
2657
+ flex-grow: 1;
2658
+ }
2659
+ }
2660
+ }
2661
+
2662
+ @media (min-width: 1280px) {
2663
+ .stldocs-root .stldocs-method.stldocs-method-double-pane {
2664
+ .stldocs-method-example {
2665
+ flex: 1 1 500px;
2666
+ max-width: 100%;
2667
+ width: 100%;
2668
+ }
2669
+
2670
+ .stldocs-method-body {
2671
+ flex-direction: row;
2672
+ gap: 2rem;
2673
+ }
2674
+ }
2675
+ }
2676
+
2677
+ /* Don't put expanders in the margin on mobile */
2678
+ @media (max-width: 50rem) {
2679
+ .stldocs-root .stldocs-method-body {
2680
+ padding: 1rem var(--stldocs-content-padding) !important;
2681
+ }
2682
+
2683
+ .stldocs-root .stldocs-resource .stldocs-resource-content {
2684
+ padding: 0 var(--stldocs-content-padding) !important;
2685
+
2686
+ .stldocs-resource-content-properties {
2687
+ margin-left: 0 !important;
2688
+ }
2689
+ }
2690
+ }
2691
+
2692
+ @media (min-width: 50rem) {
2693
+ .stldocs-root .stldocs-method {
2694
+ .stldocs-method-header {
2695
+ padding: var(--stldocs-title-padding-y) 0;
2696
+ }
2697
+ }
2698
+ }
2699
+
2700
+ @media (min-width: 1280px) {
2701
+ .stldocs-root {
2702
+ .stldocs-method.stldocs-method-double-pane .stldocs-method-content-column {
2703
+ display: block;
2704
+ }
2705
+
2706
+ .stldocs-method.stldocs-method-double-pane .stldocs-method-body {
2707
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2708
+ grid-template-areas: 'description example';
2709
+ grid-template-rows: unset;
2710
+
2711
+ .stldocs-snippet {
2712
+ .stldocs-snippet-response {
2713
+ display: block;
2714
+ }
2715
+
2716
+ .stldocs-snippet-response-pane {
2717
+ position: relative;
2718
+ padding: 0;
2719
+ --shiki-background: transparent;
2720
+
2721
+ &::before {
2722
+ content: '';
2723
+ flex: 0 0 1rem;
2724
+ width: calc(100% + 2rem);
2725
+ height: 1px;
2726
+ position: absolute;
2727
+ top: calc(-0.5rem);
2728
+ left: -1rem;
2729
+ background-color: var(--stl-color-border-faint);
2730
+ }
2731
+ }
2732
+
2733
+ .stldocs-snippet-multi-response {
2734
+ display: block;
2735
+ padding: 0;
2736
+ }
2737
+ }
2738
+
2739
+ .stldocs-method-response-column {
2740
+ display: none;
2741
+ margin-top: 0;
2742
+ }
2743
+
2744
+ .stldocs-method-content-column {
2745
+ grid-area: description;
2746
+ }
2747
+
2748
+ .stldocs-method-example {
2749
+ margin-top: 0;
2750
+ grid-area: example;
2751
+
2752
+ .stldocs-snippet-multi-response {
2753
+ display: block;
2754
+ border: none;
2755
+
2756
+ .stldocs-snippet {
2757
+ background-color: transparent;
2758
+ border: none;
2759
+ }
2760
+ }
2761
+ }
2762
+
2763
+ .stldocs-method-info {
2764
+ grid-area: unset;
2765
+ margin-top: 0;
2766
+ }
2767
+
2768
+ .stldocs-snippet-response-tab {
2769
+ margin-bottom: 0.5rem;
2770
+
2771
+ &.stldocs-snippet-response-tab-single-return {
2772
+ background-color: transparent;
2773
+
2774
+ .stldocs-snippet-response-tab-item {
2775
+ button {
2776
+ &:hover {
2777
+ background-color: transparent;
2778
+ }
2779
+ }
2780
+ }
2781
+ }
2782
+ }
2783
+ }
2784
+ }
2785
+ }
2786
+
2787
+ .stldocs-sidebar {
2788
+ font-family: var(--stl-typography-font);
2789
+ font-size: var(--stl-typography-scale-sm);
2790
+
2791
+ a {
2792
+ text-decoration: none;
2793
+ color: var(--stl-color-foreground-reduced);
2794
+ }
2795
+
2796
+ .stldocs-sidebar-resource-title {
2797
+ padding-bottom: 6px;
2798
+ }
2799
+
2800
+ .stldocs-sidebar-resource,
2801
+ .stldocs-sidebar-method {
2802
+ padding: 6px;
2803
+ display: flex;
2804
+ gap: 0.5rem;
2805
+
2806
+ &[data-selected='true'] {
2807
+ & > a,
2808
+ & > details > summary > a {
2809
+ color: var(--stl-color-foreground);
2810
+ }
2811
+ }
2812
+ }
2813
+
2814
+ .stldocs-sidebar-resource-title {
2815
+ display: block;
2816
+
2817
+ a {
2818
+ color: var(--stl-color-foreground);
2819
+ font-weight: 500;
2820
+ }
2821
+ }
2822
+
2823
+ .stldocs-sidebar-expander {
2824
+ .stldocs-expander-summary {
2825
+ cursor: pointer;
2826
+ display: flex;
2827
+
2828
+ & > .stldocs-expander-summary-icon {
2829
+ transform: translateX(-0.5px) translateY(-0.5px);
2830
+ margin-left: 8px;
2831
+
2832
+ & > .stldocs-icon {
2833
+ vertical-align: middle;
2834
+ color: var(--stl-color-foreground-muted);
2835
+ }
2836
+
2837
+ & > :last-child {
2838
+ display: none;
2839
+ }
2840
+ }
2841
+ }
2842
+
2843
+ &[open],
2844
+ &[data-open='true'] {
2845
+ & > .stldocs-expander-summary {
2846
+ .stldocs-type-preview-content {
2847
+ display: none;
2848
+ }
2849
+
2850
+ & > .stldocs-expander-summary-icon {
2851
+ & > :first-child {
2852
+ display: none;
2853
+ }
2854
+
2855
+ & > :last-child {
2856
+ display: inline;
2857
+ }
2858
+ }
2859
+ }
2860
+
2861
+ & > .stldocs-expander-content {
2862
+ margin-left: 10px;
2863
+ line-height: 150%;
2864
+ }
2865
+ }
2866
+ }
2867
+ }
2868
+
2869
+ .stldocs-root .stldocs-search-form {
2870
+ display: flex;
2871
+ flex-direction: column;
2872
+
2873
+ .stldocs-search-filter {
2874
+ margin-top: 0.5rem;
2875
+ display: flex;
2876
+ gap: 0.5rem;
2877
+
2878
+ .stl-ui-button {
2879
+ flex: 1 1 auto;
2880
+ padding: 0;
2881
+ display: flex;
2882
+ gap: 0.5em;
2883
+
2884
+ .stldocs-search-filter-count {
2885
+ font-size: 0.75rem;
2886
+ background-color: var(--stldocs-color-selected);
2887
+ border-radius: 100vmax;
2888
+ padding: 0 0.35rem;
2889
+ line-height: 1.5;
2890
+ font-variant-numeric: tabular-nums;
2891
+ }
2892
+
2893
+ svg {
2894
+ flex: 0 0 auto;
2895
+ }
2896
+ }
2897
+
2898
+ @media not (min-width: 50rem) {
2899
+ svg {
2900
+ display: block;
2901
+ }
2902
+ .stldocs-search-filter-label,
2903
+ .stldocs-search-filter-count {
2904
+ display: none;
2905
+ }
2906
+ }
2907
+ }
2908
+
2909
+ .stldocs-search-result {
2910
+ display: flex;
2911
+ flex-direction: column;
2912
+ gap: 0.5rem;
2913
+ cursor: pointer;
2914
+ margin: 0.5rem 0;
2915
+ padding: 0.5rem 0.8rem;
2916
+
2917
+ mark {
2918
+ color: var(--stl-color-foreground);
2919
+ background-color: var(--stl-color-text-selection-background);
2920
+ box-shadow: inset 0 -1px rgb(from var(--stl-color-text-selection-background) r g b / 1);
2921
+ }
2922
+
2923
+ &[data-stldocs-search-result='resource'] {
2924
+ .stldocs-search-result-resource-info {
2925
+ display: flex;
2926
+ gap: 0.5rem;
2927
+
2928
+ .stldocs-search-result-resource-title {
2929
+ font-weight: 600;
2930
+ }
2931
+
2932
+ .stldocs-search-result-resource-path {
2933
+ font-family: var(--stl-typography-font-mono);
2934
+ color: var(--stl-color-foreground);
2935
+ overflow: hidden;
2936
+ text-overflow: ellipsis;
2937
+ white-space: nowrap;
2938
+ }
2939
+ }
2940
+ }
2941
+
2942
+ &[data-stldocs-search-result='http_method'] {
2943
+ h3.stldocs-method-title {
2944
+ font-size: 1.2rem;
2945
+ }
2946
+
2947
+ .stldocs-method-header {
2948
+ display: flex;
2949
+ flex-direction: column;
2950
+ gap: 0.5rem;
2951
+
2952
+ .stldocs-method-signature {
2953
+ font-family: var(--stl-typography-font-mono);
2954
+ color: var(--stl-color-foreground);
2955
+ white-space: pre-wrap;
2956
+ word-break: break-word;
2957
+
2958
+ .stldocs-text-identifier {
2959
+ color: var(--stl-color-foreground);
2960
+ }
2961
+ }
2962
+
2963
+ .stldocs-method-route {
2964
+ font-size: 0.8rem;
2965
+
2966
+ .stldocs-method-route-endpoint {
2967
+ font-family: var(--stl-typography-font-mono);
2968
+ color: var(--stl-color-foreground-muted);
2969
+ }
2970
+ }
2971
+ }
2972
+
2973
+ .stldocs-method-description {
2974
+ color: var(--stl-color-foreground);
2975
+ }
2976
+ }
2977
+
2978
+ &[data-stldocs-search-result='property'] {
2979
+ .stldocs-property-info {
2980
+ display: flex;
2981
+ flex-direction: column;
2982
+ gap: 0.5rem;
2983
+ }
2984
+
2985
+ .stldocs-property-header {
2986
+ display: flex;
2987
+ gap: 0.5rem;
2988
+
2989
+ .stldocs-property-name {
2990
+ font-family: var(--stl-typography-font-mono);
2991
+ }
2992
+
2993
+ .stldocs-property-typename {
2994
+ color: var(--stl-color-foreground-muted);
2995
+ }
2996
+ }
2997
+
2998
+ .stldocs-property-description {
2999
+ color: var(--stl-color-foreground);
3000
+ }
3001
+ }
3002
+
3003
+ &[data-stldocs-search-result='model'] {
3004
+ .stldocs-property-info {
3005
+ display: flex;
3006
+ flex-direction: column;
3007
+ gap: 0.5rem;
3008
+
3009
+ .stldocs-property-type {
3010
+ font-family: var(--stl-typography-font-mono);
3011
+ color: var(--stl-color-foreground);
3012
+ }
3013
+ }
3014
+ }
3015
+
3016
+ &[data-stldocs-search-result='guide'] {
3017
+ .stldocs-search-result-guide-title {
3018
+ font-size: 1.2rem;
3019
+ }
3020
+
3021
+ .stldocs-search-result-guide-excerpt {
3022
+ color: var(--stl-color-foreground);
3023
+ }
3024
+
3025
+ .stldocs-search-breadcrumb-item {
3026
+ text-transform: capitalize;
3027
+ }
3028
+ }
3029
+ }
3030
+
3031
+ .stldocs-search-breadcrumb {
3032
+ display: flex;
3033
+ gap: 0.5rem;
3034
+ font-size: 0.8rem;
3035
+ overflow: hidden;
3036
+ text-overflow: ellipsis;
3037
+ white-space: nowrap;
3038
+
3039
+ .stldocs-search-breadcrumb-item {
3040
+ color: var(--stl-color-foreground-muted);
3041
+ }
3042
+
3043
+ .stldocs-icon {
3044
+ margin-top: auto;
3045
+ margin-bottom: auto;
3046
+ }
3047
+ }
3048
+
3049
+ .stldocs-search-disabled-state-container {
3050
+ margin: auto;
3051
+ text-align: center;
3052
+ }
3053
+ }
3054
+
3055
+ .stldocs-root .stldocs-search-modal {
3056
+ height: calc(100svh - var(--sl-nav-height));
3057
+ width: 100%;
3058
+ overflow: hidden;
3059
+ display: none;
3060
+ padding: 1rem 1rem 0;
3061
+ inset: 0;
3062
+ background-color: var(--stl-color-background);
3063
+ color: var(--stl-color-foreground);
3064
+ gap: 0.5rem;
3065
+ border: none;
3066
+
3067
+ &:popover-open,
3068
+ &[data-stldocs-modal-open='true'] {
3069
+ display: flex;
3070
+ flex-direction: column;
3071
+ position: fixed;
3072
+ top: var(--sl-nav-height);
3073
+ }
3074
+
3075
+ .stldocs-search-form {
3076
+ height: 100%;
3077
+ width: 100%;
3078
+
3079
+ .stldocs-listview {
3080
+ margin: 0.8rem 0 0;
3081
+ height: 100%;
3082
+ padding-bottom: 1rem;
3083
+ }
3084
+ }
3085
+
3086
+ .stldocs-search-modal-close-button {
3087
+ display: flex;
3088
+ justify-content: flex-end;
3089
+ }
3090
+
3091
+ &::backdrop {
3092
+ background-color: var(--stldocs-color-backdrop-overlay);
3093
+ -webkit-backdrop-filter: blur(0.25rem);
3094
+ backdrop-filter: blur(0.25rem);
3095
+ top: var(--sl-nav-height);
3096
+ }
3097
+ }
3098
+
3099
+ @keyframes stldocs-spinner-rotate {
3100
+ 100% {
3101
+ transform: rotate(360deg);
3102
+ }
3103
+ }
3104
+
3105
+ @media (min-width: 50rem) {
3106
+ .stldocs-root {
3107
+ .stldocs-search-modal {
3108
+ height: 100%;
3109
+ width: 1024px;
3110
+ max-width: calc(100% - 4rem);
3111
+ max-height: 80vh;
3112
+ margin: 3rem auto;
3113
+ border: 1px solid var(--stl-color-border);
3114
+ /* nest with input that has --stl-ui-layout-border-radius-sml */
3115
+ border-radius: calc(var(--stl-ui-layout-border-radius-sml) + 0.9rem);
3116
+
3117
+ .stldocs-search-modal-close-button {
3118
+ display: none;
3119
+ }
3120
+
3121
+ &:popover-open,
3122
+ &[data-stldocs-modal-open='true'] {
3123
+ top: 0;
3124
+ }
3125
+
3126
+ &::backdrop {
3127
+ top: 0;
3128
+ }
3129
+ }
3130
+ }
3131
+ }
3132
+
3133
+ /* For standalone usage of docs-ui */
3134
+
3135
+ /*
3136
+ * TODO: replace with real import once rolldown css support matures further
3137
+ * This import gets bundled so this import will should need to be resolved at runtime
3138
+ */
3139
+
3140
+