@stainless-api/docs 0.1.0-beta.0

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 (119) hide show
  1. package/.env.example +1 -0
  2. package/CHANGELOG.md +13 -0
  3. package/README.md +11 -0
  4. package/components/variables.css +139 -0
  5. package/eslint.config.js +10 -0
  6. package/package.json +74 -0
  7. package/plugin/assets/fonts/geist/OFL.txt +93 -0
  8. package/plugin/assets/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
  9. package/plugin/assets/fonts/geist/geist-italic-latin.woff2 +0 -0
  10. package/plugin/assets/fonts/geist/geist-latin-ext.woff2 +0 -0
  11. package/plugin/assets/fonts/geist/geist-latin.woff2 +0 -0
  12. package/plugin/assets/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
  13. package/plugin/assets/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
  14. package/plugin/assets/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
  15. package/plugin/assets/fonts/geist/geist-mono-latin.woff2 +0 -0
  16. package/plugin/assets/languages/curl.svg +10 -0
  17. package/plugin/assets/languages/go.svg +4 -0
  18. package/plugin/assets/languages/java.svg +7 -0
  19. package/plugin/assets/languages/kotlin.svg +10 -0
  20. package/plugin/assets/languages/powershell.svg +3 -0
  21. package/plugin/assets/languages/python.svg +19 -0
  22. package/plugin/assets/languages/ruby.svg +125 -0
  23. package/plugin/assets/languages/terraform.svg +5 -0
  24. package/plugin/assets/languages/typescript.svg +11 -0
  25. package/plugin/assets/stainless-logo-dark.png +0 -0
  26. package/plugin/assets/stainless-logo.png +0 -0
  27. package/plugin/buildAlgoliaIndex.ts +72 -0
  28. package/plugin/cms/client.ts +62 -0
  29. package/plugin/cms/server.ts +268 -0
  30. package/plugin/cms/sidebar-builder.ts +420 -0
  31. package/plugin/cms/worker.ts +122 -0
  32. package/plugin/components/SDKSelect.astro +154 -0
  33. package/plugin/components/SnippetCode.tsx +212 -0
  34. package/plugin/components/search/Search.astro +6 -0
  35. package/plugin/components/search/SearchAlgolia.astro +87 -0
  36. package/plugin/components/search/SearchIsland.tsx +100 -0
  37. package/plugin/generateAPIReferenceLink.ts +71 -0
  38. package/plugin/globalJs/ai-dropdown.ts +57 -0
  39. package/plugin/globalJs/code-snippets.ts +87 -0
  40. package/plugin/globalJs/copy.ts +37 -0
  41. package/plugin/globalJs/navigation.ts +81 -0
  42. package/plugin/globalJs/tooltip.ts +32 -0
  43. package/plugin/helpers/getPageLoadEvent.ts +8 -0
  44. package/plugin/index.ts +308 -0
  45. package/plugin/languages.ts +67 -0
  46. package/plugin/loadPluginConfig.ts +273 -0
  47. package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +5 -0
  48. package/plugin/middlewareBuilder/stlStarlightMiddleware.ts +5 -0
  49. package/plugin/react/Routing.tsx +435 -0
  50. package/plugin/referencePlaceholderUtils.ts +82 -0
  51. package/plugin/replaceSidebarPlaceholderMiddleware.ts +50 -0
  52. package/plugin/routes/Docs.astro +171 -0
  53. package/plugin/routes/DocsStatic.astro +14 -0
  54. package/plugin/routes/Overview.astro +67 -0
  55. package/plugin/routes/markdown.ts +58 -0
  56. package/plugin/vendor/preview.worker.docs.js +21657 -0
  57. package/plugin/vendor/templates/go.md +314 -0
  58. package/plugin/vendor/templates/java.md +87 -0
  59. package/plugin/vendor/templates/kotlin.md +87 -0
  60. package/plugin/vendor/templates/node.md +233 -0
  61. package/plugin/vendor/templates/python.md +249 -0
  62. package/plugin/vendor/templates/ruby.md +145 -0
  63. package/plugin/vendor/templates/terraform.md +60 -0
  64. package/plugin/vendor/templates/typescript.md +317 -0
  65. package/scripts/vendor_deps.ts +50 -0
  66. package/shared/virtualModule.ts +7 -0
  67. package/stl-docs/components/APIReferenceAIDropdown.tsx +86 -0
  68. package/stl-docs/components/ClientRouterHead.astro +41 -0
  69. package/stl-docs/components/Header.astro +91 -0
  70. package/stl-docs/components/Sidebar.astro +11 -0
  71. package/stl-docs/components/ThemeSelect.astro +225 -0
  72. package/stl-docs/components/content-panel/ContentBreadcrumbs.tsx +84 -0
  73. package/stl-docs/components/content-panel/ContentPanel.astro +72 -0
  74. package/stl-docs/components/content-panel/ProseAIDropdown.tsx +64 -0
  75. package/stl-docs/components/headers/DefaultHeader.astro +36 -0
  76. package/stl-docs/components/headers/HeaderLinks.astro +16 -0
  77. package/stl-docs/components/headers/SplashMobileMenuToggle.astro +49 -0
  78. package/stl-docs/components/headers/StackedHeader.astro +75 -0
  79. package/stl-docs/components/mintlify-compat/Accordion.astro +46 -0
  80. package/stl-docs/components/mintlify-compat/AccordionGroup.astro +25 -0
  81. package/stl-docs/components/mintlify-compat/Card.tsx +32 -0
  82. package/stl-docs/components/mintlify-compat/Columns.astro +66 -0
  83. package/stl-docs/components/mintlify-compat/Frame.astro +37 -0
  84. package/stl-docs/components/mintlify-compat/Step.astro +58 -0
  85. package/stl-docs/components/mintlify-compat/Steps.astro +17 -0
  86. package/stl-docs/components/mintlify-compat/Tab.astro +13 -0
  87. package/stl-docs/components/mintlify-compat/Tabs.astro +7 -0
  88. package/stl-docs/components/mintlify-compat/callouts/Callout.astro +7 -0
  89. package/stl-docs/components/mintlify-compat/callouts/Check.astro +7 -0
  90. package/stl-docs/components/mintlify-compat/callouts/Danger.astro +7 -0
  91. package/stl-docs/components/mintlify-compat/callouts/Info.astro +7 -0
  92. package/stl-docs/components/mintlify-compat/callouts/Note.astro +7 -0
  93. package/stl-docs/components/mintlify-compat/callouts/Tip.astro +7 -0
  94. package/stl-docs/components/mintlify-compat/callouts/Warning.astro +7 -0
  95. package/stl-docs/components/mintlify-compat/callouts/index.ts +9 -0
  96. package/stl-docs/components/mintlify-compat/card.css +44 -0
  97. package/stl-docs/components/mintlify-compat/index.ts +15 -0
  98. package/stl-docs/components/nav-tabs/NavDropdown.astro +106 -0
  99. package/stl-docs/components/nav-tabs/NavTabs.astro +165 -0
  100. package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +62 -0
  101. package/stl-docs/components/nav-tabs/buildNavLinks.ts +14 -0
  102. package/stl-docs/index.ts +174 -0
  103. package/stl-docs/loadStlDocsConfig.ts +160 -0
  104. package/stl-docs/redirects.ts +33 -0
  105. package/stl-docs/tabsMiddleware.ts +183 -0
  106. package/styles/code.css +189 -0
  107. package/styles/fonts.css +68 -0
  108. package/styles/links.css +51 -0
  109. package/styles/mintlify-compat.css +1 -0
  110. package/styles/overrides.css +79 -0
  111. package/styles/page.css +76 -0
  112. package/styles/sdk_select.css +11 -0
  113. package/styles/search.css +85 -0
  114. package/styles/sidebar.css +168 -0
  115. package/styles/toc.css +42 -0
  116. package/styles/variables.css +18 -0
  117. package/theme.css +15 -0
  118. package/tsconfig.json +18 -0
  119. package/virtual-module.d.ts +43 -0
