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