@stainless-api/docs 0.1.0-beta.1 → 0.1.0-beta.11
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 +80 -0
- package/components/variables.css +0 -27
- package/package.json +6 -5
- package/plugin/components/SnippetCode.tsx +6 -3
- package/plugin/components/search/SearchAlgolia.astro +0 -7
- package/plugin/globalJs/navigation.ts +0 -1
- package/plugin/helpers/getPageLoadEvent.ts +1 -1
- package/plugin/index.ts +19 -0
- package/plugin/loadPluginConfig.ts +8 -0
- package/plugin/react/Routing.tsx +4 -3
- package/plugin/replaceSidebarPlaceholderMiddleware.ts +4 -0
- package/plugin/routes/Docs.astro +0 -8
- package/plugin/routes/Overview.astro +1 -8
- package/stl-docs/components/APIReferenceAIDropdown.tsx +40 -68
- package/stl-docs/components/Header.astro +1 -1
- package/stl-docs/components/ThemeSelect.astro +2 -0
- package/stl-docs/components/content-panel/ContentPanel.astro +11 -14
- package/stl-docs/components/content-panel/ProseAIDropdown.tsx +8 -17
- package/stl-docs/components/headers/DefaultHeader.astro +1 -1
- package/stl-docs/components/headers/HeaderLinks.astro +1 -1
- package/stl-docs/components/headers/StackedHeader.astro +2 -2
- package/stl-docs/components/icons/chat-gpt.tsx +17 -0
- package/stl-docs/components/icons/claude.tsx +10 -0
- package/stl-docs/components/icons/markdown.tsx +10 -0
- package/stl-docs/components/mintlify-compat/Accordion.astro +7 -38
- package/stl-docs/components/mintlify-compat/AccordionGroup.astro +9 -23
- 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/Step.astro +30 -32
- package/stl-docs/components/mintlify-compat/Steps.astro +8 -10
- package/stl-docs/components/mintlify-compat/callouts/Callout.astro +10 -3
- package/stl-docs/components/mintlify-compat/callouts/Check.astro +7 -3
- package/stl-docs/components/mintlify-compat/callouts/Danger.astro +7 -3
- package/stl-docs/components/mintlify-compat/callouts/Info.astro +7 -3
- package/stl-docs/components/mintlify-compat/callouts/Note.astro +7 -3
- package/stl-docs/components/mintlify-compat/callouts/Tip.astro +7 -3
- package/stl-docs/components/mintlify-compat/callouts/Warning.astro +7 -3
- package/stl-docs/components/mintlify-compat/card.css +33 -35
- package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +0 -1
- package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -3
- package/stl-docs/components/{Sidebar.astro → sidebars/BaseSidebar.astro} +2 -3
- package/stl-docs/components/sidebars/SDKSelectSidebar.astro +8 -0
- package/stl-docs/index.ts +17 -4
- package/stl-docs/loadStlDocsConfig.ts +3 -2
- package/stl-docs/tabsMiddleware.ts +2 -2
- package/styles/code.css +119 -126
- package/styles/links.css +37 -39
- package/styles/overrides.css +55 -57
- package/styles/page.css +53 -51
- package/styles/sdk_select.css +6 -7
- package/styles/search.css +65 -67
- package/styles/sidebar.css +194 -128
- package/styles/toc.css +37 -33
- package/theme.css +9 -1
- package/tsconfig.json +1 -1
- package/virtual-module.d.ts +3 -1
package/stl-docs/index.ts
CHANGED
|
@@ -40,14 +40,21 @@ function stainlessDocsStarlightIntegration(config: NormalizedStainlessDocsConfig
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
type ComponentOverrides = StarlightConfigDefined['components'];
|
|
43
|
+
const plugins = [...config.starlightCompat.plugins];
|
|
44
|
+
|
|
43
45
|
const componentOverrides: ComponentOverrides = {
|
|
44
|
-
|
|
45
|
-
Sidebar: '@stainless-api/docs/Sidebar',
|
|
46
|
+
Sidebar: '@stainless-api/docs/BaseSidebar',
|
|
46
47
|
Header: '@stainless-api/docs/Header',
|
|
47
48
|
ThemeSelect: '@stainless-api/docs/ThemeSelect',
|
|
48
49
|
ContentPanel: '@stainless-api/docs/ContentPanel',
|
|
49
50
|
};
|
|
50
51
|
|
|
52
|
+
if (config.apiReference !== null) {
|
|
53
|
+
componentOverrides.Sidebar = '@stainless-api/docs/SDKSelectSidebar';
|
|
54
|
+
componentOverrides.Search = '@stainless-api/docs/Search';
|
|
55
|
+
plugins.unshift(stainlessStarlight(config.apiReference));
|
|
56
|
+
}
|
|
57
|
+
|
|
51
58
|
// TODO: re-add once we figure out what to do with the client router
|
|
52
59
|
// if (config.enableClientRouter) {
|
|
53
60
|
// // logger.info(`Client router is enabled`);
|
|
@@ -94,12 +101,12 @@ function stainlessDocsStarlightIntegration(config: NormalizedStainlessDocsConfig
|
|
|
94
101
|
],
|
|
95
102
|
routeMiddleware: [...config.starlightCompat.routeMiddleware, '@stainless-api/docs/tabsMiddleware'],
|
|
96
103
|
customCss: ['@stainless-api/docs/theme', ...config.customCss],
|
|
97
|
-
plugins
|
|
104
|
+
plugins,
|
|
98
105
|
});
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
function stainlessDocsIntegration(config: NormalizedStainlessDocsConfig): AstroIntegration {
|
|
102
|
-
const virtualId = `virtual:stl-
|
|
109
|
+
const virtualId = `virtual:stl-docs-virtual-module`;
|
|
103
110
|
// The '\0' prefix tells Vite “this is a virtual module” and prevents it from being resolved again.
|
|
104
111
|
const resolvedId = `\0${virtualId}`;
|
|
105
112
|
let redirects: NormalizedRedirectConfig | null = null;
|
|
@@ -116,6 +123,10 @@ function stainlessDocsIntegration(config: NormalizedStainlessDocsConfig): AstroI
|
|
|
116
123
|
|
|
117
124
|
updateConfig({
|
|
118
125
|
vite: {
|
|
126
|
+
ssr: {
|
|
127
|
+
noExternal: ['@stainless-api/ui-primitives'],
|
|
128
|
+
},
|
|
129
|
+
optimizeDeps: { include: ['@stainless-api/ui-primitives'] },
|
|
119
130
|
plugins: [
|
|
120
131
|
{
|
|
121
132
|
name: 'stl-docs-vite',
|
|
@@ -132,6 +143,7 @@ function stainlessDocsIntegration(config: NormalizedStainlessDocsConfig): AstroI
|
|
|
132
143
|
HEADER_LINKS: config.header.links,
|
|
133
144
|
HEADER_LAYOUT: config.header.layout,
|
|
134
145
|
ENABLE_CLIENT_ROUTER: config.enableClientRouter,
|
|
146
|
+
INCLUDE_AI_DROPDOWN_OPTIONS: config.includeAIDropdownOptions,
|
|
135
147
|
});
|
|
136
148
|
}
|
|
137
149
|
},
|
|
@@ -166,6 +178,7 @@ export function stainlessDocs(config: StainlessDocsUserConfig) {
|
|
|
166
178
|
process.exit(1);
|
|
167
179
|
}
|
|
168
180
|
const normalizedConfig = normalizedConfigResult.config;
|
|
181
|
+
|
|
169
182
|
return [
|
|
170
183
|
react(),
|
|
171
184
|
stainlessDocsStarlightIntegration(normalizedConfig),
|
|
@@ -58,7 +58,7 @@ export type HeaderLink = {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export type StainlessDocsUserConfig = {
|
|
61
|
-
apiReference
|
|
61
|
+
apiReference?: StainlessStarlightUserConfig;
|
|
62
62
|
tabs?: Tabs;
|
|
63
63
|
header?: {
|
|
64
64
|
layout?: HeaderLayout;
|
|
@@ -126,8 +126,9 @@ function normalizeConfig(userConfig: StainlessDocsUserConfig) {
|
|
|
126
126
|
routeMiddleware: normalizeRouteMiddleware(userConfig),
|
|
127
127
|
},
|
|
128
128
|
enableClientRouter: userConfig.experimental?.enableClientRouter ?? false,
|
|
129
|
-
apiReference: userConfig.apiReference,
|
|
129
|
+
apiReference: userConfig.apiReference ?? null,
|
|
130
130
|
sidebar: userConfig.sidebar,
|
|
131
|
+
includeAIDropdownOptions: userConfig.apiReference?.includeAIDropdownOptions ?? false,
|
|
131
132
|
};
|
|
132
133
|
|
|
133
134
|
return configWithDefaults;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StarlightRouteData } from '@astrojs/starlight/route-data';
|
|
2
2
|
import { defineRouteMiddleware } from '@astrojs/starlight/route-data';
|
|
3
3
|
|
|
4
|
-
import { SPLIT_TABS_ENABLED, TABS } from 'virtual:stl-
|
|
4
|
+
import { SPLIT_TABS_ENABLED, TABS } from 'virtual:stl-docs-virtual-module';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
|
|
7
7
|
// this fn is loaded in the plugin via addRouteMiddleware
|
|
@@ -143,7 +143,7 @@ export const onRequest = defineRouteMiddleware(async (context) => {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
// We store the active tab index so we can use it in our nav tabs component
|
|
146
|
-
context.locals.starlightRoute.
|
|
146
|
+
context.locals.starlightRoute._stlDocs = {
|
|
147
147
|
activeTabIndex: activeTabIndex.index,
|
|
148
148
|
};
|
|
149
149
|
|
package/styles/code.css
CHANGED
|
@@ -1,72 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
.expressive-code {
|
|
2
|
+
.frame {
|
|
3
|
+
--code-background: var(--sl-color-bg-inline-code);
|
|
4
|
+
}
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
figure.frame {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
figure,
|
|
11
|
+
pre {
|
|
12
|
+
border-radius: var(--sl-button-border-radius);
|
|
13
|
+
border-color: var(--sl-color-hairline);
|
|
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(--sl-color-hairline);
|
|
9
21
|
}
|
|
10
22
|
|
|
11
|
-
figure,
|
|
12
23
|
pre {
|
|
13
|
-
border-radius: var(--sl-button-border-radius);
|
|
24
|
+
border-radius: 0 0 var(--sl-button-border-radius) var(--sl-button-border-radius);
|
|
14
25
|
border-color: var(--sl-color-hairline);
|
|
15
26
|
}
|
|
27
|
+
}
|
|
16
28
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
}
|
|
29
|
+
.frame.has-title:not(.is-terminal) {
|
|
30
|
+
figcaption span:first-child {
|
|
31
|
+
border-top-left-radius: var(--sl-button-border-radius);
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.header::before {
|
|
36
|
-
border-color: var(--sl-color-hairline);
|
|
37
|
-
}
|
|
34
|
+
.header::before {
|
|
35
|
+
border-color: var(--sl-color-hairline);
|
|
36
|
+
}
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
38
|
+
.title::after {
|
|
39
|
+
bottom: -1px;
|
|
40
|
+
top: unset;
|
|
43
41
|
}
|
|
44
42
|
}
|
|
43
|
+
}
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
.astro-code {
|
|
46
|
+
border-radius: var(--sl-button-border-radius);
|
|
47
|
+
border-color: var(--sl-color-hairline);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.stl-snippet-request-container {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.stl-snippet-expand-button {
|
|
55
|
+
display: none;
|
|
50
56
|
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
position: relative;
|
|
58
|
+
left: 50%;
|
|
59
|
+
transform: translateX(-50%);
|
|
60
|
+
bottom: 12px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
height: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.stl-snippet-code-is-expanded {
|
|
66
|
+
.ellipsis {
|
|
67
|
+
display: none;
|
|
53
68
|
}
|
|
69
|
+
}
|
|
54
70
|
|
|
71
|
+
.stl-snippet-collapsible {
|
|
55
72
|
.stl-snippet-expand-button {
|
|
56
|
-
display:
|
|
73
|
+
display: block;
|
|
74
|
+
margin-bottom: -23px;
|
|
75
|
+
/* Prevent clipping of the button with the container below */
|
|
76
|
+
z-index: 100;
|
|
77
|
+
}
|
|
57
78
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
font-family: var(--stldocs-font);
|
|
68
|
-
padding: 4px 7px 4px 7px;
|
|
69
|
-
height: auto;
|
|
79
|
+
.stl-snippet-code-is-collapsed {
|
|
80
|
+
.hidden {
|
|
81
|
+
display: none;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.leading-ws {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
70
88
|
}
|
|
71
89
|
|
|
72
90
|
.stl-snippet-code-is-expanded {
|
|
@@ -74,116 +92,91 @@
|
|
|
74
92
|
display: none;
|
|
75
93
|
}
|
|
76
94
|
}
|
|
95
|
+
}
|
|
77
96
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/* Prevent clipping of the button with the container below */
|
|
83
|
-
z-index: 100;
|
|
97
|
+
.stldocs-root {
|
|
98
|
+
.stl-snippets-non-collapsible {
|
|
99
|
+
.shiki {
|
|
100
|
+
counter-reset: codeblock-line 0 !important;
|
|
84
101
|
}
|
|
85
102
|
|
|
86
|
-
.
|
|
103
|
+
.stldocs-snippet {
|
|
87
104
|
.hidden {
|
|
88
|
-
display:
|
|
89
|
-
opacity:
|
|
105
|
+
display: inline;
|
|
106
|
+
opacity: 1;
|
|
90
107
|
}
|
|
91
108
|
|
|
92
109
|
.leading-ws {
|
|
93
|
-
display:
|
|
110
|
+
display: inline;
|
|
94
111
|
}
|
|
95
|
-
}
|
|
96
112
|
|
|
97
|
-
.stl-snippet-code-is-expanded {
|
|
98
113
|
.ellipsis {
|
|
99
114
|
display: none;
|
|
100
115
|
}
|
|
101
116
|
}
|
|
102
117
|
}
|
|
118
|
+
}
|
|
103
119
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
.leading-ws {
|
|
117
|
-
display: inline;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.ellipsis {
|
|
121
|
-
display: none;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
120
|
+
.stldocs-root .stl-snippet-dropdown-button-text,
|
|
121
|
+
.stl-snippet-dropdown-button-text {
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
font-style: normal;
|
|
124
|
+
font-family: var(--stldocs-font);
|
|
125
|
+
line-height: 100%;
|
|
126
|
+
font-size: var(--sl-text-body-sm);
|
|
127
|
+
color: var(--sl-color-text);
|
|
128
|
+
text-transform: capitalize;
|
|
129
|
+
|
|
130
|
+
&.http {
|
|
131
|
+
text-transform: uppercase;
|
|
125
132
|
}
|
|
133
|
+
}
|
|
126
134
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
}
|
|
135
|
+
:root[data-theme='light'] {
|
|
136
|
+
.astro-code,
|
|
137
|
+
.astro-code span {
|
|
138
|
+
background-color: var(--sl-color-bg-inline-code) !important;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
.stldocs-snippet-response-pane {
|
|
142
|
+
.shiki,
|
|
143
|
+
.shiki span,
|
|
142
144
|
.astro-code,
|
|
143
145
|
.astro-code span {
|
|
144
146
|
background-color: var(--sl-color-bg-inline-code) !important;
|
|
145
147
|
}
|
|
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
148
|
}
|
|
149
|
+
}
|
|
156
150
|
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
:root[data-theme='dark'] {
|
|
152
|
+
/*
|
|
159
153
|
Need to use important to override inline variables. This is the
|
|
160
154
|
recommended pattern in the shiki docs.
|
|
161
155
|
|
|
162
156
|
https://shiki.style/guide/dual-themes#query-based-dark-mode
|
|
163
157
|
*/
|
|
158
|
+
.shiki,
|
|
159
|
+
.shiki span,
|
|
160
|
+
.astro-code,
|
|
161
|
+
.astro-code span {
|
|
162
|
+
color: var(--shiki-dark) !important;
|
|
163
|
+
background-color: var(--sl-color-bg) !important;
|
|
164
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
165
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
166
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.astro-code,
|
|
170
|
+
.astro-code span {
|
|
171
|
+
background-color: var(--sl-color-bg-inline-code) !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.stldocs-snippet-response-pane {
|
|
164
175
|
.shiki,
|
|
165
176
|
.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
177
|
.astro-code,
|
|
176
178
|
.astro-code span {
|
|
177
179
|
background-color: var(--sl-color-bg-inline-code) !important;
|
|
178
180
|
}
|
|
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
181
|
}
|
|
189
182
|
}
|
package/styles/links.css
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.sl-link-card {
|
|
2
|
+
box-shadow: none;
|
|
3
|
+
border-radius: var(--sl-button-border-radius);
|
|
4
|
+
padding: 1.5rem;
|
|
5
|
+
margin-top: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sl-link-card:hover {
|
|
9
|
+
transition: 0.3s;
|
|
10
|
+
border: 1px solid var(--sl-color-accent-high);
|
|
11
|
+
background-color: var(--sl-color-accent-low);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pagination-links {
|
|
15
|
+
margin-bottom: 2rem;
|
|
16
|
+
|
|
17
|
+
> a {
|
|
4
18
|
border-radius: var(--sl-button-border-radius);
|
|
5
|
-
|
|
6
|
-
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
max-width: 90%;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
|
|
24
|
+
svg {
|
|
25
|
+
margin-top: 0;
|
|
26
|
+
transform: translateY(6px);
|
|
27
|
+
}
|
|
7
28
|
}
|
|
8
29
|
|
|
9
|
-
|
|
30
|
+
> a:hover {
|
|
10
31
|
transition: 0.3s;
|
|
11
32
|
border: 1px solid var(--sl-color-accent-high);
|
|
12
33
|
background-color: var(--sl-color-accent-low);
|
|
34
|
+
box-shadow: none;
|
|
13
35
|
}
|
|
14
36
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
}
|
|
37
|
+
/* if only one pagination direction */
|
|
38
|
+
> a:first-child:nth-last-child(1) {
|
|
39
|
+
max-width: 45%;
|
|
40
|
+
}
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
> a[rel='next'] {
|
|
43
|
+
margin-left: auto;
|
|
44
|
+
}
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
46
|
+
> a[rel='prev'] {
|
|
47
|
+
margin-right: auto;
|
|
50
48
|
}
|
|
51
49
|
}
|
package/styles/overrides.css
CHANGED
|
@@ -1,79 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
html {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
}
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
.site-title {
|
|
6
|
+
color: var(--sl-color-white);
|
|
7
|
+
max-width: 144px;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
9
|
+
img {
|
|
10
|
+
height: 32px;
|
|
11
|
+
width: auto;
|
|
14
12
|
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Hide the text in the theme select dropdown */
|
|
16
|
+
starlight-theme-select select {
|
|
17
|
+
width: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
.custom-select-wrapper select,
|
|
22
|
+
.stldocs-button-secondary {
|
|
23
|
+
background-color: var(--sl-color-bg-ui);
|
|
24
|
+
border: 1px solid var(--sl-color-hairline);
|
|
25
|
+
border-radius: var(--sl-button-border-radius);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
border-color: var(--sl-color-hairline-shade);
|
|
20
29
|
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.content-panel {
|
|
33
|
+
border-top: 0;
|
|
34
|
+
}
|
|
21
35
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
starlight-menu-button button {
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
background-color: var(--sl-color-bg-ui);
|
|
39
|
+
border: 1px solid var(--sl-color-hairline);
|
|
40
|
+
border-radius: var(--sl-button-border-radius);
|
|
41
|
+
height: var(--sl-button-size);
|
|
42
|
+
width: var(--sl-button-size);
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
27
46
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
47
|
+
&:hover {
|
|
48
|
+
border-color: var(--sl-color-hairline-shade);
|
|
31
49
|
}
|
|
50
|
+
}
|
|
32
51
|
|
|
33
|
-
|
|
34
|
-
|
|
52
|
+
mobile-starlight-toc {
|
|
53
|
+
nav {
|
|
54
|
+
background-color: var(--sl-color-bg);
|
|
35
55
|
}
|
|
36
56
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
height: var(--sl-button-size);
|
|
43
|
-
width: var(--sl-button-size);
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
57
|
+
summary {
|
|
58
|
+
padding: 2rem 1rem;
|
|
59
|
+
border-bottom-color: var(--sl-color-hairline-light);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
47
62
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
63
|
+
@media (min-width: 50rem) {
|
|
64
|
+
starlight-menu-button button {
|
|
65
|
+
display: none;
|
|
51
66
|
}
|
|
52
67
|
|
|
53
68
|
mobile-starlight-toc {
|
|
54
69
|
nav {
|
|
55
|
-
|
|
70
|
+
inset-inline-start: calc(var(--sl-content-inline-start, 0));
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
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
|
-
}
|
|
74
|
+
padding: 2rem 2rem;
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
77
|
}
|