@@ -0,0 +1,189 @@
1
+ @layer stainless {
2
+ .expressive-code {
3
+ .frame {
4
+ --code-background: var(--sl-color-bg-inline-code);
5
+ }
6
+
7
+ figure.frame {
8
+ box-shadow: none;
9
+ }
10
+
11
+ figure,
12
+ pre {
13
+ border-radius: var(--sl-button-border-radius);
14
+ border-color: var(--sl-color-hairline);
15
+ }
16
+
17
+ .frame.has-title:not(.is-terminal),
18
+ .frame.is-terminal {
19
+ figcaption {
20
+ border-radius: var(--sl-button-border-radius) var(--sl-button-border-radius) 0 0;
21
+ border-color: var(--sl-color-hairline);
22
+ }
23
+
24
+ pre {
25
+ border-radius: 0 0 var(--sl-button-border-radius) var(--sl-button-border-radius);
26
+ border-color: var(--sl-color-hairline);
27
+ }
28
+ }
29
+
30
+ .frame.has-title:not(.is-terminal) {
31
+ figcaption span:first-child {
32
+ border-top-left-radius: var(--sl-button-border-radius);
33
+ }
34
+
35
+ .header::before {
36
+ border-color: var(--sl-color-hairline);
37
+ }
38
+
39
+ .title::after {
40
+ bottom: -1px;
41
+ top: unset;
42
+ }
43
+ }
44
+ }
45
+
46
+ .astro-code {
47
+ border-radius: var(--sl-button-border-radius);
48
+ border-color: var(--sl-color-hairline);
49
+ }
50
+
51
+ .stl-snippet-request-container {
52
+ position: relative;
53
+ }
54
+
55
+ .stl-snippet-expand-button {
56
+ display: none;
57
+
58
+ position: relative;
59
+ left: 50%;
60
+ transform: translateX(-50%);
61
+ bottom: 12px;
62
+ background-color: var(--stldocs-color-bg-inline-code);
63
+ cursor: pointer;
64
+ font-weight: 500;
65
+ line-height: 100%;
66
+ font-size: var(--stldocs-font-size-body-sm);
67
+ font-family: var(--stldocs-font);
68
+ padding: 4px 7px 4px 7px;
69
+ height: auto;
70
+ }
71
+
72
+ .stl-snippet-code-is-expanded {
73
+ .ellipsis {
74
+ display: none;
75
+ }
76
+ }
77
+
78
+ .stl-snippet-collapsible {
79
+ .stl-snippet-expand-button {
80
+ display: block;
81
+ margin-bottom: -23px;
82
+ /* Prevent clipping of the button with the container below */
83
+ z-index: 100;
84
+ }
85
+
86
+ .stl-snippet-code-is-collapsed {
87
+ .hidden {
88
+ display: none;
89
+ opacity: 0;
90
+ }
91
+
92
+ .leading-ws {
93
+ display: none;
94
+ }
95
+ }
96
+
97
+ .stl-snippet-code-is-expanded {
98
+ .ellipsis {
99
+ display: none;
100
+ }
101
+ }
102
+ }
103
+
104
+ .stldocs-root {
105
+ .stl-snippets-non-collapsible {
106
+ .shiki {
107
+ counter-reset: codeblock-line 0 !important;
108
+ }
109
+
110
+ .stldocs-snippet {
111
+ .hidden {
112
+ display: inline;
113
+ opacity: 1;
114
+ }
115
+
116
+ .leading-ws {
117
+ display: inline;
118
+ }
119
+
120
+ .ellipsis {
121
+ display: none;
122
+ }
123
+ }
124
+ }
125
+ }
126
+
127
+ .stl-snippet-dropdown-button-text {
128
+ font-weight: 500;
129
+ font-style: normal;
130
+ font-family: var(--stldocs-font);
131
+ line-height: 100%;
132
+ font-size: var(--sl-text-body-sm);
133
+ color: var(--sl-color-text);
134
+ text-transform: capitalize;
135
+
136
+ &.http {
137
+ text-transform: uppercase;
138
+ }
139
+ }
140
+
141
+ :root[data-theme='light'] {
142
+ .astro-code,
143
+ .astro-code span {
144
+ background-color: var(--sl-color-bg-inline-code) !important;
145
+ }
146
+
147
+ .stldocs-snippet-response-pane {
148
+ .shiki,
149
+ .shiki span,
150
+ .astro-code,
151
+ .astro-code span {
152
+ background-color: var(--sl-color-bg-inline-code) !important;
153
+ }
154
+ }
155
+ }
156
+
157
+ :root[data-theme='dark'] {
158
+ /*
159
+ Need to use important to override inline variables. This is the
160
+ recommended pattern in the shiki docs.
161
+
162
+ https://shiki.style/guide/dual-themes#query-based-dark-mode
163
+ */
164
+ .shiki,
165
+ .shiki span,
166
+ .astro-code,
167
+ .astro-code span {
168
+ color: var(--shiki-dark) !important;
169
+ background-color: var(--sl-color-bg) !important;
170
+ font-style: var(--shiki-dark-font-style) !important;
171
+ font-weight: var(--shiki-dark-font-weight) !important;
172
+ text-decoration: var(--shiki-dark-text-decoration) !important;
173
+ }
174
+
175
+ .astro-code,
176
+ .astro-code span {
177
+ background-color: var(--sl-color-bg-inline-code) !important;
178
+ }
179
+
180
+ .stldocs-snippet-response-pane {
181
+ .shiki,
182
+ .shiki span,
183
+ .astro-code,
184
+ .astro-code span {
185
+ background-color: var(--sl-color-bg-inline-code) !important;
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,68 @@
1
+ /* Geist */
2
+ @font-face {
3
+ font-family: 'Geist';
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 100 900;
7
+ src: url(../plugin/assets/fonts/geist/geist-latin.woff2) format('woff2-variations');
8
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
9
+ }
10
+ @font-face {
11
+ font-family: 'Geist';
12
+ font-style: italic;
13
+ font-display: swap;
14
+ font-weight: 100 900;
15
+ src: url(../plugin/assets/fonts/geist/geist-italic-latin.woff2) format('woff2-variations');
16
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
17
+ }
18
+ @font-face {
19
+ font-family: 'Geist';
20
+ font-style: normal;
21
+ font-display: swap;
22
+ font-weight: 100 900;
23
+ src: url(../plugin/assets/fonts/geist/geist-latin-ext.woff2) format('woff2-variations');
24
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
25
+ }
26
+ @font-face {
27
+ font-family: 'Geist';
28
+ font-style: italic;
29
+ font-display: swap;
30
+ font-weight: 100 900;
31
+ src: url(../plugin/assets/fonts/geist/geist-italic-latin-ext.woff2) format('woff2-variations');
32
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
33
+ }
34
+
35
+
36
+ /* Geist Mono */
37
+ @font-face {
38
+ font-family: 'Geist Mono';
39
+ font-style: normal;
40
+ font-display: swap;
41
+ font-weight: 100 900;
42
+ src: url(../plugin/assets/fonts/geist/geist-mono-latin.woff2) format('woff2-variations');
43
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
44
+ }
45
+ @font-face {
46
+ font-family: 'Geist Mono';
47
+ font-style: italic;
48
+ font-display: swap;
49
+ font-weight: 100 900;
50
+ src: url(../plugin/assets/fonts/geist/geist-mono-italic-latin.woff2) format('woff2-variations');
51
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
52
+ }
53
+ @font-face {
54
+ font-family: 'Geist Mono';
55
+ font-style: normal;
56
+ font-display: swap;
57
+ font-weight: 100 900;
58
+ src: url(../plugin/assets/fonts/geist/geist-mono-latin-ext.woff2) format('woff2-variations');
59
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
60
+ }
61
+ @font-face {
62
+ font-family: 'Geist Mono';
63
+ font-style: italic;
64
+ font-display: swap;
65
+ font-weight: 100 900;
66
+ src: url(../plugin/assets/fonts/geist/geist-mono-italic-latin-ext.woff2) format('woff2-variations');
67
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
68
+ }
@@ -0,0 +1,51 @@
1
+ @layer stainless {
2
+ .sl-link-card {
3
+ box-shadow: none;
4
+ border-radius: var(--sl-button-border-radius);
5
+ padding: 1.5rem;
6
+ margin-top: 16px;
7
+ }
8
+
9
+ .sl-link-card:hover {
10
+ transition: 0.3s;
11
+ border: 1px solid var(--sl-color-accent-high);
12
+ background-color: var(--sl-color-accent-low);
13
+ }
14
+
15
+ .pagination-links {
16
+ margin-bottom: 2rem;
17
+
18
+ > a {
19
+ border-radius: var(--sl-button-border-radius);
20
+ border: 1px solid transparent;
21
+ box-shadow: none;
22
+ max-width: 90%;
23
+ text-decoration: none;
24
+
25
+ svg {
26
+ margin-top: 0;
27
+ transform: translateY(6px);
28
+ }
29
+ }
30
+
31
+ > a:hover {
32
+ transition: 0.3s;
33
+ border: 1px solid var(--sl-color-accent-high);
34
+ background-color: var(--sl-color-accent-low);
35
+ box-shadow: none;
36
+ }
37
+
38
+ /* if only one pagination direction */
39
+ > a:first-child:nth-last-child(1) {
40
+ max-width: 45%;
41
+ }
42
+
43
+ > a[rel='next'] {
44
+ margin-left: auto;
45
+ }
46
+
47
+ > a[rel='prev'] {
48
+ margin-right: auto;
49
+ }
50
+ }
51
+ }
@@ -0,0 +1 @@
1
+ @import '../stl-docs/components/mintlify-compat/card.css';
@@ -0,0 +1,79 @@
1
+ @layer stainless {
2
+ html {
3
+ font-size: 16px;
4
+ }
5
+
6
+ .site-title {
7
+ color: var(--sl-color-white);
8
+ max-width: 144px;
9
+
10
+ img {
11
+ height: 32px;
12
+ width: auto;
13
+ }
14
+ }
15
+
16
+ /* Hide the text in the theme select dropdown */
17
+ starlight-theme-select select {
18
+ width: 0;
19
+ overflow: hidden;
20
+ }
21
+
22
+ .custom-select-wrapper select,
23
+ .stldocs-button-secondary {
24
+ background-color: var(--sl-color-bg-ui);
25
+ border: 1px solid var(--sl-color-hairline);
26
+ border-radius: var(--sl-button-border-radius);
27
+
28
+ &:hover {
29
+ border-color: var(--sl-color-hairline-shade);
30
+ }
31
+ }
32
+
33
+ .content-panel {
34
+ border-top: 0;
35
+ }
36
+
37
+ starlight-menu-button button {
38
+ box-shadow: none;
39
+ background-color: var(--sl-color-bg-ui);
40
+ border: 1px solid var(--sl-color-hairline);
41
+ border-radius: var(--sl-button-border-radius);
42
+ height: var(--sl-button-size);
43
+ width: var(--sl-button-size);
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+
48
+ &:hover {
49
+ border-color: var(--sl-color-hairline-shade);
50
+ }
51
+ }
52
+
53
+ mobile-starlight-toc {
54
+ nav {
55
+ background-color: var(--sl-color-bg);
56
+ }
57
+
58
+ summary {
59
+ padding: 2rem 1rem;
60
+ border-bottom-color: var(--sl-color-hairline-light);
61
+ }
62
+ }
63
+
64
+ @media (min-width: 50rem) {
65
+ starlight-menu-button button {
66
+ display: none;
67
+ }
68
+
69
+ mobile-starlight-toc {
70
+ nav {
71
+ inset-inline-start: calc(var(--sl-content-inline-start, 0));
72
+ }
73
+
74
+ summary {
75
+ padding: 2rem 2rem;
76
+ }
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,76 @@
1
+ /* Styles for supporting a max-width layout */
2
+ @layer stainless {
3
+ .page {
4
+ position: relative;
5
+ max-width: var(--sl-page-max-width);
6
+ margin: 0 auto;
7
+
8
+ .sidebar-pane {
9
+ left: auto;
10
+ }
11
+
12
+ > header {
13
+ .stl-secondary-nav-tabs,
14
+ .header {
15
+ max-width: var(--sl-page-max-width);
16
+ margin: 0 auto;
17
+ }
18
+ }
19
+
20
+ .right-sidebar {
21
+ border-inline-start: unset;
22
+ }
23
+
24
+ .mobile-preferences {
25
+ margin-top: 1rem;
26
+ }
27
+ }
28
+
29
+ @media (min-width: 50rem) {
30
+ .page {
31
+ padding-left: var(--sl-sidebar-pad-x);
32
+ padding-right: var(--sl-sidebar-pad-x);
33
+
34
+ > header {
35
+ .header,
36
+ .stl-secondary-nav-tabs {
37
+ padding: 0 1.5rem;
38
+ }
39
+ }
40
+ }
41
+
42
+ .header,
43
+ .header {
44
+ padding-inline-start: 0;
45
+ padding-inline-end: 0;
46
+ }
47
+
48
+ mobile-starlight-toc nav {
49
+ inset-inline-start: calc(var(--sl-content-inline-start, 0) + var(--sl-sidebar-pad-x));
50
+ }
51
+ .sidebar-content {
52
+ padding-left: 0;
53
+ }
54
+ }
55
+
56
+ .stl-content-breadcrumbs {
57
+ .stldocs-breadcrumbs {
58
+ padding-left: 0;
59
+ }
60
+ }
61
+
62
+ .stl-page-nav-container {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: space-between;
66
+ gap: 1rem;
67
+ padding: 1rem 1rem 0;
68
+ flex-wrap: wrap;
69
+ }
70
+ }
71
+
72
+ @media (min-width: 50em) {
73
+ :root[data-has-sidebar] {
74
+ --sl-content-inline-start: calc(var(--sl-sidebar-width) + 1rem);
75
+ }
76
+ }
@@ -0,0 +1,11 @@
1
+ @layer stainless {
2
+ .stl-sdk-select-dropdown-menu {
3
+ min-width: 200px;
4
+ }
5
+
6
+ .stl-sdk-select {
7
+ .stldocs-icon.http path {
8
+ fill: var(--stldocs-color-text);
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,85 @@
1
+ @layer stainless {
2
+ /* Search input styles for Astro and Algolia */
3
+ site-search {
4
+ display: contents;
5
+
6
+ > astro-island > div {
7
+ position: absolute;
8
+ }
9
+
10
+ > button {
11
+ padding: var(--sl-button-padding-y) var(--sl-button-padding-x);
12
+ min-width: unset;
13
+ display: flex;
14
+ align-items: center;
15
+ gap: 0.5rem;
16
+ padding: 0;
17
+ width: var(--sl-button-size);
18
+ justify-content: center;
19
+ background-color: var(--sl-color-bg-ui);
20
+ border: 1px solid var(--sl-color-hairline);
21
+ border-radius: var(--sl-button-border-radius);
22
+ height: var(--sl-button-size);
23
+
24
+ &:hover {
25
+ border-color: var(--sl-color-hairline-shade);
26
+ }
27
+
28
+ span {
29
+ font-size: var(--sl-text-sm);
30
+ color: var(--sl-color-text-secondary);
31
+ line-height: 150%;
32
+ padding-left: var(--sl-button-icon-offset);
33
+ padding-right: var(--sl-button-icon-offset);
34
+ }
35
+
36
+ > svg {
37
+ width: var(--sl-text-sm);
38
+ height: var(--sl-text-sm);
39
+ }
40
+
41
+ &.stldocs-button {
42
+ padding: 0;
43
+ }
44
+ }
45
+
46
+ button > kbd {
47
+ border-radius: 0.25rem;
48
+ font-size: var(--sl-text-2xs);
49
+ gap: 0.25em;
50
+ padding-inline: 0.375rem;
51
+ background-color: var(--sl-color-gray-6);
52
+ margin-right: -0.3rem;
53
+ }
54
+
55
+ kbd {
56
+ font-family: var(--__sl-font);
57
+ color: var(--sl-color-text);
58
+ }
59
+ }
60
+
61
+ @media (min-width: 50rem) {
62
+ site-search {
63
+ > button {
64
+ border-radius: var(--sl-button-border-radius);
65
+ padding-inline-start: var(--sl-button-padding-x);
66
+ padding-inline-end: var(--sl-button-padding-x);
67
+ width: 100%;
68
+ max-width: 30rem;
69
+ justify-content: start;
70
+
71
+ &.stldocs-button {
72
+ padding-inline-start: var(--sl-button-padding-x);
73
+ padding-inline-end: var(--sl-button-padding-x);
74
+ }
75
+
76
+ > :last-child {
77
+ margin-inline-start: auto;
78
+ }
79
+ > svg {
80
+ margin-left: calc(-1 * var(--sl-button-icon-offset));
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }