@redocly/theme 0.2.3 → 0.4.1
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 +4 -3
- package/CopyButton/CopyButtonWrapper.d.ts +2 -1
- package/CopyButton/CopyButtonWrapper.js +3 -2
- 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/Details.d.ts +6 -0
- package/Markdown/Details.js +22 -0
- package/Markdown/MarkdownLayout.d.ts +3 -1
- package/Markdown/MarkdownLayout.js +4 -4
- 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 +2 -2
- package/NavbarLogo/NavbarLogo.js +1 -1
- package/OperationBadge/OperationBadge.js +1 -1
- package/PageNavigation/PageNavigation.d.ts +6 -1
- package/PageNavigation/PageNavigation.js +4 -3
- 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/SourceCode/SourceCode.js +5 -5
- 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.d.ts +0 -1
- package/globalStyle.js +29 -28
- package/hooks/useActiveHeading.js +6 -5
- 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 +5 -4
- package/src/CopyButton/CopyButtonWrapper.tsx +6 -3
- 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/Details.tsx +19 -0
- package/src/Markdown/MarkdownLayout.tsx +8 -4
- 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 +3 -3
- package/src/NavbarLogo/NavbarLogo.tsx +4 -4
- package/src/OperationBadge/OperationBadge.ts +8 -9
- package/src/PageNavigation/PageNavigation.tsx +11 -3
- 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/SourceCode/SourceCode.tsx +4 -4
- 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 +1358 -344
- package/src/hooks/useActiveHeading.ts +41 -34
- 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;
|
|
@@ -80,12 +88,10 @@ const baseColors = css`
|
|
|
80
88
|
// @tokens End
|
|
81
89
|
`;
|
|
82
90
|
const baseDarkColors = css`
|
|
83
|
-
/* === Palette === */
|
|
84
|
-
|
|
85
91
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
92
|
+
* @tokens Base Dark Colors
|
|
93
|
+
* @presenter Color
|
|
94
|
+
*/
|
|
89
95
|
--color-primary-100: #969ca6;
|
|
90
96
|
--color-primary-200: #7f8693;
|
|
91
97
|
--color-primary-300: #7d7d80;
|
|
@@ -95,6 +101,8 @@ const baseDarkColors = css`
|
|
|
95
101
|
--color-primary-700: #28282a;
|
|
96
102
|
--color-primary-800: #202021;
|
|
97
103
|
--color-primary-900: #000000;
|
|
104
|
+
|
|
105
|
+
// @tokens End
|
|
98
106
|
`;
|
|
99
107
|
|
|
100
108
|
const httpColors = css`
|
|
@@ -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,149 +452,730 @@ 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);
|
|
508
|
+
|
|
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
|
|
443
511
|
|
|
444
|
-
|
|
445
|
-
--
|
|
446
|
-
--admonition-danger-text-color: var(--color-content);
|
|
447
|
-
--admonition-danger-icon-color: #e53935;
|
|
512
|
+
--sidebar-group-item-chevron-size: var(--sidebar-spacing-unit);
|
|
513
|
+
--sidebar-group-item-chevron-color: var(--sidebar-item-text-color);
|
|
448
514
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
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) var(--admonition-success-border-style) var(--admonition-success-border-color); // @presenter Border
|
|
652
|
+
/* --admonition-success-icon: figure this out latter */
|
|
479
653
|
|
|
480
654
|
// @tokens End
|
|
481
655
|
`;
|
|
482
656
|
|
|
483
|
-
const
|
|
657
|
+
const responsePanelColors = css`
|
|
484
658
|
/**
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
659
|
+
* @tokens Response Panel Common
|
|
660
|
+
*/
|
|
661
|
+
|
|
662
|
+
--panel-response-heading-padding: 10px 20px;
|
|
663
|
+
--panel-response-heading-font-size: var(--font-size-base);
|
|
664
|
+
--panel-response-heading-line-height: 20px;
|
|
665
|
+
--panel-response-heading-font-weight: var(--font-weight-bold);
|
|
666
|
+
--panel-response-heading-text-color: var(--text-color);
|
|
667
|
+
|
|
668
|
+
--panel-response-body-text-color: var(--text-color);
|
|
488
669
|
|
|
489
670
|
/**
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
--samples-panel-gap: 20px;
|
|
494
|
-
--samples-panel-width: 50%;
|
|
671
|
+
* @tokens Response Panel Success colors
|
|
672
|
+
* @presenter Color
|
|
673
|
+
*/
|
|
495
674
|
|
|
496
|
-
--
|
|
497
|
-
--
|
|
498
|
-
--
|
|
499
|
-
--
|
|
500
|
-
--
|
|
501
|
-
--
|
|
502
|
-
--samples-panel-controls-active-border-color: var(--color-accent-500);
|
|
503
|
-
--samples-panel-text-color: #fff;
|
|
504
|
-
--samples-panel-heading-color: #fff;
|
|
675
|
+
--panel-response-success-border-color: var(--color-success-100);
|
|
676
|
+
--panel-response-success-heading-background-color: var(--color-success-50);
|
|
677
|
+
--panel-response-success-heading-text-color: var(--panel-response-heading-text-color);
|
|
678
|
+
--panel-response-success-body-background-color: transparent;
|
|
679
|
+
--panel-response-success-schema-nested-background-color: var(--color-secondary-200);
|
|
680
|
+
--panel-response-success-body-text-color: var(--panel-response-body-text-color);
|
|
505
681
|
|
|
506
|
-
|
|
507
|
-
|
|
682
|
+
/**
|
|
683
|
+
* @tokens Response Panel Error colors
|
|
684
|
+
* @presenter Color
|
|
685
|
+
*/
|
|
686
|
+
|
|
687
|
+
--panel-response-error-border-color: var(--color-error-100);
|
|
688
|
+
--panel-response-error-heading-background-color: var(--color-error-50);
|
|
689
|
+
--panel-response-error-heading-text-color: var(--panel-response-heading-text-color);
|
|
690
|
+
--panel-response-error-body-background-color: transparent;
|
|
691
|
+
--panel-response-error-schema-nested-background-color: var(--color-secondary-200);
|
|
692
|
+
--panel-response-error-body-text-color: var(--panel-response-body-text-color);
|
|
508
693
|
|
|
509
694
|
/**
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
695
|
+
* @tokens Response Panel Redirect colors
|
|
696
|
+
* @presenter Color
|
|
697
|
+
*/
|
|
513
698
|
|
|
514
|
-
--
|
|
515
|
-
--
|
|
516
|
-
--
|
|
517
|
-
--
|
|
518
|
-
--
|
|
519
|
-
--
|
|
699
|
+
--panel-response-redirect-border-color: var(--color-warning-100);
|
|
700
|
+
--panel-response-redirect-heading-background-color: var(--color-warning-50);
|
|
701
|
+
--panel-response-redirect-heading-text-color: var(--panel-response-heading-text-color);
|
|
702
|
+
--panel-response-redirect-body-background-color: transparent;
|
|
703
|
+
--panel-response-redirect-schema-nested-background-color: var(--color-secondary-200);
|
|
704
|
+
--panel-response-redirect-body-text-color: var(--panel-response-body-text-color);
|
|
520
705
|
|
|
521
706
|
/**
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
707
|
+
* @tokens Response Panel Info colors
|
|
708
|
+
* @presenter Color
|
|
709
|
+
*/
|
|
710
|
+
|
|
711
|
+
--panel-response-info-border-color: var(--color-accent-100);
|
|
712
|
+
--panel-response-info-heading-background-color: var(--color-accent-50);
|
|
713
|
+
--panel-response-info-heading-text-color: var(--panel-response-heading-text-color);
|
|
714
|
+
--panel-response-info-body-background-color: transparent;
|
|
715
|
+
--panel-response-info-schema-nested-background-color: var(--color-secondary-200);
|
|
716
|
+
--panel-response-info-body-text-color: var(--panel-response-body-text-color);
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* @tokens Response Panel Callback colors
|
|
720
|
+
* @presenter Color
|
|
721
|
+
*/
|
|
722
|
+
|
|
723
|
+
--panel-response-callback-border-color: var(--color-secondary-300);
|
|
724
|
+
--panel-response-callback-heading-background-color: var(--color-secondary-300);
|
|
725
|
+
--panel-response-callback-heading-text-color: var(--panel-response-heading-text-color);
|
|
726
|
+
--panel-response-callback-body-background-color: transparent;
|
|
727
|
+
--panel-response-callback-schema-nested-background-color: var(--color-secondary-200);
|
|
728
|
+
--panel-response-callback-body-text-color: var(--panel-response-body-text-color);
|
|
526
729
|
|
|
527
730
|
// @tokens End
|
|
528
731
|
`;
|
|
529
732
|
|
|
733
|
+
const apiReferencePanels = css`
|
|
734
|
+
/**
|
|
735
|
+
* @tokens Panels spacing
|
|
736
|
+
* @presenter Spacing
|
|
737
|
+
*/
|
|
738
|
+
|
|
739
|
+
--panel-gap-horizontal: calc(var(--spacing-unit) * 8);
|
|
740
|
+
--panel-gap-vertical: calc(var(--spacing-unit) * 4);
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* @tokens Panel common
|
|
744
|
+
*/
|
|
745
|
+
|
|
746
|
+
--panel-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
747
|
+
--panel-border: 1px solid var(--border-color); // @presenter Border
|
|
748
|
+
|
|
749
|
+
--panel-line-height: var(--line-height-base); // @presenter LineHeight
|
|
750
|
+
--panel-font-size: var(--font-size-base); // @presenter FontSize
|
|
751
|
+
--panel-font-family: var(--font-family-base); // @presenter FontFamily
|
|
752
|
+
--panel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* @tokens Panel heading common
|
|
756
|
+
*/
|
|
757
|
+
|
|
758
|
+
--panel-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
759
|
+
--panel-heading-font-size: 18px; // @presenter FontSize
|
|
760
|
+
--panel-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
761
|
+
--panel-heading-padding: calc(var(--spacing-unit) * 4);
|
|
762
|
+
--panel-heading-line-height: 1; // @presenter LineHeight
|
|
763
|
+
--panel-heading-whit-space: 'nowrap';
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @tokens Panel body common
|
|
767
|
+
*/
|
|
768
|
+
|
|
769
|
+
--panel-body-font-family: var(--font-family-base); // @presenter FontFamily
|
|
770
|
+
--panel-body-font-size: var(--font-size-base); // @presenter FontSize
|
|
771
|
+
--panel-body-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
772
|
+
--panel-body-padding: calc(var(--spacing-unit) * 4);
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* @tokens Panel schemas common
|
|
776
|
+
*/
|
|
777
|
+
|
|
778
|
+
--panel-schemas-text-color: var(--text-color); // @presenter Color
|
|
779
|
+
--panel-schemas-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
780
|
+
--panel-schemas-font-size: var(--panel-font-size); // @presenter FontSize
|
|
781
|
+
--panel-schemas-font-weight: var(--panel-font-weight); // @presenter
|
|
782
|
+
--panel-schemas-background-color: var(--color-emphasis-50); // @presenter Color
|
|
783
|
+
--panel-schemas-border: var(--panel-border); // @presenter Border
|
|
784
|
+
--panel-schemas-chevron-icon-color: var(--text-color); // @presenter Color
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @tokens Panel schemas body common
|
|
788
|
+
*/
|
|
789
|
+
|
|
790
|
+
--panel-schemas-body-text-color: var(--text-color); // @presenter Color
|
|
791
|
+
--panel-schemas-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
792
|
+
--panel-schemas-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
793
|
+
--panel-schemas-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
794
|
+
--panel-schemas-body-padding: 0 var(--panel-body-padding) var(--panel-body-padding) var(--panel-body-padding);
|
|
795
|
+
--panel-schemas-body-background-color: var(--color-emphasis-50); // @presenter Color
|
|
796
|
+
--panel-schemas-body-border: unset; // @presenter Border
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @tokens Panel schemas heading common
|
|
800
|
+
*/
|
|
801
|
+
|
|
802
|
+
--panel-schemas-heading-text-color: var(--text-color); // @presenter Color
|
|
803
|
+
--panel-schemas-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
804
|
+
--panel-schemas-heading-font-size: var(--panel-heading-font-size); // @presenter FontSize
|
|
805
|
+
--panel-schemas-heading-font-weight: var(--panel-heading-font-weight); // @presenter FontWeight
|
|
806
|
+
--panel-schemas-heading-line-height: var(--panel-heading-line-height); // @presenter LineHeight
|
|
807
|
+
--panel-schemas-heading-padding: var(--panel-heading-padding);
|
|
808
|
+
--panel-schemas-heading-background-color: var(--color-emphasis-50); // @presenter Color
|
|
809
|
+
--panel-schemas-heading-border: unset; // @presenter Border
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* @tokens Panel default, response, callback, security schemas
|
|
813
|
+
*/
|
|
814
|
+
|
|
815
|
+
.panel-request-schemas,
|
|
816
|
+
.panel-response-schemas,
|
|
817
|
+
.panel-callback-schemas,
|
|
818
|
+
.panel-security-schemas,
|
|
819
|
+
.panel-default {
|
|
820
|
+
--panel-text-color: var(--panel-schemas-text-color); // @presenter Color
|
|
821
|
+
--panel-font-family-local: var(--panel-schemas-font-family);
|
|
822
|
+
--panel-font-size-local: var(--panel-schemas-font-size);
|
|
823
|
+
--panel-font-weight-local: var(--panel-schemas-font-weight);
|
|
824
|
+
--panel-background-color: var(--panel-schemas-background-color); // @presenter Color
|
|
825
|
+
--panel-border-local: var(--panel-schemas-border);
|
|
826
|
+
--panel-chevron-icon-color: var(--panel-schemas-chevron-icon-color); // @presenter Color
|
|
827
|
+
|
|
828
|
+
--panel-body-text-color: var(--panel-schemas-body-text-color); // @presenter Color
|
|
829
|
+
--panel-body-font-family-local: var(--panel-schemas-body-font-family);
|
|
830
|
+
--panel-body-font-size-local: var(--panel-schemas-body-font-size);
|
|
831
|
+
--panel-body-font-weight-local: var(--panel-schemas-body-font-weight);
|
|
832
|
+
--panel-body-padding-local: var(--panel-schemas-body-padding);
|
|
833
|
+
--panel-body-background-color: var(--panel-schemas-body-background-color); // @presenter Color
|
|
834
|
+
--panel-body-border: var(--panel-schemas-body-border); // @presenter Border
|
|
835
|
+
|
|
836
|
+
--panel-heading-text-color: var(--panel-schemas-heading-text-color); // @presenter Color
|
|
837
|
+
--panel-heading-font-family-local: var(--panel-schemas-heading-font-family);
|
|
838
|
+
--panel-heading-font-size-local: var(--panel-schemas-heading-font-size);
|
|
839
|
+
--panel-heading-font-weight-local: var(--panel-schemas-heading-font-weight);
|
|
840
|
+
--panel-heading-line-height-local: var(--panel-schemas-heading-line-height);
|
|
841
|
+
--panel-heading-padding-local: var(--panel-schemas-heading-padding);
|
|
842
|
+
--panel-heading-background-color: var(--panel-schemas-heading-background-color); // @presenter Color
|
|
843
|
+
--panel-heading-border: var(--panel-schemas-heading-border); // @presenter Border
|
|
844
|
+
--panel-heading-white-space-local: var(--panel-heading-whit-space);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* @tokens Panel samples common
|
|
849
|
+
*/
|
|
850
|
+
|
|
851
|
+
--panel-samples-block-background-color: var(--color-emphasis-50); // @presenter Color
|
|
852
|
+
--panel-samples-width: 50%;
|
|
853
|
+
|
|
854
|
+
--panel-samples-text-color: var(--text-color-inverse); // @presenter Color
|
|
855
|
+
--panel-samples-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
856
|
+
--panel-samples-font-size: var(--panel-font-size); // @presenter FontSize
|
|
857
|
+
--panel-samples-font-weight: var(--panel-font-weight); // @presenter FontWight
|
|
858
|
+
--panel-samples-background-color: #52606d; // @presenter Color
|
|
859
|
+
--panel-samples-border: var(--panel-border); // @presenter Border
|
|
860
|
+
--panel-samples-chevron-icon-color: var(--text-color-inverse); // @presenter Color
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* @tokens Panel samples body common
|
|
864
|
+
*/
|
|
865
|
+
|
|
866
|
+
--panel-samples-body-text-color: var(--text-color-inverse); // @presenter Color
|
|
867
|
+
--panel-samples-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
868
|
+
--panel-samples-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
869
|
+
--panel-samples-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
870
|
+
--panel-samples-body-padding: var(--panel-body-padding);
|
|
871
|
+
--panel-samples-body-background-color: #52606d; // @presenter Color
|
|
872
|
+
--panel-samples-body-border: unset; // @presenter Border
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @tokens Panel samples heading common
|
|
876
|
+
*/
|
|
877
|
+
|
|
878
|
+
--panel-samples-heading-text-color: var(--text-color-inverse); // @presenter Color
|
|
879
|
+
--panel-samples-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
880
|
+
--panel-samples-heading-font-size: var(--panel-font-size); // @presenter FontSize
|
|
881
|
+
--panel-samples-heading-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
882
|
+
--panel-samples-heading-line-height: 30px; // @presenter LineHeight
|
|
883
|
+
--panel-samples-heading-padding: 0 20px;
|
|
884
|
+
--panel-samples-heading-background-color: #323f4b; // @presenter Color
|
|
885
|
+
--panel-samples-heading-border: unset; // @presenter Border
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* @tokens Panel try-it, request-samples, response-samples, callback samples
|
|
889
|
+
*/
|
|
890
|
+
|
|
891
|
+
.panel-try-it,
|
|
892
|
+
.panel-request-samples,
|
|
893
|
+
.panel-response-samples,
|
|
894
|
+
.panel-callback-samples {
|
|
895
|
+
--panel-text-color: var(--panel-samples-text-color); // @presenter Color
|
|
896
|
+
--panel-font-family-local: var(--panel-samples-font-family);
|
|
897
|
+
--panel-font-size-local: var(--panel-samples-font-size);
|
|
898
|
+
--panel-font-weight-local: var(--panel-samples-font-weight);
|
|
899
|
+
--panel-background-color: var(--panel-samples-background-color); // @presenter Color
|
|
900
|
+
--panel-border-local: var(--panel-samples-border);
|
|
901
|
+
--panel-chevron-icon-color: var(--panel-samples-chevron-icon-color); // @presenter Color
|
|
902
|
+
|
|
903
|
+
--panel-body-text-color: var(--panel-samples-body-text-color); // @presenter Color
|
|
904
|
+
--panel-body-background-color: var(--panel-samples-body-background-color); // @presenter Color
|
|
905
|
+
|
|
906
|
+
--panel-body-font-family-local: var(--panel-samples-body-font-family);
|
|
907
|
+
--panel-body-font-size-local: var(--panel-samples-body-font-size);
|
|
908
|
+
--panel-body-font-weight-local: var(--panel-samples-body-font-weight);
|
|
909
|
+
--panel-body-padding-local: var(--panel-samples-body-padding);
|
|
910
|
+
--panel-body-border-local: var(--panel-samples-body-border);
|
|
911
|
+
|
|
912
|
+
--panel-heading-text-color: var(--panel-samples-heading-text-color); // @presenter Color
|
|
913
|
+
--panel-heading-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
914
|
+
|
|
915
|
+
--panel-heading-font-family-local: var(--panel-samples-heading-font-family);
|
|
916
|
+
--panel-heading-font-size-local: var(--panel-samples-heading-font-size);
|
|
917
|
+
--panel-heading-font-weight-local: var(--panel-samples-heading-font-weight);
|
|
918
|
+
--panel-heading-line-height-local: var(--panel-samples-heading-line-height);
|
|
919
|
+
--panel-heading-padding-local: var(--panel-samples-heading-padding);
|
|
920
|
+
|
|
921
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* @tokens Panel response success, info, error, redirect, callback common
|
|
926
|
+
*/
|
|
927
|
+
|
|
928
|
+
.panel-response-success,
|
|
929
|
+
.panel-response-info,
|
|
930
|
+
.panel-response-error,
|
|
931
|
+
.panel-response-redirect,
|
|
932
|
+
.panel-response-callback {
|
|
933
|
+
--panel-body-text-color: var(--panel-response-body-text-color); // @presenter Color
|
|
934
|
+
|
|
935
|
+
--panel-heading-text-color: var(--panel-response-heading-text-color); // @presenter Color
|
|
936
|
+
--panel-heading-font-size-local: var(--panel-response-heading-font-size);
|
|
937
|
+
--panel-heading-font-weight-local: var(--panel-response-heading-font-weight);
|
|
938
|
+
--panel-heading-line-height-local: var(--panel-response-heading-line-height);
|
|
939
|
+
--panel-heading-padding-local: var(--panel-response-heading-padding);
|
|
940
|
+
|
|
941
|
+
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
942
|
+
--panel-heading-white-space-local: normal;
|
|
943
|
+
--panel-body-padding-local: var(--panel-body-padding);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* @tokens Panel response success colors
|
|
948
|
+
* @presenter Color
|
|
949
|
+
*/
|
|
950
|
+
|
|
951
|
+
.panel-response-success {
|
|
952
|
+
--panel-border-local: 1px solid var(--panel-response-success-border-color); // @presenter Border
|
|
953
|
+
|
|
954
|
+
--panel-body-text-color: var(--panel-response-success-body-text-color);
|
|
955
|
+
--panel-body-background-color: var(--panel-response-success-body-background-color);
|
|
956
|
+
|
|
957
|
+
--panel-heading-background-color: var(--panel-response-success-heading-background-color);
|
|
958
|
+
--panel-heading-text-color: var(--panel-response-success-heading-text-color);
|
|
959
|
+
|
|
960
|
+
--panel-response-schema-nested-background-color: var(--panel-response-success-schema-nested-background-color);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* @tokens Panel response info colors
|
|
965
|
+
* @presenter Color
|
|
966
|
+
*/
|
|
967
|
+
|
|
968
|
+
.panel-response-info {
|
|
969
|
+
--panel-border-local: 1px solid var(--panel-response-info-border-color); // @presenter Border
|
|
970
|
+
|
|
971
|
+
--panel-body-text-color: var(--panel-response-info-body-text-color);
|
|
972
|
+
--panel-body-background-color: var(--panel-response-info-body-background-color);
|
|
973
|
+
|
|
974
|
+
--panel-heading-background-color: var(--panel-response-info-heading-background-color);
|
|
975
|
+
--panel-heading-text-color: var(--panel-response-info-heading-text-color);
|
|
976
|
+
|
|
977
|
+
--panel-response-schema-nested-background-color: var(--panel-response-info-schema-nested-background-color);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* @tokens Panel response error colors
|
|
982
|
+
* @presenter Color
|
|
983
|
+
*/
|
|
984
|
+
|
|
985
|
+
.panel-response-error {
|
|
986
|
+
--panel-border-local: 1px solid var(--panel-response-error-border-color); // @presenter Border
|
|
987
|
+
|
|
988
|
+
--panel-body-text-color: var(--panel-response-error-body-text-color);
|
|
989
|
+
--panel-body-background-color: var(--panel-response-error-body-background-color);
|
|
990
|
+
|
|
991
|
+
--panel-heading-background-color: var(--panel-response-error-heading-background-color);
|
|
992
|
+
--panel-heading-text-color: var(--panel-response-error-heading-text-color);
|
|
993
|
+
|
|
994
|
+
--panel-response-schema-nested-background-color: var(--panel-response-error-schema-nested-background-color);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* @tokens Panel response redirect colors
|
|
999
|
+
* @presenter Color
|
|
1000
|
+
*/
|
|
1001
|
+
|
|
1002
|
+
.panel-response-redirect {
|
|
1003
|
+
--panel-border-local: 1px solid var(--panel-response-redirect-border-color); // @presenter Border
|
|
1004
|
+
--panel-body-text-color: var(--panel-response-redirect-body-text-color);
|
|
1005
|
+
|
|
1006
|
+
--panel-body-background-color: var(--panel-response-redirect-body-background-color);
|
|
1007
|
+
--panel-heading-background-color: var(--panel-response-redirect-heading-background-color);
|
|
1008
|
+
--panel-heading-text-color: var(--panel-response-redirect-heading-text-color);
|
|
1009
|
+
|
|
1010
|
+
--panel-response-schema-nested-background-color: var(--panel-response-redirect-schema-nested-background-color);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* @tokens Panel response callback colors
|
|
1015
|
+
* @presenter Color
|
|
1016
|
+
*/
|
|
1017
|
+
|
|
1018
|
+
.panel-response-callback {
|
|
1019
|
+
--panel-border-local: 1px solid var(--panel-response-callback-border-color); // @presenter Border
|
|
1020
|
+
|
|
1021
|
+
--panel-body-text-color: var(--panel-response-callback-body-text-color);
|
|
1022
|
+
--panel-body-background-color: var(--panel-response-callback-body-background-color);
|
|
1023
|
+
|
|
1024
|
+
--panel-heading-background-color: var(--panel-response-callback-heading-background-color);
|
|
1025
|
+
--panel-heading-text-color: var(--panel-response-callback-heading-text-color);
|
|
1026
|
+
|
|
1027
|
+
--panel-response-schema-nested-background-color: var(--panel-response-callback-schema-nested-background-color);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* @tokens Panel try-it nested common
|
|
1032
|
+
* @presenter Color
|
|
1033
|
+
*/
|
|
1034
|
+
|
|
1035
|
+
--panel-try-it-nested-text-color: var(--text-color-inverse);
|
|
1036
|
+
--panel-try-it-nested-chevron-icon-color: var(--text-color-inverse);
|
|
1037
|
+
|
|
1038
|
+
--panel-try-it-nested-body-background-color: #3e4c59;
|
|
1039
|
+
--panel-try-it-nested-body-text-color: var(--text-color-inverse);
|
|
1040
|
+
--panel-try-it-nested-body-padding: var(--panel-body-padding); // @presenter Spacing
|
|
1041
|
+
--panel-try-it-nested-body-border-color: var(--color-secondary-800);
|
|
1042
|
+
|
|
1043
|
+
--panel-try-it-nested-heading-text-color: var(--text-color-inverse);
|
|
1044
|
+
--panel-try-it-nested-heading-background-color: transparent;
|
|
1045
|
+
--panel-try-it-nested-heading-border-color: var(--color-secondary-800);
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* @tokens Panel try-it nested
|
|
1049
|
+
* @presenter Color
|
|
1050
|
+
*/
|
|
1051
|
+
|
|
1052
|
+
.panel-try-it-nested {
|
|
1053
|
+
--panel-text-color: var(--panel-try-it-nested-text-color);
|
|
1054
|
+
--panel-chevron-icon-color: var(--panel-try-it-nested-chevron-icon-color);
|
|
1055
|
+
|
|
1056
|
+
--panel-body-text-color: var(--panel-try-it-nested-body-text-color);
|
|
1057
|
+
--panel-body-background-color: var(--panel-try-it-nested-body-background-color);
|
|
1058
|
+
--panel-body-padding-local: var(--panel-try-it-nested-body-padding); // @presenter Spacing
|
|
1059
|
+
|
|
1060
|
+
--panel-heading-text-color: var(--panel-try-it-nested-heading-text-color);
|
|
1061
|
+
--panel-heading-background-color: var(--panel-try-it-nested-heading-background-color);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* @tokens Panel samples tabs
|
|
1066
|
+
*/
|
|
1067
|
+
|
|
1068
|
+
--panel-samples-tabs-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1069
|
+
--panel-samples-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1070
|
+
--panel-samples-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1071
|
+
--panel-samples-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1072
|
+
|
|
1073
|
+
--panel-samples-tabs-background-color: transparent; // @presenter Color
|
|
1074
|
+
--panel-samples-tabs-hover-background-color: #3c4c5a; // @presenter Color
|
|
1075
|
+
--panel-samples-tabs-active-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1076
|
+
|
|
1077
|
+
--panel-samples-tabs-border-color: var(--border-color-secondary); // @presenter Color
|
|
1078
|
+
--panel-samples-tabs-hover-border-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1079
|
+
--panel-samples-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1080
|
+
|
|
1081
|
+
--panel-samples-code-block-background-color: var( --code-block-background-color); // @presenter Color
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* @tokens Panel try-it tabs
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
--panel-try-it-tabs-font-size: 12px; // @presenter FontSize
|
|
1088
|
+
--panel-try-it-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1089
|
+
--panel-try-it-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1090
|
+
--panel-try-it-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1091
|
+
--panel-try-it-tabs-disabled-text-color: var(--color-secondary-400); // @presenter Color
|
|
1092
|
+
|
|
1093
|
+
--panel-try-it-tabs-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1094
|
+
--panel-try-it-tabs-hover-background-color: var(--panel-samples-tabs-hover-background-color); // @presenter Color
|
|
1095
|
+
--panel-try-it-tabs-active-background-color: #47535e; // @presenter Color
|
|
1096
|
+
--panel-try-it-tabs-disabled-background-color: var(--color-secondary-500); // @presenter Color
|
|
1097
|
+
|
|
1098
|
+
--panel-try-it-tabs-border-color: transparent; // @presenter Color
|
|
1099
|
+
--panel-try-it-tabs-hover-border-color: var(--panel-try-it-tabs-active-background-color); // @presenter Color
|
|
1100
|
+
--panel-try-it-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1101
|
+
--panel-try-it-tabs-disabled-border-color: transparent; // @presenter Color
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* @tokens Panel try-it action button
|
|
1105
|
+
*/
|
|
1106
|
+
|
|
1107
|
+
--panel-try-it-action-button-width: auto;
|
|
1108
|
+
--panel-try-it-action-button-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1109
|
+
--panel-try-it-action-button-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1110
|
+
--panel-try-it-action-button-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1111
|
+
--panel-try-it-action-button-text-color: var(--text-color-inverse); // @presenter Color
|
|
1112
|
+
--panel-try-it-action-button-background-color: var(--color-primary-500); // @presenter Color
|
|
1113
|
+
--panel-try-it-action-button-border-color: transparent; // @presenter Color
|
|
1114
|
+
|
|
1115
|
+
--panel-try-it-action-button-active-text-color: var(--color-emphasis-900); // @presenter Color
|
|
1116
|
+
--panel-try-it-action-button-active-background-color: var(--color-emphasis-700); // @presenter Color
|
|
1117
|
+
--panel-try-it-action-button-active-border-color: var(--color-emphasis-700); // @presenter Color
|
|
1118
|
+
|
|
1119
|
+
--panel-try-it-action-button-hover-background-color: var(--color-emphasis-600); // @presenter Color
|
|
1120
|
+
--panel-try-it-action-button-hover-text-color: var(--color-emphasis-800); // @presenter Color
|
|
1121
|
+
--panel-try-it-action-button-hover-border-color: var(--color-emphasis-600); // @presenter Color
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* @tokens Panel samples other styles
|
|
1125
|
+
*/
|
|
1126
|
+
|
|
1127
|
+
--panel-samples-controls-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1128
|
+
--panel-samples-controls-hover-background-color: var(--panel-samples-tabs-hover-background-color); // @presenter Color
|
|
1129
|
+
--panel-samples-controls-text-color: var(--text-color-inverse); // @presenter Color
|
|
1130
|
+
|
|
1131
|
+
--panel-samples-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1132
|
+
--panel-samples-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1133
|
+
--panel-samples-dropdown-border: unset; // @presenter Border
|
|
1134
|
+
|
|
1135
|
+
--panel-samples-input-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* @tokens Panel try-it other styles
|
|
1139
|
+
*/
|
|
1140
|
+
|
|
1141
|
+
--panel-try-it-input-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1142
|
+
--panel-try-it-input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1143
|
+
--panel-try-it-input-border: unset; // @presenter Border
|
|
1144
|
+
|
|
1145
|
+
--panel-try-it-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1146
|
+
--panel-try-it-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1147
|
+
--panel-try-it-border: unset; // @presenter Border
|
|
1148
|
+
|
|
1149
|
+
// @tokens End
|
|
1150
|
+
|
|
1151
|
+
// TODO PUL RIGHT section - related to pull right - fix later
|
|
1152
|
+
|
|
1153
|
+
--samples-panel-markdown-background-color: #3c4c5a;
|
|
1154
|
+
--samples-panel-markdown-border-color: #46596a;
|
|
1155
|
+
|
|
1156
|
+
--layout-right-rail-width: 50%;
|
|
1157
|
+
--layout-right-rail-background-color: transparent;
|
|
1158
|
+
`;
|
|
1159
|
+
|
|
530
1160
|
const tooltip = css`
|
|
531
1161
|
/**
|
|
532
1162
|
* @tokens Tooltip Base
|
|
533
1163
|
* @presenter Color
|
|
534
1164
|
*/
|
|
535
|
-
--tooltip-color: var(--color-secondary-
|
|
536
|
-
--tooltip-background-color:
|
|
1165
|
+
--tooltip-text-color: var(--color-secondary-200);
|
|
1166
|
+
--tooltip-background-color: var(--color-emphasis-600);
|
|
537
1167
|
|
|
538
1168
|
/**
|
|
539
1169
|
* @tokens Tooltip Copy Button
|
|
540
1170
|
* @presenter Color
|
|
541
1171
|
*/
|
|
1172
|
+
|
|
1173
|
+
--copy-button-tooltip-text-color: #000;
|
|
1174
|
+
--copy-button-tooltip-background-color: var(--color-secondary-50);
|
|
1175
|
+
|
|
542
1176
|
.tooltip-copy-button {
|
|
543
|
-
--tooltip-color:
|
|
544
|
-
--tooltip-background-color:
|
|
1177
|
+
--tooltip-text-color: var(--copy-button-tooltip-text-color);
|
|
1178
|
+
--tooltip-background-color: var(--copy-button-tooltip-background-color);
|
|
545
1179
|
}
|
|
546
1180
|
|
|
547
1181
|
// @tokens End
|
|
@@ -555,64 +1189,76 @@ const code = css`
|
|
|
555
1189
|
--code-font-family: var(--font-family-monospaced); // @presenter FontFamily
|
|
556
1190
|
--code-font-weight: 400; // @presenter FontWeight
|
|
557
1191
|
--code-wrap: pre;
|
|
1192
|
+
--code-word-break: break-word;
|
|
558
1193
|
|
|
559
1194
|
/**
|
|
560
1195
|
* @tokens Inline Code
|
|
561
1196
|
*/
|
|
562
1197
|
--inline-code-font-size: var(--code-font-size); // @presenter FontSize
|
|
563
1198
|
--inline-code-font-family: var(--code-font-family); // @presenter FontFamily
|
|
564
|
-
--inline-code-color: #e53935; // @presenter Color
|
|
565
|
-
--inline-code-background-color: var(--color-secondary-
|
|
566
|
-
--inline-code-border-color: var(--
|
|
567
|
-
--inline-code-border-radius: var(--
|
|
1199
|
+
--inline-code-text-color: #e53935; // @presenter Color
|
|
1200
|
+
--inline-code-background-color: var(--color-secondary-100); // @presenter Color
|
|
1201
|
+
--inline-code-border-color: var(--border-color); // @presenter Color
|
|
1202
|
+
--inline-code-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
568
1203
|
|
|
569
1204
|
/**
|
|
570
1205
|
* @tokens Code Block
|
|
571
1206
|
*/
|
|
572
1207
|
--code-block-font-size: var(--code-font-size); // @presenter FontSize
|
|
573
1208
|
--code-block-font-family: var(--code-font-family); // @presenter FontFamily
|
|
574
|
-
--code-block-color: #
|
|
575
|
-
--code-block-background-color:
|
|
576
|
-
--code-block-border-color: var(--
|
|
577
|
-
--code-block-border-radius:
|
|
1209
|
+
--code-block-text-color: #fff; // @presenter Color
|
|
1210
|
+
--code-block-background-color: #323f4b; // @presenter Color
|
|
1211
|
+
--code-block-border-color: var(--border-color); // @presenter Color
|
|
1212
|
+
--code-block-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
578
1213
|
--code-block-max-height: 600px;
|
|
579
1214
|
--code-block-word-break: initial;
|
|
580
|
-
--code-block-preformatted-background-color: #323f4b; // @presenter Color
|
|
581
1215
|
|
|
582
|
-
|
|
1216
|
+
/**
|
|
1217
|
+
* @tokens Code Block controls
|
|
1218
|
+
*/
|
|
1219
|
+
|
|
1220
|
+
--code-block-controls-text-color: #fff; // @presenter Color
|
|
1221
|
+
--code-block-controls-hover-text-color: #fff; // @presenter Color
|
|
1222
|
+
--code-block-controls-background-color: transparent; // @presenter Color
|
|
1223
|
+
--code-block-controls-hover-background-color: rgba(255, 255, 255, 0.15); // @presenter Color
|
|
1224
|
+
--code-block-controls-opacity: 0.5;
|
|
1225
|
+
--code-block-controls-active-opacity: 1;
|
|
1226
|
+
--code-block-controls-padding: 0 5px; // @presenter Spacing
|
|
1227
|
+
--code-block-controls-font-size: var(--font-size-base); // @presenter FontSize
|
|
1228
|
+
--code-block-controls-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1229
|
+
--code-block-controls-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
583
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* @tokens Code Block tokens
|
|
1233
|
+
*/
|
|
1234
|
+
--code-block-tokens-default-color: var(--text-color-inverse); // @presenter Color
|
|
584
1235
|
--code-block-tokens-comment-color: hsl(30, 20%, 50%); // @presenter Color
|
|
585
1236
|
--code-block-tokens-prolog-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
586
1237
|
--code-block-tokens-doctype-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
587
1238
|
--code-block-tokens-cdata-color: var(--code-block-tokens-comment-color); // @presenter Color
|
|
588
|
-
|
|
589
1239
|
--code-block-tokens-property-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
590
1240
|
--code-block-tokens-tag-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
591
1241
|
--code-block-tokens-number-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
592
1242
|
--code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
593
1243
|
--code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
594
|
-
|
|
595
1244
|
--code-block-tokens-boolean-color: var(--color-error-500); // @presenter Color
|
|
596
|
-
|
|
597
1245
|
--code-block-tokens-string-color: #fee39e; // @presenter Color
|
|
1246
|
+
--code-block-tokens-property-string-color: #9efaa7; // @presenter Color
|
|
598
1247
|
--code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
599
1248
|
--code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
600
1249
|
--code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
601
1250
|
--code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
602
1251
|
--code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
603
|
-
|
|
1252
|
+
--code-block-tokens-link-color: #4ed2ba; // @presenter Color
|
|
604
1253
|
--code-block-tokens-operator-color: #f5b83d; // @presenter Color
|
|
605
1254
|
--code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
606
1255
|
--code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
607
1256
|
--code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
608
|
-
|
|
609
1257
|
--code-block-tokens-keyword-color: #ffdbf4; // @presenter Color
|
|
610
1258
|
--code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
611
1259
|
--code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
612
|
-
|
|
613
1260
|
--code-block-tokens-regex-color: #e90; // @presenter Color
|
|
614
1261
|
--code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
|
|
615
|
-
|
|
616
1262
|
--code-block-tokens-deleted-color: red; // @presenter Color
|
|
617
1263
|
|
|
618
1264
|
// @tokens End
|
|
@@ -622,30 +1268,32 @@ const links = css`
|
|
|
622
1268
|
/**
|
|
623
1269
|
* @tokens Links
|
|
624
1270
|
*/
|
|
625
|
-
--link-color: var(--color-primary-500); // @presenter Color
|
|
1271
|
+
--link-text-color: var(--color-primary-500); // @presenter Color
|
|
626
1272
|
--link-decoration: none;
|
|
627
|
-
--link-
|
|
1273
|
+
--link-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1274
|
+
|
|
1275
|
+
--link-hover-text-color: var(--color-primary-100); // @presenter Color
|
|
628
1276
|
--link-hover-decoration: underline;
|
|
629
1277
|
|
|
1278
|
+
--link-active-decoration: none;
|
|
1279
|
+
--link-active-text-color: var(--color-primary-500); // @presenter Color
|
|
1280
|
+
|
|
1281
|
+
--link-visited-text-color: var(--color-primary-500); // @presenter Color
|
|
1282
|
+
--link-visited-decoration: none;
|
|
1283
|
+
|
|
630
1284
|
// @tokens End
|
|
631
1285
|
`;
|
|
632
1286
|
|
|
633
|
-
const
|
|
1287
|
+
const apiReferenceDocs = css`
|
|
634
1288
|
/* === ref docs and graphql docs specific === */
|
|
635
1289
|
|
|
636
1290
|
/**
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
--logo-max-height: 285px;
|
|
640
|
-
--logo-max-width: 285px;
|
|
641
|
-
--logo-padding: 2px;
|
|
1291
|
+
* @tokens API Reference Schemas Layout
|
|
1292
|
+
*/
|
|
642
1293
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
--layout-buttons-top-offset: 20px; // @presenter Spacing
|
|
647
|
-
--layout-buttons-height: 36px; // @presenter Spacing
|
|
648
|
-
--layout-buttons-width: 36px; // @presenter Spacing
|
|
1294
|
+
--layout-controls-top-offset: 20px; // @presenter Spacing
|
|
1295
|
+
--layout-controls-height: 36px; // @presenter Spacing
|
|
1296
|
+
--layout-controls-width: 36px; // @presenter Spacing
|
|
649
1297
|
|
|
650
1298
|
--layout-stacked-small-max-width: 90%;
|
|
651
1299
|
--layout-stacked-medium-max-width: 75%;
|
|
@@ -655,77 +1303,224 @@ const openapiAndGraphqlDocs = css`
|
|
|
655
1303
|
--layout-three-panel-medium-max-width: 100%;
|
|
656
1304
|
--layout-three-panel-large-max-width: 1800px;
|
|
657
1305
|
|
|
658
|
-
--layout-
|
|
659
|
-
--layout-
|
|
660
|
-
--layout-
|
|
1306
|
+
--layout-panel-schemas-small-max-width: none;
|
|
1307
|
+
--layout-panel-schemas-medium-max-width: none;
|
|
1308
|
+
--layout-panel-schemas-large-max-width: none;
|
|
661
1309
|
|
|
662
1310
|
/**
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
--schema-lines-color: var(--global-border-color); // @presenter Color
|
|
666
|
-
--schema-default-details-width: 70%;
|
|
667
|
-
--schema-type-name-color: var(--color-content-secondary); // @presenter Color
|
|
668
|
-
--schema-type-title-color: var(--color-content-secondary); // @presenter Color
|
|
669
|
-
--schema-require-label-color: var(--color-error-900); // @presenter Color
|
|
670
|
-
--schema-labels-text-size: 0.9em; // @presenter Spacing
|
|
671
|
-
--schema-nesting-spacing: 1em; // @presenter Spacing
|
|
672
|
-
--schema-nested-background-color: var(--color-secondary-200); // @presenter Color
|
|
673
|
-
--schema-chevron-color: var(--color-content); // @presenter Color
|
|
674
|
-
--schema-chevron-size: 9px; // @presenter Spacing
|
|
1311
|
+
* @tokens API Reference Schemas MimeType Dropdown
|
|
1312
|
+
*/
|
|
675
1313
|
|
|
676
|
-
--
|
|
677
|
-
--
|
|
678
|
-
--
|
|
679
|
-
--
|
|
1314
|
+
--schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
|
|
1315
|
+
--schemas-mime-type-dropdown-border: var(--dropdown-border); // @presenter Border
|
|
1316
|
+
--schemas-mime-type-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1317
|
+
--schemas-mime-type-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
680
1318
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
--
|
|
686
|
-
--
|
|
1319
|
+
/**
|
|
1320
|
+
* @tokens API Reference Schemas Discriminator Dropdown
|
|
1321
|
+
*/
|
|
1322
|
+
|
|
1323
|
+
--schemas-discriminator-dropdown-padding: 2px 24px 2px 8px;
|
|
1324
|
+
--schemas-discriminator-dropdown-border: 1px solid var(--border-color); // @presenter Border
|
|
1325
|
+
--schemas-discriminator-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
1326
|
+
--schemas-discriminator-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
687
1327
|
|
|
688
1328
|
/**
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
*/
|
|
692
|
-
--search-input-border-bottom: #e6e6e6;
|
|
693
|
-
--search-results-background-color: #f2f2f2;
|
|
694
|
-
--search-results-active-item-background-color: #e6e6e6;
|
|
695
|
-
--search-marked-background-color: #ffff03;
|
|
696
|
-
--search-popup-header-background-color: var(--color-secondary-200);
|
|
697
|
-
--search-clear-button-background-color: var(--color-secondary-400);
|
|
698
|
-
--search-clear-button-hover-background-color: var(--color-secondary-600);
|
|
1329
|
+
* @tokens API Reference Schemas Titles
|
|
1330
|
+
*/
|
|
699
1331
|
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
1332
|
+
--schema-type-title-text-color: var(--text-color-secondary); // @presenter Color
|
|
1333
|
+
--schema-type-text-color: var(--text-color-secondary); // @presenter Color
|
|
1334
|
+
--schema-labels-font-size: 0.8em; // @presenter FontSize
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* @tokens API Reference Schemas Lines Color
|
|
1338
|
+
*/
|
|
1339
|
+
|
|
1340
|
+
--schemas-lines-color: var(--border-color); // @presenter Color
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @tokens API Reference Schema Inline code typography
|
|
1344
|
+
*/
|
|
1345
|
+
|
|
1346
|
+
--schema-inline-code-font-family: var(--inline-code-font-family); // @presenter FontFamily
|
|
1347
|
+
--schema-inline-code-font-size: var(--inline-code-font-size); // @presenter FontSize
|
|
1348
|
+
--schema-inline-code-text-color: var(--text-color); // @presenter Color
|
|
1349
|
+
--schema-inline-background-color: var(--color-secondary-100); // @presenter Color
|
|
1350
|
+
--schema-inline-border-color: var(--border-color); // @presenter Color
|
|
1351
|
+
--schema-inline-border: 1px solid var(--schema-inline-border-color); // @presenter Border
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* @tokens API Reference Schema Example Label colors
|
|
1355
|
+
* @presenter Color
|
|
1356
|
+
*/
|
|
1357
|
+
|
|
1358
|
+
--schema-example-text-color: var(--schema-inline-code-text-color);
|
|
1359
|
+
--schema-example-background-color: var(--schema-inline-background-color);
|
|
1360
|
+
--schema-example-border-color: var(--schema-inline-border-color);
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* @tokens API Reference Schema Constraint Label colors
|
|
1364
|
+
* @presenter Color
|
|
1365
|
+
*/
|
|
1366
|
+
|
|
1367
|
+
--schema-constraint-text-color: var(--schema-inline-code-text-color);
|
|
1368
|
+
--schema-constraint-background-color: var(--schema-inline-background-color);
|
|
1369
|
+
--schema-constraint-border-color: var(--schema-inline-border-color);
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* @tokens API Reference Schema Enum Label colors
|
|
1373
|
+
* @presenter Color
|
|
1374
|
+
*/
|
|
1375
|
+
|
|
1376
|
+
--schema-enum-text-color: var(--schema-inline-code-text-color);
|
|
1377
|
+
--schema-enum-background-color: var(--schema-inline-background-color);
|
|
1378
|
+
--schema-enum-border-color: var(--schema-inline-border-color);
|
|
707
1379
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
--http-badge-border-radius: 16px; // @presenter BorderRadius
|
|
713
|
-
--http-badge-color: var(--color-content-inverse); // @presenter Color
|
|
1380
|
+
/**
|
|
1381
|
+
* @tokens API Reference Schema Default Label colors
|
|
1382
|
+
* @presenter Color
|
|
1383
|
+
*/
|
|
714
1384
|
|
|
715
|
-
--
|
|
716
|
-
--
|
|
1385
|
+
--schema-default-text-color: var(--schema-inline-code-text-color);
|
|
1386
|
+
--schema-default-background-color: var(--schema-inline-background-color);
|
|
1387
|
+
--schema-default-border-color: var(--schema-inline-border-color);
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @tokens API Reference Schema Recursive Label colors
|
|
1391
|
+
* @presenter Color
|
|
1392
|
+
*/
|
|
1393
|
+
|
|
1394
|
+
--schema-recursive-text-color: var(--color-warning-600);
|
|
1395
|
+
--schema-recursive-background-color: var(--schema-inline-background-color);
|
|
1396
|
+
--schema-recursive-border-color: var(--schema-inline-border-color);
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* @tokens GraphQL Docs Reference Schema Non null label
|
|
1400
|
+
* @presenter Color
|
|
1401
|
+
*/
|
|
717
1402
|
|
|
1403
|
+
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
1404
|
+
--schema-non-null-background-color: var(--schema-inline-background-color);
|
|
1405
|
+
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
718
1406
|
/**
|
|
719
|
-
|
|
1407
|
+
* @tokens API Reference Schema Nested styles
|
|
1408
|
+
*/
|
|
1409
|
+
|
|
1410
|
+
--schema-nested-offset: 1em; // @presenter Spacing
|
|
1411
|
+
--schema-nested-background-color: var(--color-secondary-100); // @presenter Color
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* @tokens API Reference Schema Buttons
|
|
1415
|
+
*/
|
|
1416
|
+
|
|
1417
|
+
--schema-buttons-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1418
|
+
--schema-buttons-font-weight: var(--code-font-weight); // @presenter FontWeight
|
|
1419
|
+
--schema-buttons-font-size: var(--code-font-size); // @presenter FontSize
|
|
1420
|
+
|
|
1421
|
+
--schema-buttons-text-color: var(--color-emphasis-700); // @presenter Color
|
|
1422
|
+
--schema-buttons-background-color: transparent; // @presenter Color
|
|
1423
|
+
--schema-buttons-border-color: var(--color-secondary-500); // @presenter Color
|
|
1424
|
+
|
|
1425
|
+
--schema-buttons-hover-background-color: var(--color-secondary-300); // @presenter Color
|
|
1426
|
+
--schema-buttons-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1427
|
+
|
|
1428
|
+
--schema-buttons-selected-text-color: var(--schema-buttons-text-color); // @presenter Color
|
|
1429
|
+
--schema-buttons-selected-background-color: var(--color-secondary-300); // @presenter Color
|
|
1430
|
+
--schema-buttons-selected-border-color: var(--schema-buttons-border-color); // @presenter Color
|
|
1431
|
+
--schema-buttons-selected-hover-background-color: var(--color-secondary-400); // @presenter Color
|
|
1432
|
+
--schema-buttons-selected-active-background-color: var(--color-secondary-400); // @presenter Color
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* @tokens API Reference Schema Properties
|
|
1436
|
+
*/
|
|
1437
|
+
|
|
1438
|
+
--schemas-property-name-text-color: var(--text-color); //@presenter Color
|
|
1439
|
+
--schemas-property-name-font-size: var(--code-font-size); // @presenter FontSize
|
|
1440
|
+
--schemas-property-name-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1441
|
+
|
|
1442
|
+
--schema-property-labels-font-size: var(--schema-labels-font-size); // @presenter FontSize
|
|
1443
|
+
--schema-property-required-label-text-color: var(--color-error-900); // @presenter Color
|
|
1444
|
+
--schema-property-additional-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1445
|
+
--schema-property-access-label-text-color: var(--text-color-secondary); // @presenter Color
|
|
1446
|
+
|
|
1447
|
+
--schema-property-details-width: 70%;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* @tokens API Reference Schema Icons
|
|
1451
|
+
*/
|
|
1452
|
+
|
|
1453
|
+
--schema-chevron-color: var(--text-color); // @presenter Color
|
|
1454
|
+
--schema-chevron-size: 9px;
|
|
1455
|
+
|
|
1456
|
+
--schema-property-deep-link-icon-color: var(--color-primary-500); // @presenter Color
|
|
1457
|
+
/* --schema-property-deep-link-icon: figure out this later */
|
|
1458
|
+
|
|
1459
|
+
/*
|
|
1460
|
+
* @tokens API Reference Other
|
|
720
1461
|
*/
|
|
721
|
-
|
|
722
|
-
--spinner-color: var(--color-primary-500); // @presenter Color
|
|
1462
|
+
|
|
1463
|
+
--loading-spinner-color: var(--color-primary-500); // @presenter Color
|
|
723
1464
|
--linear-progress-color: var(--color-accent-500); // @presenter Color
|
|
724
1465
|
--linear-progress-background-color: var(--color-accent-100); // @presenter Color
|
|
725
1466
|
|
|
726
|
-
|
|
727
|
-
--fab-color:
|
|
728
|
-
--fab-
|
|
1467
|
+
--fab-icon-color: var(--color-primary-500); // @presenter Color
|
|
1468
|
+
--fab-background-color: var(--color-emphasis-50); // @presenter Color
|
|
1469
|
+
--fab-box-shadow: 0 0 20px rgba(43, 43, 43, 0.3); // @presenter Shadow
|
|
1470
|
+
|
|
1471
|
+
--fab-hover-background: var(--color-emphasis-200); // @presenter Color
|
|
1472
|
+
--fab-hover-icon-color: var(--color-primary-600); // @presenter Color
|
|
1473
|
+
--fab-hover-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); // @presenter Shadow
|
|
1474
|
+
|
|
1475
|
+
--fab-active-background: var(--color-emphasis-200); // @presenter Color
|
|
1476
|
+
--fab-active-icon-color: var(--color-primary-600); // @presenter Color
|
|
1477
|
+
--fab-active-box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); // @presenter Shadow
|
|
1478
|
+
|
|
1479
|
+
/* --fab-icon: <svg string or url> work with icons later **/
|
|
1480
|
+
|
|
1481
|
+
// @tokens End
|
|
1482
|
+
`;
|
|
1483
|
+
|
|
1484
|
+
const badges = css`
|
|
1485
|
+
/**
|
|
1486
|
+
* @tokens Default Badge
|
|
1487
|
+
*/
|
|
1488
|
+
--badge-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1489
|
+
--badge-background-color: var(--color-primary-500); // @presenter Color
|
|
1490
|
+
--badge-border-color: var(--color-primary-700); // @presenter Color
|
|
1491
|
+
--badge-border: 1px solid var(--badge-border-color); // @presenter Border
|
|
1492
|
+
--badge-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* @tokens Deprecated Badge
|
|
1496
|
+
*/
|
|
1497
|
+
|
|
1498
|
+
--badge-deprecated-text-color: var(--color-emphasis-50); // @presenter Color
|
|
1499
|
+
--badge-deprecated-background-color: var(--color-warning-500); // @presenter Color
|
|
1500
|
+
--badge-deprecated-border-color: var(--color-warning-700); // @presenter Color
|
|
1501
|
+
--badge-deprecated-border: 1px solid var(--badge-deprecated-border-color); // @presenter Border
|
|
1502
|
+
--badge-deprecated-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* @tokens Http Badge
|
|
1506
|
+
*/
|
|
1507
|
+
|
|
1508
|
+
--badge-http-font-size: 12px; // @presenter FontSize
|
|
1509
|
+
--badge-http-line-height: 20px; // @presenter LineHeight
|
|
1510
|
+
--badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1511
|
+
--badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1512
|
+
--badge-http-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1513
|
+
--badge-http-border-radius: calc(var(--border-radius-lg) * 2); // @presenter BorderRadius
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* @tokens Sidebar item badge http
|
|
1517
|
+
*/
|
|
1518
|
+
|
|
1519
|
+
--sidebar-item-badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1520
|
+
--sidebar-item-badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1521
|
+
--sidebar-item-badge-http-font-size: 8px; // @presenter FontSize
|
|
1522
|
+
--sidebar-item-badge-http-font-weight: normal; //@presenter FontWeight
|
|
1523
|
+
--sidebar-item-badge-http-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
729
1524
|
|
|
730
1525
|
// @tokens End
|
|
731
1526
|
`;
|
|
@@ -737,6 +1532,30 @@ const footer = css`
|
|
|
737
1532
|
--footer-background-color: var(--color-primary-500); // @presenter Color
|
|
738
1533
|
--footer-text-color: #fff; // @presenter Color
|
|
739
1534
|
|
|
1535
|
+
--footer-padding-vertical: 2em; // @presenter Spacing
|
|
1536
|
+
--footer-padding-horizontal: 20px; // @presenter Spacing
|
|
1537
|
+
|
|
1538
|
+
--footer-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1539
|
+
--footer-font-size: 1rem; // @presenter FontSize
|
|
1540
|
+
--footer-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1541
|
+
|
|
1542
|
+
--footer-title-text-color: var(--footer-text-color); // @presenter Color
|
|
1543
|
+
--footer-title-font-size: 24px; // @presenter FontSize
|
|
1544
|
+
--footer-title-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1545
|
+
--footer-title-margin-vertical: 1.5em;
|
|
1546
|
+
|
|
1547
|
+
--footer-link-text-color: var(--footer-text-color); // @presenter Color
|
|
1548
|
+
--footer-link-hover-color: var(--footer-text-color); // @presenter Color
|
|
1549
|
+
|
|
1550
|
+
--footer-item-padding-vertical: 0.5em; // @presenter Spacingv
|
|
1551
|
+
--footer-item-padding-horizontal: 0;
|
|
1552
|
+
|
|
1553
|
+
--footer-column-width: 20%; // @presenter Spacing
|
|
1554
|
+
--footer-column-margin-vertical: 20px; // @presenter Spacing
|
|
1555
|
+
--footer-column-margin-horizontal: 0; // @presenter Spacing
|
|
1556
|
+
|
|
1557
|
+
--footer-container-max-width: 1200px; // @presenter Spacing
|
|
1558
|
+
|
|
740
1559
|
// @tokens End
|
|
741
1560
|
`;
|
|
742
1561
|
|
|
@@ -744,8 +1563,12 @@ const logo = css`
|
|
|
744
1563
|
/**
|
|
745
1564
|
* @tokens Logo
|
|
746
1565
|
*/
|
|
747
|
-
|
|
748
|
-
--logo-
|
|
1566
|
+
|
|
1567
|
+
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
1568
|
+
--navbar-logo-width: auto;
|
|
1569
|
+
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
1570
|
+
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
1571
|
+
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
749
1572
|
|
|
750
1573
|
// @tokens End
|
|
751
1574
|
`;
|
|
@@ -757,20 +1580,33 @@ const navbar = css`
|
|
|
757
1580
|
--navbar-height: 60px; // @presenter Spacing
|
|
758
1581
|
--navbar-text-color: #fff; // @presenter Color
|
|
759
1582
|
--navbar-background-color: var(--color-primary-500); // @presenter Color
|
|
760
|
-
--navbar-
|
|
1583
|
+
--navbar-container-max-width: 1200px;
|
|
761
1584
|
|
|
762
1585
|
/**
|
|
763
1586
|
* @tokens Navbar Item
|
|
764
1587
|
* */
|
|
1588
|
+
--navbar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
765
1589
|
--navbar-item-font-size: 16px; // @presenter FontSize
|
|
766
|
-
--navbar-item-
|
|
767
|
-
--navbar-item-
|
|
768
|
-
--navbar-item-
|
|
1590
|
+
--navbar-item-padding-horizontal: 16px; // @presenter Spacing
|
|
1591
|
+
--navbar-item-paddin-vertical: 8px; // @presenter Spacing
|
|
1592
|
+
--navbar-item-margin-horizontal: 7px;
|
|
1593
|
+
--navbar-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
769
1594
|
--navbar-item-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
770
|
-
--navbar-item-
|
|
1595
|
+
--navbar-item-hover-background-color: var(--color-primary-300);
|
|
1596
|
+
--navbar-item-active-background-color: var(--color-primary-300); // @presenter Color
|
|
1597
|
+
--navbar-item-hover-text-color: var(--navbar-text-color); // @presenter Color
|
|
1598
|
+
--navbar-item-hover-text-decoration: none;
|
|
771
1599
|
--navbar-item-active-text-color: var(--navbar-text-color); // @presenter Color
|
|
772
|
-
--navbar-item-separator-line-color: var(--sidebar-separator-line-color); // @presenter Color
|
|
773
1600
|
--navbar-item-active-text-decoration: none;
|
|
1601
|
+
--navbar-item-separator-line-color: var(--border-color); // @presenter Color
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* @tokens Navbar dropdown
|
|
1605
|
+
* */
|
|
1606
|
+
|
|
1607
|
+
--navbar-dropdown-shadow: 4px 4px 15px -2px rgba(0, 0, 0, 0.5); //should be variable
|
|
1608
|
+
--navbar-dropdown-background: var(--navbar-item-active-background-color);
|
|
1609
|
+
--navbar-dropdown-border: none;
|
|
774
1610
|
|
|
775
1611
|
// @tokens End
|
|
776
1612
|
`;
|
|
@@ -779,58 +1615,235 @@ const toc = css`
|
|
|
779
1615
|
/**
|
|
780
1616
|
* @tokens TOC
|
|
781
1617
|
* */
|
|
1618
|
+
|
|
782
1619
|
--toc-width: 240px;
|
|
1620
|
+
--toc-background-color: transparent;
|
|
1621
|
+
--toc-border-color: var(--border-color);
|
|
1622
|
+
|
|
1623
|
+
--toc-spacing-unit: 8px;
|
|
1624
|
+
--toc-offset-top: calc(var(--toc-spacing-unit) * 2);
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* @tokens TOC item typography
|
|
1628
|
+
*/
|
|
1629
|
+
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1630
|
+
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* @tokens TOC item
|
|
1634
|
+
*/
|
|
1635
|
+
|
|
1636
|
+
--toc-item-text-color: var(--text-color); // @presenter Color
|
|
1637
|
+
--toc-item-active-text-color: var(--text-color); // @presenter Color
|
|
1638
|
+
--toc-item-background-color: transparent; // @presenter Color
|
|
1639
|
+
--toc-item-active-background-color: var(--border-color); // @presenter Color
|
|
1640
|
+
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1641
|
+
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
1642
|
+
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* @tokens TOC header
|
|
1646
|
+
*/
|
|
1647
|
+
|
|
1648
|
+
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
1649
|
+
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1650
|
+
--toc-heading-font-weight: bold; // @presenter FontWeight
|
|
1651
|
+
--toc-heading-text-color: var(--text-color); // @presenter Color
|
|
783
1652
|
|
|
784
1653
|
// @tokens End
|
|
785
1654
|
`;
|
|
786
1655
|
|
|
787
|
-
const
|
|
1656
|
+
const inputs = css`
|
|
788
1657
|
/**
|
|
789
|
-
* @tokens
|
|
790
|
-
|
|
791
|
-
--
|
|
792
|
-
--
|
|
793
|
-
--
|
|
1658
|
+
* @tokens Inputs
|
|
1659
|
+
*/
|
|
1660
|
+
--input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1661
|
+
--input-border: none; // @presenter Border
|
|
1662
|
+
--input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1663
|
+
--input-font-size: var(--font-size-base); // @presenter FontSize
|
|
1664
|
+
--input-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1665
|
+
--input-line-height: 1.15em; // @presenter LineHeight
|
|
1666
|
+
--input-padding: 8px;
|
|
1667
|
+
|
|
1668
|
+
--input-hover-text-color: var(--text-color-inverse); // @presenter Color
|
|
1669
|
+
--input-hover-border: none; // @presenter Border
|
|
1670
|
+
--input-focus-border: none; // @presenter Border
|
|
1671
|
+
--input-focus-text-color: var(--text-color-inverse); // @presenter Color
|
|
1672
|
+
--input-placeholder-text-color: var(--text-color-inverse); // @presenter Color
|
|
794
1673
|
|
|
795
1674
|
// @tokens End
|
|
796
1675
|
`;
|
|
797
1676
|
|
|
798
|
-
const
|
|
1677
|
+
const markdown = css`
|
|
799
1678
|
/**
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
--
|
|
804
|
-
--
|
|
805
|
-
--
|
|
806
|
-
|
|
807
|
-
|
|
1679
|
+
* @tokens Markdown Container
|
|
1680
|
+
*/
|
|
1681
|
+
|
|
1682
|
+
--md-container-max-width: 910px;
|
|
1683
|
+
--md-container-padding-vertical: 25px; // @presenter Spacing
|
|
1684
|
+
--md-container-padding-horizontal: 0px; // @presenter Spacing
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* @tokens Markdown Blockquote
|
|
1688
|
+
*/
|
|
1689
|
+
|
|
1690
|
+
--md-blockquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
1691
|
+
--md-blockquote-margin-horizontal: 0; // @presenter Spacing
|
|
1692
|
+
--md-blockquote-padding-vertical: 0; // @presenter Spacing
|
|
1693
|
+
--md-blockquote-padding-horizontal: calc(var(--spacing-unit) * 4); // @presenter Spacing
|
|
1694
|
+
--md-blockquote-border-color: var(--border-color); // @presenter Color
|
|
1695
|
+
--md-blockquote-background-color: transparent; // @presenter Color
|
|
1696
|
+
--md-blockquote-border-left: 4px solid var(--md-blockquote-border-color); // @presenter Border
|
|
1697
|
+
--md-blockquote-text-color: var(--text-color); // @presenter Color
|
|
1698
|
+
--md-blockquote-box-shadow: none; // @presenter Shadow
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* @tokens Markdown Paragraph
|
|
1702
|
+
*/
|
|
1703
|
+
|
|
1704
|
+
--md-paragraph-margin-vertical: 10px; // @presenter Spacing
|
|
1705
|
+
--md-paragraph-margin-horizontal: 0px; // @presenter Spacing
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* @tokens Markdown Table
|
|
1709
|
+
*/
|
|
1710
|
+
|
|
1711
|
+
--md-table-font-size: 14px; // @presenter FontSize
|
|
1712
|
+
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
1713
|
+
--md-table-background-color: transparent; // @presenter Color
|
|
1714
|
+
|
|
1715
|
+
--md-table-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1716
|
+
--md-table-border-width: 1px;
|
|
1717
|
+
--md-table-border-color: var(--border-color); // @presenter Color
|
|
1718
|
+
|
|
1719
|
+
--md-table-stripe-background-color: var(--md-table-background-color); // @presenter Color
|
|
1720
|
+
|
|
1721
|
+
--md-table-cell-text-color: var(--text-color); // @presenter Color
|
|
1722
|
+
--md-table-cell-padding: 12px; // @presenter Spacing
|
|
1723
|
+
|
|
1724
|
+
--md-table-head-background-color: var(--color-secondary-200); // @presenter Color
|
|
1725
|
+
--md-table-head-text-color: var(--text-color); // @presenter Color
|
|
1726
|
+
--md-table-head-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* @tokens Markdown Horizontal Rule
|
|
1730
|
+
*/
|
|
1731
|
+
|
|
1732
|
+
--md-hr-background-color: transparent; // @presenter Color
|
|
1733
|
+
--md-hr-border-color: var(--border-color); // @presenter Color
|
|
1734
|
+
--md-hr-height: unset;
|
|
1735
|
+
--md-hr-margin-vertical: 20px; // @presenter Spacing
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* @tokens Markdown List
|
|
1739
|
+
*/
|
|
1740
|
+
|
|
1741
|
+
--md-list-left-padding: 2rem; // @presenter Spacing
|
|
1742
|
+
--md-list-margin: 1rem; // @presenter Spacing
|
|
1743
|
+
--md-list-item-margin: 0.25rem; // @presenter Spacing
|
|
1744
|
+
--md-list-item-style: inherit;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* @tokens Markdown Numbered List
|
|
1748
|
+
*/
|
|
1749
|
+
|
|
1750
|
+
--md-numbered-list-number-display: none;
|
|
1751
|
+
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
1752
|
+
--md-numbered-list-number-text-color: var(--color-secondary-100); // @presenter Color
|
|
1753
|
+
--md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
|
|
1754
|
+
--md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
|
|
1755
|
+
--md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1756
|
+
--md-numbered-list-number-background-color: var(--color-secondary-800); // @presenter Color
|
|
1757
|
+
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
1758
|
+
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
1759
|
+
--md-numbered-list-number-padding: 0 5px; // @presenter Spacing
|
|
808
1760
|
|
|
809
1761
|
// @tokens End
|
|
810
1762
|
`;
|
|
811
1763
|
|
|
812
|
-
const
|
|
1764
|
+
const search = css`
|
|
813
1765
|
/**
|
|
814
|
-
|
|
815
|
-
|
|
1766
|
+
* @tokens Search
|
|
1767
|
+
*/
|
|
1768
|
+
|
|
1769
|
+
--search-highlight-text-color: #ffff03; // @presenter Color
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* @tokens Portal Search
|
|
1773
|
+
*/
|
|
1774
|
+
|
|
816
1775
|
--search-input-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
817
1776
|
--search-input-text-color: #fff; // @presenter Color
|
|
818
|
-
|
|
1777
|
+
|
|
1778
|
+
--search-input-border: none;
|
|
1779
|
+
--search-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
819
1780
|
--search-input-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
820
1781
|
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
821
1782
|
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
822
|
-
|
|
823
|
-
--search-
|
|
1783
|
+
|
|
1784
|
+
--search-input-hover-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
1785
|
+
--search-input-hover-border: none; // @presenter Color
|
|
1786
|
+
--search-input-placeholder-color: var(--search-input-text-color);
|
|
1787
|
+
|
|
1788
|
+
--search-popover-background-color: #fff; // @presenter Color
|
|
824
1789
|
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
825
|
-
--search-
|
|
826
|
-
|
|
1790
|
+
--search-popover-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
|
|
1791
|
+
0 8px 10px -5px rgba(0, 0, 0, 0.4); // @presenter BoxShadow
|
|
1792
|
+
--search-popover-border: none;
|
|
1793
|
+
|
|
1794
|
+
--search-item-padding: 8px 24px;
|
|
1795
|
+
--search-item-text-color: var(--text-color-secondary); // @presenter Color
|
|
1796
|
+
--search-item-title-text-color: var(--text-color); // @presenter Color
|
|
1797
|
+
--search-item-background-color: transparent; // @presenter Color
|
|
1798
|
+
--search-item-active-text-color: var(--text-color-secondary); // @presenter Color
|
|
1799
|
+
--search-item-active-title-text-color: var(--text-color); // @presenter Color
|
|
827
1800
|
--search-item-active-background-color: rgba(0, 68, 212, 0.1); // @presenter Color
|
|
828
1801
|
|
|
1802
|
+
/**
|
|
1803
|
+
* @tokens Sidebar Search
|
|
1804
|
+
*/
|
|
1805
|
+
|
|
1806
|
+
--sidebar-search-button-background-color: transparent; // @presenter Color
|
|
1807
|
+
--sidebar-search-button-text-color: var(--text-color); // @presenter Color
|
|
1808
|
+
--sidebar-search-button-border: var(--border-color);
|
|
1809
|
+
--sidebar-search-button-border-radius: none; // @presenter BorderRadius
|
|
1810
|
+
--sidebar-search-button-font-size: var(--font-size-small); // @presenter FontSize
|
|
1811
|
+
--sidebar-search-button-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1812
|
+
--sidebar-search-button-line-height: 1.15em; // @presenter LineHeight
|
|
1813
|
+
--sidebar-search-button-hover-background-color: transparent; // @presenter Color
|
|
1814
|
+
--sidebar-search-button-hover-border: var(--border-color); // @presenter Color
|
|
1815
|
+
--sidebar-search-button-active-background-color: transparent; // @presenter Color
|
|
1816
|
+
--sidebar-search-button-active-border: var(--border-color); // @presenter Color
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* @tokens Search results modal
|
|
1820
|
+
* @presenter Color
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
--search-modal-background: #fff;
|
|
1824
|
+
--search-modal-text-color: var(--text-color);
|
|
1825
|
+
--search-modal-border: none;
|
|
1826
|
+
--search-modal-box-shadow: none;
|
|
1827
|
+
|
|
1828
|
+
--search-modal-header-border-radius: 8px;
|
|
1829
|
+
--search-modal-header-background-color: var(--color-secondary-100);
|
|
1830
|
+
--search-modal-clear-button-background-color: var(--color-secondary-300);
|
|
1831
|
+
--search-modal-clear-button-hover-background-color: var(--color-secondary-500);
|
|
1832
|
+
|
|
829
1833
|
// @tokens End
|
|
830
1834
|
`;
|
|
831
1835
|
|
|
832
|
-
|
|
833
|
-
|
|
1836
|
+
const dropdown = css`
|
|
1837
|
+
--dropdown-font-size: 14px;
|
|
1838
|
+
--dropdown-text-color: var(--text-color);
|
|
1839
|
+
|
|
1840
|
+
--dropdown-padding-vertical: 8px;
|
|
1841
|
+
--dropdown-padding-left: 10px;
|
|
1842
|
+
--dropdown-padding-right: 26px;
|
|
1843
|
+
--dropdown-padding: var(--dropdown-padding-vertical) var(--dropdown-padding-right)
|
|
1844
|
+
var(--dropdown-padding-vertical) var(--dropdown-padding-left);
|
|
1845
|
+
|
|
1846
|
+
--dropdown-border: none;
|
|
834
1847
|
`;
|
|
835
1848
|
|
|
836
1849
|
export const darkMode = css`
|
|
@@ -841,26 +1854,27 @@ export const styles = css`
|
|
|
841
1854
|
:root {
|
|
842
1855
|
${baseColors}
|
|
843
1856
|
${httpColors}
|
|
844
|
-
${
|
|
1857
|
+
${responsePanelColors}
|
|
845
1858
|
${typography}
|
|
846
1859
|
${headingsTypography}
|
|
847
|
-
${
|
|
1860
|
+
${common}
|
|
848
1861
|
${admonition}
|
|
849
1862
|
${buttons}
|
|
850
1863
|
${sidebar}
|
|
851
|
-
${panels}
|
|
852
1864
|
${navbar}
|
|
853
1865
|
${footer}
|
|
854
1866
|
${logo}
|
|
1867
|
+
${badges}
|
|
855
1868
|
${toc}
|
|
1869
|
+
${inputs}
|
|
856
1870
|
${tooltip}
|
|
857
1871
|
${code}
|
|
858
1872
|
${links}
|
|
859
1873
|
${markdown}
|
|
860
|
-
${
|
|
861
|
-
${
|
|
862
|
-
|
|
863
|
-
${
|
|
1874
|
+
${search}
|
|
1875
|
+
${dropdown}
|
|
1876
|
+
${apiReferencePanels}
|
|
1877
|
+
${apiReferenceDocs}
|
|
864
1878
|
}
|
|
865
1879
|
|
|
866
1880
|
:root.dark {
|