@redocly/theme 0.3.0 → 0.4.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.
- package/Button/Button.js +3 -3
- package/CodeBlock/CodeBlock.js +1 -1
- package/ColorModeSwitcher/ColorModeSwitcher.js +1 -1
- package/Footer/Footer.js +1 -1
- package/Footer/FooterColumn.js +4 -4
- package/Footer/FooterColumns.js +1 -1
- package/Footer/FooterCopyright.js +1 -1
- package/JsonViewer/JsonViewer.js +1 -1
- package/Markdown/Admonition.js +3 -3
- package/Markdown/CodeSample/CodeSample.js +3 -3
- package/Markdown/ContainerWrapper.d.ts +5 -0
- package/Markdown/ContainerWrapper.js +21 -0
- package/Markdown/MarkdownLayout.js +2 -2
- package/Markdown/MarkdownWrapper.js +3 -3
- package/Markdown/index.d.ts +1 -1
- package/Markdown/index.js +1 -1
- package/Navbar/MobileNavbarItem.js +1 -1
- package/Navbar/MobileNavbarMenu.js +6 -6
- package/Navbar/Navbar.d.ts +1 -0
- package/Navbar/Navbar.js +10 -8
- package/Navbar/NavbarDropdown.js +1 -1
- package/Navbar/NavbarItem.d.ts +3 -3
- package/Navbar/NavbarItem.js +17 -14
- package/Navbar/NavbarMenu.js +1 -1
- package/NavbarLogo/NavbarLogo.js +1 -1
- package/OperationBadge/OperationBadge.js +1 -1
- package/Panel/Panel.d.ts +2 -1
- package/Panel/Panel.js +8 -3
- package/Panel/PanelBody.js +1 -1
- package/Panel/PanelComponent.d.ts +3 -2
- package/Panel/PanelComponent.js +3 -2
- package/Panel/PanelHeader.d.ts +1 -1
- package/Panel/PanelHeader.js +3 -3
- package/Panel/PanelHeaderTitle.js +1 -1
- package/Panel/index.d.ts +0 -3
- package/Panel/index.js +0 -3
- package/Profile/Profile.js +1 -1
- package/SamplesPanelControls/SamplesPanelControls.js +6 -4
- package/Search/Autocomplete.js +1 -1
- package/Search/Input.js +1 -1
- package/Search/Parameters.js +1 -1
- package/Search/Popover.js +1 -1
- package/Search/Search.js +1 -1
- package/Search/SearchItem.js +3 -3
- package/Search/utils.js +1 -1
- package/Sidebar/ApiCallItem.js +1 -1
- package/Sidebar/ArrowBack.js +1 -1
- package/Sidebar/BackButton.js +1 -1
- package/Sidebar/Drilldown.js +1 -1
- package/Sidebar/DrilldownMenu.js +2 -2
- package/Sidebar/DrilldownMenuItem.js +3 -3
- package/Sidebar/ExternalIcon.js +1 -1
- package/Sidebar/Menu.js +1 -1
- package/Sidebar/MenuContainer.js +1 -1
- package/Sidebar/MenuGroup.js +6 -2
- package/Sidebar/MenuItemLabel.js +1 -1
- package/Sidebar/MenuLink.js +1 -1
- package/Sidebar/SeparatorItem.js +1 -1
- package/Sidebar/SeparatorLine.js +1 -1
- package/Sidebar/Sidebar.js +1 -1
- package/SidebarLogo/SidebarLogo.js +1 -1
- package/TableOfContent/TableOfContent.js +5 -5
- package/Tooltip/Tooltip.js +1 -1
- package/Typography/H1.js +1 -1
- package/Typography/H2.js +1 -1
- package/Typography/H3.js +1 -1
- package/Typography/SectionHeader.js +1 -1
- package/Typography/Typography.js +1 -1
- package/globalStyle.js +27 -25
- package/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/package.json +1 -1
- package/src/Button/Button.tsx +14 -6
- package/src/CodeBlock/CodeBlock.ts +2 -4
- package/src/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
- package/src/Footer/Footer.tsx +3 -2
- package/src/Footer/FooterColumn.tsx +13 -9
- package/src/Footer/FooterColumns.tsx +2 -2
- package/src/Footer/FooterCopyright.tsx +1 -1
- package/src/JsonViewer/JsonViewer.tsx +5 -5
- package/src/Markdown/Admonition.tsx +3 -2
- package/src/Markdown/CodeSample/CodeSample.tsx +18 -17
- package/src/Markdown/{ContentWrapper.tsx → ContainerWrapper.tsx} +4 -4
- package/src/Markdown/MarkdownLayout.tsx +3 -3
- package/src/Markdown/MarkdownWrapper.tsx +87 -47
- package/src/Markdown/index.ts +1 -1
- package/src/Navbar/MobileNavbarItem.tsx +1 -3
- package/src/Navbar/MobileNavbarMenu.tsx +19 -17
- package/src/Navbar/Navbar.tsx +19 -10
- package/src/Navbar/NavbarDropdown.tsx +2 -1
- package/src/Navbar/NavbarItem.tsx +41 -24
- package/src/Navbar/NavbarMenu.tsx +1 -1
- package/src/NavbarLogo/NavbarLogo.tsx +4 -4
- package/src/OperationBadge/OperationBadge.ts +8 -9
- package/src/Panel/Panel.ts +17 -3
- package/src/Panel/PanelBody.ts +13 -5
- package/src/Panel/PanelComponent.tsx +3 -0
- package/src/Panel/PanelHeader.ts +13 -6
- package/src/Panel/PanelHeaderTitle.ts +6 -4
- package/src/Panel/index.ts +0 -3
- package/src/Profile/Profile.tsx +1 -1
- package/src/SamplesPanelControls/SamplesPanelControls.ts +9 -9
- package/src/Search/Autocomplete.tsx +1 -1
- package/src/Search/Input.tsx +7 -2
- package/src/Search/Parameters.tsx +1 -1
- package/src/Search/Popover.tsx +3 -3
- package/src/Search/Search.tsx +3 -1
- package/src/Search/SearchItem.tsx +14 -9
- package/src/Search/utils.tsx +1 -1
- package/src/Sidebar/ApiCallItem.tsx +7 -0
- package/src/Sidebar/ArrowBack.tsx +1 -1
- package/src/Sidebar/BackButton.tsx +10 -5
- package/src/Sidebar/Drilldown.tsx +1 -3
- package/src/Sidebar/DrilldownMenu.tsx +2 -2
- package/src/Sidebar/DrilldownMenuItem.tsx +12 -8
- package/src/Sidebar/ExternalIcon.tsx +1 -1
- package/src/Sidebar/Menu.tsx +1 -1
- package/src/Sidebar/MenuContainer.tsx +1 -1
- package/src/Sidebar/MenuGroup.tsx +12 -2
- package/src/Sidebar/MenuItemLabel.tsx +7 -7
- package/src/Sidebar/MenuLink.tsx +1 -1
- package/src/Sidebar/SeparatorItem.tsx +5 -1
- package/src/Sidebar/SeparatorLine.tsx +2 -2
- package/src/Sidebar/Sidebar.tsx +4 -4
- package/src/SidebarLogo/SidebarLogo.tsx +3 -3
- package/src/TableOfContent/TableOfContent.tsx +18 -16
- package/src/Tooltip/Tooltip.tsx +2 -2
- package/src/Typography/H1.ts +2 -2
- package/src/Typography/H2.ts +2 -2
- package/src/Typography/H3.ts +2 -1
- package/src/Typography/SectionHeader.ts +4 -4
- package/src/Typography/Typography.ts +1 -1
- package/src/globalStyle.ts +1395 -348
- package/src/icons/ArrowIcon/ArrowIcon.tsx +3 -3
- package/src/ui/Background.tsx +1 -1
- package/src/ui/Dropdown.tsx +6 -6
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/Tiles/TileHeader.ts +5 -5
- package/src/ui/Tiles/TileText.tsx +1 -1
- package/src/ui/UniversalLink.tsx +1 -1
- package/src/utils/theme-helpers.ts +1 -1
- package/ui/Background.js +1 -1
- package/ui/Dropdown.js +4 -4
- package/ui/Jumbotron.js +1 -1
- package/ui/Tiles/TileHeader.js +1 -1
- package/ui/Tiles/TileText.js +1 -1
- package/ui/UniversalLink.js +1 -1
- package/utils/theme-helpers.js +1 -1
- package/Markdown/ContentWrapper.d.ts +0 -5
- package/Markdown/ContentWrapper.js +0 -21
- package/Panel/CodePanel.d.ts +0 -5
- package/Panel/CodePanel.js +0 -21
- package/Panel/ContentPanel.d.ts +0 -5
- package/Panel/ContentPanel.js +0 -20
- package/Panel/DarkHeader.d.ts +0 -1
- package/Panel/DarkHeader.js +0 -10
- package/src/Panel/CodePanel.ts +0 -34
- package/src/Panel/ContentPanel.ts +0 -44
- package/src/Panel/DarkHeader.ts +0 -8
package/src/globalStyle.ts
CHANGED
|
@@ -7,6 +7,8 @@ const baseColors = css`
|
|
|
7
7
|
* @tokens Base Colors
|
|
8
8
|
* @presenter Color
|
|
9
9
|
*/
|
|
10
|
+
|
|
11
|
+
--color-primary-50: #87ceeb;
|
|
10
12
|
--color-primary-100: #62a1ff;
|
|
11
13
|
--color-primary-200: #4892ff;
|
|
12
14
|
--color-primary-300: #2f83ff;
|
|
@@ -17,26 +19,29 @@ const baseColors = css`
|
|
|
17
19
|
--color-primary-800: #0046af;
|
|
18
20
|
--color-primary-900: #003c95;
|
|
19
21
|
|
|
20
|
-
--color-secondary-
|
|
21
|
-
--color-secondary-
|
|
22
|
-
--color-secondary-
|
|
23
|
-
--color-secondary-
|
|
24
|
-
--color-secondary-
|
|
25
|
-
--color-secondary-
|
|
26
|
-
--color-secondary-
|
|
27
|
-
--color-secondary-
|
|
28
|
-
--color-secondary-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
--color-emphasis-
|
|
32
|
-
--color-emphasis-
|
|
33
|
-
--color-emphasis-
|
|
34
|
-
--color-emphasis-
|
|
35
|
-
--color-emphasis-
|
|
36
|
-
--color-emphasis-
|
|
37
|
-
--color-emphasis-
|
|
22
|
+
--color-secondary-50: #ffffff;
|
|
23
|
+
--color-secondary-100: #f5f7fa;
|
|
24
|
+
--color-secondary-200: #f3f4f6;
|
|
25
|
+
--color-secondary-300: #e4e7eb;
|
|
26
|
+
--color-secondary-400: #d5dae0;
|
|
27
|
+
--color-secondary-500: #c7cdd5;
|
|
28
|
+
--color-secondary-600: #b8c0ca;
|
|
29
|
+
--color-secondary-700: #a9b3c0;
|
|
30
|
+
--color-secondary-800: #9ba6b5;
|
|
31
|
+
--color-secondary-900: #52606d;
|
|
32
|
+
|
|
33
|
+
--color-emphasis-50: #ffffff;
|
|
34
|
+
--color-emphasis-100: #e9eaec;
|
|
35
|
+
--color-emphasis-200: #cdd0d5;
|
|
36
|
+
--color-emphasis-300: #b2b6bd;
|
|
37
|
+
--color-emphasis-400: #969ca6;
|
|
38
|
+
--color-emphasis-500: #7a828f;
|
|
39
|
+
--color-emphasis-600: #626974;
|
|
40
|
+
--color-emphasis-700: #4b5058;
|
|
41
|
+
--color-emphasis-800: #1f2933;
|
|
38
42
|
--color-emphasis-900: #1c1e21;
|
|
39
43
|
|
|
44
|
+
--color-accent-50: #e6eef8;
|
|
40
45
|
--color-accent-100: #b3dcf3;
|
|
41
46
|
--color-accent-200: #a6dfff;
|
|
42
47
|
--color-accent-300: #8cd5ff;
|
|
@@ -47,6 +52,7 @@ const baseColors = css`
|
|
|
47
52
|
--color-accent-800: #0da7ff;
|
|
48
53
|
--color-accent-900: #009bf2;
|
|
49
54
|
|
|
55
|
+
--color-success-50: #ddffe1;
|
|
50
56
|
--color-success-100: #98eda0;
|
|
51
57
|
--color-success-200: #82e98c;
|
|
52
58
|
--color-success-300: #6ce678;
|
|
@@ -57,6 +63,7 @@ const baseColors = css`
|
|
|
57
63
|
--color-success-800: #1fb32d;
|
|
58
64
|
--color-success-900: #1b9e28;
|
|
59
65
|
|
|
66
|
+
--color-warning-50: #ffeda5;
|
|
60
67
|
--color-warning-100: #ffc966;
|
|
61
68
|
--color-warning-200: #ffc04d;
|
|
62
69
|
--color-warning-300: #ffb733;
|
|
@@ -67,6 +74,7 @@ const baseColors = css`
|
|
|
67
74
|
--color-warning-800: #b37300;
|
|
68
75
|
--color-warning-900: #996300;
|
|
69
76
|
|
|
77
|
+
--color-error-50: #ffeaea;
|
|
70
78
|
--color-error-100: #ffc7c7;
|
|
71
79
|
--color-error-200: #ffaeae;
|
|
72
80
|
--color-error-300: #ff9494;
|
|
@@ -111,30 +119,7 @@ const httpColors = css`
|
|
|
111
119
|
--color-http-basic: #707070;
|
|
112
120
|
--color-http-link: #07818f;
|
|
113
121
|
--color-http-head: #a23dad;
|
|
114
|
-
--color-http-hook:
|
|
115
|
-
// @tokens End
|
|
116
|
-
`;
|
|
117
|
-
|
|
118
|
-
const responseColors = css`
|
|
119
|
-
/**
|
|
120
|
-
* @tokens Response colors
|
|
121
|
-
* @presenter Color
|
|
122
|
-
*/
|
|
123
|
-
--response-success-border-color: #b1e996;
|
|
124
|
-
--response-success-background-color: #f6fff4;
|
|
125
|
-
--response-success-text-color: var(--response-success-border-color);
|
|
126
|
-
|
|
127
|
-
--response-error-border-color: #ffc9c9;
|
|
128
|
-
--response-error-background-color: #fff4f4;
|
|
129
|
-
--response-error-text-color: var(--response-error-border-color);
|
|
130
|
-
|
|
131
|
-
--response-redirect-border-color: var(--color-warning-500);
|
|
132
|
-
--response-redirect-background-color: #ffa5001a;
|
|
133
|
-
--response-redirect-text-color: var(--response-redirect-border-color);
|
|
134
|
-
|
|
135
|
-
--response-info-border-color: #87ceeb;
|
|
136
|
-
--response-info-background-color: #87ceeb1a;
|
|
137
|
-
--response-info-text-color: var(--response-info-border-color);
|
|
122
|
+
--color-http-hook: #4d5d86;
|
|
138
123
|
|
|
139
124
|
// @tokens End
|
|
140
125
|
`;
|
|
@@ -146,9 +131,9 @@ const typography = css`
|
|
|
146
131
|
* @tokens Typography Colors
|
|
147
132
|
* @presenter Color
|
|
148
133
|
*/
|
|
149
|
-
--color
|
|
150
|
-
--color-
|
|
151
|
-
--color-
|
|
134
|
+
--text-color: var(--color-emphasis-800);
|
|
135
|
+
--text-color-inverse: var(--color-secondary-100);
|
|
136
|
+
--text-color-secondary: var(--color-emphasis-500);
|
|
152
137
|
|
|
153
138
|
/**
|
|
154
139
|
* @tokens Font Sizes
|
|
@@ -181,96 +166,145 @@ const typography = css`
|
|
|
181
166
|
/**
|
|
182
167
|
* @tokens Rendering
|
|
183
168
|
*/
|
|
184
|
-
--smoothing: antialiased; // text-smoothing
|
|
169
|
+
--text-smoothing: antialiased; // text-smoothing
|
|
185
170
|
--text-rendering: optimizeSpeed; // text-rendering
|
|
186
171
|
|
|
187
|
-
// TODO: Not sure if Spacing should be in typography
|
|
188
|
-
/**
|
|
189
|
-
* @tokens Spacings
|
|
190
|
-
* @presenter Spacing
|
|
191
|
-
*/
|
|
192
|
-
--spacing-unit: 5px;
|
|
193
|
-
--spacing-horizontal: calc(var(--spacing-unit) * 8);
|
|
194
|
-
--spacing-vertical: calc(var(--spacing-unit) * 4);
|
|
195
|
-
|
|
196
172
|
// @tokens End
|
|
197
173
|
`;
|
|
198
174
|
|
|
199
175
|
const headingsTypography = css`
|
|
200
|
-
// --h-{css-property-name} is fallback for h1...h6
|
|
201
|
-
|
|
202
176
|
* {
|
|
203
177
|
box-sizing: border-box;
|
|
204
178
|
}
|
|
205
179
|
|
|
206
180
|
/**
|
|
207
|
-
* @tokens
|
|
181
|
+
* @tokens Headings common styles
|
|
208
182
|
*/
|
|
209
|
-
|
|
210
|
-
--
|
|
211
|
-
--
|
|
183
|
+
|
|
184
|
+
--heading-font-family: Source Sans Pro, sans-serif; // @presenter FontFamily
|
|
185
|
+
--heading-font-weight: var(--font-weight-bolder); // @presenter FontWeight
|
|
186
|
+
--heading-margin-top: 1.25em; // @presenter Spacing
|
|
187
|
+
--heading-margin-bottom: 0.9em; // @presenter Spacing
|
|
188
|
+
--heading-text-color: var(--text-color); // @presenter Color
|
|
212
189
|
|
|
213
190
|
/**
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
--
|
|
191
|
+
* @tokens Typography heading anchor icon
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
--heading-anchor-offset-right: 4px; // @presenter Spacing
|
|
195
|
+
--heading-anchor-color: var(--color-primary-500); // @presenter Color
|
|
196
|
+
/*--heading-anchor-icon: icons later */
|
|
197
|
+
|
|
198
|
+
// TODO: implement a theme setting for heading-anchor-location: left right
|
|
218
199
|
|
|
219
200
|
/**
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
--h1-font-
|
|
224
|
-
--
|
|
225
|
-
--
|
|
226
|
-
--
|
|
227
|
-
--
|
|
228
|
-
--
|
|
201
|
+
* @tokens Heading level 1
|
|
202
|
+
*/
|
|
203
|
+
|
|
204
|
+
--h1-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
205
|
+
--h1-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
206
|
+
--h1-font-size: 36px; // @presenter FontSize
|
|
207
|
+
--h1-line-height: 36px; // @presenter LineHeight
|
|
208
|
+
--h1-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
209
|
+
--h1-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
210
|
+
--h1-text-color: var(--heading-text-color); // @presenter Color
|
|
229
211
|
|
|
230
212
|
/**
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
--
|
|
235
|
-
--h2-
|
|
236
|
-
--
|
|
237
|
-
--
|
|
238
|
-
--
|
|
239
|
-
--
|
|
213
|
+
* @tokens Heading level 2
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
--h2-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
217
|
+
--h2-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
218
|
+
--h2-font-size: 28px; // @presenter FontSize
|
|
219
|
+
--h2-line-height: 28px; // @presenter LineHeight
|
|
220
|
+
--h2-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
221
|
+
--h2-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
222
|
+
--h2-text-color: var(--heading-text-color); // @presenter Color
|
|
240
223
|
|
|
241
224
|
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
--
|
|
246
|
-
--
|
|
247
|
-
--
|
|
248
|
-
--
|
|
249
|
-
--h3-margin-top:
|
|
250
|
-
--h3-margin-bottom:
|
|
225
|
+
* @tokens Heading level 3
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
--h3-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
229
|
+
--h3-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
230
|
+
--h3-font-size: 18px; // @presenter FontSize
|
|
231
|
+
--h3-line-height: 18px; // @presenter LineHeight
|
|
232
|
+
--h3-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
233
|
+
--h3-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
234
|
+
--h3-text-color: var(--heading-text-color); // @presenter Color
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @tokens Heading level 4
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
--h4-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
241
|
+
--h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
242
|
+
--h4-font-size: 16px; // @presenter FontSize
|
|
243
|
+
--h4-line-height: 16px; // @presenter LineHeight
|
|
244
|
+
--h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
245
|
+
--h4-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
246
|
+
--h4-text-color: var(--heading-text-color); // @presenter Color
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @tokens Heading level 5
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
--h5-font-family: var(
|
|
253
|
+
--heading-font-family
|
|
254
|
+
); /* Token Description Example @presenter FontFamily */
|
|
255
|
+
--h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
256
|
+
--h5-font-size: 14px; // @presenter FontSize
|
|
257
|
+
--h5-line-height: 14px; // @presenter LineHeight
|
|
258
|
+
--h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
259
|
+
--h5-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
260
|
+
--h5-text-color: var(--heading-text-color); // @presenter Color
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @tokens Heading level 6
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
--h6-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
267
|
+
--h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
268
|
+
--h6-font-size: 12px; // @presenter FontSize
|
|
269
|
+
--h6-line-height: 12px; // @presenter LineHeight
|
|
270
|
+
--h6-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
271
|
+
--h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
272
|
+
--h6-text-color: var(--heading-text-color); // @presenter Color
|
|
273
|
+
|
|
251
274
|
// @tokens End
|
|
252
275
|
`;
|
|
253
276
|
|
|
254
|
-
const
|
|
277
|
+
const common = css`
|
|
255
278
|
/**
|
|
256
279
|
* @tokens Borders
|
|
257
280
|
* @presenter Border
|
|
258
281
|
*/
|
|
259
|
-
--
|
|
282
|
+
--border-width: 1px;
|
|
283
|
+
--border-style: solid;
|
|
260
284
|
|
|
261
285
|
/**
|
|
262
286
|
* @tokens Border Radius
|
|
263
287
|
* @presenter BorderRadius
|
|
264
288
|
*/
|
|
265
|
-
--
|
|
289
|
+
--border-radius: 4px;
|
|
290
|
+
--border-radius-lg: calc(var(--border-radius) * 2);
|
|
266
291
|
|
|
267
292
|
/**
|
|
268
293
|
* @tokens Border Colors
|
|
269
294
|
* @presenter Color
|
|
270
295
|
*/
|
|
271
|
-
--
|
|
272
|
-
--
|
|
273
|
-
--
|
|
296
|
+
--border-color: var(--color-secondary-300);
|
|
297
|
+
--border-color-secondary: var(--color-emphasis-600);
|
|
298
|
+
--background-color: transparent;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @tokens Spacings
|
|
302
|
+
* @presenter Spacing
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
--spacing-unit: 5px;
|
|
306
|
+
--spacing-horizontal: calc(var(--spacing-unit) * 8);
|
|
307
|
+
--spacing-vertical: calc(var(--spacing-unit) * 4);
|
|
274
308
|
|
|
275
309
|
// @tokens End
|
|
276
310
|
`;
|
|
@@ -284,40 +318,66 @@ const buttons = css`
|
|
|
284
318
|
/**
|
|
285
319
|
* @tokens Button default colors
|
|
286
320
|
*/
|
|
287
|
-
|
|
288
|
-
--button-
|
|
289
|
-
--button-
|
|
290
|
-
--button-
|
|
291
|
-
|
|
321
|
+
|
|
322
|
+
--button-color: var(--color-emphasis-50); // @presenter Color
|
|
323
|
+
--button-background-color: var(--color-emphasis-400); // @presenter Color
|
|
324
|
+
--button-border-color: var(--color-emphasis-400); // @presenter Color
|
|
325
|
+
|
|
326
|
+
--button-hover-color: var(--color-emphasis-700); // @presenter Color
|
|
327
|
+
--button-hover-background-color: var(--color-emphasis-500); // @presenter Color
|
|
328
|
+
--button-hover-border-color: var(--color-emphasis-500); // @presenter Color
|
|
329
|
+
|
|
330
|
+
--button-active-color: var(--color-emphasis-900); // @presenter Color
|
|
331
|
+
--button-active-background-color: var(--color-emphasis-600); // @presenter Color
|
|
332
|
+
--button-active-border-color: var(--color-emphasis-600); // @presenter Color
|
|
333
|
+
|
|
334
|
+
/* TODO more styles for disabled state ??? */
|
|
335
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
336
|
+
--button-disabled-background-color: var(--color-emphasis-200); // @presenter Color
|
|
292
337
|
|
|
293
338
|
/**
|
|
294
339
|
* @tokens Button primary colors
|
|
295
340
|
*/
|
|
296
341
|
.button-color-primary {
|
|
297
|
-
--button-color:
|
|
342
|
+
--button-color: var(--color-emphasis-50); // @presenter Color
|
|
298
343
|
--button-background-color: var(--color-primary-500); // @presenter Color
|
|
344
|
+
--button-border-color: var(--color-primary-500); // @presenter Color
|
|
345
|
+
|
|
299
346
|
--button-hover-background-color: var(--color-primary-600); // @presenter Color
|
|
347
|
+
--button-hover-border-color: var(--color-primary-600); // @presenter Color
|
|
348
|
+
|
|
300
349
|
--button-active-background-color: var(--color-primary-700); // @presenter Color
|
|
301
|
-
--button-
|
|
350
|
+
--button-active-border-color: var(--color-primary-700); // @presenter Color
|
|
351
|
+
|
|
352
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
353
|
+
--button-disabled-background-color: var(--color-primary-100); // @presenter Color
|
|
302
354
|
}
|
|
303
355
|
|
|
304
356
|
/**
|
|
305
357
|
* @tokens Button secondary colors
|
|
306
358
|
*/
|
|
307
359
|
.button-color-secondary {
|
|
308
|
-
--button-color: var(--color-emphasis-
|
|
360
|
+
--button-color: var(--color-emphasis-700); // @presenter Color
|
|
309
361
|
--button-background-color: var(--color-secondary-400); // @presenter Color
|
|
362
|
+
--button-border-color: var(--color-secondary-400); // @presenter Color
|
|
363
|
+
|
|
310
364
|
--button-hover-background-color: var(--color-secondary-500); // @presenter Color
|
|
365
|
+
--button-hover-border-color: var(--color-secondary-500); // @presenter Color
|
|
366
|
+
|
|
311
367
|
--button-active-background-color: var(--color-secondary-600); // @presenter Color
|
|
312
|
-
--button-
|
|
368
|
+
--button-active-border-color: var(--color-secondary-600); // @presenter Color
|
|
369
|
+
|
|
370
|
+
--button-disabled-color: var(--button-color); // @presenter Color
|
|
371
|
+
--button-disabled-background-color: var(--color-secondary-200); // @presenter Color
|
|
313
372
|
}
|
|
314
373
|
|
|
315
374
|
/**
|
|
316
375
|
* @tokens Button borders
|
|
317
376
|
*/
|
|
318
|
-
--button-border-radius: var(--
|
|
319
|
-
--button-margin: 5px; // @presenter
|
|
377
|
+
--button-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
378
|
+
--button-margin: 5px; // @presenter Spacing
|
|
320
379
|
--button-box-shadow: none; // @presenter Shadow
|
|
380
|
+
--button-hover-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
321
381
|
--button-active-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
322
382
|
|
|
323
383
|
/**
|
|
@@ -325,15 +385,19 @@ const buttons = css`
|
|
|
325
385
|
*/
|
|
326
386
|
--button-font-family: inherit; // @presenter FontFamily
|
|
327
387
|
--button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
388
|
+
|
|
328
389
|
--button-small-font-size: 12px; // @presenter FontSize
|
|
329
390
|
--button-small-padding: 8px 10px;
|
|
330
391
|
--button-small-min-width: 90px; // @presenter Spacing
|
|
392
|
+
|
|
331
393
|
--button-medium-font-size: 14px; // @presenter FontSize
|
|
332
394
|
--button-medium-padding: 8px 20px;
|
|
333
395
|
--button-medium-min-width: 120px; // @presenter Spacing
|
|
396
|
+
|
|
334
397
|
--button-large-font-size: 14px; // @presenter FontSize
|
|
335
398
|
--button-large-padding: 12px 24px;
|
|
336
399
|
--button-large-min-width: 150px; // @presenter Spacing
|
|
400
|
+
|
|
337
401
|
--button-xlarge-font-size: 16px; // @presenter FontSize
|
|
338
402
|
--button-xlarge-padding: 20px 24px;
|
|
339
403
|
--button-xlarge-min-width: 200px; // @presenter Spacing
|
|
@@ -344,11 +408,17 @@ const buttons = css`
|
|
|
344
408
|
const sidebar = css`
|
|
345
409
|
/* === Sidebar === */
|
|
346
410
|
|
|
411
|
+
/**
|
|
412
|
+
* @tokens Sidebar logo
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
--sidebar-logo-max-height: 285px;
|
|
416
|
+
--sidebar-logo-max-width: 285px;
|
|
417
|
+
--sidebar-logo-padding: 2px; // @presenter spacing
|
|
418
|
+
|
|
347
419
|
/**
|
|
348
420
|
* @tokens Sidebar typography
|
|
349
421
|
*/
|
|
350
|
-
--sidebar-font-size: var(--font-size-base);
|
|
351
|
-
--sidebar-font-family: var(--font-family-base);
|
|
352
422
|
--sidebar-word-break: 'inherit';
|
|
353
423
|
|
|
354
424
|
/**
|
|
@@ -356,10 +426,7 @@ const sidebar = css`
|
|
|
356
426
|
* @presenter Color
|
|
357
427
|
*/
|
|
358
428
|
--sidebar-background-color: #fff;
|
|
359
|
-
--sidebar-
|
|
360
|
-
--sidebar-separator-label-color: var(--sidebar-item-color);
|
|
361
|
-
--sidebar-separator-line-color: #dadada;
|
|
362
|
-
--sidebar-chevron-color: var(--sidebar-item-color);
|
|
429
|
+
--sidebar-border-color: var(--border-color);
|
|
363
430
|
|
|
364
431
|
/**
|
|
365
432
|
* @tokens Sidebar spacing
|
|
@@ -368,25 +435,11 @@ const sidebar = css`
|
|
|
368
435
|
--sidebar-width: 285px; // @presenter NO
|
|
369
436
|
|
|
370
437
|
--sidebar-spacing-unit: 8px;
|
|
371
|
-
--sidebar-
|
|
372
|
-
--sidebar-
|
|
373
|
-
--sidebar-spacing-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
374
|
-
--sidebar-spacing-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
375
|
-
--sidebar-spacing-offset-nesting: calc(var(--sidebar-spacing-unit) * 2);
|
|
376
|
-
|
|
377
|
-
--sidebar-margin-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
378
|
-
--sidebar-padding-horizontal: var(--sidebar-spacing-unit);
|
|
379
|
-
--sidebar-padding-vertical: var(--sidebar-spacing-unit);
|
|
380
|
-
--sidebar-spacing-padding-vertical: var(--sidebar-spacing-unit); // TODO: seems like duplicated
|
|
381
|
-
--sidebar-spacing-padding-horizontal: var(--sidebar-spacing-unit); // TODO: seems like duplicated
|
|
438
|
+
--sidebar-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
439
|
+
--sidebar-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
382
440
|
|
|
383
441
|
--sidebar-chevron-size: var(--sidebar-spacing-unit);
|
|
384
442
|
|
|
385
|
-
/**
|
|
386
|
-
* @tokens Sidebar border
|
|
387
|
-
*/
|
|
388
|
-
--sidebar-border-radius: 4px; // @presenter BorderRadius
|
|
389
|
-
|
|
390
443
|
/* === Sidebar Item === */
|
|
391
444
|
|
|
392
445
|
/**
|
|
@@ -399,147 +452,753 @@ const sidebar = css`
|
|
|
399
452
|
* @tokens Sidebar item colors
|
|
400
453
|
* @presenter Color
|
|
401
454
|
*/
|
|
402
|
-
--sidebar-item-color: var(--color
|
|
403
|
-
--sidebar-item-active-color: var(--color
|
|
404
|
-
--sidebar-item-background-color:
|
|
405
|
-
--sidebar-item-active-background-color: var(--
|
|
455
|
+
--sidebar-item-text-color: var(--text-color);
|
|
456
|
+
--sidebar-item-active-color: var(--text-color);
|
|
457
|
+
--sidebar-item-background-color: transparent;
|
|
458
|
+
--sidebar-item-active-background-color: var(--border-color);
|
|
406
459
|
|
|
407
460
|
/**
|
|
408
461
|
* @tokens Sidebar item spacing
|
|
409
462
|
* @presenter Spacing
|
|
410
463
|
*/
|
|
411
|
-
|
|
412
|
-
--sidebar-item-
|
|
413
|
-
--sidebar-item-
|
|
464
|
+
|
|
465
|
+
--sidebar-item-nested-offset: calc(var(--sidebar-spacing-unit) * 2);
|
|
466
|
+
--sidebar-item-padding-vertical: var(--sidebar-spacing-unit);
|
|
467
|
+
--sidebar-item-padding-horizontal: var(--sidebar-spacing-unit);
|
|
414
468
|
|
|
415
469
|
/**
|
|
416
470
|
* @tokens Sidebar item border
|
|
417
471
|
*/
|
|
418
|
-
--sidebar-item-border-radius:
|
|
472
|
+
--sidebar-item-border-radius: var(--border-radius) 0 0 var(--border-radius); // @presenter BorderRadius
|
|
419
473
|
|
|
420
|
-
|
|
421
|
-
|
|
474
|
+
/**
|
|
475
|
+
* @tokens Sidebar item icon
|
|
476
|
+
*/
|
|
477
|
+
--sidebar-item-icon-size: 32px; // icon is for drilldown only but I would like to support it in general
|
|
478
|
+
--sidebar-item-icon-border-radius: 100%;
|
|
422
479
|
|
|
423
|
-
const admonition = css`
|
|
424
480
|
/**
|
|
425
|
-
* @tokens
|
|
426
|
-
* @presenter Color
|
|
481
|
+
* @tokens Sidebar item sublabel
|
|
427
482
|
*/
|
|
483
|
+
--sidebar-item-sublabel-font-family: inherit; // sublabel is for drilldown only but I would like to support it in general
|
|
484
|
+
--sidebar-item-sublabel-font-size: 0.85rem;
|
|
485
|
+
--sidebar-item-sublabel-font-weight: var(--font-weight-regular);
|
|
486
|
+
--sidebar-item-sublabel-text-color: var(--sidebar-item-text-color);
|
|
428
487
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
--admonition-info-icon-color: #4782cb;
|
|
488
|
+
/**
|
|
489
|
+
* @tokens Sidebar item drilldown
|
|
490
|
+
*/
|
|
433
491
|
|
|
434
|
-
|
|
435
|
-
--
|
|
436
|
-
--
|
|
437
|
-
--
|
|
492
|
+
--sidebar-item-drilldown-font-family: var(--sidebar-item-font-family);
|
|
493
|
+
--sidebar-item-drilldown-font-size: var(--sidebar-item-font-size);
|
|
494
|
+
--sidebar-text-drilldown-transform: inherit;
|
|
495
|
+
--sidebar-item-drilldown-text-color: var(--sidebar-item-text-color);
|
|
496
|
+
--sidebar-item-drilldown-background-color: var(--sidebar-background-color);
|
|
438
497
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
--
|
|
498
|
+
/**
|
|
499
|
+
* @tokens Sidebar item group
|
|
500
|
+
*/
|
|
501
|
+
--sidebar-item-group-font-family: var(--sidebar-item-font-family);
|
|
502
|
+
--sidebar-item-group-font-size: var(--sidebar-item-font-size);
|
|
503
|
+
--sidebar-text-group-transform: inherit;
|
|
504
|
+
--sidebar-item-group-text-color: var(--sidebar-item-text-color);
|
|
505
|
+
--sidebar-item-group-background-color: var(--sidebar-background-color);
|
|
506
|
+
--sidebar-item-group-active-text-color: var(--sidebar-item-active-color);
|
|
507
|
+
--sidebar-item-group-active-background-color: var(--sidebar-item-active-background-color);
|
|
443
508
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
--admonition-danger-text-color: var(--color-content);
|
|
447
|
-
--admonition-danger-icon-color: #e53935;
|
|
509
|
+
// we need a theme setting for chevron-location: left (default), right-compact, right, none
|
|
510
|
+
// we need another theme setting for chevron-style: up-down, down-up, right-down, down-right
|
|
448
511
|
|
|
449
|
-
|
|
450
|
-
--
|
|
451
|
-
|
|
452
|
-
|
|
512
|
+
--sidebar-group-item-chevron-size: var(--sidebar-spacing-unit);
|
|
513
|
+
--sidebar-group-item-chevron-color: var(--sidebar-item-text-color);
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @tokens Sidebar item separator
|
|
517
|
+
*/
|
|
518
|
+
// does-separatorn't have active states
|
|
519
|
+
--sidebar-item-separator-font-family: var(--sidebar-item-font-family);
|
|
520
|
+
--sidebar-item-separator-font-size: var(--sidebar-item-font-size);
|
|
521
|
+
--sidebar-item-separator-text-transform: inherit;
|
|
522
|
+
--sidebar-item-separator-text-color: var(--sidebar-item-text-color);
|
|
523
|
+
--sidebar-item-separator-background-color: var(--sidebar-background-color);
|
|
524
|
+
--sidebar-item-separator-line-color: var(--border-color); // but has line color
|
|
453
525
|
|
|
454
526
|
/**
|
|
455
|
-
* @tokens
|
|
527
|
+
* @tokens Sidebar back button
|
|
456
528
|
*/
|
|
457
|
-
--
|
|
458
|
-
--
|
|
459
|
-
--
|
|
460
|
-
--
|
|
529
|
+
--sidebar-back-button-font-family: var(--sidebar-item-font-family);
|
|
530
|
+
--sidebar-back-button-font-size: var(--sidebar-item-font-size);
|
|
531
|
+
--sidebar-back-button-transform: inherit;
|
|
532
|
+
--sidebar-back-button-text-color: var(--sidebar-item-text-color);
|
|
533
|
+
--sidebar-back-button-background-color: transparent;
|
|
534
|
+
--sidebar-back-button-hover-text-color: var(--sidebar-item-active-color);
|
|
535
|
+
--sidebar-back-button-hover-background-color: transparent;
|
|
536
|
+
--sidebar-back-button-icon-color: var(--sidebar-item-text-color);
|
|
537
|
+
--sidebar-back-button-margin: 0 0 calc(var(--sidebar-spacing-unit) * 3) 0;
|
|
538
|
+
|
|
539
|
+
//--sidebar-back-button-icon: <svg string or url>
|
|
540
|
+
//--sidebar-version-dropdown-* (input settings, see below)
|
|
541
|
+
// @tokens End
|
|
542
|
+
`;
|
|
543
|
+
|
|
544
|
+
const admonition = css`
|
|
545
|
+
/* === Admonitions === */
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @tokens Admonition typography
|
|
549
|
+
*/
|
|
550
|
+
|
|
551
|
+
--admonition-font-size: var(--font-size-base); // @presenter FontSize
|
|
552
|
+
--admonition-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
553
|
+
--admonition-line-height: var(--line-height-base); // @presenter LineHeight
|
|
554
|
+
--admonition-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
461
555
|
--admonition-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
462
556
|
--admonition-heading-letter-spacing: 0.3px; // @presenter LetterSpacing
|
|
463
557
|
--admonition-heading-transform: uppercase;
|
|
464
558
|
|
|
465
559
|
/**
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
560
|
+
* @tokens Admonition spacing
|
|
561
|
+
* @presenter Spacing
|
|
562
|
+
*/
|
|
563
|
+
|
|
469
564
|
--admonition-margin-horizontal: 0;
|
|
470
565
|
--admonition-margin-vertical: calc(var(--spacing-unit) * 2);
|
|
471
566
|
--admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
472
567
|
--admonition-padding-vertical: calc(var(--spacing-unit) * 4);
|
|
473
568
|
--admonition-icon-size: 25px;
|
|
474
569
|
|
|
570
|
+
// TODO this is should be changed to --border-radius-lg
|
|
475
571
|
/**
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
572
|
+
* @tokens Admonition border
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
--admonition-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
576
|
+
--admonition-border-style: var(--border-style);
|
|
577
|
+
--admonition-border-width: var(--border-width);
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @tokens Admonition type info
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
--admonition-info-background-color: var(--color-emphasis-200); // @presenter Color
|
|
584
|
+
--admonition-info-heading-text-color: var(--text-color); // @presenter Color
|
|
585
|
+
--admonition-info-text-color: var(--text-color); // @presenter Color
|
|
586
|
+
--admonition-info-icon-color: var(--color-accent-900); // @presenter Color
|
|
587
|
+
--admonition-info-border-color: inherit; // @presenter Color
|
|
588
|
+
--admonition-info-border-style: var(--admonition-border-style);
|
|
589
|
+
--admonition-info-border-width: var(--admonition-border-width);
|
|
590
|
+
--admonition-info-border: var(--admonition-info-border-width) var(--admonition-info-border-style)
|
|
591
|
+
var(--admonition-info-border-color); // @presenter Border
|
|
592
|
+
/* --admonition-info-icon: figure this out latter */
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @tokens Admonition type attention
|
|
596
|
+
*/
|
|
597
|
+
|
|
598
|
+
--admonition-attention-background-color: var(--color-accent-50); // @presenter Color
|
|
599
|
+
--admonition-attention-text-color: var(--text-color); // @presenter Color
|
|
600
|
+
--admonition-attention-heading-text-color: var(--text-color); // @presenter Color
|
|
601
|
+
--admonition-attention-icon-color: var(--color-accent-900); // @presenter Color
|
|
602
|
+
--admonition-attention-border-color: inherit; // @presenter Color
|
|
603
|
+
--admonition-attention-border-style: var(--admonition-border-style);
|
|
604
|
+
--admonition-attention-border-width: var(--admonition-border-width);
|
|
605
|
+
--admonition-attention-border: var(--admonition-attention-border-width)
|
|
606
|
+
var(--admonition-attention-border-style) var(--admonition-attention-border-color); // @presenter Border
|
|
607
|
+
/* --admonition-attention-icon: figure this out latter */
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @tokens Admonition type warning
|
|
611
|
+
*/
|
|
612
|
+
|
|
613
|
+
/* warning */
|
|
614
|
+
--admonition-warning-background-color: var(--color-warning-50); // @presenter Color
|
|
615
|
+
--admonition-warning-text-color: var(--text-color); // @presenter Color
|
|
616
|
+
--admonition-warning-heading-text-color: var(--text-color); // @presenter Color
|
|
617
|
+
--admonition-warning-icon-color: var(--color-warning-700); // @presenter Color
|
|
618
|
+
--admonition-warning-border-color: inherit; // @presenter Color
|
|
619
|
+
--admonition-warning-border-style: var(--admonition-border-style); // @presenter Color
|
|
620
|
+
--admonition-warning-border-width: var(--admonition-border-width); // @presenter Color
|
|
621
|
+
--admonition-warning-border: var(--admonition-warning-border-width)
|
|
622
|
+
var(--admonition-warning-border-style) var(--admonition-warning-border-color); // @presenter Border
|
|
623
|
+
/* --admonition-warning-icon: figure this out latter */
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* @tokens Admonition type danger
|
|
627
|
+
*/
|
|
628
|
+
|
|
629
|
+
--admonition-danger-background-color: var(--color-error-50); // @presenter Color
|
|
630
|
+
--admonition-danger-text-color: var(--text-color); // @presenter Color
|
|
631
|
+
--admonition-danger-heading-text-color: var(--text-color); // @presenter Color
|
|
632
|
+
--admonition-danger-icon-color: var(--color-error-800); // @presenter Color
|
|
633
|
+
--admonition-danger-border-color: inherit; // @presenter Color
|
|
634
|
+
--admonition-danger-border-style: var(--admonition-border-style); // @presenter Color
|
|
635
|
+
--admonition-danger-border-width: var(--admonition-border-width); // @presenter Color
|
|
636
|
+
--admonition-danger-border: var(--admonition-danger-border-width)
|
|
637
|
+
var(--admonition-danger-border-style) var(--admonition-danger-border-color); // @presenter Border
|
|
638
|
+
/* --admonition-danger-icon: figure this out latter */
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* @tokens Admonition type success
|
|
642
|
+
*/
|
|
643
|
+
|
|
644
|
+
--admonition-success-background-color: var(--color-success-50); // @presenter Color
|
|
645
|
+
--admonition-success-text-color: var(--text-color); // @presenter Color
|
|
646
|
+
--admonition-success-heading-text-color: var(--text-color); // @presenter Color
|
|
647
|
+
--admonition-success-icon-color: var(--color-success-900); // @presenter Color
|
|
648
|
+
--admonition-success-border-color: inherit; // @presenter Color
|
|
649
|
+
--admonition-success-border-style: var(--admonition-border-style); // @presenter Color
|
|
650
|
+
--admonition-success-border-width: var(--admonition-border-width); // @presenter Color
|
|
651
|
+
--admonition-success-border: var(--admonition-success-border-width)
|
|
652
|
+
var(--admonition-success-border-style) var(--admonition-success-border-color); // @presenter Border
|
|
653
|
+
/* --admonition-success-icon: figure this out latter */
|
|
479
654
|
|
|
480
655
|
// @tokens End
|
|
481
656
|
`;
|
|
482
657
|
|
|
483
|
-
const
|
|
658
|
+
const responsePanelColors = css`
|
|
484
659
|
/**
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
660
|
+
* @tokens Response Panel Common
|
|
661
|
+
*/
|
|
662
|
+
|
|
663
|
+
--panel-response-heading-padding: 10px 20px;
|
|
664
|
+
--panel-response-heading-font-size: var(--font-size-base);
|
|
665
|
+
--panel-response-heading-line-height: 20px;
|
|
666
|
+
--panel-response-heading-font-weight: var(--font-weight-bold);
|
|
667
|
+
--panel-response-heading-text-color: var(--text-color);
|
|
668
|
+
|
|
669
|
+
--panel-response-body-text-color: var(--text-color);
|
|
488
670
|
|
|
489
671
|
/**
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
--samples-panel-gap: 20px;
|
|
494
|
-
--samples-panel-width: 50%;
|
|
672
|
+
* @tokens Response Panel Success colors
|
|
673
|
+
* @presenter Color
|
|
674
|
+
*/
|
|
495
675
|
|
|
496
|
-
--
|
|
676
|
+
--panel-response-success-border-color: var(--color-success-100);
|
|
677
|
+
--panel-response-success-heading-background-color: var(--color-success-50);
|
|
678
|
+
--panel-response-success-heading-text-color: var(--panel-response-heading-text-color);
|
|
679
|
+
--panel-response-success-body-background-color: transparent;
|
|
680
|
+
--panel-response-success-schema-nested-background-color: var(--color-secondary-200);
|
|
681
|
+
--panel-response-success-body-text-color: var(--panel-response-body-text-color);
|
|
497
682
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
--panels-title-font-family: var(--font-family-base);
|
|
683
|
+
/**
|
|
684
|
+
* @tokens Response Panel Error colors
|
|
685
|
+
* @presenter Color
|
|
686
|
+
*/
|
|
503
687
|
|
|
504
|
-
--
|
|
505
|
-
--
|
|
506
|
-
--
|
|
507
|
-
--
|
|
508
|
-
--
|
|
688
|
+
--panel-response-error-border-color: var(--color-error-100);
|
|
689
|
+
--panel-response-error-heading-background-color: var(--color-error-50);
|
|
690
|
+
--panel-response-error-heading-text-color: var(--panel-response-heading-text-color);
|
|
691
|
+
--panel-response-error-body-background-color: transparent;
|
|
692
|
+
--panel-response-error-schema-nested-background-color: var(--color-secondary-200);
|
|
693
|
+
--panel-response-error-body-text-color: var(--panel-response-body-text-color);
|
|
509
694
|
|
|
510
|
-
|
|
695
|
+
/**
|
|
696
|
+
* @tokens Response Panel Redirect colors
|
|
697
|
+
* @presenter Color
|
|
698
|
+
*/
|
|
511
699
|
|
|
512
|
-
--
|
|
513
|
-
--
|
|
514
|
-
--
|
|
515
|
-
--
|
|
516
|
-
--
|
|
517
|
-
--
|
|
518
|
-
--samples-panel-text-color: #fff;
|
|
519
|
-
--samples-panel-heading-color: #fff;
|
|
700
|
+
--panel-response-redirect-border-color: var(--color-warning-100);
|
|
701
|
+
--panel-response-redirect-heading-background-color: var(--color-warning-50);
|
|
702
|
+
--panel-response-redirect-heading-text-color: var(--panel-response-heading-text-color);
|
|
703
|
+
--panel-response-redirect-body-background-color: transparent;
|
|
704
|
+
--panel-response-redirect-schema-nested-background-color: var(--color-secondary-200);
|
|
705
|
+
--panel-response-redirect-body-text-color: var(--panel-response-body-text-color);
|
|
520
706
|
|
|
521
|
-
|
|
522
|
-
|
|
707
|
+
/**
|
|
708
|
+
* @tokens Response Panel Info colors
|
|
709
|
+
* @presenter Color
|
|
710
|
+
*/
|
|
711
|
+
|
|
712
|
+
--panel-response-info-border-color: var(--color-accent-100);
|
|
713
|
+
--panel-response-info-heading-background-color: var(--color-accent-50);
|
|
714
|
+
--panel-response-info-heading-text-color: var(--panel-response-heading-text-color);
|
|
715
|
+
--panel-response-info-body-background-color: transparent;
|
|
716
|
+
--panel-response-info-schema-nested-background-color: var(--color-secondary-200);
|
|
717
|
+
--panel-response-info-body-text-color: var(--panel-response-body-text-color);
|
|
523
718
|
|
|
524
719
|
/**
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
720
|
+
* @tokens Response Panel Callback colors
|
|
721
|
+
* @presenter Color
|
|
722
|
+
*/
|
|
723
|
+
|
|
724
|
+
--panel-response-callback-border-color: var(--color-secondary-300);
|
|
725
|
+
--panel-response-callback-heading-background-color: var(--color-secondary-300);
|
|
726
|
+
--panel-response-callback-heading-text-color: var(--panel-response-heading-text-color);
|
|
727
|
+
--panel-response-callback-body-background-color: transparent;
|
|
728
|
+
--panel-response-callback-schema-nested-background-color: var(--color-secondary-200);
|
|
729
|
+
--panel-response-callback-body-text-color: var(--panel-response-body-text-color);
|
|
528
730
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
--try-it-panel-active-tab-border-color: var(--color-accent-500);
|
|
532
|
-
--try-it-panel-disabled-tab-color: rgba(245, 247, 250, 0.7);
|
|
533
|
-
--try-it-panel-controls-background-color: var(--samples-panel-controls-background-color);
|
|
534
|
-
--try-it-panel-action-button-width: auto;
|
|
731
|
+
// @tokens End
|
|
732
|
+
`;
|
|
535
733
|
|
|
734
|
+
const apiReferencePanels = css`
|
|
536
735
|
/**
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
736
|
+
* @tokens Panels spacing
|
|
737
|
+
* @presenter Spacing
|
|
738
|
+
*/
|
|
739
|
+
|
|
740
|
+
--panel-gap-horizontal: calc(var(--spacing-unit) * 8);
|
|
741
|
+
--panel-gap-vertical: calc(var(--spacing-unit) * 4);
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* @tokens Panel common
|
|
745
|
+
*/
|
|
746
|
+
|
|
747
|
+
--panel-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
748
|
+
--panel-border: 1px solid var(--border-color); // @presenter Border
|
|
749
|
+
|
|
750
|
+
--panel-line-height: var(--line-height-base); // @presenter LineHeight
|
|
751
|
+
--panel-font-size: var(--font-size-base); // @presenter FontSize
|
|
752
|
+
--panel-font-family: var(--font-family-base); // @presenter FontFamily
|
|
753
|
+
--panel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* @tokens Panel heading common
|
|
757
|
+
*/
|
|
758
|
+
|
|
759
|
+
--panel-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
760
|
+
--panel-heading-font-size: 18px; // @presenter FontSize
|
|
761
|
+
--panel-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
762
|
+
--panel-heading-padding: calc(var(--spacing-unit) * 4);
|
|
763
|
+
--panel-heading-line-height: 1; // @presenter LineHeight
|
|
764
|
+
--panel-heading-whit-space: 'nowrap';
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* @tokens Panel body common
|
|
768
|
+
*/
|
|
769
|
+
|
|
770
|
+
--panel-body-font-family: var(--font-family-base); // @presenter FontFamily
|
|
771
|
+
--panel-body-font-size: var(--font-size-base); // @presenter FontSize
|
|
772
|
+
--panel-body-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
773
|
+
--panel-body-padding: calc(var(--spacing-unit) * 4);
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* @tokens Panel schemas common
|
|
777
|
+
*/
|
|
778
|
+
|
|
779
|
+
--panel-schemas-text-color: var(--text-color); // @presenter Color
|
|
780
|
+
--panel-schemas-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
781
|
+
--panel-schemas-font-size: var(--panel-font-size); // @presenter FontSize
|
|
782
|
+
--panel-schemas-font-weight: var(--panel-font-weight); // @presenter
|
|
783
|
+
--panel-schemas-background-color: var(--color-emphasis-50); // @presenter Color
|
|
784
|
+
--panel-schemas-border: var(--panel-border); // @presenter Border
|
|
785
|
+
--panel-schemas-chevron-icon-color: var(--text-color); // @presenter Color
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* @tokens Panel schemas body common
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
--panel-schemas-body-text-color: var(--text-color); // @presenter Color
|
|
792
|
+
--panel-schemas-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
793
|
+
--panel-schemas-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
794
|
+
--panel-schemas-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
795
|
+
--panel-schemas-body-padding: 0 var(--panel-body-padding) var(--panel-body-padding)
|
|
796
|
+
var(--panel-body-padding);
|
|
797
|
+
--panel-schemas-body-background-color: var(--color-emphasis-50); // @presenter Color
|
|
798
|
+
--panel-schemas-body-border: unset; // @presenter Border
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* @tokens Panel schemas heading common
|
|
802
|
+
*/
|
|
803
|
+
|
|
804
|
+
--panel-schemas-heading-text-color: var(--text-color); // @presenter Color
|
|
805
|
+
--panel-schemas-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
806
|
+
--panel-schemas-heading-font-size: var(--panel-heading-font-size); // @presenter FontSize
|
|
807
|
+
--panel-schemas-heading-font-weight: var(--panel-heading-font-weight); // @presenter FontWeight
|
|
808
|
+
--panel-schemas-heading-line-height: var(--panel-heading-line-height); // @presenter LineHeight
|
|
809
|
+
--panel-schemas-heading-padding: var(--panel-heading-padding);
|
|
810
|
+
--panel-schemas-heading-background-color: var(--color-emphasis-50); // @presenter Color
|
|
811
|
+
--panel-schemas-heading-border: unset; // @presenter Border
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* @tokens Panel default, response, callback, security schemas
|
|
815
|
+
*/
|
|
816
|
+
|
|
817
|
+
.panel-request-schemas,
|
|
818
|
+
.panel-response-schemas,
|
|
819
|
+
.panel-callback-schemas,
|
|
820
|
+
.panel-security-schemas,
|
|
821
|
+
.panel-default {
|
|
822
|
+
--panel-text-color: var(--panel-schemas-text-color); // @presenter Color
|
|
823
|
+
--panel-font-family-local: var(--panel-schemas-font-family);
|
|
824
|
+
--panel-font-size-local: var(--panel-schemas-font-size);
|
|
825
|
+
--panel-font-weight-local: var(--panel-schemas-font-weight);
|
|
826
|
+
--panel-background-color: var(--panel-schemas-background-color); // @presenter Color
|
|
827
|
+
--panel-border-local: var(--panel-schemas-border);
|
|
828
|
+
--panel-chevron-icon-color: var(--panel-schemas-chevron-icon-color); // @presenter Color
|
|
829
|
+
|
|
830
|
+
--panel-body-text-color: var(--panel-schemas-body-text-color); // @presenter Color
|
|
831
|
+
--panel-body-font-family-local: var(--panel-schemas-body-font-family);
|
|
832
|
+
--panel-body-font-size-local: var(--panel-schemas-body-font-size);
|
|
833
|
+
--panel-body-font-weight-local: var(--panel-schemas-body-font-weight);
|
|
834
|
+
--panel-body-padding-local: var(--panel-schemas-body-padding);
|
|
835
|
+
--panel-body-background-color: var(--panel-schemas-body-background-color); // @presenter Color
|
|
836
|
+
--panel-body-border: var(--panel-schemas-body-border); // @presenter Border
|
|
837
|
+
|
|
838
|
+
--panel-heading-text-color: var(--panel-schemas-heading-text-color); // @presenter Color
|
|
839
|
+
--panel-heading-font-family-local: var(--panel-schemas-heading-font-family);
|
|
840
|
+
--panel-heading-font-size-local: var(--panel-schemas-heading-font-size);
|
|
841
|
+
--panel-heading-font-weight-local: var(--panel-schemas-heading-font-weight);
|
|
842
|
+
--panel-heading-line-height-local: var(--panel-schemas-heading-line-height);
|
|
843
|
+
--panel-heading-padding-local: var(--panel-schemas-heading-padding);
|
|
844
|
+
--panel-heading-background-color: var(
|
|
845
|
+
--panel-schemas-heading-background-color
|
|
846
|
+
); // @presenter Color
|
|
847
|
+
--panel-heading-border: var(--panel-schemas-heading-border); // @presenter Border
|
|
848
|
+
--panel-heading-white-space-local: var(--panel-heading-whit-space);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* @tokens Panel samples common
|
|
853
|
+
*/
|
|
854
|
+
|
|
855
|
+
--panel-samples-block-background-color: var(--color-emphasis-50); // @presenter Color
|
|
856
|
+
--panel-samples-width: 50%;
|
|
857
|
+
|
|
858
|
+
--panel-samples-text-color: var(--text-color-inverse); // @presenter Color
|
|
859
|
+
--panel-samples-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
860
|
+
--panel-samples-font-size: var(--panel-font-size); // @presenter FontSize
|
|
861
|
+
--panel-samples-font-weight: var(--panel-font-weight); // @presenter FontWight
|
|
862
|
+
--panel-samples-background-color: #52606d; // @presenter Color
|
|
863
|
+
--panel-samples-border: var(--panel-border); // @presenter Border
|
|
864
|
+
--panel-samples-chevron-icon-color: var(--text-color-inverse); // @presenter Color
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* @tokens Panel samples body common
|
|
868
|
+
*/
|
|
869
|
+
|
|
870
|
+
--panel-samples-body-text-color: var(--text-color-inverse); // @presenter Color
|
|
871
|
+
--panel-samples-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
872
|
+
--panel-samples-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
873
|
+
--panel-samples-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
874
|
+
--panel-samples-body-padding: var(--panel-body-padding);
|
|
875
|
+
--panel-samples-body-background-color: #52606d; // @presenter Color
|
|
876
|
+
--panel-samples-body-border: unset; // @presenter Border
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* @tokens Panel samples heading common
|
|
880
|
+
*/
|
|
881
|
+
|
|
882
|
+
--panel-samples-heading-text-color: var(--text-color-inverse); // @presenter Color
|
|
883
|
+
--panel-samples-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
884
|
+
--panel-samples-heading-font-size: var(--panel-font-size); // @presenter FontSize
|
|
885
|
+
--panel-samples-heading-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
886
|
+
--panel-samples-heading-line-height: 30px; // @presenter LineHeight
|
|
887
|
+
--panel-samples-heading-padding: 0 20px;
|
|
888
|
+
--panel-samples-heading-background-color: #323f4b; // @presenter Color
|
|
889
|
+
--panel-samples-heading-border: unset; // @presenter Border
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* @tokens Panel try-it, request-samples, response-samples, callback samples
|
|
893
|
+
*/
|
|
894
|
+
|
|
895
|
+
.panel-try-it,
|
|
896
|
+
.panel-request-samples,
|
|
897
|
+
.panel-response-samples,
|
|
898
|
+
.panel-callback-samples {
|
|
899
|
+
--panel-text-color: var(--panel-samples-text-color); // @presenter Color
|
|
900
|
+
--panel-font-family-local: var(--panel-samples-font-family);
|
|
901
|
+
--panel-font-size-local: var(--panel-samples-font-size);
|
|
902
|
+
--panel-font-weight-local: var(--panel-samples-font-weight);
|
|
903
|
+
--panel-background-color: var(--panel-samples-background-color); // @presenter Color
|
|
904
|
+
--panel-border-local: var(--panel-samples-border);
|
|
905
|
+
--panel-chevron-icon-color: var(--panel-samples-chevron-icon-color); // @presenter Color
|
|
906
|
+
|
|
907
|
+
--panel-body-text-color: var(--panel-samples-body-text-color); // @presenter Color
|
|
908
|
+
--panel-body-background-color: var(--panel-samples-body-background-color); // @presenter Color
|
|
909
|
+
|
|
910
|
+
--panel-body-font-family-local: var(--panel-samples-body-font-family);
|
|
911
|
+
--panel-body-font-size-local: var(--panel-samples-body-font-size);
|
|
912
|
+
--panel-body-font-weight-local: var(--panel-samples-body-font-weight);
|
|
913
|
+
--panel-body-padding-local: var(--panel-samples-body-padding);
|
|
914
|
+
--panel-body-border-local: var(--panel-samples-body-border);
|
|
915
|
+
|
|
916
|
+
--panel-heading-text-color: var(--panel-samples-heading-text-color); // @presenter Color
|
|
917
|
+
--panel-heading-background-color: var(
|
|
918
|
+
--panel-samples-heading-background-color
|
|
919
|
+
); // @presenter Color
|
|
920
|
+
|
|
921
|
+
--panel-heading-font-family-local: var(--panel-samples-heading-font-family);
|
|
922
|
+
--panel-heading-font-size-local: var(--panel-samples-heading-font-size);
|
|
923
|
+
--panel-heading-font-weight-local: var(--panel-samples-heading-font-weight);
|
|
924
|
+
--panel-heading-line-height-local: var(--panel-samples-heading-line-height);
|
|
925
|
+
--panel-heading-padding-local: var(--panel-samples-heading-padding);
|
|
926
|
+
|
|
927
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* @tokens Panel response success, info, error, redirect, callback common
|
|
932
|
+
*/
|
|
933
|
+
|
|
934
|
+
.panel-response-success,
|
|
935
|
+
.panel-response-info,
|
|
936
|
+
.panel-response-error,
|
|
937
|
+
.panel-response-redirect,
|
|
938
|
+
.panel-response-callback {
|
|
939
|
+
--panel-body-text-color: var(--panel-response-body-text-color); // @presenter Color
|
|
940
|
+
|
|
941
|
+
--panel-heading-text-color: var(--panel-response-heading-text-color); // @presenter Color
|
|
942
|
+
--panel-heading-font-size-local: var(--panel-response-heading-font-size);
|
|
943
|
+
--panel-heading-font-weight-local: var(--panel-response-heading-font-weight);
|
|
944
|
+
--panel-heading-line-height-local: var(--panel-response-heading-line-height);
|
|
945
|
+
--panel-heading-padding-local: var(--panel-response-heading-padding);
|
|
946
|
+
|
|
947
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
948
|
+
--panel-heading-white-space-local: normal;
|
|
949
|
+
--panel-body-padding-local: var(--panel-body-padding);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* @tokens Panel response success colors
|
|
954
|
+
* @presenter Color
|
|
955
|
+
*/
|
|
956
|
+
|
|
957
|
+
.panel-response-success {
|
|
958
|
+
--panel-border-local: 1px solid var(--panel-response-success-border-color); // @presenter Border
|
|
959
|
+
|
|
960
|
+
--panel-body-text-color: var(--panel-response-success-body-text-color);
|
|
961
|
+
--panel-body-background-color: var(--panel-response-success-body-background-color);
|
|
962
|
+
|
|
963
|
+
--panel-heading-background-color: var(--panel-response-success-heading-background-color);
|
|
964
|
+
--panel-heading-text-color: var(--panel-response-success-heading-text-color);
|
|
965
|
+
|
|
966
|
+
--panel-response-schema-nested-background-color: var(
|
|
967
|
+
--panel-response-success-schema-nested-background-color
|
|
968
|
+
);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* @tokens Panel response info colors
|
|
973
|
+
* @presenter Color
|
|
974
|
+
*/
|
|
975
|
+
|
|
976
|
+
.panel-response-info {
|
|
977
|
+
--panel-border-local: 1px solid var(--panel-response-info-border-color); // @presenter Border
|
|
978
|
+
|
|
979
|
+
--panel-body-text-color: var(--panel-response-info-body-text-color);
|
|
980
|
+
--panel-body-background-color: var(--panel-response-info-body-background-color);
|
|
981
|
+
|
|
982
|
+
--panel-heading-background-color: var(--panel-response-info-heading-background-color);
|
|
983
|
+
--panel-heading-text-color: var(--panel-response-info-heading-text-color);
|
|
984
|
+
|
|
985
|
+
--panel-response-schema-nested-background-color: var(
|
|
986
|
+
--panel-response-info-schema-nested-background-color
|
|
987
|
+
);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* @tokens Panel response error colors
|
|
992
|
+
* @presenter Color
|
|
993
|
+
*/
|
|
994
|
+
|
|
995
|
+
.panel-response-error {
|
|
996
|
+
--panel-border-local: 1px solid var(--panel-response-error-border-color); // @presenter Border
|
|
997
|
+
|
|
998
|
+
--panel-body-text-color: var(--panel-response-error-body-text-color);
|
|
999
|
+
--panel-body-background-color: var(--panel-response-error-body-background-color);
|
|
1000
|
+
|
|
1001
|
+
--panel-heading-background-color: var(--panel-response-error-heading-background-color);
|
|
1002
|
+
--panel-heading-text-color: var(--panel-response-error-heading-text-color);
|
|
1003
|
+
|
|
1004
|
+
--panel-response-schema-nested-background-color: var(
|
|
1005
|
+
--panel-response-error-schema-nested-background-color
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* @tokens Panel response redirect colors
|
|
1011
|
+
* @presenter Color
|
|
1012
|
+
*/
|
|
1013
|
+
|
|
1014
|
+
.panel-response-redirect {
|
|
1015
|
+
--panel-border-local: 1px solid var(--panel-response-redirect-border-color); // @presenter Border
|
|
1016
|
+
--panel-body-text-color: var(--panel-response-redirect-body-text-color);
|
|
1017
|
+
|
|
1018
|
+
--panel-body-background-color: var(--panel-response-redirect-body-background-color);
|
|
1019
|
+
--panel-heading-background-color: var(--panel-response-redirect-heading-background-color);
|
|
1020
|
+
--panel-heading-text-color: var(--panel-response-redirect-heading-text-color);
|
|
1021
|
+
|
|
1022
|
+
--panel-response-schema-nested-background-color: var(
|
|
1023
|
+
--panel-response-redirect-schema-nested-background-color
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* @tokens Panel response callback colors
|
|
1029
|
+
* @presenter Color
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
1032
|
+
.panel-response-callback {
|
|
1033
|
+
--panel-border-local: 1px solid var(--panel-response-callback-border-color); // @presenter Border
|
|
1034
|
+
|
|
1035
|
+
--panel-body-text-color: var(--panel-response-callback-body-text-color);
|
|
1036
|
+
--panel-body-background-color: var(--panel-response-callback-body-background-color);
|
|
1037
|
+
|
|
1038
|
+
--panel-heading-background-color: var(--panel-response-callback-heading-background-color);
|
|
1039
|
+
--panel-heading-text-color: var(--panel-response-callback-heading-text-color);
|
|
1040
|
+
|
|
1041
|
+
--panel-response-schema-nested-background-color: var(
|
|
1042
|
+
--panel-response-callback-schema-nested-background-color
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* @tokens Panel try-it nested common
|
|
1048
|
+
* @presenter Color
|
|
1049
|
+
*/
|
|
1050
|
+
|
|
1051
|
+
--panel-try-it-nested-text-color: var(--text-color-inverse);
|
|
1052
|
+
--panel-try-it-nested-chevron-icon-color: var(--text-color-inverse);
|
|
1053
|
+
|
|
1054
|
+
--panel-try-it-nested-body-background-color: #3e4c59;
|
|
1055
|
+
--panel-try-it-nested-body-text-color: var(--text-color-inverse);
|
|
1056
|
+
--panel-try-it-nested-body-padding: var(--panel-body-padding); // @presenter Spacing
|
|
1057
|
+
--panel-try-it-nested-body-border-color: var(--color-secondary-800);
|
|
1058
|
+
|
|
1059
|
+
--panel-try-it-nested-heading-text-color: var(--text-color-inverse);
|
|
1060
|
+
--panel-try-it-nested-heading-background-color: transparent;
|
|
1061
|
+
--panel-try-it-nested-heading-border-color: var(--color-secondary-800);
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* @tokens Panel try-it nested
|
|
1065
|
+
* @presenter Color
|
|
1066
|
+
*/
|
|
1067
|
+
|
|
1068
|
+
.panel-try-it-nested {
|
|
1069
|
+
--panel-text-color: var(--panel-try-it-nested-text-color);
|
|
1070
|
+
--panel-chevron-icon-color: var(--panel-try-it-nested-chevron-icon-color);
|
|
1071
|
+
|
|
1072
|
+
--panel-body-text-color: var(--panel-try-it-nested-body-text-color);
|
|
1073
|
+
--panel-body-background-color: var(--panel-try-it-nested-body-background-color);
|
|
1074
|
+
--panel-body-padding-local: var(--panel-try-it-nested-body-padding); // @presenter Spacing
|
|
1075
|
+
|
|
1076
|
+
--panel-heading-text-color: var(--panel-try-it-nested-heading-text-color);
|
|
1077
|
+
--panel-heading-background-color: var(--panel-try-it-nested-heading-background-color);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* @tokens Panel samples tabs
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
1084
|
+
--panel-samples-tabs-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1085
|
+
--panel-samples-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1086
|
+
--panel-samples-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1087
|
+
--panel-samples-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1088
|
+
|
|
1089
|
+
--panel-samples-tabs-background-color: transparent; // @presenter Color
|
|
1090
|
+
--panel-samples-tabs-hover-background-color: #3c4c5a; // @presenter Color
|
|
1091
|
+
--panel-samples-tabs-active-background-color: var(
|
|
1092
|
+
--panel-samples-heading-background-color
|
|
1093
|
+
); // @presenter Color
|
|
1094
|
+
|
|
1095
|
+
--panel-samples-tabs-border-color: var(--border-color-secondary); // @presenter Color
|
|
1096
|
+
--panel-samples-tabs-hover-border-color: var(
|
|
1097
|
+
var(--panel-samples-heading-background-color)
|
|
1098
|
+
); // @presenter Color
|
|
1099
|
+
--panel-samples-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1100
|
+
|
|
1101
|
+
--panel-samples-code-block-background-color: var(
|
|
1102
|
+
--code-block-background-color
|
|
1103
|
+
); // @presenter Color
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* @tokens Panel try-it tabs
|
|
1107
|
+
*/
|
|
1108
|
+
|
|
1109
|
+
--panel-try-it-tabs-font-size: 12px; // @presenter FontSize
|
|
1110
|
+
--panel-try-it-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1111
|
+
--panel-try-it-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1112
|
+
--panel-try-it-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1113
|
+
--panel-try-it-tabs-disabled-text-color: var(--color-secondary-400); // @presenter Color
|
|
1114
|
+
|
|
1115
|
+
--panel-try-it-tabs-background-color: var(
|
|
1116
|
+
--panel-samples-heading-background-color
|
|
1117
|
+
); // @presenter Color
|
|
1118
|
+
--panel-try-it-tabs-hover-background-color: var(
|
|
1119
|
+
--panel-samples-tabs-hover-background-color
|
|
1120
|
+
); // @presenter Color
|
|
1121
|
+
--panel-try-it-tabs-active-background-color: #47535e; // @presenter Color
|
|
1122
|
+
--panel-try-it-tabs-disabled-background-color: var(--color-secondary-500); // @presenter Color
|
|
1123
|
+
|
|
1124
|
+
--panel-try-it-tabs-border-color: transparent; // @presenter Color
|
|
1125
|
+
--panel-try-it-tabs-hover-border-color: var(
|
|
1126
|
+
--panel-try-it-tabs-active-background-color
|
|
1127
|
+
); // @presenter Color
|
|
1128
|
+
--panel-try-it-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1129
|
+
--panel-try-it-tabs-disabled-border-color: transparent; // @presenter Color
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* @tokens Panel try-it action button
|
|
1133
|
+
*/
|
|
1134
|
+
|
|
1135
|
+
--panel-try-it-action-button-width: auto;
|
|
1136
|
+
--panel-try-it-action-button-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1137
|
+
--panel-try-it-action-button-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1138
|
+
--panel-try-it-action-button-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1139
|
+
--panel-try-it-action-button-text-color: var(--text-color-inverse); // @presenter Color
|
|
1140
|
+
--panel-try-it-action-button-background-color: var(--color-primary-500); // @presenter Color
|
|
1141
|
+
--panel-try-it-action-button-border-color: transparent; // @presenter Color
|
|
1142
|
+
|
|
1143
|
+
--panel-try-it-action-button-active-text-color: var(--color-emphasis-900); // @presenter Color
|
|
1144
|
+
--panel-try-it-action-button-active-background-color: var(
|
|
1145
|
+
--color-emphasis-700
|
|
1146
|
+
); // @presenter Color
|
|
1147
|
+
--panel-try-it-action-button-active-border-color: var(--color-emphasis-700); // @presenter Color
|
|
1148
|
+
|
|
1149
|
+
--panel-try-it-action-button-hover-background-color: var(
|
|
1150
|
+
--color-emphasis-600
|
|
1151
|
+
); // @presenter Color
|
|
1152
|
+
--panel-try-it-action-button-hover-text-color: var(--color-emphasis-800); // @presenter Color
|
|
1153
|
+
--panel-try-it-action-button-hover-border-color: var(--color-emphasis-600); // @presenter Color
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* @tokens Panel samples other styles
|
|
1157
|
+
*/
|
|
1158
|
+
|
|
1159
|
+
--panel-samples-controls-background-color: var(
|
|
1160
|
+
--panel-samples-heading-background-color
|
|
1161
|
+
); // @presenter Color
|
|
1162
|
+
--panel-samples-controls-hover-background-color: var(
|
|
1163
|
+
--panel-samples-tabs-hover-background-color
|
|
1164
|
+
); // @presenter Color
|
|
1165
|
+
--panel-samples-controls-text-color: var(--text-color-inverse); // @presenter Color
|
|
1166
|
+
|
|
1167
|
+
--panel-samples-dropdown-background-color: var(
|
|
1168
|
+
--panel-samples-heading-background-color
|
|
1169
|
+
); // @presenter Color
|
|
1170
|
+
--panel-samples-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1171
|
+
--panel-samples-dropdown-border: unset; // @presenter Border
|
|
1172
|
+
|
|
1173
|
+
--panel-samples-input-background-color: var(
|
|
1174
|
+
--panel-samples-heading-background-color
|
|
1175
|
+
); // @presenter Color
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @tokens Panel try-it other styles
|
|
1179
|
+
*/
|
|
1180
|
+
|
|
1181
|
+
--panel-try-it-input-background-color: var(
|
|
1182
|
+
--panel-samples-heading-background-color
|
|
1183
|
+
); // @presenter Color
|
|
1184
|
+
--panel-try-it-input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1185
|
+
--panel-try-it-input-border: unset; // @presenter Border
|
|
1186
|
+
|
|
1187
|
+
--panel-try-it-dropdown-background-color: var(
|
|
1188
|
+
--panel-samples-heading-background-color
|
|
1189
|
+
); // @presenter Color
|
|
1190
|
+
--panel-try-it-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1191
|
+
--panel-try-it-border: unset; // @presenter Border
|
|
541
1192
|
|
|
542
1193
|
// @tokens End
|
|
1194
|
+
|
|
1195
|
+
// TODO PUL RIGHT section - related to pull right - fix later
|
|
1196
|
+
|
|
1197
|
+
--samples-panel-markdown-background-color: #3c4c5a;
|
|
1198
|
+
--samples-panel-markdown-border-color: #46596a;
|
|
1199
|
+
|
|
1200
|
+
--layout-right-rail-width: 50%;
|
|
1201
|
+
--layout-right-rail-background-color: transparent;
|
|
543
1202
|
`;
|
|
544
1203
|
|
|
545
1204
|
const tooltip = css`
|
|
@@ -547,16 +1206,20 @@ const tooltip = css`
|
|
|
547
1206
|
* @tokens Tooltip Base
|
|
548
1207
|
* @presenter Color
|
|
549
1208
|
*/
|
|
550
|
-
--tooltip-color: var(--color-secondary-
|
|
551
|
-
--tooltip-background-color:
|
|
1209
|
+
--tooltip-text-color: var(--color-secondary-200);
|
|
1210
|
+
--tooltip-background-color: var(--color-emphasis-600);
|
|
552
1211
|
|
|
553
1212
|
/**
|
|
554
1213
|
* @tokens Tooltip Copy Button
|
|
555
1214
|
* @presenter Color
|
|
556
1215
|
*/
|
|
1216
|
+
|
|
1217
|
+
--copy-button-tooltip-text-color: #000;
|
|
1218
|
+
--copy-button-tooltip-background-color: var(--color-secondary-50);
|
|
1219
|
+
|
|
557
1220
|
.tooltip-copy-button {
|
|
558
|
-
--tooltip-color:
|
|
559
|
-
--tooltip-background-color:
|
|
1221
|
+
--tooltip-text-color: var(--copy-button-tooltip-text-color);
|
|
1222
|
+
--tooltip-background-color: var(--copy-button-tooltip-background-color);
|
|
560
1223
|
}
|
|
561
1224
|
|
|
562
1225
|
// @tokens End
|
|
@@ -570,64 +1233,76 @@ const code = css`
|
|
|
570
1233
|
--code-font-family: var(--font-family-monospaced); // @presenter FontFamily
|
|
571
1234
|
--code-font-weight: 400; // @presenter FontWeight
|
|
572
1235
|
--code-wrap: pre;
|
|
1236
|
+
--code-word-break: break-word;
|
|
573
1237
|
|
|
574
1238
|
/**
|
|
575
1239
|
* @tokens Inline Code
|
|
576
1240
|
*/
|
|
577
1241
|
--inline-code-font-size: var(--code-font-size); // @presenter FontSize
|
|
578
1242
|
--inline-code-font-family: var(--code-font-family); // @presenter FontFamily
|
|
579
|
-
--inline-code-color: #e53935; // @presenter Color
|
|
580
|
-
--inline-code-background-color: var(--color-secondary-
|
|
581
|
-
--inline-code-border-color: var(--
|
|
582
|
-
--inline-code-border-radius: var(--
|
|
1243
|
+
--inline-code-text-color: #e53935; // @presenter Color
|
|
1244
|
+
--inline-code-background-color: var(--color-secondary-100); // @presenter Color
|
|
1245
|
+
--inline-code-border-color: var(--border-color); // @presenter Color
|
|
1246
|
+
--inline-code-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
583
1247
|
|
|
584
1248
|
/**
|
|
585
1249
|
* @tokens Code Block
|
|
586
1250
|
*/
|
|
587
1251
|
--code-block-font-size: var(--code-font-size); // @presenter FontSize
|
|
588
1252
|
--code-block-font-family: var(--code-font-family); // @presenter FontFamily
|
|
589
|
-
--code-block-color: #
|
|
590
|
-
--code-block-background-color:
|
|
591
|
-
--code-block-border-color: var(--
|
|
592
|
-
--code-block-border-radius:
|
|
1253
|
+
--code-block-text-color: #fff; // @presenter Color
|
|
1254
|
+
--code-block-background-color: #323f4b; // @presenter Color
|
|
1255
|
+
--code-block-border-color: var(--border-color); // @presenter Color
|
|
1256
|
+
--code-block-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
593
1257
|
--code-block-max-height: 600px;
|
|
594
1258
|
--code-block-word-break: initial;
|
|
595
|
-
--code-block-preformatted-background-color: #323f4b; // @presenter Color
|
|
596
1259
|
|
|
597
|
-
|
|
1260
|
+
/**
|
|
1261
|
+
* @tokens Code Block controls
|
|
1262
|
+
*/
|
|
1263
|
+
|
|
1264
|
+
--code-block-controls-text-color: #fff; // @presenter Color
|
|
1265
|
+
--code-block-controls-hover-text-color: #fff; // @presenter Color
|
|
1266
|
+
--code-block-controls-background-color: transparent; // @presenter Color
|
|
1267
|
+
--code-block-controls-hover-background-color: rgba(255, 255, 255, 0.15); // @presenter Color
|
|
1268
|
+
--code-block-controls-opacity: 0.5;
|
|
1269
|
+
--code-block-controls-active-opacity: 1;
|
|
1270
|
+
--code-block-controls-padding: 0 5px; // @presenter Spacing
|
|
1271
|
+
--code-block-controls-font-size: var(--font-size-base); // @presenter FontSize
|
|
1272
|
+
--code-block-controls-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1273
|
+
--code-block-controls-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
598
1274
|
|
|
1275
|
+
/**
|
|
1276
|
+
* @tokens Code Block tokens
|
|
1277
|
+
*/
|
|
1278
|
+
--code-block-tokens-default-color: var(--text-color-inverse); // @presenter Color
|
|
599
1279
|
--code-block-tokens-comment-color: hsl(30, 20%, 50%); // @presenter Color
|
|
600
1280
|
--code-block-tokens-prolog-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
601
1281
|
--code-block-tokens-doctype-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
602
1282
|
--code-block-tokens-cdata-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
603
|
-
|
|
604
1283
|
--code-block-tokens-property-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
605
1284
|
--code-block-tokens-tag-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
606
1285
|
--code-block-tokens-number-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
607
1286
|
--code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
608
1287
|
--code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
609
|
-
|
|
610
1288
|
--code-block-tokens-boolean-color: var(--color-error-500); // @presenter Color
|
|
611
|
-
|
|
612
1289
|
--code-block-tokens-string-color: #fee39e; // @presenter Color
|
|
1290
|
+
--code-block-tokens-property-string-color: #9efaa7; // @presenter Color
|
|
613
1291
|
--code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
614
1292
|
--code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
615
1293
|
--code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
616
1294
|
--code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
617
1295
|
--code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
618
|
-
|
|
1296
|
+
--code-block-tokens-link-color: #4ed2ba; // @presenter Color
|
|
619
1297
|
--code-block-tokens-operator-color: #f5b83d; // @presenter Color
|
|
620
1298
|
--code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
621
1299
|
--code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
622
1300
|
--code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
623
|
-
|
|
624
1301
|
--code-block-tokens-keyword-color: #ffdbf4; // @presenter Color
|
|
625
1302
|
--code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
626
1303
|
--code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
627
|
-
|
|
628
1304
|
--code-block-tokens-regex-color: #e90; // @presenter Color
|
|
629
1305
|
--code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
|
|
630
|
-
|
|
631
1306
|
--code-block-tokens-deleted-color: red; // @presenter Color
|
|
632
1307
|
|
|
633
1308
|
// @tokens End
|
|
@@ -637,30 +1312,32 @@ const links = css`
|
|
|
637
1312
|
/**
|
|
638
1313
|
* @tokens Links
|
|
639
1314
|
*/
|
|
640
|
-
--link-color: var(--color-primary-500); // @presenter Color
|
|
1315
|
+
--link-text-color: var(--color-primary-500); // @presenter Color
|
|
641
1316
|
--link-decoration: none;
|
|
642
|
-
--link-
|
|
1317
|
+
--link-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1318
|
+
|
|
1319
|
+
--link-hover-text-color: var(--color-primary-100); // @presenter Color
|
|
643
1320
|
--link-hover-decoration: underline;
|
|
644
1321
|
|
|
1322
|
+
--link-active-decoration: none;
|
|
1323
|
+
--link-active-text-color: var(--color-primary-500); // @presenter Color
|
|
1324
|
+
|
|
1325
|
+
--link-visited-text-color: var(--color-primary-500); // @presenter Color
|
|
1326
|
+
--link-visited-decoration: none;
|
|
1327
|
+
|
|
645
1328
|
// @tokens End
|
|
646
1329
|
`;
|
|
647
1330
|
|
|
648
|
-
const
|
|
1331
|
+
const apiReferenceDocs = css`
|
|
649
1332
|
/* === ref docs and graphql docs specific === */
|
|
650
1333
|
|
|
651
1334
|
/**
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
--logo-max-height: 285px;
|
|
655
|
-
--logo-max-width: 285px;
|
|
656
|
-
--logo-padding: 2px;
|
|
1335
|
+
* @tokens API Reference Schemas Layout
|
|
1336
|
+
*/
|
|
657
1337
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
--layout-buttons-top-offset: 20px; // @presenter Spacing
|
|
662
|
-
--layout-buttons-height: 36px; // @presenter Spacing
|
|
663
|
-
--layout-buttons-width: 36px; // @presenter Spacing
|
|
1338
|
+
--layout-controls-top-offset: 20px; // @presenter Spacing
|
|
1339
|
+
--layout-controls-height: 36px; // @presenter Spacing
|
|
1340
|
+
--layout-controls-width: 36px; // @presenter Spacing
|
|
664
1341
|
|
|
665
1342
|
--layout-stacked-small-max-width: 90%;
|
|
666
1343
|
--layout-stacked-medium-max-width: 75%;
|
|
@@ -670,77 +1347,224 @@ const openapiAndGraphqlDocs = css`
|
|
|
670
1347
|
--layout-three-panel-medium-max-width: 100%;
|
|
671
1348
|
--layout-three-panel-large-max-width: 1800px;
|
|
672
1349
|
|
|
673
|
-
--layout-
|
|
674
|
-
--layout-
|
|
675
|
-
--layout-
|
|
1350
|
+
--layout-panel-schemas-small-max-width: none;
|
|
1351
|
+
--layout-panel-schemas-medium-max-width: none;
|
|
1352
|
+
--layout-panel-schemas-large-max-width: none;
|
|
676
1353
|
|
|
677
1354
|
/**
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
--schema-lines-color: var(--global-border-color); // @presenter Color
|
|
681
|
-
--schema-default-details-width: 70%;
|
|
682
|
-
--schema-type-name-color: var(--color-content-secondary); // @presenter Color
|
|
683
|
-
--schema-type-title-color: var(--color-content-secondary); // @presenter Color
|
|
684
|
-
--schema-require-label-color: var(--color-error-900); // @presenter Color
|
|
685
|
-
--schema-labels-text-size: 0.9em; // @presenter Spacing
|
|
686
|
-
--schema-nesting-spacing: 1em; // @presenter Spacing
|
|
687
|
-
--schema-nested-background-color: var(--color-secondary-200); // @presenter Color
|
|
688
|
-
--schema-chevron-color: var(--color-content); // @presenter Color
|
|
689
|
-
--schema-chevron-size: 9px; // @presenter Spacing
|
|
1355
|
+
* @tokens API Reference Schemas MimeType Dropdown
|
|
1356
|
+
*/
|
|
690
1357
|
|
|
691
|
-
--
|
|
692
|
-
--
|
|
693
|
-
--
|
|
694
|
-
--
|
|
1358
|
+
--schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
|
|
1359
|
+
--schemas-mime-type-dropdown-border: var(--dropdown-border); // @presenter Border
|
|
1360
|
+
--schemas-mime-type-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1361
|
+
--schemas-mime-type-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* @tokens API Reference Schemas Discriminator Dropdown
|
|
1365
|
+
*/
|
|
695
1366
|
|
|
696
|
-
--
|
|
697
|
-
--
|
|
698
|
-
--
|
|
699
|
-
--
|
|
700
|
-
--field-constraint-color: var(--color-content); // @presenter Color
|
|
701
|
-
--field-constraint-background-color: var(--inline-code-background-color); // @presenter Color
|
|
1367
|
+
--schemas-discriminator-dropdown-padding: 2px 24px 2px 8px;
|
|
1368
|
+
--schemas-discriminator-dropdown-border: 1px solid var(--border-color); // @presenter Border
|
|
1369
|
+
--schemas-discriminator-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1370
|
+
--schemas-discriminator-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
702
1371
|
|
|
703
1372
|
/**
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
*/
|
|
707
|
-
--search-input-border-bottom: #e6e6e6;
|
|
708
|
-
--search-results-background-color: #f2f2f2;
|
|
709
|
-
--search-results-active-item-background-color: #e6e6e6;
|
|
710
|
-
--search-marked-background-color: #ffff03;
|
|
711
|
-
--search-popup-header-background-color: var(--color-secondary-200);
|
|
712
|
-
--search-clear-button-background-color: var(--color-secondary-400);
|
|
713
|
-
--search-clear-button-hover-background-color: var(--color-secondary-600);
|
|
1373
|
+
* @tokens API Reference Schemas Titles
|
|
1374
|
+
*/
|
|
714
1375
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
1376
|
+
--schema-type-title-text-color: var(--text-color-secondary); // @presenter Color
|
|
1377
|
+
--schema-type-text-color: var(--text-color-secondary); // @presenter Color
|
|
1378
|
+
--schema-labels-font-size: 0.8em; // @presenter FontSize
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* @tokens API Reference Schemas Lines Color
|
|
1382
|
+
*/
|
|
1383
|
+
|
|
1384
|
+
--schemas-lines-color: var(--border-color); // @presenter Color
|
|
722
1385
|
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
--
|
|
728
|
-
--
|
|
1386
|
+
/**
|
|
1387
|
+
* @tokens API Reference Schema Inline code typography
|
|
1388
|
+
*/
|
|
1389
|
+
|
|
1390
|
+
--schema-inline-code-font-family: var(--inline-code-font-family); // @presenter FontFamily
|
|
1391
|
+
--schema-inline-code-font-size: var(--inline-code-font-size); // @presenter FontSize
|
|
1392
|
+
--schema-inline-code-text-color: var(--text-color); // @presenter Color
|
|
1393
|
+
--schema-inline-background-color: var(--color-secondary-100); // @presenter Color
|
|
1394
|
+
--schema-inline-border-color: var(--border-color); // @presenter Color
|
|
1395
|
+
--schema-inline-border: 1px solid var(--schema-inline-border-color); // @presenter Border
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* @tokens API Reference Schema Example Label colors
|
|
1399
|
+
* @presenter Color
|
|
1400
|
+
*/
|
|
1401
|
+
|
|
1402
|
+
--schema-example-text-color: var(--schema-inline-code-text-color);
|
|
1403
|
+
--schema-example-background-color: var(--schema-inline-background-color);
|
|
1404
|
+
--schema-example-border-color: var(--schema-inline-border-color);
|
|
729
1405
|
|
|
730
|
-
|
|
731
|
-
|
|
1406
|
+
/**
|
|
1407
|
+
* @tokens API Reference Schema Constraint Label colors
|
|
1408
|
+
* @presenter Color
|
|
1409
|
+
*/
|
|
1410
|
+
|
|
1411
|
+
--schema-constraint-text-color: var(--schema-inline-code-text-color);
|
|
1412
|
+
--schema-constraint-background-color: var(--schema-inline-background-color);
|
|
1413
|
+
--schema-constraint-border-color: var(--schema-inline-border-color);
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* @tokens API Reference Schema Enum Label colors
|
|
1417
|
+
* @presenter Color
|
|
1418
|
+
*/
|
|
1419
|
+
|
|
1420
|
+
--schema-enum-text-color: var(--schema-inline-code-text-color);
|
|
1421
|
+
--schema-enum-background-color: var(--schema-inline-background-color);
|
|
1422
|
+
--schema-enum-border-color: var(--schema-inline-border-color);
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* @tokens API Reference Schema Default Label colors
|
|
1426
|
+
* @presenter Color
|
|
1427
|
+
*/
|
|
1428
|
+
|
|
1429
|
+
--schema-default-text-color: var(--schema-inline-code-text-color);
|
|
1430
|
+
--schema-default-background-color: var(--schema-inline-background-color);
|
|
1431
|
+
--schema-default-border-color: var(--schema-inline-border-color);
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* @tokens API Reference Schema Recursive Label colors
|
|
1435
|
+
* @presenter Color
|
|
1436
|
+
*/
|
|
1437
|
+
|
|
1438
|
+
--schema-recursive-text-color: var(--color-warning-600);
|
|
1439
|
+
--schema-recursive-background-color: var(--schema-inline-background-color);
|
|
1440
|
+
--schema-recursive-border-color: var(--schema-inline-border-color);
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* @tokens GraphQL Docs Reference Schema Non null label
|
|
1444
|
+
* @presenter Color
|
|
1445
|
+
*/
|
|
732
1446
|
|
|
1447
|
+
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
1448
|
+
--schema-non-null-background-color: var(--schema-inline-background-color);
|
|
1449
|
+
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
733
1450
|
/**
|
|
734
|
-
|
|
1451
|
+
* @tokens API Reference Schema Nested styles
|
|
1452
|
+
*/
|
|
1453
|
+
|
|
1454
|
+
--schema-nested-offset: 1em; // @presenter Spacing
|
|
1455
|
+
--schema-nested-background-color: var(--color-secondary-100); // @presenter Color
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* @tokens API Reference Schema Buttons
|
|
1459
|
+
*/
|
|
1460
|
+
|
|
1461
|
+
--schema-buttons-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1462
|
+
--schema-buttons-font-weight: var(--code-font-weight); // @presenter FontWeight
|
|
1463
|
+
--schema-buttons-font-size: var(--code-font-size); // @presenter FontSize
|
|
1464
|
+
|
|
1465
|
+
--schema-buttons-text-color: var(--color-emphasis-700); // @presenter Color
|
|
1466
|
+
--schema-buttons-background-color: transparent; // @presenter Color
|
|
1467
|
+
--schema-buttons-border-color: var(--color-secondary-500); // @presenter Color
|
|
1468
|
+
|
|
1469
|
+
--schema-buttons-hover-background-color: var(--color-secondary-300); // @presenter Color
|
|
1470
|
+
--schema-buttons-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1471
|
+
|
|
1472
|
+
--schema-buttons-selected-text-color: var(--schema-buttons-text-color); // @presenter Color
|
|
1473
|
+
--schema-buttons-selected-background-color: var(--color-secondary-300); // @presenter Color
|
|
1474
|
+
--schema-buttons-selected-border-color: var(--schema-buttons-border-color); // @presenter Color
|
|
1475
|
+
--schema-buttons-selected-hover-background-color: var(--color-secondary-400); // @presenter Color
|
|
1476
|
+
--schema-buttons-selected-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* @tokens API Reference Schema Properties
|
|
1480
|
+
*/
|
|
1481
|
+
|
|
1482
|
+
--schemas-property-name-text-color: var(--text-color); //@presenter Color
|
|
1483
|
+
--schemas-property-name-font-size: var(--code-font-size); // @presenter FontSize
|
|
1484
|
+
--schemas-property-name-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1485
|
+
|
|
1486
|
+
--schema-property-labels-font-size: var(--schema-labels-font-size); // @presenter FontSize
|
|
1487
|
+
--schema-property-required-label-text-color: var(--color-error-900); // @presenter Color
|
|
1488
|
+
--schema-property-additional-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1489
|
+
--schema-property-access-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1490
|
+
|
|
1491
|
+
--schema-property-details-width: 70%;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* @tokens API Reference Schema Icons
|
|
1495
|
+
*/
|
|
1496
|
+
|
|
1497
|
+
--schema-chevron-color: var(--text-color); // @presenter Color
|
|
1498
|
+
--schema-chevron-size: 9px;
|
|
1499
|
+
|
|
1500
|
+
--schema-property-deep-link-icon-color: var(--color-primary-500); // @presenter Color
|
|
1501
|
+
/* --schema-property-deep-link-icon: figure out this later */
|
|
1502
|
+
|
|
1503
|
+
/*
|
|
1504
|
+
* @tokens API Reference Other
|
|
735
1505
|
*/
|
|
736
|
-
|
|
737
|
-
--spinner-color: var(--color-primary-500); // @presenter Color
|
|
1506
|
+
|
|
1507
|
+
--loading-spinner-color: var(--color-primary-500); // @presenter Color
|
|
738
1508
|
--linear-progress-color: var(--color-accent-500); // @presenter Color
|
|
739
1509
|
--linear-progress-background-color: var(--color-accent-100); // @presenter Color
|
|
740
1510
|
|
|
741
|
-
|
|
742
|
-
--fab-color:
|
|
743
|
-
--fab-
|
|
1511
|
+
--fab-icon-color: var(--color-primary-500); // @presenter Color
|
|
1512
|
+
--fab-background-color: var(--color-emphasis-50); // @presenter Color
|
|
1513
|
+
--fab-box-shadow: 0 0 20px rgba(43, 43, 43, 0.3); // @presenter Shadow
|
|
1514
|
+
|
|
1515
|
+
--fab-hover-background: var(--color-emphasis-200); // @presenter Color
|
|
1516
|
+
--fab-hover-icon-color: var(--color-primary-600); // @presenter Color
|
|
1517
|
+
--fab-hover-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); // @presenter Shadow
|
|
1518
|
+
|
|
1519
|
+
--fab-active-background: var(--color-emphasis-200); // @presenter Color
|
|
1520
|
+
--fab-active-icon-color: var(--color-primary-600); // @presenter Color
|
|
1521
|
+
--fab-active-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); // @presenter Shadow
|
|
1522
|
+
|
|
1523
|
+
/* --fab-icon: <svg string or url> work with icons later **/
|
|
1524
|
+
|
|
1525
|
+
// @tokens End
|
|
1526
|
+
`;
|
|
1527
|
+
|
|
1528
|
+
const badges = css`
|
|
1529
|
+
/**
|
|
1530
|
+
* @tokens Default Badge
|
|
1531
|
+
*/
|
|
1532
|
+
--badge-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1533
|
+
--badge-background-color: var(--color-primary-500); // @presenter Color
|
|
1534
|
+
--badge-border-color: var(--color-primary-700); // @presenter Color
|
|
1535
|
+
--badge-border: 1px solid var(--badge-border-color); // @presenter Border
|
|
1536
|
+
--badge-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* @tokens Deprecated Badge
|
|
1540
|
+
*/
|
|
1541
|
+
|
|
1542
|
+
--badge-deprecated-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1543
|
+
--badge-deprecated-background-color: var(--color-warning-500); // @presenter Color
|
|
1544
|
+
--badge-deprecated-border-color: var(--color-warning-700); // @presenter Color
|
|
1545
|
+
--badge-deprecated-border: 1px solid var(--badge-deprecated-border-color); // @presenter Border
|
|
1546
|
+
--badge-deprecated-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* @tokens Http Badge
|
|
1550
|
+
*/
|
|
1551
|
+
|
|
1552
|
+
--badge-http-font-size: 12px; // @presenter FontSize
|
|
1553
|
+
--badge-http-line-height: 20px; // @presenter LineHeight
|
|
1554
|
+
--badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1555
|
+
--badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1556
|
+
--badge-http-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1557
|
+
--badge-http-border-radius: calc(var(--border-radius-lg) * 2); // @presenter BorderRadius
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* @tokens Sidebar item badge http
|
|
1561
|
+
*/
|
|
1562
|
+
|
|
1563
|
+
--sidebar-item-badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1564
|
+
--sidebar-item-badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1565
|
+
--sidebar-item-badge-http-font-size: 8px; // @presenter FontSize
|
|
1566
|
+
--sidebar-item-badge-http-font-weight: normal; //@presenter FontWeight
|
|
1567
|
+
--sidebar-item-badge-http-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
744
1568
|
|
|
745
1569
|
// @tokens End
|
|
746
1570
|
`;
|
|
@@ -752,6 +1576,30 @@ const footer = css`
|
|
|
752
1576
|
--footer-background-color: var(--color-primary-500); // @presenter Color
|
|
753
1577
|
--footer-text-color: #fff; // @presenter Color
|
|
754
1578
|
|
|
1579
|
+
--footer-padding-vertical: 2em; // @presenter Spacing
|
|
1580
|
+
--footer-padding-horizontal: 20px; // @presenter Spacing
|
|
1581
|
+
|
|
1582
|
+
--footer-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1583
|
+
--footer-font-size: 1rem; // @presenter FontSize
|
|
1584
|
+
--footer-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1585
|
+
|
|
1586
|
+
--footer-title-text-color: var(--footer-text-color); // @presenter Color
|
|
1587
|
+
--footer-title-font-size: 24px; // @presenter FontSize
|
|
1588
|
+
--footer-title-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1589
|
+
--footer-title-margin-vertical: 1.5em;
|
|
1590
|
+
|
|
1591
|
+
--footer-link-text-color: var(--footer-text-color); // @presenter Color
|
|
1592
|
+
--footer-link-hover-color: var(--footer-text-color); // @presenter Color
|
|
1593
|
+
|
|
1594
|
+
--footer-item-padding-vertical: 0.5em; // @presenter Spacingv
|
|
1595
|
+
--footer-item-padding-horizontal: 0;
|
|
1596
|
+
|
|
1597
|
+
--footer-column-width: 20%; // @presenter Spacing
|
|
1598
|
+
--footer-column-margin-vertical: 20px; // @presenter Spacing
|
|
1599
|
+
--footer-column-margin-horizontal: 0; // @presenter Spacing
|
|
1600
|
+
|
|
1601
|
+
--footer-container-max-width: 1200px; // @presenter Spacing
|
|
1602
|
+
|
|
755
1603
|
// @tokens End
|
|
756
1604
|
`;
|
|
757
1605
|
|
|
@@ -759,8 +1607,12 @@ const logo = css`
|
|
|
759
1607
|
/**
|
|
760
1608
|
* @tokens Logo
|
|
761
1609
|
*/
|
|
762
|
-
|
|
763
|
-
--logo-
|
|
1610
|
+
|
|
1611
|
+
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
1612
|
+
--navbar-logo-width: auto;
|
|
1613
|
+
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
1614
|
+
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
1615
|
+
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
764
1616
|
|
|
765
1617
|
// @tokens End
|
|
766
1618
|
`;
|
|
@@ -772,20 +1624,33 @@ const navbar = css`
|
|
|
772
1624
|
--navbar-height: 60px; // @presenter Spacing
|
|
773
1625
|
--navbar-text-color: #fff; // @presenter Color
|
|
774
1626
|
--navbar-background-color: var(--color-primary-500); // @presenter Color
|
|
775
|
-
--navbar-
|
|
1627
|
+
--navbar-container-max-width: 1200px;
|
|
776
1628
|
|
|
777
1629
|
/**
|
|
778
1630
|
* @tokens Navbar Item
|
|
779
1631
|
* */
|
|
1632
|
+
--navbar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
780
1633
|
--navbar-item-font-size: 16px; // @presenter FontSize
|
|
781
|
-
--navbar-item-
|
|
782
|
-
--navbar-item-
|
|
783
|
-
--navbar-item-
|
|
1634
|
+
--navbar-item-padding-horizontal: 16px; // @presenter Spacing
|
|
1635
|
+
--navbar-item-paddin-vertical: 8px; // @presenter Spacing
|
|
1636
|
+
--navbar-item-margin-horizontal: 7px;
|
|
1637
|
+
--navbar-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
784
1638
|
--navbar-item-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
785
|
-
--navbar-item-
|
|
1639
|
+
--navbar-item-hover-background-color: var(--color-primary-300);
|
|
1640
|
+
--navbar-item-active-background-color: var(--color-primary-300); // @presenter Color
|
|
1641
|
+
--navbar-item-hover-text-color: var(--navbar-text-color); // @presenter Color
|
|
1642
|
+
--navbar-item-hover-text-decoration: none;
|
|
786
1643
|
--navbar-item-active-text-color: var(--navbar-text-color); // @presenter Color
|
|
787
|
-
--navbar-item-separator-line-color: var(--sidebar-separator-line-color); // @presenter Color
|
|
788
1644
|
--navbar-item-active-text-decoration: none;
|
|
1645
|
+
--navbar-item-separator-line-color: var(--border-color); // @presenter Color
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* @tokens Navbar dropdown
|
|
1649
|
+
* */
|
|
1650
|
+
|
|
1651
|
+
--navbar-dropdown-shadow: 4px 4px 15px -2px rgba(0, 0, 0, 0.5); //should be variable
|
|
1652
|
+
--navbar-dropdown-background: var(--navbar-item-active-background-color);
|
|
1653
|
+
--navbar-dropdown-border: none;
|
|
789
1654
|
|
|
790
1655
|
// @tokens End
|
|
791
1656
|
`;
|
|
@@ -794,56 +1659,237 @@ const toc = css`
|
|
|
794
1659
|
/**
|
|
795
1660
|
* @tokens TOC
|
|
796
1661
|
* */
|
|
1662
|
+
|
|
797
1663
|
--toc-width: 240px;
|
|
1664
|
+
--toc-background-color: transparent;
|
|
1665
|
+
--toc-border-color: var(--border-color);
|
|
1666
|
+
|
|
1667
|
+
--toc-spacing-unit: 8px;
|
|
1668
|
+
--toc-offset-top: calc(var(--toc-spacing-unit) * 2);
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* @tokens TOC item typography
|
|
1672
|
+
*/
|
|
1673
|
+
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1674
|
+
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* @tokens TOC item
|
|
1678
|
+
*/
|
|
1679
|
+
|
|
1680
|
+
--toc-item-text-color: var(--text-color); // @presenter Color
|
|
1681
|
+
--toc-item-active-text-color: var(--text-color); // @presenter Color
|
|
1682
|
+
--toc-item-background-color: transparent; // @presenter Color
|
|
1683
|
+
--toc-item-active-background-color: var(--border-color); // @presenter Color
|
|
1684
|
+
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1685
|
+
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
1686
|
+
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* @tokens TOC header
|
|
1690
|
+
*/
|
|
1691
|
+
|
|
1692
|
+
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
1693
|
+
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1694
|
+
--toc-heading-font-weight: bold; // @presenter FontWeight
|
|
1695
|
+
--toc-heading-text-color: var(--text-color); // @presenter Color
|
|
798
1696
|
|
|
799
1697
|
// @tokens End
|
|
800
1698
|
`;
|
|
801
1699
|
|
|
802
|
-
const
|
|
1700
|
+
const inputs = css`
|
|
803
1701
|
/**
|
|
804
|
-
* @tokens
|
|
805
|
-
|
|
806
|
-
--
|
|
807
|
-
--
|
|
808
|
-
--
|
|
1702
|
+
* @tokens Inputs
|
|
1703
|
+
*/
|
|
1704
|
+
--input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1705
|
+
--input-border: none; // @presenter Border
|
|
1706
|
+
--input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1707
|
+
--input-font-size: var(--font-size-base); // @presenter FontSize
|
|
1708
|
+
--input-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1709
|
+
--input-line-height: 1.15em; // @presenter LineHeight
|
|
1710
|
+
--input-padding: 8px;
|
|
1711
|
+
|
|
1712
|
+
--input-hover-text-color: var(--text-color-inverse); // @presenter Color
|
|
1713
|
+
--input-hover-border: none; // @presenter Border
|
|
1714
|
+
--input-focus-border: none; // @presenter Border
|
|
1715
|
+
--input-focus-text-color: var(--text-color-inverse); // @presenter Color
|
|
1716
|
+
--input-placeholder-text-color: var(--text-color-inverse); // @presenter Color
|
|
809
1717
|
|
|
810
1718
|
// @tokens End
|
|
811
1719
|
`;
|
|
812
1720
|
|
|
813
|
-
const
|
|
1721
|
+
const markdown = css`
|
|
814
1722
|
/**
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
--
|
|
819
|
-
--
|
|
820
|
-
--
|
|
821
|
-
|
|
822
|
-
|
|
1723
|
+
* @tokens Markdown Container
|
|
1724
|
+
*/
|
|
1725
|
+
|
|
1726
|
+
--md-container-max-width: 910px;
|
|
1727
|
+
--md-container-padding-vertical: 25px; // @presenter Spacing
|
|
1728
|
+
--md-container-padding-horizontal: 0px; // @presenter Spacing
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* @tokens Markdown Blockquote
|
|
1732
|
+
*/
|
|
1733
|
+
|
|
1734
|
+
--md-blockquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
1735
|
+
--md-blockquote-margin-horizontal: 0; // @presenter Spacing
|
|
1736
|
+
--md-blockquote-padding-vertical: 0; // @presenter Spacing
|
|
1737
|
+
--md-blockquote-padding-horizontal: calc(var(--spacing-unit) * 4); // @presenter Spacing
|
|
1738
|
+
--md-blockquote-border-color: var(--border-color); // @presenter Color
|
|
1739
|
+
--md-blockquote-background-color: transparent; // @presenter Color
|
|
1740
|
+
--md-blockquote-border-left: 4px solid var(--md-blockquote-border-color); // @presenter Border
|
|
1741
|
+
--md-blockquote-text-color: var(--text-color); // @presenter Color
|
|
1742
|
+
--md-blockquote-box-shadow: none; // @presenter Shadow
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* @tokens Markdown Paragraph
|
|
1746
|
+
*/
|
|
1747
|
+
|
|
1748
|
+
--md-paragraph-margin-vertical: 10px; // @presenter Spacing
|
|
1749
|
+
--md-paragraph-margin-horizontal: 0px; // @presenter Spacing
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* @tokens Markdown Table
|
|
1753
|
+
*/
|
|
1754
|
+
|
|
1755
|
+
--md-table-font-size: 14px; // @presenter FontSize
|
|
1756
|
+
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
1757
|
+
--md-table-background-color: transparent; // @presenter Color
|
|
1758
|
+
|
|
1759
|
+
--md-table-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1760
|
+
--md-table-border-width: 1px;
|
|
1761
|
+
--md-table-border-color: var(--border-color); // @presenter Color
|
|
1762
|
+
|
|
1763
|
+
--md-table-stripe-background-color: var(--md-table-background-color); // @presenter Color
|
|
1764
|
+
|
|
1765
|
+
--md-table-cell-text-color: var(--text-color); // @presenter Color
|
|
1766
|
+
--md-table-cell-padding: 12px; // @presenter Spacing
|
|
1767
|
+
|
|
1768
|
+
--md-table-head-background-color: var(--color-secondary-200); // @presenter Color
|
|
1769
|
+
--md-table-head-text-color: var(--text-color); // @presenter Color
|
|
1770
|
+
--md-table-head-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* @tokens Markdown Horizontal Rule
|
|
1774
|
+
*/
|
|
1775
|
+
|
|
1776
|
+
--md-hr-background-color: transparent; // @presenter Color
|
|
1777
|
+
--md-hr-border-color: var(--border-color); // @presenter Color
|
|
1778
|
+
--md-hr-height: unset;
|
|
1779
|
+
--md-hr-margin-vertical: 20px; // @presenter Spacing
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* @tokens Markdown List
|
|
1783
|
+
*/
|
|
1784
|
+
|
|
1785
|
+
--md-list-left-padding: 2rem; // @presenter Spacing
|
|
1786
|
+
--md-list-margin: 1rem; // @presenter Spacing
|
|
1787
|
+
--md-list-item-margin: 0.25rem; // @presenter Spacing
|
|
1788
|
+
--md-list-item-style: inherit;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* @tokens Markdown Numbered List
|
|
1792
|
+
*/
|
|
1793
|
+
|
|
1794
|
+
--md-numbered-list-number-display: none;
|
|
1795
|
+
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
1796
|
+
--md-numbered-list-number-text-color: var(--color-secondary-100); // @presenter Color
|
|
1797
|
+
--md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
|
|
1798
|
+
--md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
|
|
1799
|
+
--md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1800
|
+
--md-numbered-list-number-background-color: var(--color-secondary-800); // @presenter Color
|
|
1801
|
+
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
1802
|
+
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
1803
|
+
--md-numbered-list-number-padding: 0 5px; // @presenter Spacing
|
|
823
1804
|
|
|
824
1805
|
// @tokens End
|
|
825
1806
|
`;
|
|
826
1807
|
|
|
827
|
-
const
|
|
1808
|
+
const search = css`
|
|
828
1809
|
/**
|
|
829
|
-
|
|
830
|
-
|
|
1810
|
+
* @tokens Search
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
--search-highlight-text-color: #ffff03; // @presenter Color
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* @tokens Portal Search
|
|
1817
|
+
*/
|
|
1818
|
+
|
|
831
1819
|
--search-input-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
832
1820
|
--search-input-text-color: #fff; // @presenter Color
|
|
833
|
-
|
|
1821
|
+
|
|
1822
|
+
--search-input-border: none;
|
|
1823
|
+
--search-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
834
1824
|
--search-input-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
835
1825
|
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
836
1826
|
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
837
|
-
|
|
838
|
-
--search-
|
|
1827
|
+
|
|
1828
|
+
--search-input-hover-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
1829
|
+
--search-input-hover-border: none; // @presenter Color
|
|
1830
|
+
--search-input-placeholder-color: var(--search-input-text-color);
|
|
1831
|
+
|
|
1832
|
+
--search-popover-background-color: #fff; // @presenter Color
|
|
839
1833
|
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
840
|
-
--search-
|
|
841
|
-
|
|
1834
|
+
--search-popover-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
|
|
1835
|
+
0 8px 10px -5px rgba(0, 0, 0, 0.4); // @presenter BoxShadow
|
|
1836
|
+
--search-popover-border: none;
|
|
1837
|
+
|
|
1838
|
+
--search-item-padding: 8px 24px;
|
|
1839
|
+
--search-item-text-color: var(--text-color-secondary); // @presenter Color
|
|
1840
|
+
--search-item-title-text-color: var(--text-color); // @presenter Color
|
|
1841
|
+
--search-item-background-color: transparent; // @presenter Color
|
|
1842
|
+
--search-item-active-text-color: var(--text-color-secondary); // @presenter Color
|
|
1843
|
+
--search-item-active-title-text-color: var(--text-color); // @presenter Color
|
|
842
1844
|
--search-item-active-background-color: rgba(0, 68, 212, 0.1); // @presenter Color
|
|
843
1845
|
|
|
1846
|
+
/**
|
|
1847
|
+
* @tokens Sidebar Search
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
--sidebar-search-button-background-color: transparent; // @presenter Color
|
|
1851
|
+
--sidebar-search-button-text-color: var(--text-color); // @presenter Color
|
|
1852
|
+
--sidebar-search-button-border: var(--border-color);
|
|
1853
|
+
--sidebar-search-button-border-radius: none; // @presenter BorderRadius
|
|
1854
|
+
--sidebar-search-button-font-size: var(--font-size-small); // @presenter FontSize
|
|
1855
|
+
--sidebar-search-button-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1856
|
+
--sidebar-search-button-line-height: 1.15em; // @presenter LineHeight
|
|
1857
|
+
--sidebar-search-button-hover-background-color: transparent; // @presenter Color
|
|
1858
|
+
--sidebar-search-button-hover-border: var(--border-color); // @presenter Color
|
|
1859
|
+
--sidebar-search-button-active-background-color: transparent; // @presenter Color
|
|
1860
|
+
--sidebar-search-button-active-border: var(--border-color); // @presenter Color
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* @tokens Search results modal
|
|
1864
|
+
* @presenter Color
|
|
1865
|
+
*/
|
|
1866
|
+
|
|
1867
|
+
--search-modal-background: #fff;
|
|
1868
|
+
--search-modal-text-color: var(--text-color);
|
|
1869
|
+
--search-modal-border: none;
|
|
1870
|
+
--search-modal-box-shadow: none;
|
|
1871
|
+
|
|
1872
|
+
--search-modal-header-border-radius: 8px;
|
|
1873
|
+
--search-modal-header-background-color: var(--color-secondary-100);
|
|
1874
|
+
--search-modal-clear-button-background-color: var(--color-secondary-300);
|
|
1875
|
+
--search-modal-clear-button-hover-background-color: var(--color-secondary-500);
|
|
1876
|
+
|
|
844
1877
|
// @tokens End
|
|
845
1878
|
`;
|
|
846
1879
|
|
|
1880
|
+
const dropdown = css`
|
|
1881
|
+
--dropdown-font-size: 14px;
|
|
1882
|
+
--dropdown-text-color: var(--text-color);
|
|
1883
|
+
|
|
1884
|
+
--dropdown-padding-vertical: 8px;
|
|
1885
|
+
--dropdown-padding-left: 10px;
|
|
1886
|
+
--dropdown-padding-right: 26px;
|
|
1887
|
+
--dropdown-padding: var(--dropdown-padding-vertical) var(--dropdown-padding-right)
|
|
1888
|
+
var(--dropdown-padding-vertical) var(--dropdown-padding-left);
|
|
1889
|
+
|
|
1890
|
+
--dropdown-border: none;
|
|
1891
|
+
`;
|
|
1892
|
+
|
|
847
1893
|
export const darkMode = css`
|
|
848
1894
|
${baseDarkColors}
|
|
849
1895
|
`;
|
|
@@ -852,26 +1898,27 @@ export const styles = css`
|
|
|
852
1898
|
:root {
|
|
853
1899
|
${baseColors}
|
|
854
1900
|
${httpColors}
|
|
855
|
-
${
|
|
1901
|
+
${responsePanelColors}
|
|
856
1902
|
${typography}
|
|
857
1903
|
${headingsTypography}
|
|
858
|
-
${
|
|
1904
|
+
${common}
|
|
859
1905
|
${admonition}
|
|
860
1906
|
${buttons}
|
|
861
1907
|
${sidebar}
|
|
862
|
-
${panels}
|
|
863
1908
|
${navbar}
|
|
864
1909
|
${footer}
|
|
865
1910
|
${logo}
|
|
1911
|
+
${badges}
|
|
866
1912
|
${toc}
|
|
1913
|
+
${inputs}
|
|
867
1914
|
${tooltip}
|
|
868
1915
|
${code}
|
|
869
1916
|
${links}
|
|
870
1917
|
${markdown}
|
|
871
|
-
${
|
|
872
|
-
${
|
|
873
|
-
|
|
874
|
-
${
|
|
1918
|
+
${search}
|
|
1919
|
+
${dropdown}
|
|
1920
|
+
${apiReferencePanels}
|
|
1921
|
+
${apiReferenceDocs}
|
|
875
1922
|
}
|
|
876
1923
|
|
|
877
1924
|
:root.dark {
|