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

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