@redocly/theme 0.18.6 → 0.19.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/lib/components/Breadcrumbs/Breadcrumb.js +2 -5
- package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
- package/lib/components/Breadcrumbs/index.d.ts +1 -0
- package/lib/components/Breadcrumbs/index.js +1 -0
- package/lib/components/Breadcrumbs/styledVariables.d.ts +1 -0
- package/lib/components/Breadcrumbs/styledVariables.js +20 -0
- package/lib/components/Button/Button.d.ts +6 -3
- package/lib/components/Button/Button.js +41 -41
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Button/styledVariables.d.ts +1 -0
- package/lib/components/Button/styledVariables.js +107 -0
- package/lib/components/Catalog/Catalog.d.ts +6 -0
- package/lib/components/Catalog/Catalog.js +115 -106
- package/lib/components/Catalog/CatalogCard.js +91 -58
- package/lib/components/Catalog/index.d.ts +4 -3
- package/lib/components/Catalog/index.js +4 -3
- package/lib/components/Catalog/styledVariables.d.ts +1 -0
- package/lib/components/Catalog/styledVariables.js +95 -0
- package/lib/components/CodeBlock/CodeBlockContainer.js +38 -10
- package/lib/components/CodeBlock/CodeBlockControlButton.d.ts +3 -4
- package/lib/components/CodeBlock/CodeBlockControlButton.js +5 -19
- package/lib/components/CodeBlock/CodeBlockControls.js +9 -6
- package/lib/components/CodeBlock/index.d.ts +1 -0
- package/lib/components/CodeBlock/index.js +1 -0
- package/lib/components/CodeBlock/styledVariables.d.ts +1 -0
- package/lib/components/CodeBlock/styledVariables.js +92 -0
- package/lib/components/ColorModeSwitcher/ColorModeSwitcher.js +0 -1
- package/lib/components/Dropdown/Dropdown.d.ts +9 -3
- package/lib/components/Dropdown/Dropdown.js +7 -4
- package/lib/components/Dropdown/index.d.ts +1 -0
- package/lib/components/Dropdown/index.js +1 -0
- package/lib/components/Dropdown/styledVariables.d.ts +1 -0
- package/lib/components/Dropdown/styledVariables.js +30 -0
- package/lib/components/EditPageButton/EditPageButton.d.ts +1 -3
- package/lib/components/EditPageButton/EditPageButton.js +17 -8
- package/lib/components/Feedback/Comment.js +5 -0
- package/lib/components/Feedback/Rating.js +5 -1
- package/lib/components/Feedback/Reasons.js +6 -1
- package/lib/components/Feedback/Sentiment.js +5 -0
- package/lib/components/Feedback/Thumbs.js +4 -4
- package/lib/components/Filter/Filter.d.ts +3 -1
- package/lib/components/Filter/Filter.js +113 -80
- package/lib/components/Filter/FilterContent.d.ts +13 -0
- package/lib/components/Filter/FilterContent.js +60 -0
- package/lib/components/Filter/FilterPopover.d.ts +13 -0
- package/lib/components/Filter/FilterPopover.js +110 -0
- package/lib/components/Filter/FilterTag.d.ts +7 -0
- package/lib/components/Filter/FilterTag.js +33 -0
- package/lib/components/Filter/FilterTags.d.ts +7 -0
- package/lib/components/Filter/FilterTags.js +29 -0
- package/lib/components/Filter/index.d.ts +5 -0
- package/lib/components/Filter/index.js +5 -0
- package/lib/components/Filter/styledVariables.d.ts +1 -0
- package/lib/components/Filter/styledVariables.js +112 -0
- package/lib/components/Footer/CustomFooterNavItem.js +1 -1
- package/lib/components/Footer/Footer.d.ts +4 -3
- package/lib/components/Footer/Footer.js +28 -10
- package/lib/components/Footer/FooterColumn.d.ts +3 -3
- package/lib/components/Footer/FooterColumn.js +57 -63
- package/lib/components/Footer/FooterColumns.js +6 -4
- package/lib/components/Footer/FooterCopyright.js +11 -6
- package/lib/components/Footer/index.d.ts +1 -0
- package/lib/components/Footer/index.js +1 -0
- package/lib/components/Footer/styledVariables.d.ts +1 -0
- package/lib/components/Footer/styledVariables.js +61 -0
- package/lib/components/Image/Image.d.ts +9 -0
- package/lib/components/Image/Image.js +31 -0
- package/lib/components/Image/index.d.ts +1 -0
- package/lib/components/{Tags → Image}/index.js +1 -1
- package/lib/components/JsonViewer/JsonViewer.js +2 -2
- package/lib/components/LastUpdated/LastUpdated.js +1 -0
- package/lib/components/LastUpdated/index.d.ts +2 -0
- package/lib/components/LastUpdated/index.js +19 -0
- package/lib/components/LastUpdated/styledVariables.d.ts +1 -0
- package/lib/components/LastUpdated/styledVariables.js +11 -0
- package/lib/components/Markdown/Admonition.js +12 -9
- package/lib/components/Markdown/MarkdownLayout.d.ts +0 -2
- package/lib/components/Markdown/MarkdownLayout.js +1 -6
- package/lib/components/Markdown/MarkdownWrapper.js +2 -4
- package/lib/components/Markdown/Mermaid.js +4 -1
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Markdown/index.js +1 -0
- package/lib/components/Markdown/styledVariables.d.ts +3 -0
- package/lib/components/Markdown/styledVariables.js +231 -0
- package/lib/components/Menu/Menu.js +6 -8
- package/lib/components/Menu/MenuGroup.js +12 -7
- package/lib/components/Menu/MenuItem.js +1 -1
- package/lib/components/Menu/MenuItemLabel.js +9 -13
- package/lib/components/Menu/MenuItemSwitch.d.ts +1 -1
- package/lib/components/Menu/MenuItemSwitch.js +6 -4
- package/lib/components/Menu/MobileMenu.js +20 -25
- package/lib/components/Menu/MobileMenuGroup.js +1 -1
- package/lib/components/Menu/hooks/use-mobile-menu-items.d.ts +1 -1
- package/lib/components/Menu/index.d.ts +5 -0
- package/lib/components/Menu/index.js +5 -0
- package/lib/components/Menu/styledVariables.d.ts +2 -0
- package/lib/components/Menu/styledVariables.js +101 -0
- package/lib/components/Navbar/Navbar.js +20 -13
- package/lib/components/Navbar/NavbarItem.d.ts +1 -1
- package/lib/components/Navbar/NavbarItem.js +18 -6
- package/lib/components/Navbar/NavbarMenu.js +2 -2
- package/lib/components/Navbar/index.d.ts +2 -0
- package/lib/components/Navbar/index.js +2 -0
- package/lib/components/Navbar/styledVariables.d.ts +1 -0
- package/lib/components/Navbar/styledVariables.js +42 -0
- package/lib/components/NavbarLogo/NavbarLogo.d.ts +4 -1
- package/lib/components/NavbarLogo/NavbarLogo.js +13 -5
- package/lib/components/NavbarLogo/index.d.ts +1 -0
- package/lib/components/NavbarLogo/index.js +1 -0
- package/lib/components/NavbarLogo/styledVariables.d.ts +1 -0
- package/lib/components/NavbarLogo/styledVariables.js +18 -0
- package/lib/components/OpenApiDocs/DevOnboardingTryItSecurity.js +2 -2
- package/lib/components/OpenApiDocs/Dropdown.js +3 -3
- package/lib/components/OpenApiDocs/hooks/AfterOpenApiTitle.js +1 -1
- package/lib/components/OpenApiDocs/index.d.ts +9 -1
- package/lib/components/OpenApiDocs/index.js +9 -1
- package/lib/components/PageNavigation/NextButton.js +1 -1
- package/lib/components/PageNavigation/PreviousButton.js +1 -1
- package/lib/components/Panel/PanelHeader.js +2 -0
- package/lib/components/Panel/PanelHeaderTitle.js +0 -4
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -0
- package/lib/components/Panel/styledVariables.d.ts +2 -0
- package/lib/components/Panel/styledVariables.js +481 -0
- package/lib/components/Product/ProductPicker.js +18 -11
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/index.js +1 -0
- package/lib/components/Product/styledVariables.d.ts +2 -0
- package/lib/components/Product/styledVariables.js +42 -0
- package/lib/components/Profile/LoginLink.js +1 -2
- package/lib/components/{Navbar → Profile}/MobileUserProfile.js +12 -24
- package/lib/components/Profile/Profile.js +3 -22
- package/lib/components/Profile/UserProfile.d.ts +1 -1
- package/lib/components/Profile/UserProfile.js +21 -9
- package/lib/components/Profile/UserProfileData.d.ts +9 -0
- package/lib/components/Profile/UserProfileData.js +35 -0
- package/lib/components/Profile/index.d.ts +10 -6
- package/lib/components/Profile/index.js +21 -3
- package/lib/components/Profile/styledVariables.d.ts +2 -0
- package/lib/components/Profile/styledVariables.js +55 -0
- package/lib/components/Search/CancelSearch.js +2 -14
- package/lib/components/Search/ProductTag.js +8 -8
- package/lib/components/Search/RecentSearches.js +5 -5
- package/lib/components/Search/Search.js +0 -2
- package/lib/components/Search/SearchIcon.js +2 -2
- package/lib/components/Search/SearchItem.js +4 -4
- package/lib/components/Search/SearchTrigger.js +4 -5
- package/lib/components/Search/ShortcutKey.js +1 -5
- package/lib/components/Search/SuggestedPages.js +3 -3
- package/lib/components/Search/index.d.ts +3 -0
- package/lib/components/Search/index.js +3 -0
- package/lib/components/Search/styledVariables.d.ts +1 -0
- package/lib/components/Search/styledVariables.js +98 -0
- package/lib/components/Select/Select.d.ts +21 -9
- package/lib/components/Select/Select.js +27 -17
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/Select/styledVariables.d.ts +1 -0
- package/lib/components/Select/styledVariables.js +34 -0
- package/lib/components/Separator/Separator.js +11 -3
- package/lib/components/Separator/SeparatorItem.js +6 -9
- package/lib/components/Separator/SeparatorLine.js +7 -3
- package/lib/components/Sidebar/ApiCallItem.d.ts +4 -6
- package/lib/components/Sidebar/ApiCallItem.js +18 -13
- package/lib/components/Sidebar/FooterWrapper.js +3 -4
- package/lib/components/Sidebar/HeaderWrapper.js +3 -3
- package/lib/components/Sidebar/VersionPicker.d.ts +3 -3
- package/lib/components/Sidebar/VersionPicker.js +6 -4
- package/lib/components/Sidebar/index.d.ts +2 -0
- package/lib/components/Sidebar/index.js +2 -0
- package/lib/components/Sidebar/styledVariables.d.ts +2 -0
- package/lib/components/Sidebar/styledVariables.js +216 -0
- package/lib/components/Sidebar/types.d.ts +1 -0
- package/lib/components/SidebarActions/CollapseSidebarButton.js +41 -1
- package/lib/components/SidebarActions/index.d.ts +3 -0
- package/lib/components/SidebarActions/index.js +17 -0
- package/lib/components/SidebarActions/styled.js +29 -21
- package/lib/components/TableOfContent/TableOfContent.js +3 -2
- package/lib/components/TableOfContent/index.d.ts +1 -0
- package/lib/components/TableOfContent/index.js +1 -0
- package/lib/components/TableOfContent/styledVariables.d.ts +1 -0
- package/lib/components/TableOfContent/styledVariables.js +47 -0
- package/lib/components/Tabs/Tab.js +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tag/Tag.d.ts +18 -0
- package/lib/components/Tag/Tag.js +46 -0
- package/lib/components/Tag/index.d.ts +2 -0
- package/lib/components/Tag/index.js +19 -0
- package/lib/components/Tag/styledVariables.d.ts +1 -0
- package/lib/components/Tag/styledVariables.js +148 -0
- package/lib/components/Tiles/ThinTile.js +7 -5
- package/lib/components/Tiles/TileHeader.js +1 -1
- package/lib/components/Tiles/TileText.js +1 -1
- package/lib/components/Tiles/WideTile.js +10 -8
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +1 -0
- package/lib/components/Tooltip/styledVariables.d.ts +1 -0
- package/lib/components/Tooltip/styledVariables.js +21 -0
- package/lib/components/Typography/SectionHeader.js +2 -2
- package/lib/components/Typography/Typography.js +1 -1
- package/lib/components/index.d.ts +29 -38
- package/lib/components/index.js +29 -38
- package/lib/config.d.ts +113 -14
- package/lib/config.js +28 -4
- package/lib/globalStyle.js +602 -1983
- package/lib/hooks/useMobileMenu.js +5 -6
- package/lib/hooks/useModalScrollLock.d.ts +1 -0
- package/lib/hooks/useModalScrollLock.js +16 -0
- package/lib/hooks/useThemeConfig.d.ts +1 -1
- package/lib/i18n/LanguagePicker.d.ts +9 -0
- package/lib/{I18n → i18n}/LanguagePicker.js +28 -13
- package/lib/i18n/index.d.ts +2 -0
- package/lib/i18n/index.js +21 -0
- package/lib/i18n/styledVariables.d.ts +1 -0
- package/lib/i18n/styledVariables.js +40 -0
- package/lib/icons/AlertIcon/AlertIcon.js +0 -5
- package/lib/icons/ArrowIcon/ArrowIcon.js +1 -1
- package/lib/icons/CheckboxIcon/CheckboxIcon.d.ts +6 -0
- package/lib/icons/CheckboxIcon/CheckboxIcon.js +28 -0
- package/lib/icons/CheckboxIcon/index.d.ts +1 -0
- package/lib/icons/CheckboxIcon/index.js +6 -0
- package/lib/icons/CollapseIcon/CollapseIcon.d.ts +1 -1
- package/lib/icons/CollapseIcon/CollapseIcon.js +5 -5
- package/lib/icons/ColorModeIcon/ColorModeIcon.js +1 -1
- package/lib/icons/CopyIcon/CopyIcon.d.ts +1 -2
- package/lib/icons/CopyIcon/CopyIcon.js +4 -4
- package/lib/icons/DeselectIcon/DeselectIcon.d.ts +1 -1
- package/lib/icons/DeselectIcon/DeselectIcon.js +5 -5
- package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
- package/lib/icons/EditIcon/EditIcon.js +18 -0
- package/lib/icons/EditIcon/index.d.ts +1 -0
- package/lib/{components/OperationBadge → icons/EditIcon}/index.js +1 -1
- package/lib/icons/ErrorIcon/ErrorIcon.d.ts +4 -0
- package/lib/icons/ErrorIcon/ErrorIcon.js +14 -0
- package/lib/icons/ErrorIcon/index.d.ts +1 -0
- package/lib/icons/ErrorIcon/index.js +18 -0
- package/lib/icons/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/lib/icons/ExpandIcon/ExpandIcon.js +5 -5
- package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
- package/lib/icons/FileIcon/FileIcon.d.ts +1 -2
- package/lib/icons/FileIcon/FileIcon.js +2 -2
- package/lib/icons/LanguageIcon/LanguageIcon.d.ts +4 -0
- package/lib/icons/LanguageIcon/LanguageIcon.js +14 -0
- package/lib/icons/LanguageIcon/index.d.ts +1 -0
- package/lib/icons/LanguageIcon/index.js +18 -0
- package/lib/icons/PlusIcon/PlusIcon.d.ts +5 -0
- package/lib/icons/PlusIcon/PlusIcon.js +16 -0
- package/lib/icons/PlusIcon/index.d.ts +1 -0
- package/lib/icons/PlusIcon/index.js +18 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.d.ts +4 -0
- package/lib/icons/PointingArrowIcon/PointingArrowIcon.js +15 -0
- package/lib/icons/PointingArrowIcon/index.d.ts +1 -0
- package/lib/icons/PointingArrowIcon/index.js +18 -0
- package/lib/icons/ReportIcon/ReportIcon.d.ts +1 -2
- package/lib/icons/ReportIcon/ReportIcon.js +3 -3
- package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
- package/lib/icons/RocketIcon/RocketIcon.js +15 -0
- package/lib/icons/RocketIcon/index.d.ts +1 -0
- package/lib/icons/RocketIcon/index.js +18 -0
- package/lib/icons/SelectIcon/SelectIcon.d.ts +1 -2
- package/lib/icons/SelectIcon/SelectIcon.js +5 -5
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/Forbidden.js +4 -0
- package/lib/layouts/NotFound.js +4 -0
- package/lib/mocks/hooks/index.js +0 -1
- package/lib/types/portal/src/shared/types/catalog.d.ts +5 -1
- package/lib/types/portal/src/shared/types/nav.d.ts +5 -0
- package/lib/ui/ArrowBack.js +0 -1
- package/lib/ui/Burger.js +1 -1
- package/lib/ui/Dropdown.js +7 -7
- package/lib/ui/Highlight.d.ts +1 -1
- package/lib/ui/Highlight.js +1 -1
- package/lib/ui/Jumbotron.js +1 -1
- package/lib/ui/darkColors.js +217 -84
- package/lib/utils/css-variables.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/tags-parser.d.ts +1 -0
- package/lib/utils/tags-parser.js +10 -0
- package/package.json +1 -1
- package/src/components/Breadcrumbs/Breadcrumb.tsx +2 -5
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +7 -4
- package/src/components/Breadcrumbs/index.ts +1 -0
- package/src/components/Breadcrumbs/styledVariables.ts +17 -0
- package/src/components/Button/Button.tsx +53 -47
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/styledVariables.ts +104 -0
- package/src/components/Catalog/Catalog.tsx +141 -123
- package/src/components/Catalog/CatalogCard.tsx +108 -58
- package/src/components/Catalog/index.ts +4 -0
- package/src/components/Catalog/styledVariables.ts +92 -0
- package/src/components/CodeBlock/CodeBlockContainer.tsx +17 -9
- package/src/components/CodeBlock/CodeBlockControlButton.tsx +6 -19
- package/src/components/CodeBlock/CodeBlockControls.tsx +9 -7
- package/src/components/CodeBlock/index.ts +1 -0
- package/src/components/CodeBlock/styledVariables.ts +89 -0
- package/src/components/ColorModeSwitcher/ColorModeSwitcher.tsx +0 -1
- package/src/components/Dropdown/Dropdown.tsx +14 -5
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Dropdown/styledVariables.ts +27 -0
- package/src/components/EditPageButton/EditPageButton.tsx +24 -10
- package/src/components/Feedback/Comment.tsx +5 -0
- package/src/components/Feedback/Rating.tsx +5 -1
- package/src/components/Feedback/Reasons.tsx +6 -1
- package/src/components/Feedback/Sentiment.tsx +5 -0
- package/src/components/Feedback/Thumbs.tsx +4 -4
- package/src/components/Filter/Filter.tsx +148 -94
- package/src/components/Filter/FilterContent.tsx +94 -0
- package/src/components/Filter/FilterPopover.tsx +150 -0
- package/src/components/Filter/FilterTag.tsx +37 -0
- package/src/components/Filter/FilterTags.tsx +39 -0
- package/src/components/Filter/index.ts +5 -0
- package/src/components/Filter/styledVariables.ts +109 -0
- package/src/components/Footer/CustomFooterNavItem.tsx +1 -1
- package/src/components/Footer/Footer.tsx +32 -10
- package/src/components/Footer/FooterColumn.tsx +84 -63
- package/src/components/Footer/FooterColumns.tsx +6 -4
- package/src/components/Footer/FooterCopyright.tsx +13 -7
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/styledVariables.ts +58 -0
- package/src/components/Image/Image.tsx +47 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.tsx +2 -2
- package/src/components/LastUpdated/LastUpdated.tsx +1 -2
- package/src/components/LastUpdated/index.ts +2 -0
- package/src/components/LastUpdated/styledVariables.ts +8 -0
- package/src/components/Markdown/Admonition.tsx +13 -8
- package/src/components/Markdown/MarkdownLayout.tsx +2 -15
- package/src/components/Markdown/MarkdownWrapper.tsx +2 -4
- package/src/components/Markdown/Mermaid.tsx +4 -1
- package/src/components/Markdown/index.ts +1 -0
- package/src/components/Markdown/styledVariables.ts +230 -0
- package/src/components/Menu/Menu.tsx +6 -9
- package/src/components/Menu/MenuGroup.tsx +15 -7
- package/src/components/Menu/MenuItem.tsx +1 -1
- package/src/components/Menu/MenuItemLabel.tsx +9 -13
- package/src/components/Menu/MenuItemSwitch.tsx +3 -2
- package/src/components/Menu/MobileMenu.tsx +20 -25
- package/src/components/Menu/MobileMenuGroup.tsx +1 -1
- package/src/components/Menu/index.ts +5 -0
- package/src/components/Menu/styledVariables.ts +99 -0
- package/src/components/Navbar/Navbar.tsx +20 -13
- package/src/components/Navbar/NavbarItem.tsx +18 -4
- package/src/components/Navbar/NavbarMenu.tsx +2 -2
- package/src/components/Navbar/index.ts +2 -0
- package/src/components/Navbar/styledVariables.ts +39 -0
- package/src/components/NavbarLogo/NavbarLogo.tsx +24 -11
- package/src/components/NavbarLogo/index.ts +1 -0
- package/src/components/NavbarLogo/styledVariables.ts +15 -0
- package/src/components/OpenApiDocs/DevOnboardingTryItSecurity.tsx +1 -2
- package/src/components/OpenApiDocs/Dropdown.tsx +3 -3
- package/src/components/OpenApiDocs/hooks/AfterOpenApiTitle.tsx +1 -1
- package/src/components/OpenApiDocs/index.ts +9 -1
- package/src/components/PageNavigation/NextButton.tsx +0 -1
- package/src/components/PageNavigation/PreviousButton.tsx +0 -1
- package/src/components/Panel/PanelHeader.ts +2 -0
- package/src/components/Panel/PanelHeaderTitle.ts +0 -4
- package/src/components/Panel/index.ts +1 -0
- package/src/components/Panel/styledVariables.ts +479 -0
- package/src/components/Product/ProductPicker.tsx +21 -22
- package/src/components/Product/index.ts +1 -0
- package/src/components/Product/styledVariables.ts +40 -0
- package/src/components/Profile/LoginLink.tsx +1 -2
- package/src/components/{Navbar → Profile}/MobileUserProfile.tsx +12 -29
- package/src/components/Profile/Profile.tsx +1 -24
- package/src/components/Profile/UserProfile.tsx +21 -10
- package/src/components/Profile/UserProfileData.tsx +40 -0
- package/src/components/Profile/index.ts +10 -6
- package/src/components/Profile/styledVariables.ts +53 -0
- package/src/components/Search/CancelSearch.tsx +2 -15
- package/src/components/Search/ProductTag.tsx +8 -8
- package/src/components/Search/RecentSearches.tsx +5 -5
- package/src/components/Search/Search.tsx +0 -2
- package/src/components/Search/SearchIcon.tsx +10 -5
- package/src/components/Search/SearchItem.tsx +4 -4
- package/src/components/Search/SearchTrigger.tsx +4 -5
- package/src/components/Search/ShortcutKey.tsx +1 -5
- package/src/components/Search/SuggestedPages.tsx +3 -3
- package/src/components/Search/index.ts +3 -0
- package/src/components/Search/styledVariables.ts +95 -0
- package/src/components/Select/Select.tsx +65 -31
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/styledVariables.ts +31 -0
- package/src/components/Separator/Separator.tsx +17 -3
- package/src/components/Separator/SeparatorItem.tsx +6 -9
- package/src/components/Separator/SeparatorLine.tsx +7 -3
- package/src/components/Sidebar/ApiCallItem.tsx +18 -13
- package/src/components/Sidebar/FooterWrapper.tsx +3 -4
- package/src/components/Sidebar/HeaderWrapper.tsx +3 -3
- package/src/components/Sidebar/VersionPicker.tsx +6 -4
- package/src/components/Sidebar/index.ts +2 -0
- package/src/components/Sidebar/styledVariables.ts +214 -0
- package/src/components/Sidebar/types.ts +1 -0
- package/src/components/SidebarActions/CollapseSidebarButton.tsx +22 -2
- package/src/components/SidebarActions/index.tsx +3 -0
- package/src/components/SidebarActions/styled.tsx +29 -30
- package/src/components/TableOfContent/TableOfContent.tsx +3 -2
- package/src/components/TableOfContent/index.ts +1 -0
- package/src/components/TableOfContent/styledVariables.ts +44 -0
- package/src/components/Tabs/Tab.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tag/Tag.tsx +72 -0
- package/src/components/Tag/index.ts +2 -0
- package/src/components/Tag/styledVariables.ts +145 -0
- package/src/components/Tiles/ThinTile.tsx +7 -5
- package/src/components/Tiles/TileHeader.ts +1 -1
- package/src/components/Tiles/TileText.tsx +1 -1
- package/src/components/Tiles/WideTile.tsx +10 -8
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/styledVariables.ts +18 -0
- package/src/components/Typography/SectionHeader.ts +2 -2
- package/src/components/Typography/Typography.ts +1 -1
- package/src/components/index.ts +29 -38
- package/src/config.ts +30 -3
- package/src/globalStyle.ts +597 -1999
- package/src/hooks/useMobileMenu.ts +3 -4
- package/src/hooks/useModalScrollLock.ts +12 -0
- package/src/hooks/useThemeConfig.ts +1 -2
- package/src/{I18n → i18n}/LanguagePicker.tsx +49 -22
- package/src/i18n/index.ts +2 -0
- package/src/i18n/styledVariables.ts +37 -0
- package/src/icons/AlertIcon/AlertIcon.tsx +0 -5
- package/src/icons/ArrowIcon/ArrowIcon.tsx +1 -1
- package/src/icons/CheckboxIcon/CheckboxIcon.tsx +64 -0
- package/src/icons/CheckboxIcon/index.ts +1 -0
- package/src/icons/CollapseIcon/CollapseIcon.tsx +5 -5
- package/src/icons/ColorModeIcon/ColorModeIcon.tsx +1 -1
- package/src/icons/CopyIcon/CopyIcon.tsx +4 -5
- package/src/icons/DeselectIcon/DeselectIcon.tsx +5 -5
- package/src/icons/EditIcon/EditIcon.tsx +30 -0
- package/src/icons/EditIcon/index.ts +1 -0
- package/src/icons/ErrorIcon/ErrorIcon.tsx +15 -0
- package/src/icons/ErrorIcon/index.ts +1 -0
- package/src/icons/ExpandIcon/ExpandIcon.tsx +5 -6
- package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
- package/src/icons/FileIcon/FileIcon.tsx +2 -3
- package/src/icons/LanguageIcon/LanguageIcon.tsx +15 -0
- package/src/icons/LanguageIcon/index.ts +1 -0
- package/src/icons/PlusIcon/PlusIcon.tsx +25 -0
- package/src/icons/PlusIcon/index.ts +1 -0
- package/src/icons/PointingArrowIcon/PointingArrowIcon.tsx +16 -0
- package/src/icons/PointingArrowIcon/index.ts +1 -0
- package/src/icons/ReportIcon/ReportIcon.tsx +3 -4
- package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
- package/src/icons/RocketIcon/index.tsx +1 -0
- package/src/icons/SelectIcon/SelectIcon.tsx +5 -6
- package/src/icons/index.ts +6 -0
- package/src/index.ts +10 -10
- package/src/layouts/Forbidden.tsx +4 -0
- package/src/layouts/NotFound.tsx +4 -0
- package/src/mocks/hooks/index.ts +0 -1
- package/src/types/portal/src/shared/types/catalog.ts +7 -1
- package/src/types/portal/src/shared/types/nav.ts +5 -0
- package/src/ui/ArrowBack.tsx +0 -1
- package/src/ui/Burger.tsx +1 -1
- package/src/ui/Dropdown.tsx +7 -7
- package/src/ui/Highlight.tsx +2 -2
- package/src/ui/Jumbotron.tsx +1 -1
- package/src/ui/darkColors.tsx +217 -84
- package/src/utils/css-variables.ts +4 -2
- package/src/utils/index.ts +1 -0
- package/src/utils/tags-parser.ts +8 -0
- package/lib/I18n/LanguagePicker.d.ts +0 -4
- package/lib/I18n/index.d.ts +0 -1
- package/lib/I18n/index.js +0 -6
- package/lib/components/OperationBadge/OperationBadge.d.ts +0 -6
- package/lib/components/OperationBadge/OperationBadge.js +0 -68
- package/lib/components/OperationBadge/index.d.ts +0 -1
- package/lib/components/Tags/Tags.d.ts +0 -5
- package/lib/components/Tags/Tags.js +0 -32
- package/lib/components/Tags/index.d.ts +0 -1
- package/src/I18n/index.ts +0 -1
- package/src/components/Catalog/index.tsx +0 -3
- package/src/components/OperationBadge/OperationBadge.ts +0 -62
- package/src/components/OperationBadge/index.ts +0 -1
- package/src/components/Tags/Tags.tsx +0 -36
- package/src/components/Tags/index.ts +0 -1
- /package/lib/components/{Navbar → Profile}/MobileUserProfile.d.ts +0 -0
package/src/globalStyle.ts
CHANGED
|
@@ -1,114 +1,230 @@
|
|
|
1
1
|
import { createGlobalStyle, css } from 'styled-components';
|
|
2
2
|
|
|
3
|
+
import { darkMode } from '@theme/ui/darkColors';
|
|
3
4
|
import { breakpoints } from '@portal/media-css';
|
|
5
|
+
import { footer } from "@theme/components/Footer";
|
|
6
|
+
import { sidebar, versionPicker } from "@theme/components/Sidebar";
|
|
7
|
+
import { breadcrumbs } from "@theme/components/Breadcrumbs";
|
|
8
|
+
import { button } from '@theme/components/Button';
|
|
9
|
+
import { tag } from '@theme/components/Tag';
|
|
10
|
+
import { toc } from '@theme/components/TableOfContent';
|
|
11
|
+
import { navbar } from "@theme/components/Navbar";
|
|
12
|
+
import { search } from "@theme/components/Search";
|
|
13
|
+
import { catalog } from "@theme/components/Catalog";
|
|
14
|
+
import { filter } from "@theme/components/Filter";
|
|
15
|
+
import { menu, mobileMenu } from "@theme/components/Menu";
|
|
16
|
+
import { apiReferencePanels, responsePanelColors } from '@theme/components/Panel';
|
|
17
|
+
import { code } from '@theme/components/CodeBlock';
|
|
18
|
+
import { product, productPicker } from '@theme/components/Product';
|
|
19
|
+
import { languagePicker } from '@theme/i18n';
|
|
20
|
+
import { select } from '@theme/components/Select';
|
|
21
|
+
import { userProfile, userProfileDropdown } from '@theme/components/Profile';
|
|
22
|
+
import { dropdown } from '@theme/components/Dropdown';
|
|
23
|
+
import { admonition, markdown, mermaid } from '@theme/components/Markdown';
|
|
24
|
+
import { tooltip } from '@theme/components/Tooltip';
|
|
25
|
+
import { lastUpdated } from '@theme/components/LastUpdated';
|
|
26
|
+
import { logo } from '@theme/components/NavbarLogo';
|
|
27
|
+
|
|
28
|
+
const themeColors = css`
|
|
29
|
+
/* === Palette === */
|
|
30
|
+
/**
|
|
31
|
+
* @tokens Base Colors
|
|
32
|
+
* @presenter Color
|
|
33
|
+
*/
|
|
4
34
|
|
|
5
|
-
|
|
35
|
+
--color-red-1: #fff1f0;
|
|
36
|
+
--color-red-2: #ffccc7;
|
|
37
|
+
--color-red-3: #ffa39e;
|
|
38
|
+
--color-red-4: #ff7875;
|
|
39
|
+
--color-red-5: #ff4d4f;
|
|
40
|
+
--color-red-6: #f5222d;
|
|
41
|
+
--color-red-7: #cf1322;
|
|
42
|
+
--color-red-8: #a8071a;
|
|
43
|
+
--color-red-9: #820014;
|
|
44
|
+
--color-red-10: #5c0011;
|
|
45
|
+
|
|
46
|
+
--color-green-1: #f6ffed;
|
|
47
|
+
--color-green-2: #d9f7be;
|
|
48
|
+
--color-green-3: #b7eb8f;
|
|
49
|
+
--color-green-4: #95de64;
|
|
50
|
+
--color-green-5: #73d13d;
|
|
51
|
+
--color-green-6: #49aa19;
|
|
52
|
+
--color-green-7: #389e0d;
|
|
53
|
+
--color-green-8: #237804;
|
|
54
|
+
--color-green-9: #135200;
|
|
55
|
+
--color-green-10: #092b00;
|
|
56
|
+
|
|
57
|
+
--color-gold-1: #fffbe6;
|
|
58
|
+
--color-gold-2: #fff1b8;
|
|
59
|
+
--color-gold-3: #ffe58f;
|
|
60
|
+
--color-gold-4: #ffd666;
|
|
61
|
+
--color-gold-5: #ffc53d;
|
|
62
|
+
--color-gold-6: #faad14;
|
|
63
|
+
--color-gold-7: #d48806;
|
|
64
|
+
--color-gold-8: #ad6800;
|
|
65
|
+
--color-gold-9: #874d00;
|
|
66
|
+
--color-gold-10: #613400;
|
|
67
|
+
|
|
68
|
+
--color-blue-1: #e6f4ff;
|
|
69
|
+
--color-blue-2: #bae0ff;
|
|
70
|
+
--color-blue-3: #91caff;
|
|
71
|
+
--color-blue-4: #69b1ff;
|
|
72
|
+
--color-blue-5: #4096ff;
|
|
73
|
+
--color-blue-6: #1677ff;
|
|
74
|
+
--color-blue-7: #0958d9;
|
|
75
|
+
--color-blue-8: #003eb3;
|
|
76
|
+
--color-blue-9: #002c8c;
|
|
77
|
+
--color-blue-10: #001d66;
|
|
78
|
+
|
|
79
|
+
--color-purple-1: #f9f0ff;
|
|
80
|
+
--color-purple-2: #efdbff;
|
|
81
|
+
--color-purple-3: #d3adf7;
|
|
82
|
+
--color-purple-4: #b37feb;
|
|
83
|
+
--color-purple-5: #9254de;
|
|
84
|
+
--color-purple-6: #722ed1;
|
|
85
|
+
--color-purple-7: #531dab;
|
|
86
|
+
--color-purple-8: #391085;
|
|
87
|
+
--color-purple-9: #22075e;
|
|
88
|
+
--color-purple-10: #120338;
|
|
89
|
+
|
|
90
|
+
--color-magenta-1: #fff0f6;
|
|
91
|
+
--color-magenta-2: #ffd6e7;
|
|
92
|
+
--color-magenta-3: #ffadd2;
|
|
93
|
+
--color-magenta-4: #ff85c0;
|
|
94
|
+
--color-magenta-5: #f759ab;
|
|
95
|
+
--color-magenta-6: #eb2f96;
|
|
96
|
+
--color-magenta-7: #c41d7f;
|
|
97
|
+
--color-magenta-8: #9e1068;
|
|
98
|
+
--color-magenta-9: #780650;
|
|
99
|
+
--color-magenta-10: #520339;
|
|
100
|
+
|
|
101
|
+
--color-cyan-1: #e6fffb;
|
|
102
|
+
--color-cyan-2: #b5f5ec;
|
|
103
|
+
--color-cyan-3: #87e8de;
|
|
104
|
+
--color-cyan-4: #5cdbd3;
|
|
105
|
+
--color-cyan-5: #36cfc9;
|
|
106
|
+
--color-cyan-6: #13c2c2;
|
|
107
|
+
--color-cyan-7: #08979c;
|
|
108
|
+
--color-cyan-8: #006d75;
|
|
109
|
+
--color-cyan-9: #00474f;
|
|
110
|
+
--color-cyan-10: #002329;
|
|
111
|
+
|
|
112
|
+
--color-yellow-1: #feffe6;
|
|
113
|
+
--color-yellow-2: #ffffb8;
|
|
114
|
+
--color-yellow-3: #fffb8f;
|
|
115
|
+
--color-yellow-4: #fff566;
|
|
116
|
+
--color-yellow-5: #ffec3d;
|
|
117
|
+
--color-yellow-6: #d8bd14;
|
|
118
|
+
--color-yellow-7: #d4b106;
|
|
119
|
+
--color-yellow-8: #ad8b00;
|
|
120
|
+
--color-yellow-9: #876800;
|
|
121
|
+
--color-yellow-10: #614700;
|
|
122
|
+
|
|
123
|
+
--color-lime-1: #fcffe6;
|
|
124
|
+
--color-lime-2: #f4ffb8;
|
|
125
|
+
--color-lime-3: #eaff8f;
|
|
126
|
+
--color-lime-4: #d3f261;
|
|
127
|
+
--color-lime-5: #bae637;
|
|
128
|
+
--color-lime-6: #a0d911;
|
|
129
|
+
--color-lime-7: #7cb305;
|
|
130
|
+
--color-lime-8: #5b8c00;
|
|
131
|
+
--color-lime-9: #3f6600;
|
|
132
|
+
--color-lime-10: #254000;
|
|
133
|
+
|
|
134
|
+
--color-geekblue-1: #f0f5ff;
|
|
135
|
+
--color-geekblue-2: #d6e4ff;
|
|
136
|
+
--color-geekblue-3: #adc6ff;
|
|
137
|
+
--color-geekblue-4: #85a5ff;
|
|
138
|
+
--color-geekblue-5: #597ef7;
|
|
139
|
+
--color-geekblue-6: #2f54eb;
|
|
140
|
+
--color-geekblue-7: #1d39c4;
|
|
141
|
+
--color-geekblue-8: #10239e;
|
|
142
|
+
--color-geekblue-9: #061178;
|
|
143
|
+
--color-geekblue-10: #030852;
|
|
144
|
+
|
|
145
|
+
--color-primary-bg: #ebf0ff;
|
|
146
|
+
--color-primary-bg-hover: #d6dfff;
|
|
147
|
+
--color-primary-border: #adbcff;
|
|
148
|
+
--color-primary-border-hover: #8a99ff;
|
|
149
|
+
--color-primary-hover: #6678ff;
|
|
150
|
+
--color-primary-base: #434dfa;
|
|
151
|
+
--color-primary-active: #2f31d4;
|
|
152
|
+
--color-primary-text-hover: #201dad;
|
|
153
|
+
--color-primary-text: #161087;
|
|
154
|
+
--color-primary-text-active: #0d086e;
|
|
155
|
+
|
|
156
|
+
--color-success-bg: var(--color-cyan-1);
|
|
157
|
+
--color-success-bg-hover: var(--color-cyan-2);
|
|
158
|
+
--color-success-border: var(--color-cyan-3);
|
|
159
|
+
--color-success-border-hover: var(--color-cyan-4);
|
|
160
|
+
--color-success-hover: var(--color-cyan-5);
|
|
161
|
+
--color-success-base: var(--color-cyan-6);
|
|
162
|
+
--color-success-active: var(--color-cyan-7);
|
|
163
|
+
--color-success-text-hover: var(--color-cyan-8);
|
|
164
|
+
--color-success-text: var(--color-cyan-9);
|
|
165
|
+
--color-success-text-active: var(--color-cyan-10);
|
|
166
|
+
|
|
167
|
+
--color-warning-bg: var(--color-gold-1);
|
|
168
|
+
--color-warning-bg-hover: var(--color-gold-2);
|
|
169
|
+
--color-warning-border: var(--color-gold-3);
|
|
170
|
+
--color-warning-border-hover: var(--color-gold-4);
|
|
171
|
+
--color-warning-hover: var(--color-gold-5);
|
|
172
|
+
--color-warning-base: var(--color-gold-6);
|
|
173
|
+
--color-warning-active: var(--color-gold-7);
|
|
174
|
+
--color-warning-text-hover: var(--color-gold-8);
|
|
175
|
+
--color-warning-text: var(--color-gold-9);
|
|
176
|
+
--color-warning-text-active: var(--color-gold-10);
|
|
177
|
+
|
|
178
|
+
--color-error-bg: var(--color-red-1);
|
|
179
|
+
--color-error-bg-hover: var(--color-red-2);
|
|
180
|
+
--color-error-border: var(--color-red-7);
|
|
181
|
+
--color-error-border-hover: var(--color-red-4);
|
|
182
|
+
--color-error-hover: var(--color-red-5);
|
|
183
|
+
--color-error-base: var(--color-red-6);
|
|
184
|
+
--color-error-active: var(--color-red-7);
|
|
185
|
+
--color-error-text-hover: var(--color-red-8);
|
|
186
|
+
--color-error-text: var(--color-red-9);
|
|
187
|
+
--color-error-text-active: var(--color-red-10);
|
|
188
|
+
|
|
189
|
+
--color-info-bg: var(--color-blue-1);
|
|
190
|
+
--color-info-bg-hover: var(--color-blue-2);
|
|
191
|
+
--color-info-border: var(--color-blue-3);
|
|
192
|
+
--color-info-border-hover: var(--color-blue-4);
|
|
193
|
+
--color-info-hover: var(--color-blue-5);
|
|
194
|
+
--color-info-base: var(--color-blue-6);
|
|
195
|
+
--color-info-active: var(--color-blue-7);
|
|
196
|
+
--color-info-text-hover: var(--color-blue-8);
|
|
197
|
+
--color-info-text: var(--color-blue-9);
|
|
198
|
+
--color-info-text-active: var(--color-blue-10);
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @tokens Main colors
|
|
202
|
+
* @presenter Color
|
|
203
|
+
*/
|
|
6
204
|
|
|
7
|
-
|
|
8
|
-
|
|
205
|
+
--color-primary: var(--color-primary-base);
|
|
206
|
+
--color-error: var(--color-error-base);
|
|
207
|
+
--color-warning: var(--color-warning-base);
|
|
208
|
+
--color-success: var(--color-success-base);
|
|
209
|
+
--color-info: var(--color-info-base);
|
|
9
210
|
|
|
10
211
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
--color-primary-50: #87ceeb;
|
|
16
|
-
--color-primary-100: #62a1ff;
|
|
17
|
-
--color-primary-200: #4892ff;
|
|
18
|
-
--color-primary-300: #2f83ff;
|
|
19
|
-
--color-primary-400: #1573ff;
|
|
20
|
-
--color-primary-500: #0065fb;
|
|
21
|
-
--color-primary-600: #005be2;
|
|
22
|
-
--color-primary-700: #0050c8;
|
|
23
|
-
--color-primary-800: #0046af;
|
|
24
|
-
--color-primary-900: #003c95;
|
|
25
|
-
|
|
26
|
-
--color-secondary-50: #ffffff;
|
|
27
|
-
--color-secondary-100: #f5f7fa;
|
|
28
|
-
--color-secondary-200: #f3f4f6;
|
|
29
|
-
--color-secondary-300: #e4e7eb;
|
|
30
|
-
--color-secondary-400: #d5dae0;
|
|
31
|
-
--color-secondary-500: #c7cdd5;
|
|
32
|
-
--color-secondary-600: #b8c0ca;
|
|
33
|
-
--color-secondary-700: #a9b3c0;
|
|
34
|
-
--color-secondary-800: #9ba6b5;
|
|
35
|
-
--color-secondary-900: #52606d;
|
|
36
|
-
|
|
37
|
-
--color-emphasis-50: #ffffff;
|
|
38
|
-
--color-emphasis-100: #e9eaec;
|
|
39
|
-
--color-emphasis-200: #cdd0d5;
|
|
40
|
-
--color-emphasis-300: #b2b6bd;
|
|
41
|
-
--color-emphasis-400: #969ca6;
|
|
42
|
-
--color-emphasis-500: #7a828f;
|
|
43
|
-
--color-emphasis-600: #626974;
|
|
44
|
-
--color-emphasis-700: #4b5058;
|
|
45
|
-
--color-emphasis-800: #1f2933;
|
|
46
|
-
--color-emphasis-900: #1c1e21;
|
|
47
|
-
|
|
48
|
-
--color-accent-50: #e6eef8;
|
|
49
|
-
--color-accent-100: #b3dcf3;
|
|
50
|
-
--color-accent-200: #a6dfff;
|
|
51
|
-
--color-accent-300: #8cd5ff;
|
|
52
|
-
--color-accent-400: #73ccff;
|
|
53
|
-
--color-accent-500: #59c3ff;
|
|
54
|
-
--color-accent-600: #40baff;
|
|
55
|
-
--color-accent-700: #26b1ff;
|
|
56
|
-
--color-accent-800: #0da7ff;
|
|
57
|
-
--color-accent-900: #009bf2;
|
|
58
|
-
|
|
59
|
-
--color-success-50: #ddffe1;
|
|
60
|
-
--color-success-100: #98eda0;
|
|
61
|
-
--color-success-200: #82e98c;
|
|
62
|
-
--color-success-300: #6ce678;
|
|
63
|
-
--color-success-400: #57e264;
|
|
64
|
-
--color-success-500: #41de50;
|
|
65
|
-
--color-success-600: #2bda3c;
|
|
66
|
-
--color-success-700: #23c933;
|
|
67
|
-
--color-success-800: #1fb32d;
|
|
68
|
-
--color-success-900: #1b9e28;
|
|
69
|
-
|
|
70
|
-
--color-warning-50: #ffeda5;
|
|
71
|
-
--color-warning-100: #ffc966;
|
|
72
|
-
--color-warning-200: #ffc04d;
|
|
73
|
-
--color-warning-300: #ffb733;
|
|
74
|
-
--color-warning-400: #ffae1a;
|
|
75
|
-
--color-warning-500: #ffa500;
|
|
76
|
-
--color-warning-600: #e69400;
|
|
77
|
-
--color-warning-700: #cc8400;
|
|
78
|
-
--color-warning-800: #b37300;
|
|
79
|
-
--color-warning-900: #996300;
|
|
80
|
-
|
|
81
|
-
--color-error-50: #ffeaea;
|
|
82
|
-
--color-error-100: #ffc7c7;
|
|
83
|
-
--color-error-200: #ffaeae;
|
|
84
|
-
--color-error-300: #ff9494;
|
|
85
|
-
--color-error-400: #ff7b7b;
|
|
86
|
-
--color-error-500: #ff6161;
|
|
87
|
-
--color-error-600: #ff4747;
|
|
88
|
-
--color-error-700: #ff2e2e;
|
|
89
|
-
--color-error-800: #ff1414;
|
|
90
|
-
--color-error-900: #ff0000;
|
|
91
|
-
|
|
92
|
-
--colors-translucent: rgb(226 230 236 / 37%);
|
|
212
|
+
* @tokens Elevation Colors
|
|
213
|
+
* @presenter Color
|
|
214
|
+
*/
|
|
93
215
|
|
|
94
|
-
//
|
|
95
|
-
|
|
216
|
+
--bg-base: #ffffff; // The default elevation is the baseline with respect to all other layers.
|
|
217
|
+
--bg-sunken: #f1f1f1; // Sunken is the lowest elevation available.
|
|
218
|
+
--bg-raised: #fafafa; // Cards, elements, inputs
|
|
219
|
+
--bg-raised-light: #fafafa; // Always light
|
|
220
|
+
--bg-overlay: #f2f2f2; // Overlay is the highest elevation available. Use for hovers
|
|
221
|
+
--bg-modal-overlay: #f2f2f2c2; // Overlay is the highest elevation available. Use for hovers
|
|
96
222
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
--color-http-get: #3a9601;
|
|
103
|
-
--color-http-post: #0065fb;
|
|
104
|
-
--color-http-put: #93527b;
|
|
105
|
-
--color-http-options: #947014;
|
|
106
|
-
--color-http-patch: #bf581d;
|
|
107
|
-
--color-http-delete: #c83637;
|
|
108
|
-
--color-http-basic: #707070;
|
|
109
|
-
--color-http-link: #07818f;
|
|
110
|
-
--color-http-head: #a23dad;
|
|
111
|
-
--color-http-hook: #4d5d86;
|
|
223
|
+
--bg-base-shadow: 0px 3px 5px rgba(51, 51, 51, 0.2), 0px 0px 1px rgba(51, 51, 51, 0.31); // Elements
|
|
224
|
+
--bg-raised-shadow: 0px 8px 12px rgba(51, 51, 51, 0.15), 0px 0px 1px rgba(51, 51, 51, 0.31); // Hovers for base. Menu
|
|
225
|
+
--bg-overlay-shadow: 0px 18px 28px rgba(51, 51, 51, 0.15), 0px 0px 1px rgba(51, 51, 51, 0.31); // Use for dropdowns
|
|
226
|
+
|
|
227
|
+
--background-color: var(--bg-base);
|
|
112
228
|
|
|
113
229
|
// @tokens End
|
|
114
230
|
`;
|
|
@@ -116,1191 +232,234 @@ const httpColors = css`
|
|
|
116
232
|
const typography = css`
|
|
117
233
|
/* === Typography === */
|
|
118
234
|
|
|
119
|
-
/**
|
|
120
|
-
* @tokens Typography Colors
|
|
121
|
-
* @presenter Color
|
|
122
|
-
*/
|
|
123
|
-
--text-color: var(--color-emphasis-800);
|
|
124
|
-
--text-color-inverse: var(--color-secondary-100);
|
|
125
|
-
--text-color-secondary: var(--color-emphasis-500);
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @tokens Font Sizes
|
|
129
|
-
* @presenter FontSize
|
|
130
|
-
*/
|
|
131
|
-
--font-size-base: 14px;
|
|
132
|
-
--font-size-small: 12px;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @tokens Line Heights
|
|
136
|
-
* @presenter LineHeight
|
|
137
|
-
*/
|
|
138
|
-
--line-height-base: 1.5em;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @tokens Font Weights
|
|
142
|
-
* @presenter FontWeight
|
|
143
|
-
*/
|
|
144
|
-
--font-weight-regular: 400;
|
|
145
|
-
--font-weight-bold: 600;
|
|
146
|
-
--font-weight-bolder: 700;
|
|
147
|
-
|
|
148
235
|
/**
|
|
149
236
|
* @tokens Font Families
|
|
150
237
|
* @presenter FontFamily
|
|
151
238
|
*/
|
|
152
|
-
--font-family-base: Source Sans Pro, sans-serif;
|
|
153
|
-
--font-family-monospaced: Source Code Pro, monospace;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* @tokens Rendering
|
|
157
|
-
*/
|
|
158
|
-
--text-smoothing: antialiased; // text-smoothing
|
|
159
|
-
--text-rendering: optimizeSpeed; // text-rendering
|
|
160
|
-
|
|
161
|
-
// @tokens End
|
|
162
|
-
`;
|
|
163
|
-
|
|
164
|
-
const headingsTypography = css`
|
|
165
|
-
* {
|
|
166
|
-
box-sizing: border-box;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* @tokens Headings common styles
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
--heading-font-family: Source Sans Pro, sans-serif; // @presenter FontFamily
|
|
174
|
-
--heading-font-weight: var(--font-weight-bolder); // @presenter FontWeight
|
|
175
|
-
--heading-margin-top: 1.25em; // @presenter Spacing
|
|
176
|
-
--heading-margin-bottom: 0.9em; // @presenter Spacing
|
|
177
|
-
--heading-text-color: var(--text-color); // @presenter Color
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @tokens Typography heading anchor icon
|
|
181
|
-
*/
|
|
182
239
|
|
|
183
|
-
--
|
|
184
|
-
--
|
|
185
|
-
--heading-anchor-icon: none;
|
|
186
|
-
|
|
187
|
-
// TODO: implement a theme config for heading-anchor-location: left right
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @tokens Heading level 1
|
|
191
|
-
*/
|
|
192
|
-
|
|
193
|
-
--h1-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
194
|
-
--h1-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
195
|
-
--h1-font-size: 36px; // @presenter FontSize
|
|
196
|
-
--h1-line-height: 36px; // @presenter LineHeight
|
|
197
|
-
--h1-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
198
|
-
--h1-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
199
|
-
--h1-text-color: var(--heading-text-color); // @presenter Color
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @tokens Heading level 2
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
--h2-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
206
|
-
--h2-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
207
|
-
--h2-font-size: 28px; // @presenter FontSize
|
|
208
|
-
--h2-line-height: 28px; // @presenter LineHeight
|
|
209
|
-
--h2-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
210
|
-
--h2-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
211
|
-
--h2-text-color: var(--heading-text-color); // @presenter Color
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @tokens Heading level 3
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
|
-
--h3-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
218
|
-
--h3-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
219
|
-
--h3-font-size: 18px; // @presenter FontSize
|
|
220
|
-
--h3-line-height: 18px; // @presenter LineHeight
|
|
221
|
-
--h3-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
222
|
-
--h3-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
223
|
-
--h3-text-color: var(--heading-text-color); // @presenter Color
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* @tokens Heading level 4
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
--h4-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
230
|
-
--h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
231
|
-
--h4-font-size: 16px; // @presenter FontSize
|
|
232
|
-
--h4-line-height: 16px; // @presenter LineHeight
|
|
233
|
-
--h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
234
|
-
--h4-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
235
|
-
--h4-text-color: var(--heading-text-color); // @presenter Color
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* @tokens Heading level 5
|
|
239
|
-
*/
|
|
240
|
-
|
|
241
|
-
--h5-font-family: var(--heading-font-family); /* Token Description Example @presenter FontFamily */
|
|
242
|
-
--h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
243
|
-
--h5-font-size: 14px; // @presenter FontSize
|
|
244
|
-
--h5-line-height: 14px; // @presenter LineHeight
|
|
245
|
-
--h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
246
|
-
--h5-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
247
|
-
--h5-text-color: var(--heading-text-color); // @presenter Color
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @tokens Heading level 6
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
|
-
--h6-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
254
|
-
--h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
255
|
-
--h6-font-size: 12px; // @presenter FontSize
|
|
256
|
-
--h6-line-height: 12px; // @presenter LineHeight
|
|
257
|
-
--h6-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
258
|
-
--h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
259
|
-
--h6-text-color: var(--heading-text-color); // @presenter Color
|
|
260
|
-
|
|
261
|
-
// @tokens End
|
|
262
|
-
`;
|
|
263
|
-
|
|
264
|
-
const common = css`
|
|
265
|
-
/**
|
|
266
|
-
* @tokens Borders
|
|
267
|
-
* @presenter Border
|
|
268
|
-
*/
|
|
269
|
-
--border-width: 1px;
|
|
270
|
-
--border-style: solid;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @tokens Border Radius
|
|
274
|
-
* @presenter BorderRadius
|
|
275
|
-
*/
|
|
276
|
-
--border-radius: 4px;
|
|
277
|
-
--border-radius-lg: calc(var(--border-radius) * 2);
|
|
240
|
+
--font-family-base: Source Sans Pro, sans-serif; // Font family of the entire system.
|
|
241
|
+
--font-family-monospaced: Source Code Pro, monospace;
|
|
278
242
|
|
|
279
243
|
/**
|
|
280
|
-
* @tokens
|
|
244
|
+
* @tokens Font Colors
|
|
281
245
|
* @presenter Color
|
|
282
246
|
*/
|
|
283
|
-
--border-color: var(--color-secondary-300);
|
|
284
|
-
--border-color-secondary: var(--color-emphasis-600);
|
|
285
|
-
--background-color: var(--color-secondary-50);
|
|
286
|
-
--box-shadow: 0px 0px 20px 0px var(--color-secondary-500);
|
|
287
|
-
/**
|
|
288
|
-
* @tokens Spacings
|
|
289
|
-
* @presenter Spacing
|
|
290
|
-
*/
|
|
291
247
|
|
|
292
|
-
--
|
|
293
|
-
--
|
|
294
|
-
--
|
|
295
|
-
|
|
296
|
-
//
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const buttons = css`
|
|
300
|
-
/*
|
|
301
|
-
* Static classnames that can be used to override styles for components:
|
|
302
|
-
* download-specification-button, next-section-button, button-base
|
|
303
|
-
*/
|
|
248
|
+
--text-base: #000; // The base color of the typography color tokens.
|
|
249
|
+
--text-light-solid: #ffffff; // The color of the objects that need to be white no matter what theme is enabled.
|
|
250
|
+
--text-primary: #161616; // Headers, Icon hover
|
|
251
|
+
--text-secondary: #525252; // Body text
|
|
252
|
+
--text-description: #8d8d8d; // Caption, Description, Icon
|
|
253
|
+
--text-placeholder: #a8a8a8; // Placeholder text, Disabled text
|
|
254
|
+
--text-link: var(--color-blue-6);
|
|
304
255
|
|
|
305
256
|
/**
|
|
306
|
-
* @tokens
|
|
257
|
+
* @tokens Font Weights
|
|
258
|
+
* @presenter FontWeight
|
|
307
259
|
*/
|
|
308
260
|
|
|
309
|
-
--
|
|
310
|
-
--
|
|
311
|
-
--
|
|
312
|
-
|
|
313
|
-
--button-hover-color: var(--color-emphasis-700); // @presenter Color
|
|
314
|
-
--button-hover-background-color: var(--color-emphasis-500); // @presenter Color
|
|
315
|
-
--button-hover-border-color: var(--color-emphasis-500); // @presenter Color
|
|
316
|
-
|
|
317
|
-
--button-active-color: var(--color-emphasis-900); // @presenter Color
|
|
318
|
-
--button-active-background-color: var(--color-emphasis-600); // @presenter Color
|
|
319
|
-
--button-active-border-color: var(--color-emphasis-600); // @presenter Color
|
|
320
|
-
|
|
321
|
-
--button-disabled-color: var(--button-color); // @presenter Color
|
|
322
|
-
--button-disabled-background-color: var(--color-emphasis-200); // @presenter Color
|
|
261
|
+
--font-weight-regular: 400; // All normal weight fonts in the entire system.
|
|
262
|
+
--font-weight-bold: 600; // All strong weights in the entire system.
|
|
263
|
+
--font-weight-bolder: 700;
|
|
264
|
+
--font-weight-italic: 'Regular Italic'; // All italic weights in the entire system.
|
|
323
265
|
|
|
324
266
|
/**
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
--button-color: var(--color-emphasis-50); // @presenter Color
|
|
329
|
-
--button-background-color: var(--color-primary-500); // @presenter Color
|
|
330
|
-
--button-border-color: var(--color-primary-500); // @presenter Color
|
|
331
|
-
|
|
332
|
-
--button-hover-background-color: var(--color-primary-600); // @presenter Color
|
|
333
|
-
--button-hover-border-color: var(--color-primary-600); // @presenter Color
|
|
334
|
-
|
|
335
|
-
--button-active-background-color: var(--color-primary-700); // @presenter Color
|
|
336
|
-
--button-active-border-color: var(--color-primary-700); // @presenter Color
|
|
267
|
+
* @tokens Line Heights
|
|
268
|
+
* @presenter LineHeight
|
|
269
|
+
*/
|
|
337
270
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
271
|
+
--line-height-base: 24px;
|
|
272
|
+
--line-height-xsm: 20px;
|
|
273
|
+
--line-height-sm: 22px;
|
|
274
|
+
--line-height-md: 26px;
|
|
275
|
+
--line-height-lg: 28px;
|
|
276
|
+
--line-height-xlg: 30px;
|
|
277
|
+
--line-height-xxlg: 32px;
|
|
341
278
|
|
|
342
279
|
/**
|
|
343
|
-
* @tokens
|
|
280
|
+
* @tokens Font Sizes
|
|
281
|
+
* @presenter FontSize
|
|
344
282
|
*/
|
|
345
|
-
.button-color-secondary {
|
|
346
|
-
--button-color: var(--color-emphasis-700); // @presenter Color
|
|
347
|
-
--button-background-color: var(--color-secondary-400); // @presenter Color
|
|
348
|
-
--button-border-color: var(--color-secondary-400); // @presenter Color
|
|
349
|
-
|
|
350
|
-
--button-hover-background-color: var(--color-secondary-500); // @presenter Color
|
|
351
|
-
--button-hover-border-color: var(--color-secondary-500); // @presenter Color
|
|
352
283
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
--button-disabled-background-color: var(--color-secondary-200); // @presenter Color
|
|
358
|
-
}
|
|
284
|
+
--font-size-base: 16px; // Base font size of the entire system.
|
|
285
|
+
--font-size-sm: 14px;
|
|
286
|
+
--font-size-lg: 18px;
|
|
287
|
+
--font-size-xl: 22px;
|
|
359
288
|
|
|
360
289
|
/**
|
|
361
|
-
* @tokens
|
|
290
|
+
* @tokens Font Rendering
|
|
362
291
|
*/
|
|
363
|
-
--button-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
364
|
-
--button-margin: 5px; // @presenter Spacing
|
|
365
|
-
--button-box-shadow: none; // @presenter Shadow
|
|
366
|
-
--button-hover-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
367
|
-
--button-active-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); // @presenter Shadow
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* @tokens Button typography
|
|
371
|
-
*/
|
|
372
|
-
--button-font-family: inherit; // @presenter FontFamily
|
|
373
|
-
--button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
374
|
-
|
|
375
|
-
--button-small-font-size: 12px; // @presenter FontSize
|
|
376
|
-
--button-small-padding: 8px 10px;
|
|
377
|
-
--button-small-min-width: 90px; // @presenter Spacing
|
|
378
|
-
|
|
379
|
-
--button-medium-font-size: 14px; // @presenter FontSize
|
|
380
|
-
--button-medium-padding: 8px 20px;
|
|
381
|
-
--button-medium-min-width: 120px; // @presenter Spacing
|
|
382
292
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
--button-large-min-width: 150px; // @presenter Spacing
|
|
386
|
-
|
|
387
|
-
--button-xlarge-font-size: 16px; // @presenter FontSize
|
|
388
|
-
--button-xlarge-padding: 20px 24px;
|
|
389
|
-
--button-xlarge-min-width: 200px; // @presenter Spacing
|
|
293
|
+
--text-smoothing: antialiased; // text-smoothing
|
|
294
|
+
--text-rendering: optimizeSpeed; // text-rendering
|
|
390
295
|
|
|
391
296
|
// @tokens End
|
|
392
297
|
`;
|
|
393
298
|
|
|
394
|
-
const
|
|
395
|
-
/* ===
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* @tokens Sidebar logo
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
--sidebar-logo-max-height: 285px;
|
|
402
|
-
--sidebar-logo-max-width: 285px;
|
|
403
|
-
--sidebar-logo-padding: 2px; // @presenter spacing
|
|
299
|
+
const sizeAndSpace = css`
|
|
300
|
+
/* === Size & Space === */
|
|
404
301
|
|
|
405
302
|
/**
|
|
406
|
-
* @tokens
|
|
407
|
-
*/
|
|
408
|
-
--sidebar-word-break: 'inherit';
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* @tokens Sidebar colors
|
|
412
|
-
* @presenter Color
|
|
413
|
-
*/
|
|
414
|
-
--sidebar-background-color: var(--background-color);
|
|
415
|
-
--sidebar-border-color: var(--border-color);
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* @tokens Sidebar spacing
|
|
303
|
+
* @tokens Size
|
|
419
304
|
* @presenter Spacing
|
|
420
305
|
*/
|
|
421
|
-
--sidebar-width: 285px; // @presenter NO
|
|
422
306
|
|
|
423
|
-
--
|
|
424
|
-
--sidebar-offset-top: calc(var(--sidebar-spacing-unit) * 2);
|
|
425
|
-
--sidebar-offset-left: calc(var(--sidebar-spacing-unit) * 2);
|
|
426
|
-
|
|
427
|
-
--sidebar-chevron-size: var(--sidebar-spacing-unit);
|
|
428
|
-
|
|
429
|
-
/* === Sidebar Item === */
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* @tokens Sidebar item typography
|
|
433
|
-
*/
|
|
434
|
-
--sidebar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
435
|
-
--sidebar-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
307
|
+
--container-width: 1200px;
|
|
436
308
|
|
|
437
309
|
/**
|
|
438
|
-
* @tokens
|
|
439
|
-
* @presenter Color
|
|
440
|
-
*/
|
|
441
|
-
--sidebar-item-text-color: var(--text-color);
|
|
442
|
-
--sidebar-item-background-color: transparent;
|
|
443
|
-
|
|
444
|
-
--sidebar-item-active-color: var(--text-color);
|
|
445
|
-
--sidebar-item-active-background-color: var(--border-color);
|
|
446
|
-
|
|
447
|
-
--sidebar-item-hover-background-color: var(--border-color);
|
|
448
|
-
--sidebar-item-hover-color: var(--text-color);
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* @tokens Sidebar item spacing
|
|
310
|
+
* @tokens Space
|
|
452
311
|
* @presenter Spacing
|
|
453
312
|
*/
|
|
454
313
|
|
|
455
|
-
--
|
|
456
|
-
--sidebar-item-padding-vertical: var(--sidebar-spacing-unit);
|
|
457
|
-
--sidebar-item-padding-horizontal: var(--sidebar-spacing-unit);
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* @tokens Sidebar item border
|
|
461
|
-
*/
|
|
462
|
-
--sidebar-item-border-radius: var(--border-radius) 0 0 var(--border-radius); // @presenter BorderRadius
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @tokens Sidebar item icon
|
|
466
|
-
*/
|
|
467
|
-
--sidebar-item-icon-size: 20px;
|
|
468
|
-
--sidebar-item-icon-border-radius: 100%;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* @tokens Sidebar item sublabel
|
|
472
|
-
*/
|
|
473
|
-
--sidebar-item-sublabel-font-family: inherit; // sublabel is for drilldown only but I would like to support it in general
|
|
474
|
-
--sidebar-item-sublabel-font-size: 0.85rem;
|
|
475
|
-
--sidebar-item-sublabel-font-weight: var(--font-weight-regular);
|
|
476
|
-
--sidebar-item-sublabel-text-color: var(--sidebar-item-text-color);
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* @tokens Sidebar item drilldown
|
|
480
|
-
*/
|
|
481
|
-
|
|
482
|
-
--sidebar-item-drilldown-font-family: var(--sidebar-item-font-family);
|
|
483
|
-
--sidebar-item-drilldown-font-size: var(--sidebar-item-font-size);
|
|
484
|
-
--sidebar-text-drilldown-transform: inherit;
|
|
485
|
-
--sidebar-item-drilldown-text-color: var(--sidebar-item-text-color);
|
|
486
|
-
--sidebar-item-drilldown-background-color: var(--sidebar-background-color);
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* @tokens Sidebar item group
|
|
490
|
-
*/
|
|
491
|
-
--sidebar-item-group-font-family: var(--sidebar-item-font-family);
|
|
492
|
-
--sidebar-item-group-font-size: var(--sidebar-item-font-size);
|
|
493
|
-
--sidebar-text-group-transform: inherit;
|
|
494
|
-
--sidebar-item-group-text-color: var(--sidebar-item-text-color);
|
|
495
|
-
--sidebar-item-group-background-color: var(--sidebar-background-color);
|
|
496
|
-
--sidebar-item-group-active-text-color: var(--sidebar-item-active-color);
|
|
497
|
-
--sidebar-item-group-active-background-color: var(--sidebar-item-active-background-color);
|
|
314
|
+
--spacing-unit: 4px;
|
|
498
315
|
|
|
499
|
-
|
|
500
|
-
|
|
316
|
+
--spacing-base: calc(var(--spacing-unit) * 4);
|
|
317
|
+
--spacing-xxs: var(--spacing-unit);
|
|
318
|
+
--spacing-xs: calc(var(--spacing-unit) * 2);
|
|
319
|
+
--spacing-sm: calc(var(--spacing-unit) * 3);
|
|
320
|
+
--spacing-md: calc(var(--spacing-unit) * 5);
|
|
321
|
+
--spacing-lg: calc(var(--spacing-unit) * 6);
|
|
322
|
+
--spacing-xl: calc(var(--spacing-unit) * 8);
|
|
323
|
+
--spacing-xxl: calc(var(--spacing-unit) * 12);
|
|
501
324
|
|
|
502
|
-
--
|
|
503
|
-
--
|
|
325
|
+
--spacing-horizontal: var(--spacing-xl);
|
|
326
|
+
--spacing-vertical: var(--spacing-base);
|
|
504
327
|
|
|
505
328
|
/**
|
|
506
|
-
* @tokens
|
|
329
|
+
* @tokens Height
|
|
330
|
+
* @presenter Spacing
|
|
507
331
|
*/
|
|
508
|
-
//
|
|
509
|
-
--
|
|
510
|
-
--
|
|
511
|
-
--
|
|
512
|
-
--sidebar-item-separator-text-color: var(--sidebar-item-text-color);
|
|
513
|
-
--sidebar-item-separator-background-color: var(--sidebar-background-color);
|
|
514
|
-
--sidebar-item-separator-line-color: var(--border-color); // but has line color
|
|
515
|
-
--sidebar-item-separator-offset: calc(var(--sidebar-spacing-unit) * 2);
|
|
332
|
+
--control-height-base: 32px; // The height of the default size controls such as buttons and inputs.
|
|
333
|
+
--control-height-xs: 16px; // The height of very small objects such as skeleton line or small multiple select item.
|
|
334
|
+
--control-height-sm: 24px; // The height of the small controls such as buttons or inputs.
|
|
335
|
+
--control-height-lg: 40px; // The height of the large controls such as buttons or inputs.
|
|
516
336
|
|
|
517
|
-
/**
|
|
518
|
-
* @tokens Sidebar back button
|
|
519
|
-
*/
|
|
520
|
-
--sidebar-back-button-font-family: var(--sidebar-item-font-family);
|
|
521
|
-
--sidebar-back-button-font-size: var(--sidebar-item-font-size);
|
|
522
|
-
--sidebar-back-button-transform: inherit;
|
|
523
|
-
--sidebar-back-button-text-color: var(--link-text-color);
|
|
524
|
-
--sidebar-back-button-background-color: transparent;
|
|
525
|
-
--sidebar-back-button-hover-text-color: var(--sidebar-item-active-color);
|
|
526
|
-
--sidebar-back-button-hover-background-color: transparent;
|
|
527
|
-
--sidebar-back-button-icon-color: var(--sidebar-item-text-color);
|
|
528
|
-
--sidebar-back-button-margin: 0 0 calc(var(--sidebar-spacing-unit) * 3) 0;
|
|
529
|
-
--sidebar-back-button-icon: none;
|
|
530
|
-
|
|
531
|
-
//--sidebar-version-dropdown-* (input settings, see below)
|
|
532
337
|
// @tokens End
|
|
533
338
|
`;
|
|
534
339
|
|
|
535
|
-
const
|
|
536
|
-
/* === Admonitions === */
|
|
537
|
-
|
|
340
|
+
const borders = css`
|
|
538
341
|
/**
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
--admonition-font-size: var(--font-size-base); // @presenter FontSize
|
|
543
|
-
--admonition-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
544
|
-
--admonition-line-height: var(--line-height-base); // @presenter LineHeight
|
|
545
|
-
--admonition-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
546
|
-
--admonition-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
547
|
-
--admonition-heading-letter-spacing: 0.3px; // @presenter LetterSpacing
|
|
548
|
-
--admonition-heading-transform: uppercase;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* @tokens Admonition spacing
|
|
552
|
-
* @presenter Spacing
|
|
553
|
-
*/
|
|
554
|
-
|
|
555
|
-
--admonition-margin-horizontal: 0;
|
|
556
|
-
--admonition-margin-vertical: calc(var(--spacing-unit) * 2);
|
|
557
|
-
--admonition-padding-horizontal: calc(var(--spacing-unit) * 4);
|
|
558
|
-
--admonition-padding-vertical: calc(var(--spacing-unit) * 4);
|
|
559
|
-
--admonition-icon-size: 25px;
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* @tokens Admonition border
|
|
563
|
-
*/
|
|
564
|
-
|
|
565
|
-
--admonition-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
566
|
-
--admonition-border-style: var(--border-style);
|
|
567
|
-
--admonition-border-width: var(--border-width);
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* @tokens Admonition type info
|
|
571
|
-
*/
|
|
572
|
-
|
|
573
|
-
--admonition-info-background-color: var(--color-secondary-200); // @presenter Color
|
|
574
|
-
--admonition-info-heading-text-color: var(--text-color); // @presenter Color
|
|
575
|
-
--admonition-info-text-color: var(--text-color); // @presenter Color
|
|
576
|
-
--admonition-info-icon-color: var(--color-accent-900); // @presenter Color
|
|
577
|
-
--admonition-info-border-color: inherit; // @presenter Color
|
|
578
|
-
--admonition-info-border-style: var(--admonition-border-style);
|
|
579
|
-
--admonition-info-border-width: var(--admonition-border-width);
|
|
580
|
-
--admonition-info-border: var(--admonition-info-border-width) var(--admonition-info-border-style)
|
|
581
|
-
var(--admonition-info-border-color); // @presenter Border
|
|
582
|
-
--admonition-info-icon: none;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @tokens Admonition type attention
|
|
586
|
-
* @presenter Color
|
|
587
|
-
*/
|
|
588
|
-
|
|
589
|
-
--admonition-attention-background-color: var(--color-accent-50); // @presenter Color
|
|
590
|
-
--admonition-attention-text-color: var(--text-color); // @presenter Color
|
|
591
|
-
--admonition-attention-heading-text-color: var(--text-color); // @presenter Color
|
|
592
|
-
--admonition-attention-icon-color: var(--color-accent-900); // @presenter Color
|
|
593
|
-
--admonition-attention-border-color: inherit; // @presenter Color
|
|
594
|
-
--admonition-attention-border-style: var(--admonition-border-style);
|
|
595
|
-
--admonition-attention-border-width: var(--admonition-border-width);
|
|
596
|
-
--admonition-attention-border: var(--admonition-attention-border-width)
|
|
597
|
-
var(--admonition-attention-border-style) var(--admonition-attention-border-color); // @presenter Border
|
|
598
|
-
--admonition-attention-icon: none;
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* @tokens Admonition type warning
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
|
-
/* warning */
|
|
605
|
-
--admonition-warning-background-color: var(--color-warning-50); // @presenter Color
|
|
606
|
-
--admonition-warning-text-color: var(--text-color); // @presenter Color
|
|
607
|
-
--admonition-warning-heading-text-color: var(--text-color); // @presenter Color
|
|
608
|
-
--admonition-warning-icon-color: var(--color-warning-700); // @presenter Color
|
|
609
|
-
--admonition-warning-border-color: inherit; // @presenter Color
|
|
610
|
-
--admonition-warning-border-style: var(--admonition-border-style); // @presenter Color
|
|
611
|
-
--admonition-warning-border-width: var(--admonition-border-width); // @presenter Color
|
|
612
|
-
--admonition-warning-border: var(--admonition-warning-border-width)
|
|
613
|
-
var(--admonition-warning-border-style) var(--admonition-warning-border-color); // @presenter Border
|
|
614
|
-
--admonition-warning-icon: none;
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* @tokens Admonition type danger
|
|
618
|
-
*/
|
|
619
|
-
|
|
620
|
-
--admonition-danger-background-color: var(--color-error-50); // @presenter Color
|
|
621
|
-
--admonition-danger-text-color: var(--text-color); // @presenter Color
|
|
622
|
-
--admonition-danger-heading-text-color: var(--text-color); // @presenter Color
|
|
623
|
-
--admonition-danger-icon-color: var(--color-error-800); // @presenter Color
|
|
624
|
-
--admonition-danger-border-color: inherit; // @presenter Color
|
|
625
|
-
--admonition-danger-border-style: var(--admonition-border-style); // @presenter Color
|
|
626
|
-
--admonition-danger-border-width: var(--admonition-border-width); // @presenter Color
|
|
627
|
-
--admonition-danger-border: var(--admonition-danger-border-width)
|
|
628
|
-
var(--admonition-danger-border-style) var(--admonition-danger-border-color); // @presenter Border
|
|
629
|
-
--admonition-danger-icon: none;
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* @tokens Admonition type success
|
|
633
|
-
*/
|
|
634
|
-
|
|
635
|
-
--admonition-success-background-color: var(--color-success-50); // @presenter Color
|
|
636
|
-
--admonition-success-text-color: var(--text-color); // @presenter Color
|
|
637
|
-
--admonition-success-heading-text-color: var(--text-color); // @presenter Color
|
|
638
|
-
--admonition-success-icon-color: var(--color-success-900); // @presenter Color
|
|
639
|
-
--admonition-success-border-color: inherit; // @presenter Color
|
|
640
|
-
--admonition-success-border-style: var(--admonition-border-style); // @presenter Color
|
|
641
|
-
--admonition-success-border-width: var(--admonition-border-width); // @presenter Color
|
|
642
|
-
--admonition-success-border: var(--admonition-success-border-width)
|
|
643
|
-
var(--admonition-success-border-style) var(--admonition-success-border-color); // @presenter Border
|
|
644
|
-
--admonition-success-icon: none;
|
|
645
|
-
|
|
646
|
-
// @tokens End
|
|
647
|
-
`;
|
|
648
|
-
|
|
649
|
-
const responsePanelColors = css`
|
|
650
|
-
/**
|
|
651
|
-
* @tokens Response Panel Common
|
|
652
|
-
*/
|
|
653
|
-
|
|
654
|
-
--panel-response-heading-padding: 10px 20px;
|
|
655
|
-
--panel-response-heading-font-size: var(--font-size-base);
|
|
656
|
-
--panel-response-heading-line-height: 20px;
|
|
657
|
-
--panel-response-heading-font-weight: var(--font-weight-bold);
|
|
658
|
-
--panel-response-heading-text-color: var(--text-color);
|
|
659
|
-
|
|
660
|
-
--panel-response-body-text-color: var(--text-color);
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* @tokens Response Panel Success colors
|
|
664
|
-
* @presenter Color
|
|
665
|
-
*/
|
|
666
|
-
|
|
667
|
-
--panel-response-success-border-color: var(--color-success-100);
|
|
668
|
-
--panel-response-success-heading-background-color: var(--color-success-50);
|
|
669
|
-
--panel-response-success-heading-text-color: var(--panel-response-heading-text-color);
|
|
670
|
-
--panel-response-success-body-background-color: transparent;
|
|
671
|
-
--panel-response-success-schema-nested-background-color: var(--color-secondary-200);
|
|
672
|
-
--panel-response-success-body-text-color: var(--panel-response-body-text-color);
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* @tokens Response Panel Error colors
|
|
676
|
-
* @presenter Color
|
|
677
|
-
*/
|
|
678
|
-
|
|
679
|
-
--panel-response-error-border-color: var(--color-error-100);
|
|
680
|
-
--panel-response-error-heading-background-color: var(--color-error-50);
|
|
681
|
-
--panel-response-error-heading-text-color: var(--panel-response-heading-text-color);
|
|
682
|
-
--panel-response-error-body-background-color: transparent;
|
|
683
|
-
--panel-response-error-schema-nested-background-color: var(--color-secondary-200);
|
|
684
|
-
--panel-response-error-body-text-color: var(--panel-response-body-text-color);
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* @tokens Response Panel Redirect colors
|
|
688
|
-
* @presenter Color
|
|
689
|
-
*/
|
|
690
|
-
|
|
691
|
-
--panel-response-redirect-border-color: var(--color-warning-100);
|
|
692
|
-
--panel-response-redirect-heading-background-color: var(--color-warning-50);
|
|
693
|
-
--panel-response-redirect-heading-text-color: var(--panel-response-heading-text-color);
|
|
694
|
-
--panel-response-redirect-body-background-color: transparent;
|
|
695
|
-
--panel-response-redirect-schema-nested-background-color: var(--color-secondary-200);
|
|
696
|
-
--panel-response-redirect-body-text-color: var(--panel-response-body-text-color);
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* @tokens Response Panel Info colors
|
|
700
|
-
* @presenter Color
|
|
701
|
-
*/
|
|
702
|
-
|
|
703
|
-
--panel-response-info-border-color: var(--color-accent-100);
|
|
704
|
-
--panel-response-info-heading-background-color: var(--color-accent-50);
|
|
705
|
-
--panel-response-info-heading-text-color: var(--panel-response-heading-text-color);
|
|
706
|
-
--panel-response-info-body-background-color: transparent;
|
|
707
|
-
--panel-response-info-schema-nested-background-color: var(--color-secondary-200);
|
|
708
|
-
--panel-response-info-body-text-color: var(--panel-response-body-text-color);
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* @tokens Response Panel Callback colors
|
|
712
|
-
* @presenter Color
|
|
713
|
-
*/
|
|
714
|
-
|
|
715
|
-
--panel-response-callback-border-color: var(--color-secondary-300);
|
|
716
|
-
--panel-response-callback-heading-background-color: var(--color-secondary-300);
|
|
717
|
-
--panel-response-callback-heading-text-color: var(--panel-response-heading-text-color);
|
|
718
|
-
--panel-response-callback-body-background-color: transparent;
|
|
719
|
-
--panel-response-callback-schema-nested-background-color: var(--color-secondary-200);
|
|
720
|
-
--panel-response-callback-body-text-color: var(--panel-response-body-text-color);
|
|
721
|
-
|
|
722
|
-
// @tokens End
|
|
723
|
-
`;
|
|
724
|
-
|
|
725
|
-
const apiReferencePanels = css`
|
|
726
|
-
/**
|
|
727
|
-
* @tokens Panels spacing
|
|
728
|
-
* @presenter Spacing
|
|
729
|
-
*/
|
|
730
|
-
|
|
731
|
-
--panel-gap-horizontal: calc(var(--spacing-unit) * 8);
|
|
732
|
-
--panel-gap-vertical: calc(var(--spacing-unit) * 4);
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* @tokens Panel common
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
|
-
--panel-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
739
|
-
--panel-border: 1px solid var(--border-color); // @presenter Border
|
|
740
|
-
|
|
741
|
-
--panel-line-height: var(--line-height-base); // @presenter LineHeight
|
|
742
|
-
--panel-font-size: var(--font-size-base); // @presenter FontSize
|
|
743
|
-
--panel-font-family: var(--font-family-base); // @presenter FontFamily
|
|
744
|
-
--panel-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* @tokens Panel heading common
|
|
748
|
-
*/
|
|
749
|
-
|
|
750
|
-
--panel-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
751
|
-
--panel-heading-font-size: 18px; // @presenter FontSize
|
|
752
|
-
--panel-heading-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
753
|
-
--panel-heading-padding: calc(var(--spacing-unit) * 4);
|
|
754
|
-
--panel-heading-line-height: 1; // @presenter LineHeight
|
|
755
|
-
--panel-heading-whit-space: 'nowrap';
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* @tokens Panel body common
|
|
759
|
-
*/
|
|
760
|
-
|
|
761
|
-
--panel-body-font-family: var(--font-family-base); // @presenter FontFamily
|
|
762
|
-
--panel-body-font-size: var(--font-size-base); // @presenter FontSize
|
|
763
|
-
--panel-body-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
764
|
-
--panel-body-padding: calc(var(--spacing-unit) * 4);
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* @tokens Panel schemas common
|
|
768
|
-
*/
|
|
769
|
-
|
|
770
|
-
--panel-schemas-text-color: var(--text-color); // @presenter Color
|
|
771
|
-
--panel-schemas-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
772
|
-
--panel-schemas-font-size: var(--panel-font-size); // @presenter FontSize
|
|
773
|
-
--panel-schemas-font-weight: var(--panel-font-weight); // @presenter
|
|
774
|
-
--panel-schemas-background-color: var(--background-color); // @presenter Color
|
|
775
|
-
--panel-schemas-border: var(--panel-border); // @presenter Border
|
|
776
|
-
--panel-schemas-chevron-icon-color: var(--text-color); // @presenter Color
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* @tokens Panel schemas body common
|
|
780
|
-
*/
|
|
781
|
-
|
|
782
|
-
--panel-schemas-body-text-color: var(--text-color); // @presenter Color
|
|
783
|
-
--panel-schemas-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
784
|
-
--panel-schemas-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
785
|
-
--panel-schemas-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
786
|
-
--panel-schemas-body-padding: 0 var(--panel-body-padding) var(--panel-body-padding)
|
|
787
|
-
var(--panel-body-padding);
|
|
788
|
-
--panel-schemas-body-background-color: var(--background-color); // @presenter Color
|
|
789
|
-
--panel-schemas-body-border: unset; // @presenter Border
|
|
790
|
-
|
|
791
|
-
/**
|
|
792
|
-
* @tokens Panel schemas heading common
|
|
793
|
-
*/
|
|
794
|
-
|
|
795
|
-
--panel-schemas-heading-text-color: var(--text-color); // @presenter Color
|
|
796
|
-
--panel-schemas-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
797
|
-
--panel-schemas-heading-font-size: var(--panel-heading-font-size); // @presenter FontSize
|
|
798
|
-
--panel-schemas-heading-font-weight: var(--panel-heading-font-weight); // @presenter FontWeight
|
|
799
|
-
--panel-schemas-heading-line-height: var(--panel-heading-line-height); // @presenter LineHeight
|
|
800
|
-
--panel-schemas-heading-padding: var(--panel-heading-padding);
|
|
801
|
-
--panel-schemas-heading-background-color: var(--background-color); // @presenter Color
|
|
802
|
-
--panel-schemas-heading-border: unset; // @presenter Border
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* @tokens Panel default, response, callback, security schemas
|
|
806
|
-
*/
|
|
807
|
-
|
|
808
|
-
.panel-request-schemas,
|
|
809
|
-
.panel-response-schemas,
|
|
810
|
-
.panel-callback-schemas,
|
|
811
|
-
.panel-security-schemas,
|
|
812
|
-
.panel-default {
|
|
813
|
-
--panel-text-color: var(--panel-schemas-text-color); // @presenter Color
|
|
814
|
-
--panel-font-family-local: var(--panel-schemas-font-family);
|
|
815
|
-
--panel-font-size-local: var(--panel-schemas-font-size);
|
|
816
|
-
--panel-font-weight-local: var(--panel-schemas-font-weight);
|
|
817
|
-
--panel-background-color: var(--panel-schemas-background-color); // @presenter Color
|
|
818
|
-
--panel-border-local: var(--panel-schemas-border);
|
|
819
|
-
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
820
|
-
--panel-chevron-icon-color: var(--panel-schemas-chevron-icon-color); // @presenter Color
|
|
821
|
-
|
|
822
|
-
--panel-body-text-color: var(--panel-schemas-body-text-color); // @presenter Color
|
|
823
|
-
--panel-body-font-family-local: var(--panel-schemas-body-font-family);
|
|
824
|
-
--panel-body-font-size-local: var(--panel-schemas-body-font-size);
|
|
825
|
-
--panel-body-font-weight-local: var(--panel-schemas-body-font-weight);
|
|
826
|
-
--panel-body-padding-local: var(--panel-schemas-body-padding);
|
|
827
|
-
--panel-body-background-color: var(--panel-schemas-body-background-color); // @presenter Color
|
|
828
|
-
--panel-body-border: var(--panel-schemas-body-border); // @presenter Border
|
|
829
|
-
|
|
830
|
-
--panel-heading-text-color: var(--panel-schemas-heading-text-color); // @presenter Color
|
|
831
|
-
--panel-heading-font-family-local: var(--panel-schemas-heading-font-family);
|
|
832
|
-
--panel-heading-font-size-local: var(--panel-schemas-heading-font-size);
|
|
833
|
-
--panel-heading-font-weight-local: var(--panel-schemas-heading-font-weight);
|
|
834
|
-
--panel-heading-line-height-local: var(--panel-schemas-heading-line-height);
|
|
835
|
-
--panel-heading-padding-local: var(--panel-schemas-heading-padding);
|
|
836
|
-
--panel-heading-background-color: var(--panel-schemas-heading-background-color); // @presenter Color
|
|
837
|
-
--panel-heading-border: var(--panel-schemas-heading-border); // @presenter Border
|
|
838
|
-
--panel-heading-white-space-local: var(--panel-heading-whit-space);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* @tokens Panel samples common
|
|
843
|
-
*/
|
|
844
|
-
|
|
845
|
-
--panel-samples-block-background-color: var(--background-color); // @presenter Color
|
|
846
|
-
--panel-samples-width: 50%;
|
|
847
|
-
|
|
848
|
-
--panel-samples-text-color: var(--text-color-inverse); // @presenter Color
|
|
849
|
-
--panel-samples-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
850
|
-
--panel-samples-font-size: var(--panel-font-size); // @presenter FontSize
|
|
851
|
-
--panel-samples-font-weight: var(--panel-font-weight); // @presenter FontWight
|
|
852
|
-
--panel-samples-background-color: #52606d; // @presenter Color
|
|
853
|
-
--panel-samples-border: var(--panel-border); // @presenter Border
|
|
854
|
-
--panel-samples-chevron-icon-color: var(--text-color-inverse); // @presenter Color
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* @tokens Panel samples body common
|
|
858
|
-
*/
|
|
859
|
-
|
|
860
|
-
--panel-samples-body-text-color: var(--text-color-inverse); // @presenter Color
|
|
861
|
-
--panel-samples-body-font-family: var(--panel-body-font-family); // @presenter FontFamily
|
|
862
|
-
--panel-samples-body-font-size: var(--panel-body-font-size); // @presenter FontSize
|
|
863
|
-
--panel-samples-body-font-weight: var(--panel-body-font-weight); // @presenter FontWeight
|
|
864
|
-
--panel-samples-body-padding: var(--panel-body-padding);
|
|
865
|
-
--panel-samples-body-background-color: #52606d; // @presenter Color
|
|
866
|
-
--panel-samples-body-border: unset; // @presenter Border
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* @tokens Panel samples heading common
|
|
870
|
-
*/
|
|
871
|
-
|
|
872
|
-
--panel-samples-heading-text-color: var(--text-color-inverse); // @presenter Color
|
|
873
|
-
--panel-samples-heading-font-family: var(--panel-heading-font-family); // @presenter FontFamily
|
|
874
|
-
--panel-samples-heading-font-size: var(--panel-font-size); // @presenter FontSize
|
|
875
|
-
--panel-samples-heading-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
876
|
-
--panel-samples-heading-line-height: 30px; // @presenter LineHeight
|
|
877
|
-
--panel-samples-heading-padding: 0 20px;
|
|
878
|
-
--panel-samples-heading-background-color: #323f4b; // @presenter Color
|
|
879
|
-
--panel-samples-heading-border: unset; // @presenter Border
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* @tokens Panel samples default
|
|
883
|
-
*/
|
|
884
|
-
.panel-samples-default {
|
|
885
|
-
--text-color: var(--panel-samples-text-color);
|
|
886
|
-
--panel-text-color: var(--panel-samples-text-color); // @presenter Color
|
|
887
|
-
--panel-font-family-local: var(--panel-samples-font-family);
|
|
888
|
-
--panel-font-size-local: var(--panel-samples-font-size);
|
|
889
|
-
--panel-font-weight-local: var(--panel-samples-font-weight);
|
|
890
|
-
--panel-background-color: var(--panel-samples-background-color); // @presenter Color
|
|
891
|
-
--panel-border-local: var(--panel-samples-border);
|
|
892
|
-
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
893
|
-
--panel-chevron-icon-color: var(--panel-samples-chevron-icon-color); // @presenter Color
|
|
894
|
-
|
|
895
|
-
--panel-body-text-color: var(--panel-samples-body-text-color); // @presenter Color
|
|
896
|
-
--panel-body-background-color: var(--panel-samples-body-background-color); // @presenter Color
|
|
897
|
-
|
|
898
|
-
--panel-body-font-family-local: var(--panel-samples-body-font-family);
|
|
899
|
-
--panel-body-font-size-local: var(--panel-samples-body-font-size);
|
|
900
|
-
--panel-body-font-weight-local: var(--panel-samples-body-font-weight);
|
|
901
|
-
--panel-body-padding-local: 0;
|
|
902
|
-
--panel-body-border-local: var(--panel-samples-body-border);
|
|
903
|
-
|
|
904
|
-
--panel-heading-text-color: var(--panel-samples-heading-text-color); // @presenter Color
|
|
905
|
-
--panel-heading-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
906
|
-
|
|
907
|
-
--panel-heading-font-family-local: var(--panel-samples-heading-font-family);
|
|
908
|
-
--panel-heading-font-size-local: var(--panel-samples-heading-font-size);
|
|
909
|
-
--panel-heading-font-weight-local: var(--panel-samples-heading-font-weight);
|
|
910
|
-
--panel-heading-line-height-local: var(--panel-samples-heading-line-height);
|
|
911
|
-
--panel-heading-padding-local: var(--panel-samples-heading-padding);
|
|
912
|
-
|
|
913
|
-
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* @tokens Panel try-it, request-samples, response-samples, callback samples
|
|
918
|
-
*/
|
|
919
|
-
|
|
920
|
-
.panel-try-it,
|
|
921
|
-
.panel-pull-right,
|
|
922
|
-
.panel-request-samples,
|
|
923
|
-
.panel-response-samples,
|
|
924
|
-
.panel-callback-samples {
|
|
925
|
-
--text-color: var(--panel-samples-text-color);
|
|
926
|
-
--panel-text-color: var(--panel-samples-text-color); // @presenter Color
|
|
927
|
-
--panel-font-family-local: var(--panel-samples-font-family);
|
|
928
|
-
--panel-font-size-local: var(--panel-samples-font-size);
|
|
929
|
-
--panel-font-weight-local: var(--panel-samples-font-weight);
|
|
930
|
-
--panel-background-color: var(--panel-samples-background-color); // @presenter Color
|
|
931
|
-
--panel-border-local: var(--panel-samples-border);
|
|
932
|
-
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
933
|
-
--panel-chevron-icon-color: var(--panel-samples-chevron-icon-color); // @presenter Color
|
|
934
|
-
|
|
935
|
-
--panel-body-text-color: var(--panel-samples-body-text-color); // @presenter Color
|
|
936
|
-
--panel-body-background-color: var(--panel-samples-body-background-color); // @presenter Color
|
|
937
|
-
|
|
938
|
-
--panel-body-font-family-local: var(--panel-samples-body-font-family);
|
|
939
|
-
--panel-body-font-size-local: var(--panel-samples-body-font-size);
|
|
940
|
-
--panel-body-font-weight-local: var(--panel-samples-body-font-weight);
|
|
941
|
-
--panel-body-padding-local: var(--panel-samples-body-padding);
|
|
942
|
-
--panel-body-border-local: var(--panel-samples-body-border);
|
|
943
|
-
|
|
944
|
-
--panel-heading-text-color: var(--panel-samples-heading-text-color); // @presenter Color
|
|
945
|
-
--panel-heading-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
946
|
-
|
|
947
|
-
--panel-heading-font-family-local: var(--panel-samples-heading-font-family);
|
|
948
|
-
--panel-heading-font-size-local: var(--panel-samples-heading-font-size);
|
|
949
|
-
--panel-heading-font-weight-local: var(--panel-samples-heading-font-weight);
|
|
950
|
-
--panel-heading-line-height-local: var(--panel-samples-heading-line-height);
|
|
951
|
-
--panel-heading-padding-local: var(--panel-samples-heading-padding);
|
|
952
|
-
|
|
953
|
-
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* @tokens Panel response success, info, error, redirect, callback common
|
|
958
|
-
*/
|
|
959
|
-
|
|
960
|
-
.panel-response-success,
|
|
961
|
-
.panel-response-info,
|
|
962
|
-
.panel-response-error,
|
|
963
|
-
.panel-response-redirect,
|
|
964
|
-
.panel-response-callback {
|
|
965
|
-
--panel-body-text-color: var(--panel-response-body-text-color); // @presenter Color
|
|
966
|
-
--panel-border-radius-local: calc(1px + var(--panel-border-radius));
|
|
967
|
-
|
|
968
|
-
--panel-heading-text-color: var(--panel-response-heading-text-color); // @presenter Color
|
|
969
|
-
--panel-heading-font-size-local: var(--panel-response-heading-font-size);
|
|
970
|
-
--panel-heading-font-weight-local: var(--panel-response-heading-font-weight);
|
|
971
|
-
--panel-heading-line-height-local: var(--panel-response-heading-line-height);
|
|
972
|
-
--panel-heading-padding-local: var(--panel-response-heading-padding);
|
|
973
|
-
|
|
974
|
-
--panel-heading-border: var(--panel-samples-heading-border); // @presenter Border
|
|
975
|
-
--panel-heading-white-space-local: normal;
|
|
976
|
-
--panel-body-padding-local: var(--panel-body-padding);
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* @tokens Panel response success colors
|
|
981
|
-
* @presenter Color
|
|
982
|
-
*/
|
|
983
|
-
|
|
984
|
-
.panel-response-success {
|
|
985
|
-
--panel-border-local: 1px solid var(--panel-response-success-border-color); // @presenter Border
|
|
986
|
-
|
|
987
|
-
--panel-body-text-color: var(--panel-response-success-body-text-color);
|
|
988
|
-
--panel-body-background-color: var(--panel-response-success-body-background-color);
|
|
989
|
-
|
|
990
|
-
--panel-heading-background-color: var(--panel-response-success-heading-background-color);
|
|
991
|
-
--panel-heading-text-color: var(--panel-response-success-heading-text-color);
|
|
992
|
-
|
|
993
|
-
--panel-response-schema-nested-background-color: var( --panel-response-success-schema-nested-background-color);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* @tokens Panel response info colors
|
|
998
|
-
* @presenter Color
|
|
999
|
-
*/
|
|
1000
|
-
|
|
1001
|
-
.panel-response-info {
|
|
1002
|
-
--panel-border-local: 1px solid var(--panel-response-info-border-color); // @presenter Border
|
|
1003
|
-
|
|
1004
|
-
--panel-body-text-color: var(--panel-response-info-body-text-color);
|
|
1005
|
-
--panel-body-background-color: var(--panel-response-info-body-background-color);
|
|
1006
|
-
|
|
1007
|
-
--panel-heading-background-color: var(--panel-response-info-heading-background-color);
|
|
1008
|
-
--panel-heading-text-color: var(--panel-response-info-heading-text-color);
|
|
1009
|
-
|
|
1010
|
-
--panel-response-schema-nested-background-color: var( --panel-response-info-schema-nested-background-color);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* @tokens Panel response error colors
|
|
1015
|
-
* @presenter Color
|
|
1016
|
-
*/
|
|
1017
|
-
|
|
1018
|
-
.panel-response-error {
|
|
1019
|
-
--panel-border-local: 1px solid var(--panel-response-error-border-color); // @presenter Border
|
|
1020
|
-
|
|
1021
|
-
--panel-body-text-color: var(--panel-response-error-body-text-color);
|
|
1022
|
-
--panel-body-background-color: var(--panel-response-error-body-background-color);
|
|
1023
|
-
|
|
1024
|
-
--panel-heading-background-color: var(--panel-response-error-heading-background-color);
|
|
1025
|
-
--panel-heading-text-color: var(--panel-response-error-heading-text-color);
|
|
1026
|
-
|
|
1027
|
-
--panel-response-schema-nested-background-color: var( --panel-response-error-schema-nested-background-color);
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
/**
|
|
1031
|
-
* @tokens Panel response redirect colors
|
|
1032
|
-
* @presenter Color
|
|
1033
|
-
*/
|
|
1034
|
-
|
|
1035
|
-
.panel-response-redirect {
|
|
1036
|
-
--panel-border-local: 1px solid var(--panel-response-redirect-border-color); // @presenter Border
|
|
1037
|
-
--panel-body-text-color: var(--panel-response-redirect-body-text-color);
|
|
1038
|
-
|
|
1039
|
-
--panel-body-background-color: var(--panel-response-redirect-body-background-color);
|
|
1040
|
-
--panel-heading-background-color: var(--panel-response-redirect-heading-background-color);
|
|
1041
|
-
--panel-heading-text-color: var(--panel-response-redirect-heading-text-color);
|
|
1042
|
-
|
|
1043
|
-
--panel-response-schema-nested-background-color: var( --panel-response-redirect-schema-nested-background-color);
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
* @tokens Panel response callback colors
|
|
1048
|
-
* @presenter Color
|
|
1049
|
-
*/
|
|
1050
|
-
|
|
1051
|
-
.panel-response-callback {
|
|
1052
|
-
--panel-border-local: 1px solid var(--panel-response-callback-border-color); // @presenter Border
|
|
1053
|
-
|
|
1054
|
-
--panel-body-text-color: var(--panel-response-callback-body-text-color);
|
|
1055
|
-
--panel-body-background-color: var(--panel-response-callback-body-background-color);
|
|
1056
|
-
|
|
1057
|
-
--panel-heading-background-color: var(--panel-response-callback-heading-background-color);
|
|
1058
|
-
--panel-heading-text-color: var(--panel-response-callback-heading-text-color);
|
|
342
|
+
* @tokens Borders
|
|
343
|
+
* @presenter Border
|
|
344
|
+
*/
|
|
1059
345
|
|
|
1060
|
-
|
|
1061
|
-
|
|
346
|
+
--border-width: 1px;
|
|
347
|
+
--border-style: solid;
|
|
1062
348
|
|
|
1063
349
|
/**
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
--panel-try-it-nested-text-color: var(--text-color-inverse);
|
|
1069
|
-
--panel-try-it-nested-chevron-icon-color: var(--text-color-inverse);
|
|
1070
|
-
|
|
1071
|
-
--panel-try-it-nested-body-background-color: #3e4c59;
|
|
1072
|
-
--panel-try-it-nested-body-text-color: var(--text-color-inverse);
|
|
1073
|
-
--panel-try-it-nested-body-padding: var(--panel-body-padding); // @presenter Spacing
|
|
1074
|
-
--panel-try-it-nested-body-border-color: var(--color-secondary-800);
|
|
350
|
+
* @tokens Border Colors
|
|
351
|
+
* @presenter Color
|
|
352
|
+
*/
|
|
1075
353
|
|
|
1076
|
-
--
|
|
1077
|
-
--
|
|
1078
|
-
--panel-try-it-nested-heading-border-color: var(--color-secondary-800);
|
|
354
|
+
--border-primary: #00000021; // 13% opacity. Raised dividers
|
|
355
|
+
--border-secondary: #00000017; // 9% opacity. Default dividers, borders
|
|
1079
356
|
|
|
1080
357
|
/**
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
.panel-try-it-nested {
|
|
1086
|
-
--panel-text-color: var(--panel-try-it-nested-text-color);
|
|
1087
|
-
--panel-chevron-icon-color: var(--panel-try-it-nested-chevron-icon-color);
|
|
358
|
+
* @tokens Border Radius
|
|
359
|
+
* @presenter BorderRadius
|
|
360
|
+
*/
|
|
1088
361
|
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
362
|
+
--border-radius: 4px;
|
|
363
|
+
--border-radius-md: calc(var(--border-radius) * 1.5);
|
|
364
|
+
--border-radius-lg: calc(var(--border-radius) * 2);
|
|
365
|
+
--border-radius-xlg: calc(var(--border-radius) * 3);
|
|
366
|
+
`
|
|
1092
367
|
|
|
1093
|
-
|
|
1094
|
-
|
|
368
|
+
const headingsTypography = css`
|
|
369
|
+
* {
|
|
370
|
+
box-sizing: border-box;
|
|
1095
371
|
}
|
|
1096
372
|
|
|
1097
373
|
/**
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
--panel-samples-tabs-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1102
|
-
--panel-samples-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1103
|
-
--panel-samples-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1104
|
-
--panel-samples-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1105
|
-
|
|
1106
|
-
--panel-samples-tabs-background-color: transparent; // @presenter Color
|
|
1107
|
-
--panel-samples-tabs-hover-background-color: #3c4c5a; // @presenter Color
|
|
1108
|
-
--panel-samples-tabs-active-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1109
|
-
|
|
1110
|
-
--panel-samples-tabs-border-color: var(--border-color-secondary); // @presenter Color
|
|
1111
|
-
--panel-samples-tabs-hover-border-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1112
|
-
--panel-samples-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1113
|
-
|
|
1114
|
-
--panel-samples-code-block-background-color: var(--code-block-background-color); // @presenter Color
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* @tokens Panel try-it tabs
|
|
1118
|
-
*/
|
|
1119
|
-
|
|
1120
|
-
--panel-try-it-tabs-font-size: 12px; // @presenter FontSize
|
|
1121
|
-
--panel-try-it-tabs-text-color: var(--text-color-inverse); // @presenter Color
|
|
1122
|
-
--panel-try-it-tabs-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1123
|
-
--panel-try-it-tabs-font-weight: var(--panel-font-weight); // @presenter FontWeight
|
|
1124
|
-
--panel-try-it-tabs-disabled-text-color: var(--color-secondary-400); // @presenter Color
|
|
1125
|
-
|
|
1126
|
-
--panel-try-it-tabs-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1127
|
-
--panel-try-it-tabs-hover-background-color: var(--panel-samples-tabs-hover-background-color); // @presenter Color
|
|
1128
|
-
--panel-try-it-tabs-active-background-color: #47535e; // @presenter Color
|
|
1129
|
-
--panel-try-it-tabs-disabled-background-color: var(--color-secondary-500); // @presenter Color
|
|
1130
|
-
|
|
1131
|
-
--panel-try-it-tabs-border-color: transparent; // @presenter Color
|
|
1132
|
-
--panel-try-it-tabs-hover-border-color: var(--panel-try-it-tabs-active-border-color); // @presenter Color
|
|
1133
|
-
--panel-try-it-tabs-active-border-color: var(--color-accent-500); // @presenter Color
|
|
1134
|
-
--panel-try-it-tabs-disabled-border-color: transparent; // @presenter Color
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* @tokens Panel try-it action button
|
|
1138
|
-
*/
|
|
1139
|
-
|
|
1140
|
-
--panel-try-it-action-button-width: auto;
|
|
1141
|
-
--panel-try-it-action-button-font-family: var(--panel-font-family); // @presenter FontFamily
|
|
1142
|
-
--panel-try-it-action-button-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1143
|
-
--panel-try-it-action-button-font-size: var(--panel-font-size); // @presenter FontSize
|
|
1144
|
-
--panel-try-it-action-button-text-color: var(--text-color-inverse); // @presenter Color
|
|
1145
|
-
--panel-try-it-action-button-background-color: var(--color-primary-500); // @presenter Color
|
|
1146
|
-
--panel-try-it-action-button-border-color: transparent; // @presenter Color
|
|
1147
|
-
|
|
1148
|
-
--panel-try-it-action-button-active-text-color: var(--text-color-inverse); // @presenter Color
|
|
1149
|
-
--panel-try-it-action-button-active-background-color: var(--color-primary-700); // @presenter Color
|
|
1150
|
-
--panel-try-it-action-button-active-border-color: var(--color-primary-700); // @presenter Color
|
|
1151
|
-
|
|
1152
|
-
--panel-try-it-action-button-hover-text-color: var(--text-color-inverse); // @presenter Color
|
|
1153
|
-
--panel-try-it-action-button-hover-background-color: var(--color-primary-600); // @presenter Color
|
|
1154
|
-
--panel-try-it-action-button-hover-border-color: var(--color-primary-600); // @presenter Color
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* @tokens Panel samples other styles
|
|
1158
|
-
*/
|
|
1159
|
-
|
|
1160
|
-
--panel-samples-controls-background-color: var(--panel-samples-heading-background-color);
|
|
1161
|
-
|
|
1162
|
-
--panel-samples-icon-controls-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1163
|
-
--panel-samples-text-controls-background-color: var(--color-secondary-900); // @presenter Color
|
|
1164
|
-
|
|
1165
|
-
--panel-samples-controls-hover-background-color: #606e7b; // @presenter Color
|
|
1166
|
-
--panel-samples-controls-text-color: var(--text-color-inverse); // @presenter Color
|
|
1167
|
-
--panel-samples-controls-border: 1px solid var(--color-secondary-900); // @presenter Color
|
|
1168
|
-
|
|
1169
|
-
--panel-samples-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1170
|
-
--panel-samples-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1171
|
-
--panel-samples-dropdown-border: unset; // @presenter Border
|
|
374
|
+
* @tokens Headings common styles
|
|
375
|
+
*/
|
|
1172
376
|
|
|
1173
|
-
--
|
|
377
|
+
--heading-font-family: Source Sans Pro, sans-serif; // @presenter FontFamily
|
|
378
|
+
--heading-font-weight: var(--font-weight-bolder); // @presenter FontWeight
|
|
379
|
+
--heading-margin-top: 1.25em; // @presenter Spacing
|
|
380
|
+
--heading-margin-bottom: 0.9em; // @presenter Spacing
|
|
381
|
+
--heading-text-color: var(--text-primary); // @presenter Color
|
|
1174
382
|
|
|
1175
383
|
/**
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
--panel-try-it-input-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1180
|
-
--panel-try-it-input-text-color: var(--text-color-inverse); // @presenter Color
|
|
1181
|
-
--panel-try-it-input-border: unset; // @presenter Border
|
|
1182
|
-
|
|
1183
|
-
--panel-try-it-dropdown-background-color: var(--panel-samples-heading-background-color); // @presenter Color
|
|
1184
|
-
--panel-try-it-dropdown-color: var(--text-color-inverse); // @presenter Color
|
|
1185
|
-
--panel-try-it-border: unset; // @presenter Border
|
|
1186
|
-
|
|
1187
|
-
// @tokens End
|
|
1188
|
-
|
|
1189
|
-
// TODO PUL RIGHT section - related to pull right - fix later
|
|
384
|
+
* @tokens Typography heading anchor icon
|
|
385
|
+
*/
|
|
1190
386
|
|
|
1191
|
-
--
|
|
1192
|
-
--
|
|
387
|
+
--heading-anchor-offset-right: 4px; // @presenter Spacing
|
|
388
|
+
--heading-anchor-color: var(--color-primary); // @presenter Color
|
|
389
|
+
--heading-anchor-icon: none;
|
|
1193
390
|
|
|
1194
|
-
--layout-right-rail-width: 50%;
|
|
1195
|
-
--layout-right-rail-background-color: transparent;
|
|
1196
|
-
`;
|
|
1197
391
|
|
|
1198
|
-
const tooltip = css`
|
|
1199
392
|
/**
|
|
1200
|
-
* @tokens
|
|
1201
|
-
* @presenter Color
|
|
393
|
+
* @tokens Heading level 1
|
|
1202
394
|
*/
|
|
1203
|
-
|
|
1204
|
-
--
|
|
395
|
+
|
|
396
|
+
--h1-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
397
|
+
--h1-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
398
|
+
--h1-font-size: 36px; // @presenter FontSize
|
|
399
|
+
--h1-line-height: 36px; // @presenter LineHeight
|
|
400
|
+
--h1-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
401
|
+
--h1-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
402
|
+
--h1-text-color: var(--heading-text-color); // @presenter Color
|
|
1205
403
|
|
|
1206
404
|
/**
|
|
1207
|
-
* @tokens
|
|
1208
|
-
* @presenter Color
|
|
405
|
+
* @tokens Heading level 2
|
|
1209
406
|
*/
|
|
1210
407
|
|
|
1211
|
-
--
|
|
1212
|
-
--
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
// @tokens End
|
|
1220
|
-
`;
|
|
408
|
+
--h2-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
409
|
+
--h2-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
410
|
+
--h2-font-size: 28px; // @presenter FontSize
|
|
411
|
+
--h2-line-height: 28px; // @presenter LineHeight
|
|
412
|
+
--h2-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
413
|
+
--h2-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
414
|
+
--h2-text-color: var(--heading-text-color); // @presenter Color
|
|
1221
415
|
|
|
1222
|
-
const code = css`
|
|
1223
416
|
/**
|
|
1224
|
-
* @tokens
|
|
417
|
+
* @tokens Heading level 3
|
|
1225
418
|
*/
|
|
1226
|
-
|
|
1227
|
-
--
|
|
1228
|
-
--
|
|
1229
|
-
--
|
|
1230
|
-
--
|
|
1231
|
-
--
|
|
419
|
+
|
|
420
|
+
--h3-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
421
|
+
--h3-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
422
|
+
--h3-font-size: 18px; // @presenter FontSize
|
|
423
|
+
--h3-line-height: 22px; // @presenter LineHeight
|
|
424
|
+
--h3-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
425
|
+
--h3-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
426
|
+
--h3-text-color: var(--heading-text-color); // @presenter Color
|
|
1232
427
|
|
|
1233
428
|
/**
|
|
1234
|
-
* @tokens
|
|
429
|
+
* @tokens Heading level 4
|
|
1235
430
|
*/
|
|
1236
|
-
--inline-code-font-size: var(--code-font-size); // @presenter FontSize
|
|
1237
|
-
--inline-code-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1238
|
-
--inline-code-text-color: #e53935; // @presenter Color
|
|
1239
|
-
--inline-code-background-color: var(--colors-translucent); // @presenter Color
|
|
1240
|
-
--inline-code-border-color: var(--border-color); // @presenter Color
|
|
1241
|
-
--inline-code-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1242
431
|
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
--
|
|
1247
|
-
--
|
|
1248
|
-
--
|
|
1249
|
-
--
|
|
1250
|
-
--code-block-border-color: var(--border-color); // @presenter Color
|
|
1251
|
-
--code-block-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1252
|
-
--code-block-padding: calc(var(--spacing-unit) * 2);
|
|
1253
|
-
--code-block-margin: 0;
|
|
1254
|
-
--code-block-max-height: 50vh;
|
|
1255
|
-
--code-block-word-break: initial;
|
|
432
|
+
--h4-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
433
|
+
--h4-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
434
|
+
--h4-font-size: 16px; // @presenter FontSize
|
|
435
|
+
--h4-line-height: 16px; // @presenter LineHeight
|
|
436
|
+
--h4-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
437
|
+
--h4-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
438
|
+
--h4-text-color: var(--heading-text-color); // @presenter Color
|
|
1256
439
|
|
|
1257
440
|
/**
|
|
1258
|
-
* @tokens
|
|
441
|
+
* @tokens Heading level 5
|
|
1259
442
|
*/
|
|
1260
443
|
|
|
1261
|
-
--
|
|
1262
|
-
--
|
|
1263
|
-
--
|
|
1264
|
-
--
|
|
1265
|
-
--
|
|
1266
|
-
--
|
|
1267
|
-
--
|
|
1268
|
-
--code-block-controls-font-size: var(--font-size-base); // @presenter FontSize
|
|
1269
|
-
--code-block-controls-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1270
|
-
--code-block-controls-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
444
|
+
--h5-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
445
|
+
--h5-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
446
|
+
--h5-font-size: 14px; // @presenter FontSize
|
|
447
|
+
--h5-line-height: 14px; // @presenter LineHeight
|
|
448
|
+
--h5-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
449
|
+
--h5-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
450
|
+
--h5-text-color: var(--heading-text-color); // @presenter Color
|
|
1271
451
|
|
|
1272
452
|
/**
|
|
1273
|
-
* @tokens
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
--
|
|
1277
|
-
--
|
|
1278
|
-
--
|
|
1279
|
-
--
|
|
1280
|
-
--
|
|
1281
|
-
--
|
|
1282
|
-
--
|
|
1283
|
-
--code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1284
|
-
--code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
|
|
1285
|
-
--code-block-tokens-boolean-color: var(--color-error-500); // @presenter Color
|
|
1286
|
-
--code-block-tokens-string-color: #fee39e; // @presenter Color
|
|
1287
|
-
--code-block-tokens-property-string-color: #9efaa7; // @presenter Color
|
|
1288
|
-
--code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1289
|
-
--code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1290
|
-
--code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1291
|
-
--code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1292
|
-
--code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
|
|
1293
|
-
--code-block-tokens-link-color: #4ed2ba; // @presenter Color
|
|
1294
|
-
--code-block-tokens-operator-color: #f5b83d; // @presenter Color
|
|
1295
|
-
--code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1296
|
-
--code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1297
|
-
--code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
|
|
1298
|
-
--code-block-tokens-keyword-color: #ffdbf4; // @presenter Color
|
|
1299
|
-
--code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
1300
|
-
--code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
|
|
1301
|
-
--code-block-tokens-regex-color: #e90; // @presenter Color
|
|
1302
|
-
--code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
|
|
1303
|
-
--code-block-tokens-deleted-color: red; // @presenter Color
|
|
453
|
+
* @tokens Heading level 6
|
|
454
|
+
*/
|
|
455
|
+
|
|
456
|
+
--h6-font-family: var(--heading-font-family); // @presenter FontFamily
|
|
457
|
+
--h6-font-weight: var(--heading-font-weight); // @presenter FontWeight
|
|
458
|
+
--h6-font-size: 12px; // @presenter FontSize
|
|
459
|
+
--h6-line-height: 12px; // @presenter LineHeight
|
|
460
|
+
--h6-margin-top: var(--heading-margin-top); // @presenter Spacing
|
|
461
|
+
--h6-margin-bottom: var(--heading-margin-bottom); // @presenter Spacing
|
|
462
|
+
--h6-text-color: var(--heading-text-color); // @presenter Color
|
|
1304
463
|
|
|
1305
464
|
// @tokens End
|
|
1306
465
|
`;
|
|
@@ -1309,17 +468,18 @@ const links = css`
|
|
|
1309
468
|
/**
|
|
1310
469
|
* @tokens Links
|
|
1311
470
|
*/
|
|
1312
|
-
|
|
471
|
+
|
|
472
|
+
--link-text-color: var(--color-blue-6); // @presenter Color
|
|
1313
473
|
--link-decoration: none;
|
|
1314
474
|
--link-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1315
475
|
|
|
1316
|
-
--link-hover-text-color: var(--color-
|
|
476
|
+
--link-hover-text-color: var(--color-blue-5); // @presenter Color
|
|
1317
477
|
--link-hover-decoration: underline;
|
|
1318
478
|
|
|
1319
479
|
--link-active-decoration: none;
|
|
1320
|
-
--link-active-text-color: var(--color-
|
|
480
|
+
--link-active-text-color: var(--color-blue-7); // @presenter Color
|
|
1321
481
|
|
|
1322
|
-
--link-visited-text-color: var(--color-
|
|
482
|
+
--link-visited-text-color: var(--color-blue-7); // @presenter Color
|
|
1323
483
|
--link-visited-decoration: none;
|
|
1324
484
|
|
|
1325
485
|
// @tokens End
|
|
@@ -1329,8 +489,9 @@ const apiReferenceDocs = css`
|
|
|
1329
489
|
/* === ref docs and graphql docs specific === */
|
|
1330
490
|
|
|
1331
491
|
/**
|
|
1332
|
-
|
|
1333
|
-
|
|
492
|
+
* @tokens API Reference Schemas Layout
|
|
493
|
+
*/
|
|
494
|
+
|
|
1334
495
|
--layout-controls-margin: 20px; // @presenter Spacing
|
|
1335
496
|
--layout-controls-height: 36px; // @presenter Spacing
|
|
1336
497
|
--layout-controls-width: 36px; // @presenter Spacing
|
|
@@ -1348,172 +509,178 @@ const apiReferenceDocs = css`
|
|
|
1348
509
|
--layout-panel-schemas-large-max-width: none;
|
|
1349
510
|
|
|
1350
511
|
/**
|
|
1351
|
-
|
|
1352
|
-
|
|
512
|
+
* @tokens API Reference Schemas MimeType Dropdown
|
|
513
|
+
*/
|
|
1353
514
|
|
|
1354
515
|
--schemas-mime-type-dropdown-padding: 0px 26px 0px 4px;
|
|
1355
516
|
--schemas-mime-type-dropdown-border: var(--docs-dropdown-border); // @presenter Border
|
|
1356
517
|
--schemas-mime-type-dropdown-font-size: var(--docs-dropdown-font-size); // @presenter FontSize
|
|
1357
|
-
--schemas-mime-type-dropdown-text-color: var(--docs-dropdown-
|
|
518
|
+
--schemas-mime-type-dropdown-text-color: var(--docs-dropdown-text-color); // @presenter Color
|
|
1358
519
|
|
|
1359
520
|
/**
|
|
1360
|
-
|
|
1361
|
-
|
|
521
|
+
* @tokens API Reference Schemas Discriminator Dropdown
|
|
522
|
+
*/
|
|
1362
523
|
|
|
1363
524
|
--schemas-discriminator-dropdown-padding: 2px 24px 2px 8px;
|
|
1364
|
-
--schemas-discriminator-dropdown-border: 1px solid var(--border-
|
|
525
|
+
--schemas-discriminator-dropdown-border: 1px solid var(--border-primary); // @presenter Border
|
|
1365
526
|
--schemas-discriminator-font-size: var(--docs-dropdown-font-size); // @presenter FontSize
|
|
1366
527
|
--schemas-discriminator-dropdown-text-color: var(--docs-dropdown-text-color); // @presenter Color
|
|
1367
528
|
|
|
1368
529
|
/**
|
|
1369
|
-
|
|
1370
|
-
|
|
530
|
+
* @tokens API Reference Schemas Titles
|
|
531
|
+
*/
|
|
1371
532
|
|
|
1372
|
-
--schema-type-title-text-color: var(--text-
|
|
1373
|
-
--schema-type-text-color: var(--text-
|
|
533
|
+
--schema-type-title-text-color: var(--text-secondary); // @presenter Color
|
|
534
|
+
--schema-type-text-color: var(--text-secondary); // @presenter Color
|
|
1374
535
|
--schema-labels-font-size: 1em; // @presenter FontSize
|
|
1375
536
|
|
|
1376
537
|
/**
|
|
1377
|
-
|
|
1378
|
-
|
|
538
|
+
* @tokens API Reference Schemas Lines Color
|
|
539
|
+
*/
|
|
1379
540
|
|
|
1380
|
-
--schemas-lines-color: var(--border-
|
|
541
|
+
--schemas-lines-color: var(--border-primary); // @presenter Color
|
|
1381
542
|
|
|
1382
543
|
/**
|
|
1383
|
-
|
|
1384
|
-
|
|
544
|
+
* @tokens API Reference Schema Inline code typography
|
|
545
|
+
*/
|
|
1385
546
|
|
|
1386
547
|
--schema-inline-code-font-family: var(--inline-code-font-family); // @presenter FontFamily
|
|
1387
548
|
--schema-inline-code-font-size: var(--inline-code-font-size); // @presenter FontSize
|
|
1388
|
-
--schema-inline-code-
|
|
1389
|
-
--schema-inline-
|
|
1390
|
-
--schema-inline-
|
|
549
|
+
--schema-inline-code-font-weight: var(--inline-code-font-weight); // @presenter FontWeight
|
|
550
|
+
--schema-inline-code-text-color: var(--text-secondary); // @presenter Color
|
|
551
|
+
--schema-inline-code-line-height: var(--inline-code-line-height); // @presenter LineHeight
|
|
552
|
+
--schema-inline-background-color: var(--bg-overlay); // @presenter Color
|
|
553
|
+
--schema-inline-border-color: var(--border-primary); // @presenter Color
|
|
1391
554
|
--schema-inline-border: 1px solid var(--schema-inline-border-color); // @presenter Border
|
|
1392
555
|
|
|
1393
556
|
/**
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
557
|
+
* @tokens API Reference Schema Example Label colors
|
|
558
|
+
* @presenter Color
|
|
559
|
+
*/
|
|
1397
560
|
|
|
1398
561
|
--schema-example-text-color: var(--schema-inline-code-text-color);
|
|
1399
562
|
--schema-example-background-color: var(--schema-inline-background-color);
|
|
1400
563
|
--schema-example-border-color: var(--schema-inline-border-color);
|
|
1401
564
|
|
|
1402
565
|
/**
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
566
|
+
* @tokens API Reference Schema Constraint Label colors
|
|
567
|
+
* @presenter Color
|
|
568
|
+
*/
|
|
1406
569
|
|
|
1407
570
|
--schema-constraint-text-color: var(--schema-inline-code-text-color);
|
|
1408
571
|
--schema-constraint-background-color: var(--schema-inline-background-color);
|
|
1409
572
|
--schema-constraint-border-color: var(--schema-inline-border-color);
|
|
1410
573
|
|
|
1411
574
|
/**
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
575
|
+
* @tokens API Reference Schema Enum Label colors
|
|
576
|
+
* @presenter Color
|
|
577
|
+
*/
|
|
1415
578
|
|
|
1416
579
|
--schema-enum-text-color: var(--schema-inline-code-text-color);
|
|
1417
580
|
--schema-enum-background-color: var(--schema-inline-background-color);
|
|
1418
581
|
--schema-enum-border-color: var(--schema-inline-border-color);
|
|
1419
582
|
|
|
1420
583
|
/**
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
584
|
+
* @tokens API Reference Schema Default Label colors
|
|
585
|
+
* @presenter Color
|
|
586
|
+
*/
|
|
1424
587
|
|
|
1425
588
|
--schema-default-text-color: var(--schema-inline-code-text-color);
|
|
1426
589
|
--schema-default-background-color: var(--schema-inline-background-color);
|
|
1427
590
|
--schema-default-border-color: var(--schema-inline-border-color);
|
|
1428
591
|
|
|
1429
592
|
/**
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
593
|
+
* @tokens API Reference Schema Recursive Label colors
|
|
594
|
+
* @presenter Color
|
|
595
|
+
*/
|
|
1433
596
|
|
|
1434
|
-
--schema-recursive-text-color: var(--color-warning-
|
|
1435
|
-
--schema-recursive-background-color: var(--
|
|
1436
|
-
--schema-recursive-border-color: var(--
|
|
597
|
+
--schema-recursive-text-color: var(--color-warning-active); // @presenter Color
|
|
598
|
+
--schema-recursive-background-color: var(--color-warning-bg); // @presenter Color
|
|
599
|
+
--schema-recursive-border-color: var(--color-warning-active); // @presenter Color
|
|
1437
600
|
|
|
1438
601
|
/**
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
602
|
+
* @tokens GraphQL Docs Reference Schema Non null label
|
|
603
|
+
* @presenter Color
|
|
604
|
+
*/
|
|
1442
605
|
|
|
1443
606
|
--schema-non-null-text-color: var(--schema-inline-code-text-color);
|
|
1444
607
|
--schema-non-null-background-color: var(--schema-inline-background-color);
|
|
1445
608
|
--schema-non-null-border-color: var(--schema-inline-border-color);
|
|
609
|
+
|
|
1446
610
|
/**
|
|
1447
|
-
|
|
1448
|
-
|
|
611
|
+
* @tokens API Reference Schema Nested styles
|
|
612
|
+
*/
|
|
1449
613
|
|
|
1450
614
|
--schema-nested-offset: 1em; // @presenter Spacing
|
|
1451
|
-
--schema-nested-background-color: var(--
|
|
615
|
+
--schema-nested-background-color: var(--bg-overlay); // @presenter Color
|
|
1452
616
|
|
|
1453
617
|
/**
|
|
1454
|
-
|
|
1455
|
-
|
|
618
|
+
* @tokens API Reference Schema Buttons
|
|
619
|
+
*/
|
|
1456
620
|
|
|
1457
621
|
--schema-buttons-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1458
622
|
--schema-buttons-font-weight: var(--code-font-weight); // @presenter FontWeight
|
|
1459
623
|
--schema-buttons-font-size: var(--code-font-size); // @presenter FontSize
|
|
1460
624
|
|
|
1461
|
-
--schema-buttons-text-color: var(--
|
|
625
|
+
--schema-buttons-text-color: var(--text-secondary); // @presenter Color
|
|
1462
626
|
--schema-buttons-background-color: transparent; // @presenter Color
|
|
1463
|
-
--schema-buttons-border-color: var(--
|
|
627
|
+
--schema-buttons-border-color: var(--border-primary); // @presenter Color
|
|
1464
628
|
|
|
1465
|
-
--schema-buttons-hover-background-color: var(--
|
|
1466
|
-
--schema-buttons-active-background-color: var(--
|
|
629
|
+
--schema-buttons-hover-background-color: var(--bg-overlay); // @presenter Color
|
|
630
|
+
--schema-buttons-active-background-color: var(--bg-overlay); // @presenter Color
|
|
1467
631
|
|
|
1468
632
|
--schema-buttons-selected-text-color: var(--schema-buttons-text-color); // @presenter Color
|
|
1469
|
-
--schema-buttons-selected-background-color: var(--
|
|
633
|
+
--schema-buttons-selected-background-color: var(--bg-overlay); // @presenter Color
|
|
1470
634
|
--schema-buttons-selected-border-color: var(--schema-buttons-border-color); // @presenter Color
|
|
1471
|
-
--schema-buttons-selected-hover-background-color: var(--
|
|
1472
|
-
--schema-buttons-selected-active-background-color: var(--
|
|
635
|
+
--schema-buttons-selected-hover-background-color: var(--bg-overlay); // @presenter Color
|
|
636
|
+
--schema-buttons-selected-active-background-color: var(--bg-overlay); // @presenter Color
|
|
1473
637
|
|
|
1474
638
|
/**
|
|
1475
|
-
|
|
1476
|
-
|
|
639
|
+
* @tokens API Reference Schema Properties
|
|
640
|
+
*/
|
|
1477
641
|
|
|
1478
|
-
--schemas-property-name-text-color: var(--text-
|
|
642
|
+
--schemas-property-name-text-color: var(--text-primary); //@presenter Color
|
|
1479
643
|
--schemas-property-name-font-size: var(--code-font-size); // @presenter FontSize
|
|
1480
644
|
--schemas-property-name-font-family: var(--code-font-family); // @presenter FontFamily
|
|
645
|
+
--schemas-property-name-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
646
|
+
--schemas-property-name-line-height: var(--line-height-sm); // @presenter LineHeight
|
|
647
|
+
--schemas-property-name-text-transform: none;
|
|
1481
648
|
|
|
1482
|
-
--schemas-property-deprecated-text-color: var(--text-
|
|
649
|
+
--schemas-property-deprecated-text-color: var(--text-primary); // @presenter Color
|
|
1483
650
|
|
|
1484
651
|
--schema-property-labels-font-size: var(--schema-labels-font-size); // @presenter FontSize
|
|
1485
|
-
--schema-property-required-label-text-color: var(--color-error
|
|
1486
|
-
--schema-property-additional-label-text-color: var(--text-
|
|
1487
|
-
--schema-property-access-label-text-color: var(--text-
|
|
652
|
+
--schema-property-required-label-text-color: var(--color-error); // @presenter Color
|
|
653
|
+
--schema-property-additional-label-text-color: var(--text-secondary); // @presenter Color
|
|
654
|
+
--schema-property-access-label-text-color: var(--text-secondary); // @presenter Color
|
|
1488
655
|
|
|
1489
656
|
--schema-property-details-width: 70%;
|
|
1490
657
|
|
|
1491
658
|
/**
|
|
1492
|
-
|
|
1493
|
-
|
|
659
|
+
* @tokens API Reference Schema Icons
|
|
660
|
+
*/
|
|
1494
661
|
|
|
1495
|
-
--schema-chevron-color: var(--text-
|
|
662
|
+
--schema-chevron-color: var(--text-secondary); // @presenter Color
|
|
1496
663
|
--schema-chevron-size: 9px;
|
|
1497
664
|
|
|
1498
|
-
--schema-property-deep-link-icon-color: var(--color-primary
|
|
665
|
+
--schema-property-deep-link-icon-color: var(--color-primary); // @presenter Color
|
|
1499
666
|
--schema-property-deep-link-icon: none;
|
|
1500
667
|
|
|
1501
|
-
|
|
668
|
+
/**
|
|
1502
669
|
* @tokens API Reference Other
|
|
1503
670
|
*/
|
|
1504
671
|
|
|
1505
|
-
--loading-spinner-color: var(--color-primary
|
|
1506
|
-
--linear-progress-color: var(--color-
|
|
1507
|
-
--linear-progress-background-color: var(--color-
|
|
672
|
+
--loading-spinner-color: var(--color-primary); // @presenter Color
|
|
673
|
+
--linear-progress-color: var(--color-info); // @presenter Color
|
|
674
|
+
--linear-progress-background-color: var(--color-info-bg); // @presenter Color
|
|
1508
675
|
|
|
1509
|
-
--fab-background-color: var(--color-primary
|
|
1510
|
-
--fab-box-shadow: var(--
|
|
676
|
+
--fab-background-color: var(--color-primary); // @presenter Color
|
|
677
|
+
--fab-box-shadow: var(--bg-base-shadow); // @presenter Shadow
|
|
1511
678
|
|
|
1512
|
-
--fab-hover-background: var(--color-primary
|
|
1513
|
-
--fab-hover-box-shadow: var(--
|
|
679
|
+
--fab-hover-background: var(--color-primary); // @presenter Color
|
|
680
|
+
--fab-hover-box-shadow: var(--bg-base-shadow); // @presenter Shadow
|
|
1514
681
|
|
|
1515
|
-
--fab-active-background: var(--color-primary
|
|
1516
|
-
--fab-active-box-shadow: var(--
|
|
682
|
+
--fab-active-background: var(--color-primary); // @presenter Color
|
|
683
|
+
--fab-active-box-shadow: var(--bg-base-shadow); // @presenter Shadow
|
|
1517
684
|
|
|
1518
685
|
--fab-icon-color: var(--navbar-text-color); // @presenter Color
|
|
1519
686
|
|
|
@@ -1522,250 +689,25 @@ const apiReferenceDocs = css`
|
|
|
1522
689
|
|
|
1523
690
|
const badges = css`
|
|
1524
691
|
/**
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
--badge-
|
|
1529
|
-
--badge-
|
|
692
|
+
* @tokens Default Badge
|
|
693
|
+
*/
|
|
694
|
+
|
|
695
|
+
--badge-text-color: var(--color-primary-text); // @presenter Color
|
|
696
|
+
--badge-background-color: var(--color-primary-bg); // @presenter Color
|
|
697
|
+
--badge-border-color: var(--color-primary-border); // @presenter Color
|
|
1530
698
|
--badge-border: 1px solid var(--badge-border-color); // @presenter Border
|
|
1531
699
|
--badge-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1532
700
|
|
|
1533
701
|
/**
|
|
1534
|
-
|
|
1535
|
-
|
|
702
|
+
* @tokens Deprecated Badge
|
|
703
|
+
*/
|
|
1536
704
|
|
|
1537
|
-
--badge-deprecated-text-color: var(--color-
|
|
1538
|
-
--badge-deprecated-background-color: var(--color-warning-
|
|
1539
|
-
--badge-deprecated-border-color: var(--color-warning-
|
|
705
|
+
--badge-deprecated-text-color: var(--color-warning-active); // @presenter Color
|
|
706
|
+
--badge-deprecated-background-color: var(--color-warning-bg); // @presenter Color
|
|
707
|
+
--badge-deprecated-border-color: var(--color-warning-active); // @presenter Color
|
|
1540
708
|
--badge-deprecated-border: 1px solid var(--badge-deprecated-border-color); // @presenter Border
|
|
1541
709
|
--badge-deprecated-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1542
710
|
|
|
1543
|
-
/**
|
|
1544
|
-
* @tokens Http Badge
|
|
1545
|
-
*/
|
|
1546
|
-
|
|
1547
|
-
--badge-http-font-size: 12px; // @presenter FontSize
|
|
1548
|
-
--badge-http-line-height: 20px; // @presenter LineHeight
|
|
1549
|
-
--badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1550
|
-
--badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1551
|
-
--badge-http-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1552
|
-
--badge-http-border-radius: calc(var(--border-radius-lg) * 2); // @presenter BorderRadius
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* @tokens Sidebar item badge http
|
|
1556
|
-
*/
|
|
1557
|
-
|
|
1558
|
-
--sidebar-item-badge-http-text-color: var(--badge-text-color); // @presenter Color
|
|
1559
|
-
--sidebar-item-badge-http-font-family: var(--code-font-family); // @presenter FontFamily
|
|
1560
|
-
--sidebar-item-badge-http-font-size: 8px; // @presenter FontSize
|
|
1561
|
-
--sidebar-item-badge-http-font-weight: normal; //@presenter FontWeight
|
|
1562
|
-
--sidebar-item-badge-http-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1563
|
-
|
|
1564
|
-
// @tokens End
|
|
1565
|
-
`;
|
|
1566
|
-
|
|
1567
|
-
const footer = css`
|
|
1568
|
-
/**
|
|
1569
|
-
* @tokens Footer
|
|
1570
|
-
*/
|
|
1571
|
-
--footer-background-color: var(--color-primary-500); // @presenter Color
|
|
1572
|
-
--footer-text-color: #fff; // @presenter Color
|
|
1573
|
-
|
|
1574
|
-
--footer-padding-vertical: 2em; // @presenter Spacing
|
|
1575
|
-
--footer-padding-horizontal: 20px; // @presenter Spacing
|
|
1576
|
-
|
|
1577
|
-
--footer-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1578
|
-
--footer-font-size: 1rem; // @presenter FontSize
|
|
1579
|
-
--footer-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1580
|
-
|
|
1581
|
-
--footer-title-text-color: var(--footer-text-color); // @presenter Color
|
|
1582
|
-
--footer-title-font-size: 24px; // @presenter FontSize
|
|
1583
|
-
--footer-title-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1584
|
-
--footer-title-margin-vertical: 1.5em;
|
|
1585
|
-
|
|
1586
|
-
--footer-link-text-color: var(--footer-text-color); // @presenter Color
|
|
1587
|
-
--footer-link-hover-color: var(--footer-text-color); // @presenter Color
|
|
1588
|
-
|
|
1589
|
-
--footer-item-padding-vertical: 0.5em; // @presenter Spacingv
|
|
1590
|
-
--footer-item-padding-horizontal: 0;
|
|
1591
|
-
|
|
1592
|
-
--footer-item-icon-width: 24px; // @presenter Spacing
|
|
1593
|
-
--footer-item-icon-height: 24px; // @presenter Spacing
|
|
1594
|
-
--footer-item-icon-margin-right: 12px; // @presenter Spacing
|
|
1595
|
-
|
|
1596
|
-
--footer-column-width: 20%; // @presenter Spacing
|
|
1597
|
-
--footer-column-margin-vertical: 20px; // @presenter Spacing
|
|
1598
|
-
--footer-column-margin-horizontal: 0; // @presenter Spacing
|
|
1599
|
-
|
|
1600
|
-
--footer-container-max-width: 1200px; // @presenter Spacing
|
|
1601
|
-
|
|
1602
|
-
// @tokens End
|
|
1603
|
-
`;
|
|
1604
|
-
|
|
1605
|
-
const logo = css`
|
|
1606
|
-
/**
|
|
1607
|
-
* @tokens Logo
|
|
1608
|
-
*/
|
|
1609
|
-
|
|
1610
|
-
--navbar-logo-height: 2rem; // @presenter Spacing
|
|
1611
|
-
--navbar-logo-width: auto;
|
|
1612
|
-
--navbar-logo-margin: 16px; // @presenter Spacing
|
|
1613
|
-
--navbar-logo-max-width: 285px; // @presenter Spacing
|
|
1614
|
-
--navbar-logo-max-height: 285px; // @presenter Spacing
|
|
1615
|
-
|
|
1616
|
-
// @tokens End
|
|
1617
|
-
`;
|
|
1618
|
-
|
|
1619
|
-
const navbar = css`
|
|
1620
|
-
/**
|
|
1621
|
-
* @tokens Navbar
|
|
1622
|
-
*/
|
|
1623
|
-
--navbar-height: 60px; // @presenter Spacing
|
|
1624
|
-
--navbar-text-color: #fff; // @presenter Color
|
|
1625
|
-
--navbar-background-color: var(--color-primary-500); // @presenter Color
|
|
1626
|
-
--navbar-container-max-width: 100%;
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* @tokens Navbar Item
|
|
1630
|
-
* */
|
|
1631
|
-
--navbar-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1632
|
-
--navbar-item-font-size: 16px; // @presenter FontSize
|
|
1633
|
-
--navbar-item-padding-horizontal: 16px; // @presenter Spacing
|
|
1634
|
-
--navbar-item-padding-vertical: 8px; // @presenter Spacing
|
|
1635
|
-
--navbar-item-gap: 5px;
|
|
1636
|
-
--navbar-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1637
|
-
--navbar-item-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1638
|
-
--navbar-item-hover-background-color: var(--color-primary-300);
|
|
1639
|
-
--navbar-item-active-background-color: var(--color-primary-300); // @presenter Color
|
|
1640
|
-
--navbar-item-hover-text-color: var(--navbar-text-color); // @presenter Color
|
|
1641
|
-
--navbar-item-hover-text-decoration: none;
|
|
1642
|
-
--navbar-item-active-text-color: var(--navbar-text-color); // @presenter Color
|
|
1643
|
-
--navbar-item-active-text-decoration: none;
|
|
1644
|
-
--navbar-item-separator-line-color: var(--border-color); // @presenter Color
|
|
1645
|
-
--navbar-item-icon-width: 1.5em; // @presenter Spacing
|
|
1646
|
-
--navbar-item-icon-height: 1.5em; // @presenter Spacing
|
|
1647
|
-
--navbar-item-icon-margin-right: 0.5em; // @presenter Spacing
|
|
1648
|
-
|
|
1649
|
-
/**
|
|
1650
|
-
* @tokens Navbar dropdown
|
|
1651
|
-
* */
|
|
1652
|
-
|
|
1653
|
-
--navbar-dropdown-shadow: 4px 4px 15px -2px rgba(0, 0, 0, 0.5); //should be variable
|
|
1654
|
-
--navbar-dropdown-background: var(--navbar-item-active-background-color);
|
|
1655
|
-
--navbar-dropdown-border: none;
|
|
1656
|
-
|
|
1657
|
-
// @tokens End
|
|
1658
|
-
`;
|
|
1659
|
-
|
|
1660
|
-
const breadcrumbs = css`
|
|
1661
|
-
/**
|
|
1662
|
-
* @tokens Breadcrumbs
|
|
1663
|
-
*/
|
|
1664
|
-
|
|
1665
|
-
--breadcrumbs-text-color: var(--text-color-secondary); // @presenter Color
|
|
1666
|
-
--breadcrumbs-font-size: var(--font-size-base); // @presenter FontSize
|
|
1667
|
-
--breadcrumbs-active-text-color: var(--text-color); // @presenter Color
|
|
1668
|
-
--breadcrumbs-hover-text-decoration: underline;
|
|
1669
|
-
--breadcrumbs-padding-horizontal: 8px; // @presenter Spacing
|
|
1670
|
-
--breadcrumbs-margin-bottom: 24px; // @presenter Spacing
|
|
1671
|
-
|
|
1672
|
-
// @tokens End
|
|
1673
|
-
`
|
|
1674
|
-
|
|
1675
|
-
const product = css`
|
|
1676
|
-
/**
|
|
1677
|
-
* @tokens Product
|
|
1678
|
-
*/
|
|
1679
|
-
--product-padding-horizontal: 8px; // @presenter Spacing
|
|
1680
|
-
--product-padding-vertical: 8px; // @presenter Spacing
|
|
1681
|
-
--product-logo-margin: 10px; // @presenter Spacing
|
|
1682
|
-
|
|
1683
|
-
// @tokens End
|
|
1684
|
-
`
|
|
1685
|
-
|
|
1686
|
-
const mobileMenu = css`
|
|
1687
|
-
/**
|
|
1688
|
-
* @tokens Mobile Menu icons
|
|
1689
|
-
*/
|
|
1690
|
-
--mobile-menu-icons-size: 20px; // @presenter Spacing
|
|
1691
|
-
--mobile-menu-search-icon-size: 18px; // @presenter Spacing
|
|
1692
|
-
|
|
1693
|
-
/**
|
|
1694
|
-
* @tokens Mobile Menu
|
|
1695
|
-
* */
|
|
1696
|
-
--mobile-menu-padding-top: 13px; // @presenter Spacing
|
|
1697
|
-
--mobile-menu-items-margin-top: 5px; // @presenter Spacing
|
|
1698
|
-
--mobile-menu-burger-button-margin: 8px; // @presenter Spacing
|
|
1699
|
-
--mobile-menu-background: #ffffff; // @presenter Color
|
|
1700
|
-
--mobile-menu-profile-background: #ffffff; // @presenter Color
|
|
1701
|
-
--mobile-menu-profile-border-color: #e3e3e3; // @presenter Color
|
|
1702
|
-
--mobile-menu-group-padding-right: 16px; // @presenter Spacing
|
|
1703
|
-
--mobile-menu-horizontal-margin: 8px; // @presenter Spacing
|
|
1704
|
-
--mobile-menu-item-nested-offset: 8px; // @presenter Spacing
|
|
1705
|
-
--mobile-menu-item-radius: 6px; // @presenter Spacing
|
|
1706
|
-
--mobile-menu-item-text-color: #525252;// @presenter Color
|
|
1707
|
-
--mobile-menu-item-active-color: #FAFAFA; // @presenter Color
|
|
1708
|
-
--mobile-menu-item-active-text-color: #161616; // @presenter Color
|
|
1709
|
-
|
|
1710
|
-
/**
|
|
1711
|
-
* @tokens Mobile Menu control button
|
|
1712
|
-
* */
|
|
1713
|
-
--mobile-menu-control-button-padding-vertical: 0; // @presenter Spacing
|
|
1714
|
-
--mobile-menu-control-button-padding-horizontal: 4px; // @presenter Spacing
|
|
1715
|
-
--mobile-menu-control-button-margin-vertical: 0; // @presenter Spacing
|
|
1716
|
-
--mobile-menu-control-button-margin-horizontal: 8px; // @presenter Spacing
|
|
1717
|
-
--mobile-menu-control-button-font-size: var(--font-size-base); // @presenter FontSize
|
|
1718
|
-
--mobile-menu-control-button-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1719
|
-
--mobile-menu-control-button-color: var(--mobile-menu-item-text-color); // @presenter Color
|
|
1720
|
-
--mobile-menu-control-button-hover-color: var(--text-color); // @presenter Color
|
|
1721
|
-
|
|
1722
|
-
/**
|
|
1723
|
-
* @tokens Mobile Menu Login button
|
|
1724
|
-
* */
|
|
1725
|
-
--mobile-menu-login-button-background: #1c1c1c; // @presenter Color
|
|
1726
|
-
--mobile-menu-login-button-color: #ffffff; // @presenter Color
|
|
1727
|
-
|
|
1728
|
-
// @tokens End
|
|
1729
|
-
`;
|
|
1730
|
-
|
|
1731
|
-
const toc = css`
|
|
1732
|
-
/**
|
|
1733
|
-
* @tokens TOC
|
|
1734
|
-
* */
|
|
1735
|
-
|
|
1736
|
-
--toc-width: 240px;
|
|
1737
|
-
--toc-background-color: transparent;
|
|
1738
|
-
--toc-border-color: var(--border-color);
|
|
1739
|
-
|
|
1740
|
-
--toc-spacing-unit: 8px;
|
|
1741
|
-
--toc-offset-top: calc(var(--toc-spacing-unit) * 2);
|
|
1742
|
-
|
|
1743
|
-
/**
|
|
1744
|
-
* @tokens TOC item typography
|
|
1745
|
-
*/
|
|
1746
|
-
--toc-item-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1747
|
-
--toc-item-font-size: var(--font-size-base); // @presenter FontSize
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
* @tokens TOC item
|
|
1751
|
-
*/
|
|
1752
|
-
|
|
1753
|
-
--toc-item-text-color: var(--text-color); // @presenter Color
|
|
1754
|
-
--toc-item-active-text-color: var(--text-color); // @presenter Color
|
|
1755
|
-
--toc-item-background-color: transparent; // @presenter Color
|
|
1756
|
-
--toc-item-active-background-color: var(--border-color); // @presenter Color
|
|
1757
|
-
--toc-item-nested-offset: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1758
|
-
--toc-item-padding-vertical: var(--toc-spacing-unit); // @presenter Spacing
|
|
1759
|
-
--toc-item-padding-horizontal: calc(var(--toc-spacing-unit) * 2); // @presenter Spacing
|
|
1760
|
-
|
|
1761
|
-
/**
|
|
1762
|
-
* @tokens TOC header
|
|
1763
|
-
*/
|
|
1764
|
-
|
|
1765
|
-
--toc-heading-font-size: var(--font-size-base); // @presenter FontSize
|
|
1766
|
-
--toc-heading-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1767
|
-
--toc-heading-font-weight: bold; // @presenter FontWeight
|
|
1768
|
-
--toc-heading-text-color: var(--text-color); // @presenter Color
|
|
1769
711
|
|
|
1770
712
|
// @tokens End
|
|
1771
713
|
`;
|
|
@@ -1775,7 +717,7 @@ const loadProgressBar = css`
|
|
|
1775
717
|
* @tokens Load progress bar
|
|
1776
718
|
*/
|
|
1777
719
|
|
|
1778
|
-
--load-progress-bar-color: var(--color-
|
|
720
|
+
--load-progress-bar-color: var(--color-info); // @presenter Color
|
|
1779
721
|
--load-progress-bar-shadow: 0 0 10px var(--load-progress-bar-color),
|
|
1780
722
|
0 0 5px var(--load-progress-bar-color); // @presenter BoxShadow
|
|
1781
723
|
--load-progress-bar-height: 2px; // @presenter Height
|
|
@@ -1827,495 +769,144 @@ const inputs = css`
|
|
|
1827
769
|
/**
|
|
1828
770
|
* @tokens Inputs
|
|
1829
771
|
*/
|
|
1830
|
-
|
|
1831
|
-
--input-
|
|
1832
|
-
--input-
|
|
772
|
+
|
|
773
|
+
--input-text-color: var(--text-secondary); // @presenter Color
|
|
774
|
+
--input-background-color: var(--background-color); // @presenter Color
|
|
775
|
+
--input-border: 1px solid var(--border-primary); // @presenter Border
|
|
776
|
+
--input-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1833
777
|
--input-font-size: var(--font-size-base); // @presenter FontSize
|
|
1834
778
|
--input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1835
779
|
--input-line-height: 1.15em; // @presenter LineHeight
|
|
1836
780
|
--input-padding: 8px;
|
|
1837
781
|
|
|
1838
|
-
--input-hover-text-color: var(--text-
|
|
1839
|
-
--input-hover-border:
|
|
1840
|
-
--input-focus-border:
|
|
1841
|
-
--input-focus-text-color: var(--text-
|
|
1842
|
-
--input-placeholder-text-color: var(--text-color-inverse); // @presenter Color
|
|
1843
|
-
|
|
1844
|
-
--checkbox-backround-color: var(--background-color);
|
|
1845
|
-
--checkbox-checked-backround-color: var(--color-primary-500);
|
|
1846
|
-
// @tokens End
|
|
1847
|
-
`;
|
|
1848
|
-
|
|
1849
|
-
const markdown = css`
|
|
1850
|
-
/**
|
|
1851
|
-
* @tokens Markdown Container
|
|
1852
|
-
*/
|
|
1853
|
-
|
|
1854
|
-
--md-container-max-width: 910px;
|
|
1855
|
-
--md-container-padding-vertical: 25px; // @presenter Spacing
|
|
1856
|
-
--md-container-padding-horizontal: 0px; // @presenter Spacing
|
|
1857
|
-
|
|
1858
|
-
/**
|
|
1859
|
-
* @tokens Markdown Blockquote
|
|
1860
|
-
*/
|
|
1861
|
-
|
|
1862
|
-
--md-blockquote-margin-vertical: 1.5em; // @presenter Spacing
|
|
1863
|
-
--md-blockquote-margin-horizontal: 0; // @presenter Spacing
|
|
1864
|
-
--md-blockquote-padding-vertical: 0; // @presenter Spacing
|
|
1865
|
-
--md-blockquote-padding-horizontal: calc(var(--spacing-unit) * 4); // @presenter Spacing
|
|
1866
|
-
--md-blockquote-border-color: var(--border-color); // @presenter Color
|
|
1867
|
-
--md-blockquote-background-color: transparent; // @presenter Color
|
|
1868
|
-
--md-blockquote-border-left: 4px solid var(--md-blockquote-border-color); // @presenter Border
|
|
1869
|
-
--md-blockquote-text-color: var(--text-color); // @presenter Color
|
|
1870
|
-
--md-blockquote-box-shadow: none; // @presenter Shadow
|
|
1871
|
-
|
|
1872
|
-
/**
|
|
1873
|
-
* @tokens Markdown Paragraph
|
|
1874
|
-
*/
|
|
1875
|
-
|
|
1876
|
-
--md-paragraph-margin-vertical: 10px; // @presenter Spacing
|
|
1877
|
-
--md-paragraph-margin-horizontal: 0px; // @presenter Spacing
|
|
1878
|
-
|
|
1879
|
-
/**
|
|
1880
|
-
* @tokens Markdown Table
|
|
1881
|
-
*/
|
|
1882
|
-
|
|
1883
|
-
--md-table-font-size: 14px; // @presenter FontSize
|
|
1884
|
-
--md-table-margin-vertical: 20px; // @presenter Spacing
|
|
1885
|
-
--md-table-background-color: transparent; // @presenter Color
|
|
1886
|
-
|
|
1887
|
-
--md-table-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
1888
|
-
--md-table-border-width: 1px;
|
|
1889
|
-
--md-table-border-color: var(--border-color); // @presenter Color
|
|
1890
|
-
|
|
1891
|
-
--md-table-stripe-background-color: var(--md-table-background-color); // @presenter Color
|
|
1892
|
-
|
|
1893
|
-
--md-table-cell-text-color: var(--text-color); // @presenter Color
|
|
1894
|
-
--md-table-cell-padding: 12px; // @presenter Spacing
|
|
1895
|
-
|
|
1896
|
-
--md-table-head-background-color: var(--color-secondary-200); // @presenter Color
|
|
1897
|
-
--md-table-head-text-color: var(--text-color); // @presenter Color
|
|
1898
|
-
--md-table-head-font-weight: var(--font-weight-bold); // @presenter FontWeight
|
|
1899
|
-
|
|
1900
|
-
/**
|
|
1901
|
-
* @tokens Markdown Horizontal Rule
|
|
1902
|
-
*/
|
|
1903
|
-
|
|
1904
|
-
--md-hr-background-color: transparent; // @presenter Color
|
|
1905
|
-
--md-hr-border-color: var(--border-color); // @presenter Color
|
|
1906
|
-
--md-hr-height: unset;
|
|
1907
|
-
--md-hr-margin-vertical: 20px; // @presenter Spacing
|
|
1908
|
-
|
|
1909
|
-
/**
|
|
1910
|
-
* @tokens Markdown List
|
|
1911
|
-
*/
|
|
1912
|
-
|
|
1913
|
-
--md-list-left-padding: 2rem; // @presenter Spacing
|
|
1914
|
-
--md-list-margin: 1rem; // @presenter Spacing
|
|
1915
|
-
--md-list-item-margin: 0.25rem; // @presenter Spacing
|
|
1916
|
-
--md-list-item-style: inherit;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
/**
|
|
1920
|
-
* @tokens Markdown Checkbox List
|
|
1921
|
-
*/
|
|
1922
|
-
|
|
1923
|
-
--md-checkbox-list-item-style: none;
|
|
1924
|
-
|
|
1925
|
-
/**
|
|
1926
|
-
* @tokens Markdown Numbered List
|
|
1927
|
-
*/
|
|
1928
|
-
|
|
1929
|
-
--md-numbered-list-number-display: none;
|
|
1930
|
-
--md-numbered-list-item-style: var(--md-list-item-style);
|
|
1931
|
-
--md-numbered-list-number-text-color: var(--color-secondary-100); // @presenter Color
|
|
1932
|
-
--md-numbered-list-number-font-size: var(--font-size-base); // @presenter FontSize
|
|
1933
|
-
--md-numbered-list-number-font-family: var(--font-size-base); // @presenter FontFamily
|
|
1934
|
-
--md-numbered-list-number-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
1935
|
-
--md-numbered-list-number-background-color: var(--color-secondary-800); // @presenter Color
|
|
1936
|
-
--md-numbered-list-number-border-radius: 10px; // @presenter BorderRadius
|
|
1937
|
-
--md-numbered-list-number-margin-right: 5px; // @presenter Spacing
|
|
1938
|
-
--md-numbered-list-number-padding: 0 5px; // @presenter Spacing
|
|
1939
|
-
|
|
1940
|
-
// @tokens End
|
|
1941
|
-
|
|
1942
|
-
/**
|
|
1943
|
-
* @tokens Markdown Tabs
|
|
1944
|
-
*/
|
|
1945
|
-
|
|
1946
|
-
--md-tabs-tab-text-color: var(--color-emphasis-600); // @presenter Color
|
|
1947
|
-
--md-tabs-active-tab-border-color: var(--text-color); // @presenter Color
|
|
1948
|
-
--md-tabs-hover-tab-border-color: var(--text-color-secondary); // @presenter Color
|
|
1949
|
-
|
|
1950
|
-
// @tokens End
|
|
1951
|
-
`;
|
|
1952
|
-
|
|
1953
|
-
const search = css`
|
|
1954
|
-
/**
|
|
1955
|
-
* @tokens Search
|
|
1956
|
-
*/
|
|
1957
|
-
|
|
1958
|
-
--search-highlight-background-color: none; // @presenter Color
|
|
1959
|
-
--search-highlight-text-color: #1677FF; // @presenter Color
|
|
1960
|
-
|
|
1961
|
-
/**
|
|
1962
|
-
* @tokens Portal Search
|
|
1963
|
-
*/
|
|
1964
|
-
|
|
1965
|
-
--search-input-background-color: #fafafa; // @presenter Color
|
|
1966
|
-
--search-input-text-color: var(--text-color); // @presenter Color
|
|
1967
|
-
|
|
1968
|
-
--search-input-border: none;
|
|
1969
|
-
--search-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
1970
|
-
--search-input-font-size: 14px; // @presenter FontSize
|
|
1971
|
-
--search-input-font-family: var(--font-family-base); // @presenter FontFamily
|
|
1972
|
-
--search-input-line-height: 1.15em; // @presenter LineHeight
|
|
1973
|
-
|
|
1974
|
-
--search-input-hover-background-color: #fafafa; // @presenter Color
|
|
1975
|
-
--search-input-hover-border: none; // @presenter Color
|
|
1976
|
-
--search-input-placeholder-color: #a8a8a8;
|
|
1977
|
-
--search-input-icons-color: #a8a8a8;
|
|
1978
|
-
|
|
1979
|
-
--search-popover-background-color: var(--background-color); // @presenter Color
|
|
1980
|
-
--search-popover-border-radius: var(--search-input-border-radius); // @presenter BorderRadius
|
|
1981
|
-
--search-popover-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
|
|
1982
|
-
0 8px 10px -5px rgba(0, 0, 0, 0.4); // @presenter BoxShadow
|
|
1983
|
-
--search-popover-border: none;
|
|
1984
|
-
|
|
1985
|
-
--search-item-padding: 8px 24px;
|
|
1986
|
-
--search-item-text-color: #525252; // @presenter Color
|
|
1987
|
-
--search-item-title-text-color: #161616; // @presenter Color
|
|
1988
|
-
--search-item-path-text-color: #8d8d8d; // @presenter Color
|
|
1989
|
-
--search-item-background-color: transparent; // @presenter Color
|
|
1990
|
-
--search-item-active-text-color: var(--text-color); // @presenter Color
|
|
1991
|
-
--search-item-active-title-text-color: var(--text-color); // @presenter Color
|
|
1992
|
-
--search-item-active-background-color: #fafafa; // @presenter Color
|
|
1993
|
-
|
|
1994
|
-
--search-trigger-background-color: rgba(255, 255, 255, 0.1); // @presenter Color
|
|
1995
|
-
--search-trigger-hover-background-color: var(--navbar-item-hover-background-color); // @presenter Color
|
|
1996
|
-
--search-trigger-border: none; // @presenter Border
|
|
1997
|
-
--search-trigger-border-radius: 6px; // @presenter BorderRadius
|
|
1998
|
-
--search-trigger-text-color: var(--navbar-text-color); // @presenter Color
|
|
1999
|
-
--search-trigger-shortcut-text-color: var(--navbar-text-color); // @presenter Color
|
|
2000
|
-
--search-trigger-font-size: var(--navbar-item-font-size); // @presenter FontSize
|
|
2001
|
-
|
|
2002
|
-
/**
|
|
2003
|
-
* @tokens Sidebar Search
|
|
2004
|
-
*/
|
|
2005
|
-
|
|
2006
|
-
--sidebar-search-button-background-color: transparent; // @presenter Color
|
|
2007
|
-
--sidebar-search-button-text-color: var(--text-color); // @presenter Color
|
|
2008
|
-
--sidebar-search-button-border: var(--border-color);
|
|
2009
|
-
--sidebar-search-button-border-radius: none; // @presenter BorderRadius
|
|
2010
|
-
--sidebar-search-button-font-size: var(--font-size-small); // @presenter FontSize
|
|
2011
|
-
--sidebar-search-button-font-family: var(--font-family-base); // @presenter FontFamily
|
|
2012
|
-
--sidebar-search-button-line-height: 1.15em; // @presenter LineHeight
|
|
2013
|
-
--sidebar-search-button-hover-background-color: transparent; // @presenter Color
|
|
2014
|
-
--sidebar-search-button-hover-border: var(--border-color); // @presenter Color
|
|
2015
|
-
--sidebar-search-button-active-background-color: transparent; // @presenter Color
|
|
2016
|
-
--sidebar-search-button-active-border: var(--border-color); // @presenter Color
|
|
2017
|
-
|
|
2018
|
-
/**
|
|
2019
|
-
* @tokens Search results modal
|
|
2020
|
-
* @presenter Color
|
|
2021
|
-
*/
|
|
2022
|
-
|
|
2023
|
-
--search-modal-background: var(--background-color);
|
|
2024
|
-
--search-modal-text-color: var(--text-color);
|
|
2025
|
-
--search-modal-border: none;
|
|
2026
|
-
--search-modal-box-shadow: none;
|
|
782
|
+
--input-hover-text-color: var(--text-secondary); // @presenter Color
|
|
783
|
+
--input-hover-border: 1px solid var(--border-primary); // @presenter Border
|
|
784
|
+
--input-focus-border: 1px solid var(--border-primary); // @presenter Border
|
|
785
|
+
--input-focus-text-color: var(--text-secondary); // @presenter Color
|
|
2027
786
|
|
|
2028
|
-
--
|
|
2029
|
-
--
|
|
2030
|
-
--search-modal-clear-button-background-color: var(--color-secondary-300);
|
|
2031
|
-
--search-modal-clear-button-hover-background-color: var(--color-secondary-500);
|
|
787
|
+
--checkbox-backround-color: var(--bg-base);
|
|
788
|
+
--checkbox-checked-backround-color: var(--color-primary);
|
|
2032
789
|
|
|
2033
790
|
// @tokens End
|
|
2034
791
|
`;
|
|
2035
792
|
|
|
2036
793
|
const docsDropdown = css`
|
|
2037
|
-
--docs-dropdown-font-size:
|
|
2038
|
-
--docs-dropdown-text-color: var(--text-
|
|
794
|
+
--docs-dropdown-font-size: var(--font-size-base);
|
|
795
|
+
--docs-dropdown-text-color: var(--text-secondary);
|
|
2039
796
|
|
|
2040
|
-
--docs-dropdown-padding-vertical:
|
|
797
|
+
--docs-dropdown-padding-vertical: 6px;
|
|
2041
798
|
--docs-dropdown-padding-left: 10px;
|
|
2042
799
|
--docs-dropdown-padding-right: 26px;
|
|
2043
|
-
--docs-dropdown-padding: var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-right)
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
--docs-dropdown-border: none;
|
|
2047
|
-
`;
|
|
2048
|
-
|
|
2049
|
-
const dropdown = css`
|
|
2050
|
-
--dropdown-font-size: 16px; // @presenter FontSize
|
|
2051
|
-
--dropdown-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
2052
|
-
--dropdown-line-height: var(--line-height-base); // @presenter LineHeight
|
|
2053
|
-
--dropdown-text-color: var(--text-color); // @presenter Color
|
|
2054
|
-
--dropdown-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
2055
|
-
|
|
2056
|
-
--dropdown-list-min-width: 100px;
|
|
2057
|
-
--dropdown-list-max-width: 300px;
|
|
2058
|
-
--dropdown-list-padding: 4px; // @presenter Spacing
|
|
2059
|
-
--dropdown-list-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
2060
|
-
--dropdown-list-background-color: var(--background-color); // @presenter Color
|
|
2061
|
-
--dropdown-list-box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12); // @presenter Shadow
|
|
2062
|
-
|
|
2063
|
-
--dropdown-list-item-horizontal-padding: 16px; // @presenter Spacing
|
|
2064
|
-
--dropdown-list-item-vertical-padding: 8px; // @presenter Spacing
|
|
2065
|
-
--dropdown-list-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
2066
|
-
--dropdown-list-item-active-background-color: #0000000a; // @presenter Color
|
|
2067
|
-
--dropdown-list-item-separator-color: var(--border-color); // @presenter Color
|
|
2068
|
-
|
|
2069
|
-
/**
|
|
2070
|
-
* @tokens User profile menu dropdown
|
|
2071
|
-
* */
|
|
2072
|
-
|
|
2073
|
-
--profile-dropdown-font-size: var(--dropdown-font-size); // @presenter FontSize
|
|
2074
|
-
--profile-dropdown-font-weight: var(--dropdown-font-weight); // @presenter FontWeight
|
|
2075
|
-
--profile-dropdown-line-height: var(--dropdown-line-height); // @presenter LineHeight
|
|
2076
|
-
--profile-dropdown-text-color: var(--dropdown-text-color); // @presenter Color
|
|
2077
|
-
--profile-dropdown-border-radius: var(--dropdown-border-radius); // @presenter BorderRadius
|
|
2078
|
-
|
|
2079
|
-
--profile-dropdown-list-min-width: var(--dropdown-list-min-width);
|
|
2080
|
-
--profile-dropdown-list-max-width: var(--dropdown-list-max-width);
|
|
2081
|
-
--profile-dropdown-list-padding: var(--dropdown-list-padding); // @presenter Spacing
|
|
2082
|
-
--profile-dropdown-list-border-radius: var(--dropdown-list-border-radius); // @presenter BorderRadius
|
|
2083
|
-
--profile-dropdown-list-background-color: var(--dropdown-list-background-color); // @presenter Color
|
|
2084
|
-
--profile-dropdown-list-box-shadow: var(--dropdown-list-box-shadow); // @presenter Shadow
|
|
2085
|
-
|
|
2086
|
-
--profile-dropdown-list-item-horizontal-padding: var(--dropdown-list-item-horizontal-padding); // @presenter Spacing
|
|
2087
|
-
--profile-dropdown-list-item-vertical-padding: var(--dropdown-list-item-vertical-padding); // @presenter Spacing
|
|
2088
|
-
--profile-dropdown-list-item-border-radius: var(--dropdown-list-item-border-radius); // @presenter BorderRadius
|
|
2089
|
-
--profile-dropdown-list-item-active-background-color: var(--dropdown-list-item-active-background-color); // @presenter Color
|
|
2090
|
-
--profile-dropdown-list-item-separator-color: var(--dropdown-list-item-separator-color); // @presenter Color
|
|
2091
|
-
`
|
|
2092
|
-
|
|
2093
|
-
const select = css`
|
|
2094
|
-
--select-font-size: 16px; // @presenter FontSize
|
|
2095
|
-
--select-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
2096
|
-
--select-line-height: var(--line-height-base); // @presenter LineHeight
|
|
2097
|
-
--select-text-color: var(--text-color); // @presenter Color
|
|
2098
|
-
--select-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
2099
|
-
|
|
2100
|
-
--select-input-padding-horizontal: 16px; // @presenter Spacing
|
|
2101
|
-
--select-input-padding-vertical: 6px; // @presenter Spacing
|
|
2102
|
-
--select-input-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
2103
|
-
|
|
2104
|
-
--select-list-min-width: 100px;
|
|
2105
|
-
--select-list-max-width: 300px;
|
|
2106
|
-
--select-list-padding: 4px; // @presenter Spacing
|
|
2107
|
-
--select-list-border-radius: var(--border-radius-lg); // @presenter BorderRadius
|
|
2108
|
-
--select-list-background-color: var(--background-color); // @presenter Color
|
|
2109
|
-
--select-list-box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
|
|
2110
|
-
|
|
2111
|
-
--select-list-item-horizontal-padding: 16px; // @presenter Spacing
|
|
2112
|
-
--select-list-item-vertical-padding: 8px; // @presenter Spacing
|
|
2113
|
-
--select-list-item-border-radius: var(--border-radius); // @presenter BorderRadius
|
|
2114
|
-
--select-list-item-active-background-color: #0000000a; // @presenter Color
|
|
2115
|
-
|
|
2116
|
-
/**
|
|
2117
|
-
* @tokens Version picker
|
|
2118
|
-
* */
|
|
2119
|
-
|
|
2120
|
-
--version-picker-font-size: var(--font-size-base); // @presenter FontSize
|
|
2121
|
-
--version-picker-font-weight: var(--select-font-weight); // @presenter FontWeight
|
|
2122
|
-
--version-picker-line-height: var(--select-line-height); // @presenter LineHeight
|
|
2123
|
-
--version-picker-text-color: var(--select-text-color); // @presenter Color
|
|
2124
|
-
--version-picker-border-radius: var(--select-border-radius); // @presenter BorderRadius
|
|
2125
|
-
--version-picker-margin-vertical: 10px; // @presenter Spacing
|
|
2126
|
-
--version-picker-margin-horizontal: 15px; // @presenter Spacing
|
|
2127
|
-
|
|
2128
|
-
--version-picker-input-padding-horizontal: var(--select-input-padding-horizontal); // @presenter Spacing
|
|
2129
|
-
--version-picker-input-padding-vertical: var(--select-input-padding-vertical); // @presenter Spacing
|
|
2130
|
-
--version-picker-input-border: 1px solid var(--border-color); // @presenter Border
|
|
2131
|
-
--version-picker-input-border-radius: var(--select-input-border-radius); // @presenter BorderRadius
|
|
2132
|
-
|
|
2133
|
-
--version-picker-list-min-width: var(--select-list-min-width);
|
|
2134
|
-
--version-picker-list-max-width: var(--select-list-max-width);
|
|
2135
|
-
--version-picker-list-padding: var(--select-list-padding); // @presenter Spacing
|
|
2136
|
-
--version-picker-list-border-radius: var(--select-list-border-radius); // @presenter BorderRadius
|
|
2137
|
-
--version-picker-list-background-color: var(--select-list-background-color); // @presenter Color
|
|
2138
|
-
--version-picker-list-box-shadow: var(--select-list-box-shadow); // @presenter Shadow
|
|
2139
|
-
|
|
2140
|
-
--version-picker-list-item-horizontal-padding: var(--select-list-item-horizontal-padding); // @presenter Spacing
|
|
2141
|
-
--version-picker-list-item-vertical-padding: var(--select-list-item-vertical-padding); // @presenter Spacing
|
|
2142
|
-
--version-picker-list-item-border-radius: var(--select-list-item-border-radius); // @presenter BorderRadius
|
|
2143
|
-
--version-picker-list-item-active-background-color: var(--select-list-item-active-background-color); // @presenter Color
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
/**
|
|
2147
|
-
* @tokens Language picker
|
|
2148
|
-
* */
|
|
2149
|
-
|
|
2150
|
-
--language-picker-font-size: var(--select-font-size); // @presenter FontSize
|
|
2151
|
-
--language-picker-font-weight: var(--select-font-weight); // @presenter FontWeight
|
|
2152
|
-
--language-picker-line-height: var(--select-line-height); // @presenter LineHeight
|
|
2153
|
-
--language-picker-text-color: var(--select-text-color); // @presenter Color
|
|
2154
|
-
--language-picker-border-radius: var(--select-border-radius); // @presenter BorderRadius
|
|
2155
|
-
|
|
2156
|
-
--language-picker-input-padding-horizontal: var(--select-input-padding-horizontal); // @presenter Spacing
|
|
2157
|
-
--language-picker-input-padding-vertical: var(--select-input-padding-vertical); // @presenter Spacing
|
|
2158
|
-
--language-picker-input-border-radius: var(--select-input-border-radius); // @presenter BorderRadius
|
|
2159
|
-
|
|
2160
|
-
--language-picker-list-min-width: var(--select-list-min-width);
|
|
2161
|
-
--language-picker-list-max-width: var(--select-list-max-width);
|
|
2162
|
-
--language-picker-list-padding: var(--select-list-padding); // @presenter Spacing
|
|
2163
|
-
--language-picker-list-border-radius: var(--select-list-border-radius); // @presenter BorderRadius
|
|
2164
|
-
--language-picker-list-background-color: var(--select-list-background-color); // @presenter Color
|
|
2165
|
-
--language-picker-list-box-shadow: var(--select-list-box-shadow); // @presenter Shadow
|
|
2166
|
-
|
|
2167
|
-
--language-picker-list-item-horizontal-padding: var(--select-list-item-horizontal-padding); // @presenter Spacing
|
|
2168
|
-
--language-picker-list-item-vertical-padding: var(--select-list-item-vertical-padding); // @presenter Spacing
|
|
2169
|
-
--language-picker-list-item-border-radius: var(--select-list-item-border-radius); // @presenter BorderRadius
|
|
2170
|
-
--language-picker-list-item-active-background-color: var(--select-list-item-active-background-color); // @presenter Color
|
|
2171
|
-
|
|
2172
|
-
/**
|
|
2173
|
-
* @tokens Product picker
|
|
2174
|
-
* */
|
|
2175
|
-
|
|
2176
|
-
--product-picker-font-size: var(--select-font-size); // @presenter FontSize
|
|
2177
|
-
--product-picker-font-weight: var(--select-font-weight); // @presenter FontWeight
|
|
2178
|
-
--product-picker-line-height: var(--select-line-height); // @presenter LineHeight
|
|
2179
|
-
--product-picker-text-color: var(--select-text-color); // @presenter Color
|
|
2180
|
-
--product-picker-border-radius: var(--select-border-radius); // @presenter BorderRadius
|
|
2181
|
-
|
|
2182
|
-
--product-picker-input-padding-horizontal: var(--select-input-padding-horizontal); // @presenter Spacing
|
|
2183
|
-
--product-picker-input-padding-vertical: var(--select-input-padding-vertical); // @presenter Spacing
|
|
2184
|
-
--product-picker-input-border-radius: var(--select-input-border-radius); // @presenter BorderRadius
|
|
2185
|
-
|
|
2186
|
-
--product-picker-list-min-width: var(--select-list-min-width);
|
|
2187
|
-
--product-picker-list-max-width: var(--select-list-max-width);
|
|
2188
|
-
--product-picker-list-padding: var(--select-list-padding); // @presenter Spacing
|
|
2189
|
-
--product-picker-list-border-radius: var(--select-list-border-radius); // @presenter BorderRadius
|
|
2190
|
-
--product-picker-list-background-color: var(--select-list-background-color); // @presenter Color
|
|
2191
|
-
--product-picker-list-box-shadow: var(--select-list-box-shadow); // @presenter Shadow
|
|
2192
|
-
|
|
2193
|
-
--product-picker-list-item-horizontal-padding: var(--select-list-item-horizontal-padding); // @presenter Spacing
|
|
2194
|
-
--product-picker-list-item-vertical-padding: var(--select-list-item-vertical-padding); // @presenter Spacing
|
|
2195
|
-
--product-picker-list-item-border-radius: var(--select-list-item-border-radius); // @presenter BorderRadius
|
|
2196
|
-
--product-picker-list-item-active-background-color: var(--select-list-item-active-background-color); // @presenter Color
|
|
2197
|
-
`;
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
const lastUpdated = css`
|
|
2201
|
-
--last-updated-text-color: var(--text-color);
|
|
2202
|
-
--last-updated-font-size: var(--font-size-small);
|
|
2203
|
-
--last-updated-font-family: var(--font-family-base);
|
|
2204
|
-
--last-updated-line-height: var(--line-height-base);
|
|
800
|
+
--docs-dropdown-padding: var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-right) var(--docs-dropdown-padding-vertical) var(--docs-dropdown-padding-left);
|
|
801
|
+
--docs-dropdown-border: 1px solid var(--border-primary);
|
|
2205
802
|
`;
|
|
2206
803
|
|
|
2207
804
|
const tile = css`
|
|
2208
|
-
--wide-tile-background-color: var(--
|
|
2209
|
-
--thin-tile-background-color: var(--
|
|
805
|
+
--wide-tile-background-color: var(--bg-raised);
|
|
806
|
+
--thin-tile-background-color: var(--bg-raised);
|
|
2210
807
|
`;
|
|
2211
808
|
|
|
2212
809
|
const pages = css`
|
|
2213
810
|
/**
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
811
|
+
* @tokens 404 Page
|
|
812
|
+
* @presenter Color
|
|
813
|
+
*/
|
|
2217
814
|
|
|
2218
815
|
--page-404-font-family: var(--font-family-base); // @presenter FontFamily
|
|
2219
816
|
|
|
2220
|
-
--page-404-header-text-color:
|
|
2221
|
-
--page-404-header-font-size:
|
|
2222
|
-
--page-404-header-font-weight:
|
|
2223
|
-
--page-404-header-line-height:
|
|
2224
|
-
--page-404-header-margin:
|
|
817
|
+
--page-404-header-text-color: var(--h1-text-color);
|
|
818
|
+
--page-404-header-font-size: var(--h1-font-size); // @presenter FontSize
|
|
819
|
+
--page-404-header-font-weight: var(--h1-font-weight); // @presenter FontWeight
|
|
820
|
+
--page-404-header-line-height: var(--h1-line-height); // @presenter LineHeight
|
|
821
|
+
--page-404-header-margin: 0px; // @presenter Spacing
|
|
2225
822
|
|
|
2226
|
-
--page-404-description-text-color:
|
|
2227
|
-
--page-404-description-font-size:
|
|
2228
|
-
--page-404-description-font-weight:
|
|
2229
|
-
--page-404-description-line-height: 1
|
|
2230
|
-
--page-404-description-margin:
|
|
823
|
+
--page-404-description-text-color: var(--text-secondary);
|
|
824
|
+
--page-404-description-font-size: 1.5em; // @presenter FontSize
|
|
825
|
+
--page-404-description-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
826
|
+
--page-404-description-line-height: 1 // @presenter LineHeight
|
|
827
|
+
--page-404-description-margin: 0px; // @presenter Spacing
|
|
2231
828
|
|
|
2232
829
|
--page-404-button-margin: 4em; // @presenter Spacing
|
|
2233
830
|
|
|
2234
831
|
// @tokens End
|
|
2235
832
|
|
|
2236
833
|
/**
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
834
|
+
* @tokens 403 Page
|
|
835
|
+
* @presenter Color
|
|
836
|
+
*/
|
|
2240
837
|
|
|
2241
|
-
|
|
838
|
+
--page-403-font-family: var(--font-family-base); // @presenter FontFamily
|
|
2242
839
|
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
840
|
+
--page-403-header-text-color: var(--h1-text-color);
|
|
841
|
+
--page-403-header-font-size: var(--h1-font-size); // @presenter FontSize
|
|
842
|
+
--page-403-header-font-weight: var(--h1-font-weight); // @presenter FontWeight
|
|
843
|
+
--page-403-header-line-height: var(--h1-line-height); // @presenter LineHeight
|
|
844
|
+
--page-403-header-margin: 0; // @presenter Spacing
|
|
2248
845
|
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
846
|
+
--page-403-description-text-color: var(--text-secondary);
|
|
847
|
+
--page-403-description-font-size: 1em; // @presenter FontSize
|
|
848
|
+
--page-403-description-font-weight: var(--font-weight-regular); // @presenter FontWeight
|
|
849
|
+
--page-403-description-line-height: 1; // @presenter LineHeight
|
|
850
|
+
--page-403-description-margin: 0; // @presenter Spacing
|
|
2254
851
|
|
|
2255
|
-
|
|
852
|
+
--page-403-button-margin: 4em; // @presenter Spacing
|
|
2256
853
|
|
|
2257
854
|
// @tokens End
|
|
2258
855
|
`
|
|
2259
856
|
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
--profile-menu-item-active-text-decoration: none;
|
|
2314
|
-
|
|
2315
|
-
--profile-menu-item-separator-line-color: var(--border-color); // @presenter Color
|
|
2316
|
-
|
|
2317
|
-
// @tokens End
|
|
2318
|
-
|
|
857
|
+
const error = css`
|
|
858
|
+
--error-bubble-padding: var(--spacing-md);
|
|
859
|
+
--error-bubble-bottom: var(--spacing-md);
|
|
860
|
+
--error-bubble-right: var(--spacing-md);
|
|
861
|
+
--error-bubble-max-width: 20%;
|
|
862
|
+
--error-bubble-mobile-max-width: 50%;
|
|
863
|
+
--error-bubble-text-overflow: ellipsis;
|
|
864
|
+
--error-bubble-gap: var(--spacing-base);
|
|
865
|
+
--error-bubble-font-family: var(--font-family-base);
|
|
866
|
+
--error-bubble-z-index: var(--z-index-popover);
|
|
867
|
+
|
|
868
|
+
--error-card-border-radius: calc(var(--spacing-xxs) * 1.5);
|
|
869
|
+
--error-card-background: var(--bg-raised);
|
|
870
|
+
--error-card-padding: var(--spacing-xs) var(--spacing-base);
|
|
871
|
+
--error-card-text-color: var(--text-primary);
|
|
872
|
+
--error-card-font-size: var(--font-size-base);
|
|
873
|
+
--error-card-font-style: normal;
|
|
874
|
+
--error-card-font-weight: var(--font-weight-regular);
|
|
875
|
+
--error-card-line-height: var(--line-height-base);
|
|
876
|
+
--error-card-box-shadow: var(--bg-raised-shadow);
|
|
877
|
+
--error-card-icon-margin: 0 var(--spacing-xs) 0 0;
|
|
878
|
+
|
|
879
|
+
--detailed-error-overlay-background: #4f4f4f;
|
|
880
|
+
--detailed-error-overlay-opacity: 0.9;
|
|
881
|
+
--detailed-error-overlay-z-index: var(--z-index-raised);
|
|
882
|
+
|
|
883
|
+
--detailed-error-modal-width: 70%;
|
|
884
|
+
--detailed-error-modal-height: calc(100vh - 100px - var(--navbar-height));
|
|
885
|
+
--detailed-error-modal-top: calc(50px + var(--navbar-height));
|
|
886
|
+
--detailed-error-modal-left: 15%;
|
|
887
|
+
--detailed-error-modal-border-radius: var(--border-radius-md);
|
|
888
|
+
--detailed-error-modal-background: var(--bg-base);
|
|
889
|
+
--detailed-error-modal-color: var(--text-primary);
|
|
890
|
+
--detailed-error-modal-box-shadow: var(--bg-overlay-shadow);
|
|
891
|
+
--detailed-error-modal-z-index: var(--z-index-popover);
|
|
892
|
+
--detailed-error-modal-font-family: var(--font-family-base);
|
|
893
|
+
--detailed-error-modal-padding: var(--spacing-md);
|
|
894
|
+
--detailed-error-modal-wapper-text-align: right;
|
|
895
|
+
|
|
896
|
+
--detailed-error-content-margin-top: var(--spacing-md);
|
|
897
|
+
--detailed-error-content-height: 100%;
|
|
898
|
+
|
|
899
|
+
--detailed-error-close-button-color: var(--text-description);
|
|
900
|
+
--detailed-error-close-button-text-transform: uppercase;
|
|
901
|
+
|
|
902
|
+
--detailed-error-message-margin: var(--spacing-base) auto var(--spacing-lg);
|
|
903
|
+
--detailed-error-message-padding: var(--spacing-base);
|
|
904
|
+
--detailed-error-message-border-radius: var(--border-radius);
|
|
905
|
+
--detailed-error-message-color: var(--code-block-text-color);
|
|
906
|
+
--detailed-error-message-background: var(--code-block-background-color);
|
|
907
|
+
--detailed-error-message-width: 100%;
|
|
908
|
+
--detailed-error-message-font-size: var(--font-size-base);
|
|
909
|
+
--detailed-error-message-font-family: var(--code-block-controls-font-family);
|
|
2319
910
|
`;
|
|
2320
911
|
|
|
2321
912
|
const modal = css`
|
|
@@ -2323,9 +914,9 @@ const modal = css`
|
|
|
2323
914
|
overflow: hidden;
|
|
2324
915
|
}
|
|
2325
916
|
|
|
2326
|
-
--modal-box-shadow:
|
|
2327
|
-
--modal-overlay-background-color:
|
|
2328
|
-
--modal-background-color: var(--
|
|
917
|
+
--modal-box-shadow: var(--bg-overlay-shadow);
|
|
918
|
+
--modal-overlay-background-color: var(--bg-modal-overlay);
|
|
919
|
+
--modal-background-color: var(--bg-base);
|
|
2329
920
|
`;
|
|
2330
921
|
|
|
2331
922
|
const zIndexDepth = css`
|
|
@@ -2337,54 +928,61 @@ const zIndexDepth = css`
|
|
|
2337
928
|
|
|
2338
929
|
export const styles = css`
|
|
2339
930
|
:root {
|
|
2340
|
-
${baseColors}
|
|
2341
|
-
${httpColors}
|
|
2342
|
-
${responsePanelColors}
|
|
2343
|
-
${typography}
|
|
2344
|
-
${headingsTypography}
|
|
2345
|
-
${common}
|
|
2346
931
|
${admonition}
|
|
2347
|
-
${
|
|
2348
|
-
${
|
|
2349
|
-
${navbar}
|
|
2350
|
-
${mobileMenu}
|
|
2351
|
-
${footer}
|
|
2352
|
-
${logo}
|
|
932
|
+
${apiReferenceDocs}
|
|
933
|
+
${apiReferencePanels}
|
|
2353
934
|
${badges}
|
|
935
|
+
${borders}
|
|
2354
936
|
${breadcrumbs}
|
|
2355
|
-
${
|
|
2356
|
-
${
|
|
2357
|
-
${inputs}
|
|
2358
|
-
${tooltip}
|
|
937
|
+
${button}
|
|
938
|
+
${catalog}
|
|
2359
939
|
${code}
|
|
940
|
+
${docsDropdown}
|
|
941
|
+
${dropdown}
|
|
942
|
+
${error}
|
|
943
|
+
${filter}
|
|
944
|
+
${footer}
|
|
945
|
+
${headingsTypography}
|
|
946
|
+
${inputs}
|
|
947
|
+
${languagePicker}
|
|
948
|
+
${lastUpdated}
|
|
2360
949
|
${links}
|
|
950
|
+
${loadProgressBar}
|
|
951
|
+
${logo}
|
|
2361
952
|
${markdown}
|
|
953
|
+
${mermaid}
|
|
954
|
+
${menu}
|
|
955
|
+
${mobileMenu}
|
|
956
|
+
${modal}
|
|
957
|
+
${navbar}
|
|
958
|
+
${pages}
|
|
959
|
+
${product}
|
|
960
|
+
${productPicker}
|
|
961
|
+
${responsePanelColors}
|
|
2362
962
|
${search}
|
|
2363
|
-
${dropdown}
|
|
2364
|
-
${docsDropdown}
|
|
2365
963
|
${select}
|
|
2366
|
-
${
|
|
2367
|
-
${
|
|
2368
|
-
${
|
|
964
|
+
${sidebar}
|
|
965
|
+
${sizeAndSpace}
|
|
966
|
+
${tag}
|
|
967
|
+
${themeColors}
|
|
2369
968
|
${tile}
|
|
2370
|
-
${
|
|
2371
|
-
${
|
|
2372
|
-
${
|
|
969
|
+
${toc}
|
|
970
|
+
${tooltip}
|
|
971
|
+
${typography}
|
|
2373
972
|
${userProfile}
|
|
973
|
+
${userProfileDropdown}
|
|
974
|
+
${versionPicker}
|
|
2374
975
|
${zIndexDepth}
|
|
2375
976
|
|
|
2376
|
-
--api-onboarding-table-text-color: #4e5356;
|
|
2377
977
|
--api-catalog-card-min-width: 250px;
|
|
2378
978
|
|
|
2379
|
-
background-color: var(--
|
|
2380
|
-
color: var(--text-
|
|
979
|
+
background-color: var(--bg-base);
|
|
980
|
+
color: var(--text-base);
|
|
2381
981
|
font-family: var(--font-family-base);
|
|
2382
982
|
}
|
|
2383
983
|
|
|
2384
984
|
:root.dark {
|
|
2385
985
|
${darkMode};
|
|
2386
|
-
|
|
2387
|
-
--api-onboarding-table-text-color: #ffffff;
|
|
2388
986
|
}
|
|
2389
987
|
|
|
2390
988
|
:root.notransition * {
|