@stainless-api/docs 0.1.0-beta.9 → 0.1.0-beta.90
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.
- package/CHANGELOG.md +748 -0
- package/eslint-suppressions.json +32 -0
- package/locals.d.ts +17 -0
- package/package.json +49 -40
- package/playground-virtual-modules.d.ts +96 -0
- package/plugin/assets/languages/cli.svg +14 -0
- package/plugin/assets/languages/csharp.svg +1 -0
- package/plugin/buildAlgoliaIndex.ts +38 -11
- package/plugin/components/MethodDescription.tsx +54 -0
- package/plugin/components/RequestBuilder/ParamEditor.tsx +55 -0
- package/plugin/components/RequestBuilder/SnippetStainlessIsland.tsx +107 -0
- package/plugin/components/RequestBuilder/index.tsx +31 -0
- package/plugin/components/RequestBuilder/props.ts +9 -0
- package/plugin/components/RequestBuilder/spec-helpers.ts +50 -0
- package/plugin/components/RequestBuilder/styles.css +67 -0
- package/plugin/components/SDKSelect.astro +20 -104
- package/plugin/components/SnippetCode.tsx +111 -66
- package/plugin/components/StainlessIslands.tsx +126 -0
- package/plugin/components/search/SearchAlgolia.astro +45 -28
- package/plugin/components/search/SearchIsland.tsx +47 -29
- package/plugin/generateAPIReferenceLink.ts +2 -2
- package/plugin/globalJs/ai-dropdown-options.ts +243 -0
- package/plugin/globalJs/code-snippets.ts +15 -8
- package/plugin/globalJs/copy.ts +94 -17
- package/plugin/globalJs/create-playground.shim.ts +3 -0
- package/plugin/globalJs/method-descriptions.ts +33 -0
- package/plugin/globalJs/navigation.ts +10 -29
- package/plugin/globalJs/playground-data.shim.ts +1 -0
- package/plugin/globalJs/playground-data.ts +14 -0
- package/plugin/helpers/generateDocsRoutes.ts +27 -0
- package/plugin/helpers/getDocsLanguages.ts +9 -0
- package/plugin/index.ts +292 -116
- package/plugin/languages.ts +7 -2
- package/plugin/loadPluginConfig.ts +155 -79
- package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +1 -1
- package/plugin/react/Routing.tsx +204 -132
- package/plugin/referencePlaceholderUtils.ts +18 -15
- package/plugin/replaceSidebarPlaceholderMiddleware.ts +38 -34
- package/plugin/routes/Docs.astro +65 -117
- package/plugin/routes/DocsStatic.astro +7 -4
- package/plugin/routes/Overview.astro +20 -24
- package/plugin/routes/markdown.ts +12 -11
- package/plugin/{cms → sidebar-utils}/sidebar-builder.ts +30 -54
- package/plugin/specs/fetchSpecSSR.ts +21 -0
- package/plugin/specs/generateSpec.ts +50 -0
- package/plugin/specs/index.ts +238 -0
- package/plugin/{cms → specs}/worker.ts +82 -5
- package/plugin/vendor/preview.worker.docs.js +20928 -17830
- package/plugin/vendor/templates/go.md +1 -1
- package/plugin/vendor/templates/python.md +1 -1
- package/resolveSrcFile.ts +10 -0
- package/scripts/vendor_deps.ts +5 -5
- package/shared/getProsePages.ts +42 -0
- package/shared/getSharedLogger.ts +15 -0
- package/shared/terminalUtils.ts +3 -0
- package/shared/virtualModule.ts +54 -1
- package/src/content.config.ts +9 -0
- package/stl-docs/components/AIDropdown.tsx +63 -0
- package/stl-docs/components/AiChatIsland.tsx +14 -0
- package/stl-docs/components/{content-panel/ContentBreadcrumbs.tsx → ContentBreadcrumbs.tsx} +2 -2
- package/stl-docs/components/Head.astro +20 -0
- package/stl-docs/components/Header.astro +6 -8
- package/stl-docs/components/PageFrame.astro +18 -0
- package/stl-docs/components/PageTitle.astro +82 -0
- package/stl-docs/components/TableOfContents.astro +34 -0
- package/stl-docs/components/ThemeProvider.astro +36 -0
- package/stl-docs/components/ThemeSelect.astro +84 -139
- package/stl-docs/components/content-panel/ContentPanel.astro +16 -46
- package/stl-docs/components/headers/SplashMobileMenuToggle.astro +17 -1
- package/stl-docs/components/headers/StackedHeader.astro +29 -24
- package/stl-docs/components/icons/chat-gpt.tsx +2 -2
- package/stl-docs/components/icons/cursor.tsx +10 -0
- package/stl-docs/components/icons/gemini.tsx +19 -0
- package/stl-docs/components/icons/markdown.tsx +1 -1
- package/stl-docs/components/index.ts +1 -0
- package/stl-docs/components/mintlify-compat/Accordion.astro +7 -5
- package/stl-docs/components/mintlify-compat/AccordionGroup.astro +7 -3
- package/stl-docs/components/mintlify-compat/Columns.astro +40 -42
- package/stl-docs/components/mintlify-compat/Frame.astro +16 -18
- package/stl-docs/components/mintlify-compat/callouts/Callout.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Check.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Danger.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Info.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Note.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Tip.astro +1 -1
- package/stl-docs/components/mintlify-compat/callouts/Warning.astro +1 -1
- package/stl-docs/components/mintlify-compat/card.css +33 -35
- package/stl-docs/components/mintlify-compat/index.ts +2 -4
- package/stl-docs/components/nav-tabs/NavDropdown.astro +31 -70
- package/stl-docs/components/nav-tabs/NavTabs.astro +78 -80
- package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +15 -8
- package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -2
- package/stl-docs/components/pagination/HomeLink.astro +10 -0
- package/stl-docs/components/pagination/Pagination.astro +175 -0
- package/stl-docs/components/pagination/PaginationLinkEmphasized.astro +22 -0
- package/stl-docs/components/pagination/PaginationLinkQuiet.astro +13 -0
- package/stl-docs/components/pagination/util.ts +71 -0
- package/stl-docs/components/scripts.ts +1 -0
- package/stl-docs/components/sidebars/BaseSidebar.astro +9 -2
- package/stl-docs/components/sidebars/SidebarWithComponents.tsx +10 -0
- package/stl-docs/components/sidebars/convertAstroSidebarToStl.tsx +62 -0
- package/stl-docs/disableCalloutSyntax.ts +36 -0
- package/stl-docs/fonts.ts +186 -0
- package/stl-docs/index.ts +153 -50
- package/stl-docs/loadStlDocsConfig.ts +51 -7
- package/stl-docs/proseMarkdown/proseMarkdownIntegration.ts +61 -0
- package/stl-docs/proseMarkdown/proseMarkdownMiddleware.ts +41 -0
- package/stl-docs/proseMarkdown/toMarkdown.ts +158 -0
- package/stl-docs/proseSearchIndexing.ts +606 -0
- package/stl-docs/tabsMiddleware.ts +13 -4
- package/styles/code.css +128 -136
- package/styles/links.css +11 -48
- package/styles/method-descriptions.css +36 -0
- package/styles/overrides.css +49 -57
- package/styles/page.css +100 -59
- package/styles/sdk_select.css +9 -7
- package/styles/search.css +57 -69
- package/styles/sidebar.css +26 -156
- package/styles/{variables.css → sl-variables.css} +3 -2
- package/styles/stldocs-variables.css +6 -0
- package/styles/toc.css +41 -34
- package/theme.css +11 -11
- package/tsconfig.json +2 -5
- package/virtual-module.d.ts +47 -7
- package/components/variables.css +0 -135
- package/plugin/cms/client.ts +0 -62
- package/plugin/cms/server.ts +0 -268
- package/plugin/globalJs/ai-dropdown.ts +0 -57
- package/stl-docs/components/APIReferenceAIDropdown.tsx +0 -58
- package/stl-docs/components/content-panel/ProseAIDropdown.tsx +0 -55
- package/stl-docs/components/mintlify-compat/Step.astro +0 -58
- package/stl-docs/components/mintlify-compat/Steps.astro +0 -17
- package/styles/fonts.css +0 -68
- /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
- /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0
package/styles/code.css
CHANGED
|
@@ -1,72 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
.expressive-code {
|
|
2
|
+
.frame {
|
|
3
|
+
--code-background: var(--stl-color-faint-background);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
figure.frame {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
}
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
figure,
|
|
11
|
+
pre {
|
|
12
|
+
border-radius: var(--sl-button-border-radius);
|
|
13
|
+
border-color: var(--stl-color-border);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.frame.has-title:not(.is-terminal),
|
|
17
|
+
.frame.is-terminal {
|
|
18
|
+
figcaption {
|
|
19
|
+
border-radius: var(--sl-button-border-radius) var(--sl-button-border-radius) 0 0;
|
|
20
|
+
border-color: var(--stl-color-border);
|
|
9
21
|
}
|
|
10
22
|
|
|
11
|
-
figure,
|
|
12
23
|
pre {
|
|
13
|
-
border-radius: var(--sl-button-border-radius);
|
|
14
|
-
border-color: var(--
|
|
24
|
+
border-radius: 0 0 var(--sl-button-border-radius) var(--sl-button-border-radius);
|
|
25
|
+
border-color: var(--stl-color-border);
|
|
15
26
|
}
|
|
27
|
+
}
|
|
16
28
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
border-color: var(--sl-color-hairline);
|
|
22
|
-
}
|
|
29
|
+
.frame.has-title:not(.is-terminal) {
|
|
30
|
+
figcaption span:first-child {
|
|
31
|
+
border-top-left-radius: var(--sl-button-border-radius);
|
|
32
|
+
}
|
|
23
33
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
border-color: var(--sl-color-hairline);
|
|
27
|
-
}
|
|
34
|
+
.header::before {
|
|
35
|
+
border-color: var(--stl-color-border);
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
.title::after {
|
|
39
|
+
bottom: -1px;
|
|
40
|
+
top: unset;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
34
44
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
.astro-code {
|
|
46
|
+
border-radius: var(--sl-button-border-radius);
|
|
47
|
+
border-color: var(--stl-color-border);
|
|
48
|
+
}
|
|
38
49
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
.stl-snippet-request-container {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.stl-snippet-expand-button {
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: 50%;
|
|
57
|
+
transform: translateX(-50%) translateY(-50%);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
height: auto;
|
|
60
|
+
z-index: 100;
|
|
61
|
+
|
|
62
|
+
&:not(.stl-snippet-collapsible .stl-snippet-expand-button) {
|
|
63
|
+
display: none;
|
|
44
64
|
}
|
|
45
65
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
66
|
+
&.stl-ui-button {
|
|
67
|
+
background-color: var(--stl-color-background);
|
|
68
|
+
background-image: linear-gradient(
|
|
69
|
+
to right,
|
|
70
|
+
var(--stl-color-ui-background),
|
|
71
|
+
var(--stl-color-ui-background)
|
|
72
|
+
);
|
|
49
73
|
}
|
|
50
74
|
|
|
51
|
-
|
|
52
|
-
|
|
75
|
+
&.stl-ui-button:hover {
|
|
76
|
+
background-color: var(--stl-color-background);
|
|
77
|
+
background-image: linear-gradient(
|
|
78
|
+
to right,
|
|
79
|
+
var(--stl-color-ui-background-hover),
|
|
80
|
+
var(--stl-color-ui-background-hover)
|
|
81
|
+
);
|
|
53
82
|
}
|
|
83
|
+
}
|
|
54
84
|
|
|
55
|
-
|
|
85
|
+
.stl-snippet-code-is-expanded {
|
|
86
|
+
.ellipsis {
|
|
56
87
|
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.stl-snippet-collapsible {
|
|
92
|
+
.stl-snippet-code-is-collapsed {
|
|
93
|
+
.hidden {
|
|
94
|
+
display: none;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
57
97
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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;
|
|
98
|
+
.leading-ws {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
70
101
|
}
|
|
71
102
|
|
|
72
103
|
.stl-snippet-code-is-expanded {
|
|
@@ -74,116 +105,77 @@
|
|
|
74
105
|
display: none;
|
|
75
106
|
}
|
|
76
107
|
}
|
|
108
|
+
}
|
|
77
109
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/* Prevent clipping of the button with the container below */
|
|
83
|
-
z-index: 100;
|
|
110
|
+
.stldocs-root {
|
|
111
|
+
.stl-snippets-non-collapsible {
|
|
112
|
+
.shiki {
|
|
113
|
+
counter-reset: codeblock-line 0 !important;
|
|
84
114
|
}
|
|
85
115
|
|
|
86
|
-
.
|
|
116
|
+
.stldocs-snippet {
|
|
87
117
|
.hidden {
|
|
88
|
-
display:
|
|
89
|
-
opacity:
|
|
118
|
+
display: inline;
|
|
119
|
+
opacity: 1;
|
|
90
120
|
}
|
|
91
121
|
|
|
92
122
|
.leading-ws {
|
|
93
|
-
display:
|
|
123
|
+
display: inline;
|
|
94
124
|
}
|
|
95
|
-
}
|
|
96
125
|
|
|
97
|
-
.stl-snippet-code-is-expanded {
|
|
98
126
|
.ellipsis {
|
|
99
127
|
display: none;
|
|
100
128
|
}
|
|
101
129
|
}
|
|
102
130
|
}
|
|
131
|
+
}
|
|
103
132
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
}
|
|
133
|
+
.stldocs-root .stl-snippet-dropdown-button-text,
|
|
134
|
+
.stl-snippet-dropdown-button-text {
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
font-style: normal;
|
|
137
|
+
font-family: var(--stl-typography-font);
|
|
138
|
+
line-height: 100%;
|
|
139
|
+
font-size: var(--stl-typography-scale-sm);
|
|
140
|
+
color: var(--stl-color-foreground);
|
|
141
|
+
}
|
|
146
142
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
143
|
+
.shiki,
|
|
144
|
+
.astro-code,
|
|
145
|
+
.stldocs-snippet-response-pane {
|
|
146
|
+
background-color: var(--shiki-background, var(--stl-color-faint-background)) !important;
|
|
147
|
+
.shiki,
|
|
148
|
+
.astro-code,
|
|
149
|
+
.stldocs-snippet-response-pane {
|
|
150
|
+
background-color: transparent !important;
|
|
155
151
|
}
|
|
152
|
+
}
|
|
156
153
|
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
:root[data-theme='dark'] {
|
|
155
|
+
/*
|
|
159
156
|
Need to use important to override inline variables. This is the
|
|
160
157
|
recommended pattern in the shiki docs.
|
|
161
158
|
|
|
162
159
|
https://shiki.style/guide/dual-themes#query-based-dark-mode
|
|
163
160
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
161
|
+
.shiki,
|
|
162
|
+
.shiki span,
|
|
163
|
+
.astro-code,
|
|
164
|
+
.astro-code span {
|
|
165
|
+
color: var(--shiki-dark) !important;
|
|
166
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
167
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
168
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
174
171
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
.stldocs-snippet .stldocs-snippet-footer.try-it-footer {
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
gap: 0.5rem;
|
|
179
176
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
.astro-code,
|
|
184
|
-
.astro-code span {
|
|
185
|
-
background-color: var(--sl-color-bg-inline-code) !important;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
177
|
+
.try-it-button,
|
|
178
|
+
.send-button {
|
|
179
|
+
width: 7rem;
|
|
188
180
|
}
|
|
189
181
|
}
|
package/styles/links.css
CHANGED
|
@@ -1,51 +1,14 @@
|
|
|
1
|
-
|
|
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
|
-
}
|
|
1
|
+
/* TODO: remove for real card component */
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
}
|
|
3
|
+
.sl-link-card {
|
|
4
|
+
box-shadow: none;
|
|
5
|
+
border-radius: var(--sl-button-border-radius);
|
|
6
|
+
padding: 1.5rem;
|
|
7
|
+
margin-top: 16px;
|
|
8
|
+
}
|
|
46
9
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
10
|
+
.sl-link-card:hover {
|
|
11
|
+
transition: 0.3s;
|
|
12
|
+
border: 1px solid var(--sl-color-accent-high);
|
|
13
|
+
background-color: var(--sl-color-accent-low);
|
|
51
14
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.stldocs-root {
|
|
2
|
+
.stl-method-description-overflow-wrapper {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
/* Minimum height to minimize layout shift */
|
|
7
|
+
min-height: 24px;
|
|
8
|
+
}
|
|
9
|
+
.stl-method-description {
|
|
10
|
+
.stldocs-method-description {
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
max-height: 170px;
|
|
13
|
+
transition: max-height 0.3s ease;
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
height: 3rem;
|
|
23
|
+
background: linear-gradient(to bottom, transparent, var(--stl-color-background));
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[data-collapsed='false'] {
|
|
28
|
+
max-height: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-collapsed='false']::after {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/styles/overrides.css
CHANGED
|
@@ -1,79 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
html {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
}
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
max-width: 144px;
|
|
5
|
+
.site-title {
|
|
6
|
+
color: var(--stl-color-foreground);
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
8
|
+
img {
|
|
9
|
+
height: 32px;
|
|
10
|
+
width: auto;
|
|
14
11
|
}
|
|
12
|
+
}
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
/* TODO: apply real button classes here */
|
|
15
|
+
starlight-menu-button button {
|
|
16
|
+
box-shadow: none;
|
|
17
|
+
background-color: var(--stl-color-ui-background);
|
|
18
|
+
border: 1px solid var(--stl-color-border);
|
|
19
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
20
|
+
height: 32px;
|
|
21
|
+
width: 32px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
border-radius: var(--sl-button-border-radius);
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: var(--stl-color-ui-background-hover);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
27
30
|
|
|
31
|
+
mobile-starlight-toc {
|
|
32
|
+
nav {
|
|
33
|
+
background-color: var(--stl-color-background);
|
|
34
|
+
}
|
|
35
|
+
.toggle {
|
|
36
|
+
background-color: var(--stl-color-ui-background);
|
|
37
|
+
border: 1px solid var(--stl-color-border);
|
|
38
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
28
39
|
&:hover {
|
|
29
|
-
|
|
40
|
+
background-color: var(--stl-color-ui-background-hover);
|
|
41
|
+
border-color: var(--stl-color-border); /* unchanged */
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
border-
|
|
44
|
+
.dropdown {
|
|
45
|
+
background-color: var(--stl-color-background);
|
|
46
|
+
border-color: var(--stl-color-border-faint);
|
|
47
|
+
}
|
|
48
|
+
summary {
|
|
49
|
+
padding: 2rem 1rem;
|
|
50
|
+
border-color: var(--stl-color-border-faint);
|
|
51
|
+
}
|
|
52
|
+
a {
|
|
53
|
+
border-color: var(--stl-color-border-faint);
|
|
35
54
|
}
|
|
55
|
+
}
|
|
36
56
|
|
|
57
|
+
@media (min-width: 50rem) {
|
|
37
58
|
starlight-menu-button button {
|
|
38
|
-
|
|
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
|
-
}
|
|
59
|
+
display: none;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
mobile-starlight-toc {
|
|
54
63
|
nav {
|
|
55
|
-
|
|
64
|
+
inset-inline-start: calc(var(--sl-content-inline-start, 0));
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
summary {
|
|
59
|
-
padding: 2rem
|
|
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
|
-
}
|
|
68
|
+
padding: 2rem 2rem;
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
}
|