@gravity-ui/blog-constructor 1.0.0-aplha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +231 -0
- package/LICENSE +21 -0
- package/README.md +14 -0
- package/build/cjs/blocks/Author/Author.css +31 -0
- package/build/cjs/blocks/Author/Author.d.ts +3 -0
- package/build/cjs/blocks/Author/Author.js +60 -0
- package/build/cjs/blocks/Banner/Banner.css +58 -0
- package/build/cjs/blocks/Banner/Banner.d.ts +3 -0
- package/build/cjs/blocks/Banner/Banner.js +51 -0
- package/build/cjs/blocks/CTA/CTA.css +56 -0
- package/build/cjs/blocks/CTA/CTA.d.ts +3 -0
- package/build/cjs/blocks/CTA/CTA.js +44 -0
- package/build/cjs/blocks/ColoredText/ColoredText.css +28 -0
- package/build/cjs/blocks/ColoredText/ColoredText.d.ts +3 -0
- package/build/cjs/blocks/ColoredText/ColoredText.js +37 -0
- package/build/cjs/blocks/Feed/Feed.d.ts +3 -0
- package/build/cjs/blocks/Feed/Feed.js +183 -0
- package/build/cjs/blocks/Feed/reducer.d.ts +65 -0
- package/build/cjs/blocks/Feed/reducer.js +40 -0
- package/build/cjs/blocks/Header/Header.d.ts +3 -0
- package/build/cjs/blocks/Header/Header.js +63 -0
- package/build/cjs/blocks/Layout/Layout.css +22 -0
- package/build/cjs/blocks/Layout/Layout.d.ts +3 -0
- package/build/cjs/blocks/Layout/Layout.js +78 -0
- package/build/cjs/blocks/Media/Media.css +41 -0
- package/build/cjs/blocks/Media/Media.d.ts +3 -0
- package/build/cjs/blocks/Media/Media.js +38 -0
- package/build/cjs/blocks/Meta/Meta.css +7 -0
- package/build/cjs/blocks/Meta/Meta.d.ts +3 -0
- package/build/cjs/blocks/Meta/Meta.js +66 -0
- package/build/cjs/blocks/Suggest/Suggest.d.ts +12 -0
- package/build/cjs/blocks/Suggest/Suggest.js +61 -0
- package/build/cjs/blocks/YFM/YFM.d.ts +3 -0
- package/build/cjs/blocks/YFM/YFM.js +24 -0
- package/build/cjs/blocks/constants.d.ts +8 -0
- package/build/cjs/blocks/constants.js +8 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.d.ts +12 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.js +13 -0
- package/build/cjs/components/FeedHeader/FeedHeader.css +54 -0
- package/build/cjs/components/FeedHeader/FeedHeader.d.ts +8 -0
- package/build/cjs/components/FeedHeader/FeedHeader.js +24 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.css +107 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.d.ts +16 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.js +106 -0
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.d.ts +11 -0
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.js +22 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +8 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +13 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +11 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +47 -0
- package/build/cjs/components/MetaWrapper/MetaWrapper.d.ts +10 -0
- package/build/cjs/components/MetaWrapper/MetaWrapper.js +18 -0
- package/build/cjs/components/Paginator/Paginator.css +54 -0
- package/build/cjs/components/Paginator/Paginator.d.ts +2 -0
- package/build/cjs/components/Paginator/Paginator.js +118 -0
- package/build/cjs/components/Paginator/components/NavigationButton.d.ts +6 -0
- package/build/cjs/components/Paginator/components/NavigationButton.js +13 -0
- package/build/cjs/components/Paginator/components/PaginatorItem.d.ts +2 -0
- package/build/cjs/components/Paginator/components/PaginatorItem.js +15 -0
- package/build/cjs/components/Paginator/types.d.ts +29 -0
- package/build/cjs/components/Paginator/types.js +8 -0
- package/build/cjs/components/Paginator/utils.d.ts +3 -0
- package/build/cjs/components/Paginator/utils.js +32 -0
- package/build/cjs/components/PostCard/PostCard.css +85 -0
- package/build/cjs/components/PostCard/PostCard.d.ts +12 -0
- package/build/cjs/components/PostCard/PostCard.js +60 -0
- package/build/cjs/components/PostInfo/PostInfo.css +88 -0
- package/build/cjs/components/PostInfo/PostInfo.d.ts +28 -0
- package/build/cjs/components/PostInfo/PostInfo.js +55 -0
- package/build/cjs/components/PostInfo/SuggestPostInfo.d.ts +27 -0
- package/build/cjs/components/PostInfo/SuggestPostInfo.js +41 -0
- package/build/cjs/components/PostInfo/components/Date.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/Date.js +36 -0
- package/build/cjs/components/PostInfo/components/ReadingTime.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/ReadingTime.js +18 -0
- package/build/cjs/components/PostInfo/components/Save.d.ts +25 -0
- package/build/cjs/components/PostInfo/components/Save.js +73 -0
- package/build/cjs/components/PostInfo/components/Sharing.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/Sharing.js +54 -0
- package/build/cjs/components/Posts/Posts.css +28 -0
- package/build/cjs/components/Posts/Posts.d.ts +19 -0
- package/build/cjs/components/Posts/Posts.js +32 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.css +25 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.d.ts +2 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.js +14 -0
- package/build/cjs/components/PostsError/PostError.css +30 -0
- package/build/cjs/components/PostsError/PostsError.d.ts +6 -0
- package/build/cjs/components/PostsError/PostsError.js +20 -0
- package/build/cjs/components/Search/Search.css +33 -0
- package/build/cjs/components/Search/Search.d.ts +15 -0
- package/build/cjs/components/Search/Search.js +67 -0
- package/build/cjs/components/Wrapper/Wrapper.css +32 -0
- package/build/cjs/components/Wrapper/Wrapper.d.ts +10 -0
- package/build/cjs/components/Wrapper/Wrapper.js +17 -0
- package/build/cjs/configure.d.ts +5 -0
- package/build/cjs/configure.js +8 -0
- package/build/cjs/constants.d.ts +27 -0
- package/build/cjs/constants.js +34 -0
- package/build/cjs/constructor/BlogConstructorProvider.d.ts +16 -0
- package/build/cjs/constructor/BlogConstructorProvider.js +46 -0
- package/build/cjs/constructor/blocksMap.d.ts +18 -0
- package/build/cjs/constructor/blocksMap.js +30 -0
- package/build/cjs/containers/BlogPage/BlogPage.css +21 -0
- package/build/cjs/containers/BlogPage/BlogPage.d.ts +15 -0
- package/build/cjs/containers/BlogPage/BlogPage.js +30 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +251 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.d.ts +18 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js +42 -0
- package/build/cjs/contexts/DeviceContext.d.ts +4 -0
- package/build/cjs/contexts/DeviceContext.js +8 -0
- package/build/cjs/contexts/FeedContext.d.ts +13 -0
- package/build/cjs/contexts/FeedContext.js +8 -0
- package/build/cjs/contexts/LikesContext.d.ts +7 -0
- package/build/cjs/contexts/LikesContext.js +8 -0
- package/build/cjs/contexts/LocaleContext.d.ts +6 -0
- package/build/cjs/contexts/LocaleContext.js +16 -0
- package/build/cjs/contexts/MobileContext.d.ts +2 -0
- package/build/cjs/contexts/MobileContext.js +8 -0
- package/build/cjs/contexts/PostPageContext.d.ts +14 -0
- package/build/cjs/contexts/PostPageContext.js +8 -0
- package/build/cjs/contexts/RouterContext.d.ts +9 -0
- package/build/cjs/contexts/RouterContext.js +8 -0
- package/build/cjs/contexts/UserContext.d.ts +18 -0
- package/build/cjs/contexts/UserContext.js +8 -0
- package/build/cjs/contexts/theme/ThemeContext.d.ts +8 -0
- package/build/cjs/contexts/theme/ThemeContext.js +13 -0
- package/build/cjs/contexts/theme/ThemeProvider.d.ts +23 -0
- package/build/cjs/contexts/theme/ThemeProvider.js +51 -0
- package/build/cjs/contexts/theme/ThemeValueContext.d.ts +7 -0
- package/build/cjs/contexts/theme/ThemeValueContext.js +11 -0
- package/build/cjs/contexts/theme/index.d.ts +6 -0
- package/build/cjs/contexts/theme/index.js +22 -0
- package/build/cjs/contexts/theme/useTheme.d.ts +2 -0
- package/build/cjs/contexts/theme/useTheme.js +13 -0
- package/build/cjs/contexts/theme/useThemeValue.d.ts +2 -0
- package/build/cjs/contexts/theme/useThemeValue.js +13 -0
- package/build/cjs/contexts/theme/withTheme.d.ts +6 -0
- package/build/cjs/contexts/theme/withTheme.js +21 -0
- package/build/cjs/contexts/theme/withThemeValue.d.ts +6 -0
- package/build/cjs/contexts/theme/withThemeValue.js +21 -0
- package/build/cjs/counters/metrika.d.ts +59 -0
- package/build/cjs/counters/metrika.js +170 -0
- package/build/cjs/counters/utils.d.ts +5 -0
- package/build/cjs/counters/utils.js +9 -0
- package/build/cjs/hooks/useIsIPhone.d.ts +1 -0
- package/build/cjs/hooks/useIsIPhone.js +10 -0
- package/build/cjs/hooks/useLikes.d.ts +15 -0
- package/build/cjs/hooks/useLikes.js +35 -0
- package/build/cjs/i18n/index.d.ts +22 -0
- package/build/cjs/i18n/index.js +74 -0
- package/build/cjs/icons/Close.d.ts +2 -0
- package/build/cjs/icons/Close.js +11 -0
- package/build/cjs/icons/DropdownArrow.d.ts +2 -0
- package/build/cjs/icons/DropdownArrow.js +11 -0
- package/build/cjs/icons/Save.d.ts +2 -0
- package/build/cjs/icons/Save.js +11 -0
- package/build/cjs/icons/SaveFilled.d.ts +2 -0
- package/build/cjs/icons/SaveFilled.js +11 -0
- package/build/cjs/icons/SearchIcon.d.ts +2 -0
- package/build/cjs/icons/SearchIcon.js +11 -0
- package/build/cjs/icons/ShareArrowUp.d.ts +2 -0
- package/build/cjs/icons/ShareArrowUp.js +11 -0
- package/build/cjs/icons/Time.d.ts +2 -0
- package/build/cjs/icons/Time.js +11 -0
- package/build/cjs/index.d.ts +7 -0
- package/build/cjs/index.js +29 -0
- package/build/cjs/internal-typings/bem-cn-lite.d.ts +17 -0
- package/build/cjs/internal-typings/global.d.ts +5 -0
- package/build/cjs/models/blocks.d.ts +84 -0
- package/build/cjs/models/blocks.js +2 -0
- package/build/cjs/models/common.d.ts +151 -0
- package/build/cjs/models/common.js +22 -0
- package/build/cjs/models/locale.d.ts +29 -0
- package/build/cjs/models/locale.js +14 -0
- package/build/cjs/models/paddings.d.ts +16 -0
- package/build/cjs/models/paddings.js +10 -0
- package/build/cjs/utils/cn.d.ts +4 -0
- package/build/cjs/utils/cn.js +12 -0
- package/build/cjs/utils/common.d.ts +42 -0
- package/build/cjs/utils/common.js +120 -0
- package/build/cjs/utils/date.d.ts +13 -0
- package/build/cjs/utils/date.js +59 -0
- package/build/cjs/utils/svg.d.ts +3 -0
- package/build/cjs/utils/svg.js +7 -0
- package/build/esm/blocks/Author/Author.css +31 -0
- package/build/esm/blocks/Author/Author.d.ts +4 -0
- package/build/esm/blocks/Author/Author.js +34 -0
- package/build/esm/blocks/Banner/Banner.css +58 -0
- package/build/esm/blocks/Banner/Banner.d.ts +4 -0
- package/build/esm/blocks/Banner/Banner.js +45 -0
- package/build/esm/blocks/CTA/CTA.css +56 -0
- package/build/esm/blocks/CTA/CTA.d.ts +4 -0
- package/build/esm/blocks/CTA/CTA.js +38 -0
- package/build/esm/blocks/ColoredText/ColoredText.css +28 -0
- package/build/esm/blocks/ColoredText/ColoredText.d.ts +4 -0
- package/build/esm/blocks/ColoredText/ColoredText.js +31 -0
- package/build/esm/blocks/Feed/Feed.d.ts +3 -0
- package/build/esm/blocks/Feed/Feed.js +153 -0
- package/build/esm/blocks/Feed/reducer.d.ts +65 -0
- package/build/esm/blocks/Feed/reducer.js +36 -0
- package/build/esm/blocks/Header/Header.d.ts +3 -0
- package/build/esm/blocks/Header/Header.js +36 -0
- package/build/esm/blocks/Layout/Layout.css +22 -0
- package/build/esm/blocks/Layout/Layout.d.ts +4 -0
- package/build/esm/blocks/Layout/Layout.js +52 -0
- package/build/esm/blocks/Media/Media.css +41 -0
- package/build/esm/blocks/Media/Media.d.ts +4 -0
- package/build/esm/blocks/Media/Media.js +32 -0
- package/build/esm/blocks/Meta/Meta.css +7 -0
- package/build/esm/blocks/Meta/Meta.d.ts +4 -0
- package/build/esm/blocks/Meta/Meta.js +40 -0
- package/build/esm/blocks/Suggest/Suggest.d.ts +12 -0
- package/build/esm/blocks/Suggest/Suggest.js +34 -0
- package/build/esm/blocks/YFM/YFM.d.ts +3 -0
- package/build/esm/blocks/YFM/YFM.js +17 -0
- package/build/esm/blocks/constants.d.ts +8 -0
- package/build/esm/blocks/constants.js +5 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.d.ts +13 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.js +7 -0
- package/build/esm/components/FeedHeader/FeedHeader.css +54 -0
- package/build/esm/components/FeedHeader/FeedHeader.d.ts +9 -0
- package/build/esm/components/FeedHeader/FeedHeader.js +18 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.css +107 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.d.ts +17 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.js +77 -0
- package/build/esm/components/FeedHeader/components/Controls/customRenders.d.ts +12 -0
- package/build/esm/components/FeedHeader/components/Controls/customRenders.js +14 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +9 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +7 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +12 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +21 -0
- package/build/esm/components/MetaWrapper/MetaWrapper.d.ts +10 -0
- package/build/esm/components/MetaWrapper/MetaWrapper.js +11 -0
- package/build/esm/components/Paginator/Paginator.css +54 -0
- package/build/esm/components/Paginator/Paginator.d.ts +3 -0
- package/build/esm/components/Paginator/Paginator.js +89 -0
- package/build/esm/components/Paginator/components/NavigationButton.d.ts +7 -0
- package/build/esm/components/Paginator/components/NavigationButton.js +7 -0
- package/build/esm/components/Paginator/components/PaginatorItem.d.ts +3 -0
- package/build/esm/components/Paginator/components/PaginatorItem.js +9 -0
- package/build/esm/components/Paginator/types.d.ts +29 -0
- package/build/esm/components/Paginator/types.js +5 -0
- package/build/esm/components/Paginator/utils.d.ts +3 -0
- package/build/esm/components/Paginator/utils.js +27 -0
- package/build/esm/components/PostCard/PostCard.css +85 -0
- package/build/esm/components/PostCard/PostCard.d.ts +13 -0
- package/build/esm/components/PostCard/PostCard.js +34 -0
- package/build/esm/components/PostInfo/PostInfo.css +88 -0
- package/build/esm/components/PostInfo/PostInfo.d.ts +29 -0
- package/build/esm/components/PostInfo/PostInfo.js +29 -0
- package/build/esm/components/PostInfo/SuggestPostInfo.d.ts +28 -0
- package/build/esm/components/PostInfo/SuggestPostInfo.js +35 -0
- package/build/esm/components/PostInfo/components/Date.d.ts +8 -0
- package/build/esm/components/PostInfo/components/Date.js +10 -0
- package/build/esm/components/PostInfo/components/ReadingTime.d.ts +8 -0
- package/build/esm/components/PostInfo/components/ReadingTime.js +12 -0
- package/build/esm/components/PostInfo/components/Save.d.ts +26 -0
- package/build/esm/components/PostInfo/components/Save.js +44 -0
- package/build/esm/components/PostInfo/components/Sharing.d.ts +8 -0
- package/build/esm/components/PostInfo/components/Sharing.js +25 -0
- package/build/esm/components/Posts/Posts.css +28 -0
- package/build/esm/components/Posts/Posts.d.ts +20 -0
- package/build/esm/components/Posts/Posts.js +26 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.css +25 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.d.ts +3 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.js +8 -0
- package/build/esm/components/PostsError/PostError.css +30 -0
- package/build/esm/components/PostsError/PostsError.d.ts +7 -0
- package/build/esm/components/PostsError/PostsError.js +14 -0
- package/build/esm/components/Search/Search.css +33 -0
- package/build/esm/components/Search/Search.d.ts +16 -0
- package/build/esm/components/Search/Search.js +41 -0
- package/build/esm/components/Wrapper/Wrapper.css +32 -0
- package/build/esm/components/Wrapper/Wrapper.d.ts +11 -0
- package/build/esm/components/Wrapper/Wrapper.js +11 -0
- package/build/esm/configure.d.ts +5 -0
- package/build/esm/configure.js +4 -0
- package/build/esm/constants.d.ts +27 -0
- package/build/esm/constants.js +31 -0
- package/build/esm/constructor/BlogConstructorProvider.d.ts +16 -0
- package/build/esm/constructor/BlogConstructorProvider.js +19 -0
- package/build/esm/constructor/blocksMap.d.ts +18 -0
- package/build/esm/constructor/blocksMap.js +28 -0
- package/build/esm/containers/BlogPage/BlogPage.css +21 -0
- package/build/esm/containers/BlogPage/BlogPage.d.ts +16 -0
- package/build/esm/containers/BlogPage/BlogPage.js +24 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +251 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.d.ts +19 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.js +36 -0
- package/build/esm/contexts/DeviceContext.d.ts +4 -0
- package/build/esm/contexts/DeviceContext.js +2 -0
- package/build/esm/contexts/FeedContext.d.ts +13 -0
- package/build/esm/contexts/FeedContext.js +2 -0
- package/build/esm/contexts/LikesContext.d.ts +7 -0
- package/build/esm/contexts/LikesContext.js +2 -0
- package/build/esm/contexts/LocaleContext.d.ts +6 -0
- package/build/esm/contexts/LocaleContext.js +10 -0
- package/build/esm/contexts/MobileContext.d.ts +2 -0
- package/build/esm/contexts/MobileContext.js +2 -0
- package/build/esm/contexts/PostPageContext.d.ts +14 -0
- package/build/esm/contexts/PostPageContext.js +2 -0
- package/build/esm/contexts/RouterContext.d.ts +9 -0
- package/build/esm/contexts/RouterContext.js +2 -0
- package/build/esm/contexts/UserContext.d.ts +18 -0
- package/build/esm/contexts/UserContext.js +2 -0
- package/build/esm/contexts/theme/ThemeContext.d.ts +8 -0
- package/build/esm/contexts/theme/ThemeContext.js +7 -0
- package/build/esm/contexts/theme/ThemeProvider.d.ts +23 -0
- package/build/esm/contexts/theme/ThemeProvider.js +44 -0
- package/build/esm/contexts/theme/ThemeValueContext.d.ts +7 -0
- package/build/esm/contexts/theme/ThemeValueContext.js +5 -0
- package/build/esm/contexts/theme/index.d.ts +6 -0
- package/build/esm/contexts/theme/index.js +6 -0
- package/build/esm/contexts/theme/useTheme.d.ts +2 -0
- package/build/esm/contexts/theme/useTheme.js +6 -0
- package/build/esm/contexts/theme/useThemeValue.d.ts +2 -0
- package/build/esm/contexts/theme/useThemeValue.js +6 -0
- package/build/esm/contexts/theme/withTheme.d.ts +6 -0
- package/build/esm/contexts/theme/withTheme.js +14 -0
- package/build/esm/contexts/theme/withThemeValue.d.ts +6 -0
- package/build/esm/contexts/theme/withThemeValue.js +14 -0
- package/build/esm/counters/metrika.d.ts +59 -0
- package/build/esm/counters/metrika.js +166 -0
- package/build/esm/counters/utils.d.ts +5 -0
- package/build/esm/counters/utils.js +6 -0
- package/build/esm/hooks/useIsIPhone.d.ts +1 -0
- package/build/esm/hooks/useIsIPhone.js +6 -0
- package/build/esm/hooks/useLikes.d.ts +15 -0
- package/build/esm/hooks/useLikes.js +31 -0
- package/build/esm/i18n/index.d.ts +22 -0
- package/build/esm/i18n/index.js +71 -0
- package/build/esm/icons/Close.d.ts +2 -0
- package/build/esm/icons/Close.js +4 -0
- package/build/esm/icons/DropdownArrow.d.ts +2 -0
- package/build/esm/icons/DropdownArrow.js +4 -0
- package/build/esm/icons/Save.d.ts +2 -0
- package/build/esm/icons/Save.js +4 -0
- package/build/esm/icons/SaveFilled.d.ts +2 -0
- package/build/esm/icons/SaveFilled.js +4 -0
- package/build/esm/icons/SearchIcon.d.ts +2 -0
- package/build/esm/icons/SearchIcon.js +4 -0
- package/build/esm/icons/ShareArrowUp.d.ts +2 -0
- package/build/esm/icons/ShareArrowUp.js +4 -0
- package/build/esm/icons/Time.d.ts +2 -0
- package/build/esm/icons/Time.js +4 -0
- package/build/esm/index.d.ts +7 -0
- package/build/esm/index.js +7 -0
- package/build/esm/internal-typings/bem-cn-lite.d.ts +17 -0
- package/build/esm/internal-typings/global.d.ts +5 -0
- package/build/esm/models/blocks.d.ts +84 -0
- package/build/esm/models/blocks.js +1 -0
- package/build/esm/models/common.d.ts +151 -0
- package/build/esm/models/common.js +19 -0
- package/build/esm/models/locale.d.ts +29 -0
- package/build/esm/models/locale.js +11 -0
- package/build/esm/models/paddings.d.ts +16 -0
- package/build/esm/models/paddings.js +7 -0
- package/build/esm/utils/cn.d.ts +4 -0
- package/build/esm/utils/cn.js +5 -0
- package/build/esm/utils/common.d.ts +42 -0
- package/build/esm/utils/common.js +107 -0
- package/build/esm/utils/date.d.ts +13 -0
- package/build/esm/utils/date.js +55 -0
- package/build/esm/utils/svg.d.ts +3 -0
- package/build/esm/utils/svg.js +4 -0
- package/package.json +140 -0
- package/server/data/config.d.ts +32 -0
- package/server/data/config.js +39 -0
- package/server/data/contentFilter.d.ts +27 -0
- package/server/data/contentFilter.js +61 -0
- package/server/data/createReadableContent.d.ts +17 -0
- package/server/data/createReadableContent.js +47 -0
- package/server/data/sanitizeMeta.d.ts +24 -0
- package/server/data/sanitizeMeta.js +18 -0
- package/server/data/transformPageContent.d.ts +21 -0
- package/server/data/transformPageContent.js +35 -0
- package/server/data/transformPost.d.ts +11 -0
- package/server/data/transformPost.js +34 -0
- package/server/index.d.ts +4 -0
- package/server/index.js +11 -0
- package/server/models/blocks.d.ts +84 -0
- package/server/models/blocks.js +2 -0
- package/server/models/common.d.ts +151 -0
- package/server/models/common.js +22 -0
- package/server/models/locale.d.ts +29 -0
- package/server/models/locale.js +14 -0
- package/server/models/paddings.d.ts +16 -0
- package/server/models/paddings.js +10 -0
- package/styles/fonts.css +195 -0
- package/styles/fonts.scss +223 -0
- package/styles/mixins.css +2 -0
- package/styles/mixins.scss +59 -0
- package/styles/root.css +21 -0
- package/styles/root.scss +25 -0
- package/styles/storybook/common.scss +29 -0
- package/styles/storybook/index.scss +21 -0
- package/styles/storybook/palette.scss +75 -0
- package/styles/storybook/typography.scss +139 -0
- package/styles/styles.css +196 -0
- package/styles/styles.scss +2 -0
- package/styles/variables.css +0 -0
- package/styles/variables.scss +7 -0
- package/styles/yfm.css +103 -0
- package/styles/yfm.scss +123 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
@import './variables.scss';
|
2
|
+
@import '@gravity-ui/page-constructor/styles/mixins.scss';
|
3
|
+
@import '@gravity-ui/uikit/styles/mixins.scss';
|
4
|
+
|
5
|
+
@mixin paddings() {
|
6
|
+
&_padding-top {
|
7
|
+
&_xs {
|
8
|
+
padding-top: 0px;
|
9
|
+
}
|
10
|
+
|
11
|
+
&_s {
|
12
|
+
padding-top: $indentXS;
|
13
|
+
}
|
14
|
+
|
15
|
+
&_m {
|
16
|
+
padding-top: $indentM;
|
17
|
+
}
|
18
|
+
|
19
|
+
&_l {
|
20
|
+
padding-top: $indentL;
|
21
|
+
}
|
22
|
+
|
23
|
+
&_xl {
|
24
|
+
padding-top: $indentXL;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
&_padding-bottom {
|
29
|
+
&_xs {
|
30
|
+
padding-bottom: 0px;
|
31
|
+
}
|
32
|
+
|
33
|
+
&_s {
|
34
|
+
padding-bottom: $indentXS;
|
35
|
+
}
|
36
|
+
|
37
|
+
&_m {
|
38
|
+
padding-bottom: $indentM;
|
39
|
+
}
|
40
|
+
|
41
|
+
&_l {
|
42
|
+
padding-bottom: $indentL;
|
43
|
+
}
|
44
|
+
|
45
|
+
&_xl {
|
46
|
+
padding-bottom: $indentXL;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@mixin monochromeButton() {
|
52
|
+
--yc-button-background-color: var(--pc-monochrome-button);
|
53
|
+
--yc-button-background-color-hover: var(--pc-monochrome-button-hover);
|
54
|
+
color: var(--yc-color-text-light-primary);
|
55
|
+
|
56
|
+
&:hover {
|
57
|
+
color: var(--yc-color-text-light-primary);
|
58
|
+
}
|
59
|
+
}
|
package/styles/root.css
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
:root {
|
2
|
+
--header-height: 64px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.yc-root {
|
6
|
+
--yc-text-accent-font-weight: 500;
|
7
|
+
--bc-transparent: rgba(255, 255, 255, 0);
|
8
|
+
--bc-image-padding: 4px;
|
9
|
+
--bc-border-radius: var(--pc-border-radius, 24px);
|
10
|
+
--bc-color-sfx-shadow: var(--yc-color-base-simple-hover);
|
11
|
+
--bc-color-line-generic-active-solid: #b3b3b3;
|
12
|
+
--bc-color-base-float-hover: var(--yc-color-base-float);
|
13
|
+
--bc-monochrome-button: #262626;
|
14
|
+
--bc-monochrome-button-hover: #393939;
|
15
|
+
--bc-text-header-color: var(--yc-color-text-primary);
|
16
|
+
}
|
17
|
+
.yc-root.yc-root_theme_dark {
|
18
|
+
--bc-color-sfx-shadow: var(--yc-color-sfx-shadow);
|
19
|
+
--bc-color-line-generic-active-solid: #6c6c70;
|
20
|
+
--bc-color-base-float-hover: var(--yc-color-base-float-hover);
|
21
|
+
}
|
package/styles/root.scss
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
:root {
|
2
|
+
--header-height: 64px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.yc-root {
|
6
|
+
--yc-text-accent-font-weight: 500;
|
7
|
+
|
8
|
+
// cross-browser transparent color
|
9
|
+
--bc-transparent: rgba(255, 255, 255, 0);
|
10
|
+
--bc-image-padding: 4px;
|
11
|
+
|
12
|
+
--bc-border-radius: var(--pc-border-radius, 24px);
|
13
|
+
--bc-color-sfx-shadow: var(--yc-color-base-simple-hover);
|
14
|
+
--bc-color-line-generic-active-solid: #b3b3b3;
|
15
|
+
--bc-color-base-float-hover: var(--yc-color-base-float);
|
16
|
+
--bc-monochrome-button: #262626;
|
17
|
+
--bc-monochrome-button-hover: #393939;
|
18
|
+
--bc-text-header-color: var(--yc-color-text-primary);
|
19
|
+
|
20
|
+
&.yc-root_theme_dark {
|
21
|
+
--bc-color-sfx-shadow: var(--yc-color-sfx-shadow);
|
22
|
+
--bc-color-line-generic-active-solid: #6c6c70;
|
23
|
+
--bc-color-base-float-hover: var(--yc-color-base-float-hover);
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.demo-container {
|
2
|
+
min-height: calc(100vh - 1px);
|
3
|
+
padding: 50px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.demo-header {
|
7
|
+
margin-bottom: 20px;
|
8
|
+
font-size: var(--yc-text-body-1-font-size);
|
9
|
+
font-weight: bold;
|
10
|
+
text-transform: uppercase;
|
11
|
+
color: var(--yc-color-text-primary);
|
12
|
+
}
|
13
|
+
|
14
|
+
.demo-description {
|
15
|
+
margin-bottom: 25px;
|
16
|
+
font-size: var(--yc-text-body-2-font-size);
|
17
|
+
line-height: var(--yc-text-body-2-line-height);
|
18
|
+
}
|
19
|
+
|
20
|
+
.demo-markdown {
|
21
|
+
.markdown-body {
|
22
|
+
padding: 20px;
|
23
|
+
color: var(--yc-color-text-primary);
|
24
|
+
|
25
|
+
a {
|
26
|
+
color: var(--yc-color-text-link);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
@import './common';
|
4
|
+
@import './palette';
|
5
|
+
@import './typography';
|
6
|
+
@import '~@doc-tools/transform/dist/css/yfm.css';
|
7
|
+
/**
|
8
|
+
* storybook-host container style overrides
|
9
|
+
* @see {@link https://github.com/philcockfield/storybook-host/issues/43}
|
10
|
+
*/
|
11
|
+
|
12
|
+
[data-css-18sl43g] {
|
13
|
+
font-family: inherit !important;
|
14
|
+
line-height: inherit !important;
|
15
|
+
background: none !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
.docs-story {
|
19
|
+
// без этого в docs пропадают объекты с z-index меньше 0
|
20
|
+
z-index: 0 !important;
|
21
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
.palette {
|
2
|
+
&__section {
|
3
|
+
margin: auto auto 40px;
|
4
|
+
position: relative;
|
5
|
+
z-index: 1;
|
6
|
+
}
|
7
|
+
|
8
|
+
&__section-message {
|
9
|
+
color: var(--yc-color-text-special);
|
10
|
+
margin-bottom: 10px;
|
11
|
+
margin-top: -10px;
|
12
|
+
}
|
13
|
+
|
14
|
+
&__section-content {
|
15
|
+
margin-left: -20px;
|
16
|
+
padding-left: 20px;
|
17
|
+
padding-bottom: 35px;
|
18
|
+
position: relative;
|
19
|
+
display: inline-flex;
|
20
|
+
}
|
21
|
+
|
22
|
+
&__section-contrast-layer {
|
23
|
+
z-index: -5;
|
24
|
+
position: absolute;
|
25
|
+
bottom: 0;
|
26
|
+
left: 0;
|
27
|
+
right: 0;
|
28
|
+
height: 135px;
|
29
|
+
}
|
30
|
+
|
31
|
+
&__color {
|
32
|
+
&-block {
|
33
|
+
&:not(:last-child) {
|
34
|
+
margin-right: 20px;
|
35
|
+
}
|
36
|
+
width: 118px;
|
37
|
+
height: 158px;
|
38
|
+
}
|
39
|
+
|
40
|
+
&-description {
|
41
|
+
margin-top: 8px;
|
42
|
+
height: 40px;
|
43
|
+
color: var(--yc-color-text-primary);
|
44
|
+
font-size: 13px;
|
45
|
+
}
|
46
|
+
&-caption {
|
47
|
+
opacity: 0.5;
|
48
|
+
}
|
49
|
+
|
50
|
+
&-value {
|
51
|
+
width: 118px;
|
52
|
+
height: 118px;
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
|
57
|
+
&_border_yes {
|
58
|
+
border: 1px solid var(--yc-color-line-generic);
|
59
|
+
}
|
60
|
+
|
61
|
+
&_skip_yes {
|
62
|
+
color: var(--yc-color-text-info);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.yc-root_theme_light .palette__section-contrast-layer {
|
69
|
+
background: #000;
|
70
|
+
opacity: 0.02;
|
71
|
+
}
|
72
|
+
|
73
|
+
.yc-root_theme_dark .palette__section-contrast-layer {
|
74
|
+
background: #323138;
|
75
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
.demo-typography {
|
2
|
+
$block: &;
|
3
|
+
|
4
|
+
&__block + &__block {
|
5
|
+
margin-top: 80px;
|
6
|
+
}
|
7
|
+
|
8
|
+
&__block_type {
|
9
|
+
&_font-sizes {
|
10
|
+
#{$block}__item + #{$block}__item {
|
11
|
+
margin-top: 24px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
&_text-contrasts,
|
16
|
+
&_font-families {
|
17
|
+
font-size: var(--yc-text-body-2-font-size);
|
18
|
+
|
19
|
+
#{$block}__item + #{$block}__item {
|
20
|
+
margin-top: 12px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
&__value {
|
26
|
+
display: inline;
|
27
|
+
}
|
28
|
+
|
29
|
+
&__caption {
|
30
|
+
display: inline-block;
|
31
|
+
width: 180px;
|
32
|
+
color: var(--yc-color-text-secondary);
|
33
|
+
font-size: var(--yc-text-body-font-size);
|
34
|
+
text-transform: uppercase;
|
35
|
+
}
|
36
|
+
|
37
|
+
&__item {
|
38
|
+
cursor: copy;
|
39
|
+
}
|
40
|
+
|
41
|
+
&__item_name {
|
42
|
+
// font-sizes
|
43
|
+
&_body .demo-typography__value {
|
44
|
+
font-size: var(--yc-text-body-font-size);
|
45
|
+
line-height: var(--yc-text-body-1-line-height);
|
46
|
+
}
|
47
|
+
|
48
|
+
&_body-2 .demo-typography__value {
|
49
|
+
font-size: var(--yc-text-body-2-font-size);
|
50
|
+
line-height: var(--yc-text-body-2-line-height);
|
51
|
+
}
|
52
|
+
|
53
|
+
&_body-3 .demo-typography__value {
|
54
|
+
font-size: var(--yc-text-body-3-font-size);
|
55
|
+
line-height: var(--yc-text-body-3-line-height);
|
56
|
+
}
|
57
|
+
|
58
|
+
&_lead .demo-typography__value {
|
59
|
+
font-size: var(--yc-text-subheader-3-font-size);
|
60
|
+
line-height: var(--yc-text-subheader-3-line-height);
|
61
|
+
}
|
62
|
+
|
63
|
+
&_header .demo-typography__value {
|
64
|
+
font-size: var(--yc-text-header-1-font-size);
|
65
|
+
line-height: var(--yc-text-header-1-line-height);
|
66
|
+
}
|
67
|
+
|
68
|
+
&_title .demo-typography__value {
|
69
|
+
font-size: var(--yc-text-header-2-font-size);
|
70
|
+
line-height: var(--yc-text-header-2-line-height);
|
71
|
+
}
|
72
|
+
|
73
|
+
&_display1 .demo-typography__value {
|
74
|
+
font-size: var(--yc-text-display-1-font-size);
|
75
|
+
line-height: var(--yc-text-display-1-line-height);
|
76
|
+
}
|
77
|
+
|
78
|
+
&_display2 .demo-typography__value {
|
79
|
+
font-size: var(--yc-text-display-2-font-size);
|
80
|
+
line-height: var(--yc-text-display-2-line-height);
|
81
|
+
}
|
82
|
+
|
83
|
+
&_display3 .demo-typography__value {
|
84
|
+
font-size: var(--yc-text-display-3-font-size);
|
85
|
+
line-height: var(--yc-text-display-3-line-height);
|
86
|
+
}
|
87
|
+
|
88
|
+
&_code-3 .demo-typography__value {
|
89
|
+
font-size: var(--yc-text-code-3-font-size);
|
90
|
+
line-height: var(--yc-text-code-3-line-height);
|
91
|
+
font-weight: var(--yc-text-code-1-font-size);
|
92
|
+
font-family: var(--yc-text-code-font-family);
|
93
|
+
}
|
94
|
+
|
95
|
+
&_code-3-inline .demo-typography__value {
|
96
|
+
font-size: var(--yc-text-code-inline-3-font-size);
|
97
|
+
line-height: var(--yc-text-code-inline-3-line-height);
|
98
|
+
font-weight: var(--yc-text-code-font-weight);
|
99
|
+
font-family: var(--yc-text-code-font-family);
|
100
|
+
}
|
101
|
+
|
102
|
+
&_code-2 .demo-typography__value {
|
103
|
+
font-size: var(--yc-text-code-2-font-size);
|
104
|
+
line-height: var(--yc-text-code-2-line-height);
|
105
|
+
font-weight: var(--yc-text-code-font-weight);
|
106
|
+
font-family: var(--yc-text-code-font-family);
|
107
|
+
}
|
108
|
+
|
109
|
+
&_code-2-inline .demo-typography__value {
|
110
|
+
font-size: var(--yc-text-code-inline-2-font-size);
|
111
|
+
line-height: var(--yc-text-code-inline-2-line-height);
|
112
|
+
font-weight: var(--yc-text-code-font-weight);
|
113
|
+
font-family: var(--yc-text-code-font-family);
|
114
|
+
}
|
115
|
+
|
116
|
+
&_code-1 .demo-typography__value {
|
117
|
+
font-size: var(--yc-text-code-1-font-size);
|
118
|
+
line-height: var(--yc-text-code-1-line-height);
|
119
|
+
font-weight: var(--yc-text-code-font-weight);
|
120
|
+
font-family: var(--yc-text-code-font-family);
|
121
|
+
}
|
122
|
+
|
123
|
+
&_code-1-inline .demo-typography__value {
|
124
|
+
font-size: var(--yc-text-code-inline-1-font-size);
|
125
|
+
line-height: var(--yc-text-code-inline-1-line-height);
|
126
|
+
font-weight: var(--yc-text-code-font-weight);
|
127
|
+
font-family: var(--yc-text-code-font-family);
|
128
|
+
}
|
129
|
+
|
130
|
+
// font-families
|
131
|
+
&_monospace .demo-typography__value {
|
132
|
+
font-family: var(--yc-font-family-monospace);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
&__item_deprecated {
|
137
|
+
text-decoration: line-through;
|
138
|
+
}
|
139
|
+
}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
@import '~@gravity-ui/uikit/styles/styles.css';
|
2
|
+
@font-face {
|
3
|
+
font-family: "YS Display";
|
4
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff") format("woff");
|
5
|
+
font-weight: 100;
|
6
|
+
font-style: normal;
|
7
|
+
font-display: swap;
|
8
|
+
}
|
9
|
+
@font-face {
|
10
|
+
font-family: "YS Display";
|
11
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff") format("woff");
|
12
|
+
font-weight: 300;
|
13
|
+
font-style: normal;
|
14
|
+
font-display: swap;
|
15
|
+
}
|
16
|
+
@font-face {
|
17
|
+
font-family: "YS Display";
|
18
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff") format("woff");
|
19
|
+
font-weight: 400;
|
20
|
+
font-style: normal;
|
21
|
+
font-display: swap;
|
22
|
+
}
|
23
|
+
@font-face {
|
24
|
+
font-family: "YS Display";
|
25
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff") format("woff");
|
26
|
+
font-weight: 500;
|
27
|
+
font-style: normal;
|
28
|
+
font-display: swap;
|
29
|
+
}
|
30
|
+
@font-face {
|
31
|
+
font-family: "YS Display";
|
32
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff") format("woff");
|
33
|
+
font-weight: 700;
|
34
|
+
font-style: normal;
|
35
|
+
font-display: swap;
|
36
|
+
}
|
37
|
+
@font-face {
|
38
|
+
font-family: "YS Display";
|
39
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff") format("woff");
|
40
|
+
font-weight: 900;
|
41
|
+
font-style: normal;
|
42
|
+
font-display: swap;
|
43
|
+
}
|
44
|
+
@font-face {
|
45
|
+
font-family: "YS Text";
|
46
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff") format("woff");
|
47
|
+
font-weight: 300;
|
48
|
+
font-style: normal;
|
49
|
+
font-display: swap;
|
50
|
+
}
|
51
|
+
@font-face {
|
52
|
+
font-family: "YS Text";
|
53
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff") format("woff");
|
54
|
+
font-weight: 300;
|
55
|
+
font-style: italic;
|
56
|
+
font-display: swap;
|
57
|
+
}
|
58
|
+
@font-face {
|
59
|
+
font-family: "YS Text";
|
60
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff") format("woff");
|
61
|
+
font-weight: 400;
|
62
|
+
font-style: normal;
|
63
|
+
font-display: swap;
|
64
|
+
}
|
65
|
+
@font-face {
|
66
|
+
font-family: "YS Text";
|
67
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff") format("woff");
|
68
|
+
font-weight: 400;
|
69
|
+
font-style: italic;
|
70
|
+
font-display: swap;
|
71
|
+
}
|
72
|
+
@font-face {
|
73
|
+
font-family: "YS Text";
|
74
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff") format("woff");
|
75
|
+
font-weight: 500;
|
76
|
+
font-style: normal;
|
77
|
+
font-display: swap;
|
78
|
+
}
|
79
|
+
@font-face {
|
80
|
+
font-family: "YS Text";
|
81
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff") format("woff");
|
82
|
+
font-weight: 500;
|
83
|
+
font-style: italic;
|
84
|
+
font-display: swap;
|
85
|
+
}
|
86
|
+
@font-face {
|
87
|
+
font-family: "YS Text";
|
88
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff") format("woff");
|
89
|
+
font-weight: 700;
|
90
|
+
font-style: normal;
|
91
|
+
font-display: swap;
|
92
|
+
}
|
93
|
+
@font-face {
|
94
|
+
font-family: "YS Text";
|
95
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff") format("woff");
|
96
|
+
font-weight: 700;
|
97
|
+
font-style: italic;
|
98
|
+
font-display: swap;
|
99
|
+
}
|
100
|
+
.YSDisplay-Thin {
|
101
|
+
font-family: "YS Display", sans-serif;
|
102
|
+
font-weight: 100;
|
103
|
+
font-style: normal;
|
104
|
+
font-stretch: normal;
|
105
|
+
}
|
106
|
+
|
107
|
+
.YSDisplay-Light {
|
108
|
+
font-family: "YS Display", sans-serif;
|
109
|
+
font-weight: 300;
|
110
|
+
font-style: normal;
|
111
|
+
font-stretch: normal;
|
112
|
+
}
|
113
|
+
|
114
|
+
.YSDisplay-Regular {
|
115
|
+
font-family: "YS Display", sans-serif;
|
116
|
+
font-weight: 400;
|
117
|
+
font-style: normal;
|
118
|
+
font-stretch: normal;
|
119
|
+
}
|
120
|
+
|
121
|
+
.YSDisplay-Medium {
|
122
|
+
font-family: "YS Display", sans-serif;
|
123
|
+
font-weight: 500;
|
124
|
+
font-style: normal;
|
125
|
+
font-stretch: normal;
|
126
|
+
}
|
127
|
+
|
128
|
+
.YSDisplay-Bold {
|
129
|
+
font-family: "YS Display", sans-serif;
|
130
|
+
font-weight: 700;
|
131
|
+
font-style: normal;
|
132
|
+
font-stretch: normal;
|
133
|
+
}
|
134
|
+
|
135
|
+
.YSDisplay-Heavy {
|
136
|
+
font-family: "YS Display", sans-serif;
|
137
|
+
font-weight: 900;
|
138
|
+
font-style: normal;
|
139
|
+
font-stretch: normal;
|
140
|
+
}
|
141
|
+
|
142
|
+
.YSText-Light {
|
143
|
+
font-family: "YS Text", sans-serif;
|
144
|
+
font-weight: 300;
|
145
|
+
font-style: normal;
|
146
|
+
font-stretch: normal;
|
147
|
+
}
|
148
|
+
|
149
|
+
.YSText-LightItalic {
|
150
|
+
font-family: "YS Text", sans-serif;
|
151
|
+
font-weight: 300;
|
152
|
+
font-style: italic;
|
153
|
+
font-stretch: normal;
|
154
|
+
}
|
155
|
+
|
156
|
+
.YSText-Regular {
|
157
|
+
font-family: "YS Text", sans-serif;
|
158
|
+
font-weight: 400;
|
159
|
+
font-style: normal;
|
160
|
+
font-stretch: normal;
|
161
|
+
}
|
162
|
+
|
163
|
+
.YSText-RegularItalic {
|
164
|
+
font-family: "YS Text", sans-serif;
|
165
|
+
font-weight: 400;
|
166
|
+
font-style: italic;
|
167
|
+
font-stretch: normal;
|
168
|
+
}
|
169
|
+
|
170
|
+
.YSText-Medium {
|
171
|
+
font-family: "YS Text", sans-serif;
|
172
|
+
font-weight: 500;
|
173
|
+
font-style: normal;
|
174
|
+
font-stretch: normal;
|
175
|
+
}
|
176
|
+
|
177
|
+
.YSText-MediumItalic {
|
178
|
+
font-family: "YS Text", sans-serif;
|
179
|
+
font-weight: 500;
|
180
|
+
font-style: italic;
|
181
|
+
font-stretch: normal;
|
182
|
+
}
|
183
|
+
|
184
|
+
.YSText-Bold {
|
185
|
+
font-family: "YS Text", sans-serif;
|
186
|
+
font-weight: 700;
|
187
|
+
font-style: normal;
|
188
|
+
font-stretch: normal;
|
189
|
+
}
|
190
|
+
|
191
|
+
.YSText-BoldItalic {
|
192
|
+
font-family: "YS Text", sans-serif;
|
193
|
+
font-weight: 700;
|
194
|
+
font-style: italic;
|
195
|
+
font-stretch: normal;
|
196
|
+
}
|
File without changes
|
package/styles/yfm.css
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
2
|
+
unpredictable css rules order in build */
|
3
|
+
.yfm_blog {
|
4
|
+
font-size: var(--yc-text-body-3-font-size);
|
5
|
+
line-height: var(--yc-text-body-3-line-height);
|
6
|
+
color: var(--yc-color-text-primary);
|
7
|
+
}
|
8
|
+
.yfm_blog h1:first-child,
|
9
|
+
.yfm_blog h2:first-child,
|
10
|
+
.yfm_blog h3:first-child,
|
11
|
+
.yfm_blog h4:first-child {
|
12
|
+
padding: 0;
|
13
|
+
margin-top: 0;
|
14
|
+
padding-top: 0;
|
15
|
+
}
|
16
|
+
.yfm_blog h2 {
|
17
|
+
font-size: var(--yc-text-display-2-font-size);
|
18
|
+
line-height: var(--yc-text-display-2-line-height);
|
19
|
+
}
|
20
|
+
.yfm_blog h3 {
|
21
|
+
font-size: var(--yc-text-header-2-font-size);
|
22
|
+
line-height: var(--yc-text-header-2-line-height);
|
23
|
+
}
|
24
|
+
.yfm_blog h4 {
|
25
|
+
font-size: var(--yc-text-header-1-font-size);
|
26
|
+
line-height: var(--yc-text-header-1-line-height);
|
27
|
+
}
|
28
|
+
.yfm_blog h1,
|
29
|
+
.yfm_blog h2,
|
30
|
+
.yfm_blog h3,
|
31
|
+
.yfm_blog h4,
|
32
|
+
.yfm_blog h5,
|
33
|
+
.yfm_blog h6 {
|
34
|
+
margin-bottom: 16px;
|
35
|
+
margin-top: 48px;
|
36
|
+
padding-top: 0;
|
37
|
+
font-weight: var(--yc-text-header-font-weight);
|
38
|
+
}
|
39
|
+
.yfm_blog blockquote,
|
40
|
+
.yfm_blog dl,
|
41
|
+
.yfm_blog ol,
|
42
|
+
.yfm_blog p,
|
43
|
+
.yfm_blog pre,
|
44
|
+
.yfm_blog table,
|
45
|
+
.yfm_blog ul {
|
46
|
+
margin: 0 0 16px;
|
47
|
+
}
|
48
|
+
.yfm_blog img {
|
49
|
+
margin-bottom: 32px;
|
50
|
+
margin-top: 16px;
|
51
|
+
border-radius: 24px;
|
52
|
+
}
|
53
|
+
.yfm_blog hr {
|
54
|
+
height: 1px;
|
55
|
+
}
|
56
|
+
.yfm_blog ol,
|
57
|
+
.yfm_blog ul {
|
58
|
+
padding-left: 1.4em;
|
59
|
+
}
|
60
|
+
.yfm_blog code {
|
61
|
+
color: var(--yc-color-text-misc);
|
62
|
+
}
|
63
|
+
.yfm_blog pre > code {
|
64
|
+
color: var(--yc-color-text-primary);
|
65
|
+
}
|
66
|
+
.yfm_blog table {
|
67
|
+
color: var(--yc-color-text-primary);
|
68
|
+
border: 1px solid var(--yc-color-line-generic);
|
69
|
+
background: var(--yc-color-base-background);
|
70
|
+
}
|
71
|
+
.yfm_blog thead tr,
|
72
|
+
.yfm_blog table tr:nth-child(2n) {
|
73
|
+
background-color: var(--yc-color-base-generic);
|
74
|
+
}
|
75
|
+
.yfm_blog_media {
|
76
|
+
font-size: var(--yc-text-body-3-font-size);
|
77
|
+
line-height: var(--yc-text-body-3-line-height);
|
78
|
+
color: var(--yc-color-text-secondary);
|
79
|
+
}
|
80
|
+
.yfm_blog_breadcrumbs {
|
81
|
+
font-size: var(--yc-text-body-2-font-size);
|
82
|
+
line-height: var(--yc-text-body-2-line-height);
|
83
|
+
color: var(--yc-text-color-base);
|
84
|
+
}
|
85
|
+
.yfm_blog a {
|
86
|
+
color: var(--yc-color-text-link);
|
87
|
+
}
|
88
|
+
.yfm_blog a:hover {
|
89
|
+
color: var(--yc-color-text-link-hover);
|
90
|
+
}
|
91
|
+
.yfm_blog .yfm-tab:hover, .yfm_blog .yfm-tab:active {
|
92
|
+
color: var(--yc-color-text-link-hover);
|
93
|
+
}
|
94
|
+
.yfm_blog .yfm-tab.active {
|
95
|
+
border-bottom-color: var(--yc-color-text-link);
|
96
|
+
}
|
97
|
+
.yfm_blog .yfm-clipboard {
|
98
|
+
margin: 32px 0;
|
99
|
+
}
|
100
|
+
|
101
|
+
.yfm_blog_card p {
|
102
|
+
color: var(--pc-text-header-color);
|
103
|
+
}
|