@gravity-ui/blog-constructor 1.0.0-aplha.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/cjs/components/FeedHeader/components/Controls/Controls.js +1 -1
- package/build/cjs/components/PostInfo/components/Sharing.js +1 -1
- package/build/cjs/containers/BlogPage/BlogPage.d.ts +3 -2
- package/build/cjs/containers/BlogPage/BlogPage.js +2 -2
- package/build/cjs/containers/BlogPostPage/BlogPostPage.d.ts +2 -1
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js +2 -2
- package/build/esm/components/FeedHeader/components/Controls/Controls.js +1 -1
- package/build/esm/components/PostInfo/components/Sharing.js +2 -2
- package/build/esm/containers/BlogPage/BlogPage.d.ts +3 -2
- package/build/esm/containers/BlogPage/BlogPage.js +2 -2
- package/build/esm/containers/BlogPostPage/BlogPostPage.d.ts +2 -1
- package/build/esm/containers/BlogPostPage/BlogPostPage.js +2 -2
- package/package.json +2 -5
- package/styles/mixins.scss +9 -8
- package/build/cjs/blocks/Author/Author.css +0 -31
- package/build/cjs/blocks/Banner/Banner.css +0 -58
- package/build/cjs/blocks/CTA/CTA.css +0 -56
- package/build/cjs/blocks/ColoredText/ColoredText.css +0 -28
- package/build/cjs/blocks/Layout/Layout.css +0 -22
- package/build/cjs/blocks/Media/Media.css +0 -41
- package/build/cjs/blocks/Meta/Meta.css +0 -7
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +0 -76
- package/build/cjs/components/FeedHeader/FeedHeader.css +0 -54
- package/build/cjs/components/FeedHeader/components/Controls/Controls.css +0 -107
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +0 -14
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +0 -53
- package/build/cjs/components/Paginator/Paginator.css +0 -54
- package/build/cjs/components/PostCard/PostCard.css +0 -85
- package/build/cjs/components/PostInfo/PostInfo.css +0 -88
- package/build/cjs/components/Posts/Posts.css +0 -28
- package/build/cjs/components/PostsEmpty/PostsEmpty.css +0 -25
- package/build/cjs/components/PostsError/PostError.css +0 -30
- package/build/cjs/components/Search/Search.css +0 -33
- package/build/cjs/components/Wrapper/Wrapper.css +0 -32
- package/build/cjs/containers/BlogPage/BlogPage.css +0 -21
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +0 -251
- package/build/esm/blocks/Author/Author.css +0 -31
- package/build/esm/blocks/Banner/Banner.css +0 -58
- package/build/esm/blocks/CTA/CTA.css +0 -56
- package/build/esm/blocks/ColoredText/ColoredText.css +0 -28
- package/build/esm/blocks/Layout/Layout.css +0 -22
- package/build/esm/blocks/Media/Media.css +0 -41
- package/build/esm/blocks/Meta/Meta.css +0 -7
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +0 -76
- package/build/esm/components/FeedHeader/FeedHeader.css +0 -54
- package/build/esm/components/FeedHeader/components/Controls/Controls.css +0 -107
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +0 -14
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +0 -53
- package/build/esm/components/Paginator/Paginator.css +0 -54
- package/build/esm/components/PostCard/PostCard.css +0 -85
- package/build/esm/components/PostInfo/PostInfo.css +0 -88
- package/build/esm/components/Posts/Posts.css +0 -28
- package/build/esm/components/PostsEmpty/PostsEmpty.css +0 -25
- package/build/esm/components/PostsError/PostError.css +0 -30
- package/build/esm/components/Search/Search.css +0 -33
- package/build/esm/components/Wrapper/Wrapper.css +0 -32
- package/build/esm/containers/BlogPage/BlogPage.css +0 -21
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +0 -251
- package/styles/mixins.css +0 -2
- package/styles/root.css +0 -21
- package/styles/styles.css +0 -196
- package/styles/variables.css +0 -0
- package/styles/yfm.css +0 -103
@@ -97,7 +97,7 @@ const Controls = ({ setIsFetching, tags = [], services = [], handleChangeQuery,
|
|
97
97
|
initial: servicesItems,
|
98
98
|
list: services,
|
99
99
|
defaultLabel: (0, i18n_1.i18)(i18n_1.Keyset.AllServices),
|
100
|
-
}),
|
100
|
+
}), renderOption: customRenders_1.renderOption, renderFilter: customRenders_1.renderFilter }))) : null,
|
101
101
|
hasLikes ? (react_1.default.createElement("div", { className: b('filter-item', { 'width-auto': true }) },
|
102
102
|
react_1.default.createElement(uikit_1.Button, { view: 'outlined', className: b('saved-only-button', { savedOnly }), size: "xl", onClick: handleSavedOnly },
|
103
103
|
react_1.default.createElement(uikit_1.Icon, { data: Save_1.Save, size: ICON_SIZE, className: b('icon', { savedOnly }) }),
|
@@ -49,6 +49,6 @@ const Sharing = ({ theme, metrikaGoal }) => {
|
|
49
49
|
};
|
50
50
|
return (react_1.default.createElement("div", { className: b('item') },
|
51
51
|
react_1.default.createElement("span", { className: b('icon') },
|
52
|
-
react_1.default.createElement(uikit_1.
|
52
|
+
react_1.default.createElement(uikit_1.ShareTooltip, { url: (0, common_1.getAbsolutePath)(router), className: b('share'), iconClass: b('share-icon'), switcherClassName: b('switcher', { theme }), tooltipClassName: b('popup'), useWebShareApi: isMobile, direction: 'column', buttonTitle: (0, i18n_1.i18)(i18n_1.Keyset.ActionShare), customIcon: ShareArrowUp_1.ShareArrowUp, placement: "bottom", openByHover: false, socialNets: shareOptions, handleMetrika: handleMetrika }))));
|
53
53
|
};
|
54
54
|
exports.Sharing = Sharing;
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { PageContent, PageConstructorProviderProps } from '@gravity-ui/page-constructor';
|
1
|
+
import { PageContent, PageConstructorProviderProps, NavigationData } from '@gravity-ui/page-constructor';
|
2
2
|
import { Tag, PostsProps, ToggleLikeCallbackType, MetaProps, GetPostsType, SetQueryType, Service } from '../../models/common';
|
3
3
|
export type BlogPageProps = {
|
4
4
|
content: PageContent;
|
5
5
|
posts: PostsProps;
|
6
6
|
tags: Tag[];
|
7
7
|
services?: Service[];
|
8
|
+
navigation?: NavigationData;
|
8
9
|
getPosts: GetPostsType;
|
9
10
|
toggleLike?: ToggleLikeCallbackType;
|
10
11
|
metaData?: MetaProps;
|
@@ -12,4 +13,4 @@ export type BlogPageProps = {
|
|
12
13
|
settings?: PageConstructorProviderProps;
|
13
14
|
pageCountForShowSupportButtons?: number;
|
14
15
|
};
|
15
|
-
export declare const BlogPage: ({ content, posts, tags, services, getPosts, metaData, toggleLike, settings, pageCountForShowSupportButtons, }: BlogPageProps) => JSX.Element;
|
16
|
+
export declare const BlogPage: ({ content, posts, tags, services, getPosts, metaData, toggleLike, navigation, settings, pageCountForShowSupportButtons, }: BlogPageProps) => JSX.Element;
|
@@ -10,7 +10,7 @@ const FeedContext_1 = require("../../contexts/FeedContext");
|
|
10
10
|
const LikesContext_1 = require("../../contexts/LikesContext");
|
11
11
|
const MetaWrapper_1 = require("../../components/MetaWrapper/MetaWrapper");
|
12
12
|
const blocksMap_1 = __importDefault(require("../../constructor/blocksMap"));
|
13
|
-
const BlogPage = ({ content, posts, tags, services, getPosts, metaData, toggleLike, settings, pageCountForShowSupportButtons, }) => (react_1.default.createElement("main", null,
|
13
|
+
const BlogPage = ({ content, posts, tags, services, getPosts, metaData, toggleLike, navigation, settings, pageCountForShowSupportButtons, }) => (react_1.default.createElement("main", null,
|
14
14
|
react_1.default.createElement(LikesContext_1.LikesContext.Provider, { value: {
|
15
15
|
toggleLike: toggleLike,
|
16
16
|
hasLikes: Boolean(toggleLike),
|
@@ -26,5 +26,5 @@ const BlogPage = ({ content, posts, tags, services, getPosts, metaData, toggleLi
|
|
26
26
|
} },
|
27
27
|
react_1.default.createElement(page_constructor_1.PageConstructorProvider, Object.assign({}, settings),
|
28
28
|
metaData ? react_1.default.createElement(MetaWrapper_1.MetaWrapper, Object.assign({}, metaData)) : null,
|
29
|
-
react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: blocksMap_1.default }))))));
|
29
|
+
react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: blocksMap_1.default, navigation: navigation }))))));
|
30
30
|
exports.BlogPage = BlogPage;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { PageContent, PageConstructorProviderProps } from '@gravity-ui/page-constructor';
|
2
|
+
import { PageContent, PageConstructorProviderProps, NavigationData } from '@gravity-ui/page-constructor';
|
3
3
|
import { ShareOptions } from '@gravity-ui/uikit';
|
4
4
|
import { PostData, ToggleLikeCallbackType, MetaProps } from '../../models/common';
|
5
5
|
export interface BlogPostPageProps {
|
@@ -13,6 +13,7 @@ export interface BlogPostPageProps {
|
|
13
13
|
content: PageContent;
|
14
14
|
post: PostData;
|
15
15
|
settings?: PageConstructorProviderProps;
|
16
|
+
navigation?: NavigationData;
|
16
17
|
shareOptions?: ShareOptions[];
|
17
18
|
}
|
18
19
|
export declare const BlogPostPage: React.FC<BlogPostPageProps>;
|
@@ -11,7 +11,7 @@ const PostPageContext_1 = require("../../contexts/PostPageContext");
|
|
11
11
|
const LikesContext_1 = require("../../contexts/LikesContext");
|
12
12
|
const useLikes_1 = require("../../hooks/useLikes");
|
13
13
|
const MetaWrapper_1 = require("../../components/MetaWrapper/MetaWrapper");
|
14
|
-
const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, shareOptions, }) => {
|
14
|
+
const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, navigation, shareOptions, }) => {
|
15
15
|
const { hasUserLike, likesCount, handleLike } = (0, useLikes_1.useLikes)({
|
16
16
|
hasLike: likes === null || likes === void 0 ? void 0 : likes.hasUserLike,
|
17
17
|
count: likes === null || likes === void 0 ? void 0 : likes.likesCount,
|
@@ -37,6 +37,6 @@ const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings
|
|
37
37
|
} },
|
38
38
|
react_1.default.createElement(page_constructor_1.PageConstructorProvider, Object.assign({}, settings),
|
39
39
|
metaData ? react_1.default.createElement(MetaWrapper_1.MetaWrapper, Object.assign({}, metaData)) : null,
|
40
|
-
react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: blocksMap_1.default }))))));
|
40
|
+
react_1.default.createElement(page_constructor_1.PageConstructor, { content: content, custom: blocksMap_1.default, navigation: navigation }))))));
|
41
41
|
};
|
42
42
|
exports.BlogPostPage = BlogPostPage;
|
@@ -69,7 +69,7 @@ export const Controls = ({ setIsFetching, tags = [], services = [], handleChange
|
|
69
69
|
initial: servicesItems,
|
70
70
|
list: services,
|
71
71
|
defaultLabel: i18(Keyset.AllServices),
|
72
|
-
}),
|
72
|
+
}), renderOption: renderOption, renderFilter: renderFilter }))) : null,
|
73
73
|
hasLikes ? (React.createElement("div", { className: b('filter-item', { 'width-auto': true }) },
|
74
74
|
React.createElement(Button, { view: 'outlined', className: b('saved-only-button', { savedOnly }), size: "xl", onClick: handleSavedOnly },
|
75
75
|
React.createElement(Icon, { data: Save, size: ICON_SIZE, className: b('icon', { savedOnly }) }),
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useContext } from 'react';
|
2
|
-
import {
|
2
|
+
import { ShareTooltip } from '@gravity-ui/uikit';
|
3
3
|
import { MobileContext } from '../../../contexts/MobileContext';
|
4
4
|
import { RouterContext } from '../../../contexts/RouterContext';
|
5
5
|
import { PostPageContext } from '../../../contexts/PostPageContext';
|
@@ -21,5 +21,5 @@ export const Sharing = ({ theme, metrikaGoal }) => {
|
|
21
21
|
};
|
22
22
|
return (React.createElement("div", { className: b('item') },
|
23
23
|
React.createElement("span", { className: b('icon') },
|
24
|
-
React.createElement(
|
24
|
+
React.createElement(ShareTooltip, { url: getAbsolutePath(router), className: b('share'), iconClass: b('share-icon'), switcherClassName: b('switcher', { theme }), tooltipClassName: b('popup'), useWebShareApi: isMobile, direction: 'column', buttonTitle: i18(Keyset.ActionShare), customIcon: ShareArrowUp, placement: "bottom", openByHover: false, socialNets: shareOptions, handleMetrika: handleMetrika }))));
|
25
25
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PageContent, PageConstructorProviderProps } from '@gravity-ui/page-constructor';
|
1
|
+
import { PageContent, PageConstructorProviderProps, NavigationData } from '@gravity-ui/page-constructor';
|
2
2
|
import { Tag, PostsProps, ToggleLikeCallbackType, MetaProps, GetPostsType, SetQueryType, Service } from '../../models/common';
|
3
3
|
import './BlogPage.css';
|
4
4
|
export type BlogPageProps = {
|
@@ -6,6 +6,7 @@ export type BlogPageProps = {
|
|
6
6
|
posts: PostsProps;
|
7
7
|
tags: Tag[];
|
8
8
|
services?: Service[];
|
9
|
+
navigation?: NavigationData;
|
9
10
|
getPosts: GetPostsType;
|
10
11
|
toggleLike?: ToggleLikeCallbackType;
|
11
12
|
metaData?: MetaProps;
|
@@ -13,4 +14,4 @@ export type BlogPageProps = {
|
|
13
14
|
settings?: PageConstructorProviderProps;
|
14
15
|
pageCountForShowSupportButtons?: number;
|
15
16
|
};
|
16
|
-
export declare const BlogPage: ({ content, posts, tags, services, getPosts, metaData, toggleLike, settings, pageCountForShowSupportButtons, }: BlogPageProps) => JSX.Element;
|
17
|
+
export declare const BlogPage: ({ content, posts, tags, services, getPosts, metaData, toggleLike, navigation, settings, pageCountForShowSupportButtons, }: BlogPageProps) => JSX.Element;
|
@@ -5,7 +5,7 @@ import { LikesContext } from '../../contexts/LikesContext';
|
|
5
5
|
import { MetaWrapper } from '../../components/MetaWrapper/MetaWrapper';
|
6
6
|
import componentMap from '../../constructor/blocksMap';
|
7
7
|
import './BlogPage.css';
|
8
|
-
export const BlogPage = ({ content, posts, tags, services, getPosts, metaData, toggleLike, settings, pageCountForShowSupportButtons, }) => (React.createElement("main", null,
|
8
|
+
export const BlogPage = ({ content, posts, tags, services, getPosts, metaData, toggleLike, navigation, settings, pageCountForShowSupportButtons, }) => (React.createElement("main", null,
|
9
9
|
React.createElement(LikesContext.Provider, { value: {
|
10
10
|
toggleLike: toggleLike,
|
11
11
|
hasLikes: Boolean(toggleLike),
|
@@ -21,4 +21,4 @@ export const BlogPage = ({ content, posts, tags, services, getPosts, metaData, t
|
|
21
21
|
} },
|
22
22
|
React.createElement(PageConstructorProvider, Object.assign({}, settings),
|
23
23
|
metaData ? React.createElement(MetaWrapper, Object.assign({}, metaData)) : null,
|
24
|
-
React.createElement(PageConstructor, { content: content, custom: componentMap }))))));
|
24
|
+
React.createElement(PageConstructor, { content: content, custom: componentMap, navigation: navigation }))))));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { PageContent, PageConstructorProviderProps } from '@gravity-ui/page-constructor';
|
2
|
+
import { PageContent, PageConstructorProviderProps, NavigationData } from '@gravity-ui/page-constructor';
|
3
3
|
import { ShareOptions } from '@gravity-ui/uikit';
|
4
4
|
import { PostData, ToggleLikeCallbackType, MetaProps } from '../../models/common';
|
5
5
|
import './BlogPostPage.css';
|
@@ -14,6 +14,7 @@ export interface BlogPostPageProps {
|
|
14
14
|
content: PageContent;
|
15
15
|
post: PostData;
|
16
16
|
settings?: PageConstructorProviderProps;
|
17
|
+
navigation?: NavigationData;
|
17
18
|
shareOptions?: ShareOptions[];
|
18
19
|
}
|
19
20
|
export declare const BlogPostPage: React.FC<BlogPostPageProps>;
|
@@ -6,7 +6,7 @@ import { LikesContext } from '../../contexts/LikesContext';
|
|
6
6
|
import { useLikes } from '../../hooks/useLikes';
|
7
7
|
import { MetaWrapper } from '../../components/MetaWrapper/MetaWrapper';
|
8
8
|
import './BlogPostPage.css';
|
9
|
-
export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, shareOptions, }) => {
|
9
|
+
export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, settings, navigation, shareOptions, }) => {
|
10
10
|
const { hasUserLike, likesCount, handleLike } = useLikes({
|
11
11
|
hasLike: likes === null || likes === void 0 ? void 0 : likes.hasUserLike,
|
12
12
|
count: likes === null || likes === void 0 ? void 0 : likes.likesCount,
|
@@ -32,5 +32,5 @@ export const BlogPostPage = ({ metaData, suggestedPosts, likes, content, post, s
|
|
32
32
|
} },
|
33
33
|
React.createElement(PageConstructorProvider, Object.assign({}, settings),
|
34
34
|
metaData ? React.createElement(MetaWrapper, Object.assign({}, metaData)) : null,
|
35
|
-
React.createElement(PageConstructor, { content: content, custom: componentMap }))))));
|
35
|
+
React.createElement(PageConstructor, { content: content, custom: componentMap, navigation: navigation }))))));
|
36
36
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gravity-ui/blog-constructor",
|
3
|
-
"version": "1.0.0
|
3
|
+
"version": "1.0.0",
|
4
4
|
"description": "Gravity UI Blog Constructor",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -44,7 +44,7 @@
|
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
46
|
"@gravity-ui/i18n": "^1.0.0",
|
47
|
-
"@gravity-ui/uikit": "^
|
47
|
+
"@gravity-ui/uikit": "^3.20.0",
|
48
48
|
"@types/fast-html-parser": "^1.0.2",
|
49
49
|
"@types/recompose": "^0.30.10",
|
50
50
|
"bem-cn-lite": "^4.0.0",
|
@@ -133,8 +133,5 @@
|
|
133
133
|
"*.{json,yaml,yml,md}": [
|
134
134
|
"prettier --write"
|
135
135
|
]
|
136
|
-
},
|
137
|
-
"publishConfig": {
|
138
|
-
"tag": "alpha"
|
139
136
|
}
|
140
137
|
}
|
package/styles/mixins.scss
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
@import './variables.scss';
|
2
2
|
@import '@gravity-ui/page-constructor/styles/mixins.scss';
|
3
|
+
@import '@gravity-ui/page-constructor/src/components/Button/Button.scss';
|
3
4
|
@import '@gravity-ui/uikit/styles/mixins.scss';
|
4
5
|
|
5
6
|
@mixin paddings() {
|
@@ -48,12 +49,12 @@
|
|
48
49
|
}
|
49
50
|
}
|
50
51
|
|
51
|
-
@mixin monochromeButton() {
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
// @mixin monochromeButton() {
|
53
|
+
// --yc-button-background-color: var(--pc-monochrome-button-background-color);
|
54
|
+
// --yc-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
|
55
|
+
// color: var(--yc-color-text-light-primary);
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
}
|
57
|
+
// &:hover {
|
58
|
+
// color: var(--yc-color-text-light-primary);
|
59
|
+
// }
|
60
|
+
// }
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-author__layout {
|
4
|
-
display: flex;
|
5
|
-
align-items: flex-start;
|
6
|
-
flex-direction: row;
|
7
|
-
overflow: hidden;
|
8
|
-
}
|
9
|
-
@media (max-width: 1081px) {
|
10
|
-
.bc-author__layout {
|
11
|
-
width: 50%;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
@media (max-width: 577px) {
|
15
|
-
.bc-author__layout {
|
16
|
-
width: 100%;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
.bc-author__description {
|
20
|
-
color: var(--yc-color-text-primary);
|
21
|
-
}
|
22
|
-
.bc-author__content {
|
23
|
-
display: flex;
|
24
|
-
flex-wrap: wrap;
|
25
|
-
justify-content: flex-start;
|
26
|
-
align-content: flex-start;
|
27
|
-
position: relative;
|
28
|
-
}
|
29
|
-
.bc-author__container {
|
30
|
-
background-color: var(--yc-color-promo-base-silver);
|
31
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-banner {
|
4
|
-
margin-top: 16px;
|
5
|
-
padding-bottom: 16px;
|
6
|
-
}
|
7
|
-
.bc-banner__content {
|
8
|
-
width: 100%;
|
9
|
-
border-radius: var(--bc-border-radius);
|
10
|
-
position: relative;
|
11
|
-
display: flex;
|
12
|
-
flex-direction: row;
|
13
|
-
}
|
14
|
-
.bc-banner__container {
|
15
|
-
width: 100%;
|
16
|
-
border-radius: var(--bc-border-radius);
|
17
|
-
display: flex;
|
18
|
-
min-height: 220px;
|
19
|
-
}
|
20
|
-
.bc-banner__container_offset_large {
|
21
|
-
padding: calc(128px - 96px) 0 16px;
|
22
|
-
margin-bottom: -48px;
|
23
|
-
}
|
24
|
-
.bc-banner__info, .bc-banner__image {
|
25
|
-
flex: 1;
|
26
|
-
}
|
27
|
-
.bc-banner__info {
|
28
|
-
padding: 32px;
|
29
|
-
display: flex;
|
30
|
-
justify-content: space-between;
|
31
|
-
flex-direction: column;
|
32
|
-
align-items: baseline;
|
33
|
-
}
|
34
|
-
.bc-banner__image {
|
35
|
-
margin: var(--pc-image-padding);
|
36
|
-
border-radius: calc(var(--pc-border-radius) - var(--pc-image-padding));
|
37
|
-
width: calc(100% - 8px);
|
38
|
-
height: calc(100% - 8px);
|
39
|
-
object-fit: cover;
|
40
|
-
}
|
41
|
-
.bc-banner__image-container {
|
42
|
-
height: 100%;
|
43
|
-
}
|
44
|
-
.bc-banner__image-container_image-size_s {
|
45
|
-
width: 25%;
|
46
|
-
}
|
47
|
-
.bc-banner__image-container_image-size_m {
|
48
|
-
width: 50%;
|
49
|
-
}
|
50
|
-
@media (max-width: 577px) {
|
51
|
-
.bc-banner__content {
|
52
|
-
flex-direction: column;
|
53
|
-
}
|
54
|
-
.bc-banner__image-container_image-size_s, .bc-banner__image-container_image-size_m {
|
55
|
-
width: 100%;
|
56
|
-
height: 236px;
|
57
|
-
}
|
58
|
-
}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
.bc-cta__card {
|
2
|
-
display: flex;
|
3
|
-
background-color: var(--yc-color-base-float);
|
4
|
-
border-radius: var(--bc-border-radius);
|
5
|
-
min-height: 80px;
|
6
|
-
align-content: center;
|
7
|
-
justify-content: center;
|
8
|
-
flex-direction: column;
|
9
|
-
flex-grow: 1;
|
10
|
-
padding: 32px;
|
11
|
-
}
|
12
|
-
.bc-cta__button {
|
13
|
-
display: flex;
|
14
|
-
padding-bottom: 16px;
|
15
|
-
}
|
16
|
-
.bc-cta__content {
|
17
|
-
display: flex;
|
18
|
-
flex-direction: column;
|
19
|
-
}
|
20
|
-
@media (min-width: 577px) {
|
21
|
-
.bc-cta__content {
|
22
|
-
display: flex;
|
23
|
-
flex-direction: row;
|
24
|
-
}
|
25
|
-
.bc-cta__button {
|
26
|
-
padding-bottom: 0px;
|
27
|
-
}
|
28
|
-
.bc-cta__button_layout {
|
29
|
-
width: 100%;
|
30
|
-
max-width: 100%;
|
31
|
-
margin-right: 0px;
|
32
|
-
}
|
33
|
-
.bc-cta__button_layout_2 {
|
34
|
-
width: calc(50% - (16px / 2));
|
35
|
-
max-width: 50%;
|
36
|
-
margin-right: 16px;
|
37
|
-
}
|
38
|
-
.bc-cta__button_layout_2:nth-child(2n) {
|
39
|
-
margin-right: 0px;
|
40
|
-
}
|
41
|
-
.bc-cta__button_layout_3 {
|
42
|
-
width: calc(33.3333333333% - (32px / 3));
|
43
|
-
margin-right: 16px;
|
44
|
-
}
|
45
|
-
.bc-cta__button_layout_3:nth-child(3n) {
|
46
|
-
margin-right: 0px;
|
47
|
-
}
|
48
|
-
.bc-cta__button_layout_4 {
|
49
|
-
width: calc(25% - (48px / 4));
|
50
|
-
max-width: 50%;
|
51
|
-
margin-right: 16px;
|
52
|
-
}
|
53
|
-
.bc-cta__button_layout_4:nth-child(4n) {
|
54
|
-
margin-right: 0px;
|
55
|
-
}
|
56
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
.bc-colored-text__container {
|
2
|
-
display: flex;
|
3
|
-
border-radius: var(--bc-border-radius);
|
4
|
-
overflow: hidden;
|
5
|
-
position: relative;
|
6
|
-
}
|
7
|
-
.bc-colored-text__picture-container {
|
8
|
-
position: absolute;
|
9
|
-
overflow: hidden;
|
10
|
-
width: 100%;
|
11
|
-
height: 100%;
|
12
|
-
border-radius: var(--bc-border-radius);
|
13
|
-
z-index: 1;
|
14
|
-
top: 0;
|
15
|
-
left: 0;
|
16
|
-
}
|
17
|
-
.bc-colored-text__picture {
|
18
|
-
object-fit: cover;
|
19
|
-
height: 100%;
|
20
|
-
width: 100%;
|
21
|
-
}
|
22
|
-
.bc-colored-text__text-content {
|
23
|
-
position: inherit;
|
24
|
-
z-index: 2;
|
25
|
-
height: 100%;
|
26
|
-
width: 100%;
|
27
|
-
padding: 32px;
|
28
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-layout {
|
4
|
-
margin: 0;
|
5
|
-
padding: 0;
|
6
|
-
}
|
7
|
-
.bc-layout__left-col.bc-layout__left-col {
|
8
|
-
padding: 0;
|
9
|
-
}
|
10
|
-
|
11
|
-
.bc-layout__right-col.bc-layout__right-col {
|
12
|
-
padding: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.bc-layout__row {
|
16
|
-
padding: 0;
|
17
|
-
margin: 0;
|
18
|
-
}
|
19
|
-
.bc-layout__item {
|
20
|
-
margin: 0;
|
21
|
-
padding: 0 8px;
|
22
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-media__text-content {
|
4
|
-
padding-top: 16px;
|
5
|
-
}
|
6
|
-
.bc-media__container {
|
7
|
-
position: relative;
|
8
|
-
height: 100%;
|
9
|
-
}
|
10
|
-
.bc-media__border {
|
11
|
-
position: relative;
|
12
|
-
height: 100%;
|
13
|
-
width: 100%;
|
14
|
-
border-radius: calc(var(--bc-border-radius) + 1px);
|
15
|
-
border: 1px solid var(--yc-color-line-generic);
|
16
|
-
overflow: hidden;
|
17
|
-
}
|
18
|
-
.bc-media__content {
|
19
|
-
position: relative;
|
20
|
-
top: 0;
|
21
|
-
right: 0;
|
22
|
-
width: 100%;
|
23
|
-
height: 100%;
|
24
|
-
overflow: hidden;
|
25
|
-
object-fit: cover;
|
26
|
-
border-radius: var(--bc-border-radius);
|
27
|
-
}
|
28
|
-
.bc-media__video {
|
29
|
-
height: 100%;
|
30
|
-
}
|
31
|
-
.bc-media__video > video {
|
32
|
-
width: 100%;
|
33
|
-
height: auto;
|
34
|
-
border-radius: var(--bc-border-radius);
|
35
|
-
}
|
36
|
-
.bc-media__image {
|
37
|
-
width: 100%;
|
38
|
-
height: 100%;
|
39
|
-
object-fit: cover;
|
40
|
-
border-radius: var(--bc-border-radius);
|
41
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-button-with-icon {
|
4
|
-
display: inline-block;
|
5
|
-
margin: 0;
|
6
|
-
padding: 0;
|
7
|
-
font: inherit;
|
8
|
-
border: none;
|
9
|
-
outline: none;
|
10
|
-
color: inherit;
|
11
|
-
background: none;
|
12
|
-
cursor: pointer;
|
13
|
-
outline: none;
|
14
|
-
display: flex;
|
15
|
-
align-items: center;
|
16
|
-
justify-content: center;
|
17
|
-
transition: color 0.2s;
|
18
|
-
}
|
19
|
-
.utilityfocus .bc-button-with-icon:focus {
|
20
|
-
outline: 2px solid #ffdb4d;
|
21
|
-
}
|
22
|
-
.bc-button-with-icon_size_xs {
|
23
|
-
height: 24px;
|
24
|
-
width: 24px;
|
25
|
-
}
|
26
|
-
.bc-button-with-icon_size_s {
|
27
|
-
height: 28px;
|
28
|
-
width: 28px;
|
29
|
-
}
|
30
|
-
.bc-button-with-icon_size_m {
|
31
|
-
height: 32px;
|
32
|
-
width: 32px;
|
33
|
-
}
|
34
|
-
.bc-button-with-icon_size_n {
|
35
|
-
height: 36px;
|
36
|
-
width: 36px;
|
37
|
-
}
|
38
|
-
.bc-button-with-icon_theme_primary {
|
39
|
-
color: var(--www-text-content-color);
|
40
|
-
transition: color 0.2s;
|
41
|
-
}
|
42
|
-
.bc-button-with-icon_theme_primary:hover {
|
43
|
-
color: var(--yc-color-text-primary);
|
44
|
-
}
|
45
|
-
.bc-button-with-icon_theme_secondary {
|
46
|
-
color: var(--yc-color-text-secondary);
|
47
|
-
transition: color 0.2s;
|
48
|
-
}
|
49
|
-
.bc-button-with-icon_theme_secondary:hover {
|
50
|
-
color: var(--www-text-content-color);
|
51
|
-
}
|
52
|
-
.bc-button-with-icon_theme_link {
|
53
|
-
color: var(--www-text-content-color);
|
54
|
-
transition: color 0.2s;
|
55
|
-
}
|
56
|
-
.bc-button-with-icon_theme_link:hover {
|
57
|
-
color: var(--yc-color-text-link-hover);
|
58
|
-
}
|
59
|
-
.bc-button-with-icon_theme_accent {
|
60
|
-
color: var(--yc-color-text-yandex-red);
|
61
|
-
transition: opacity 0.2s;
|
62
|
-
opacity: 0.7;
|
63
|
-
}
|
64
|
-
.bc-button-with-icon_theme_accent:hover {
|
65
|
-
opacity: 1;
|
66
|
-
}
|
67
|
-
.bc-button-with-icon_disabled {
|
68
|
-
cursor: default;
|
69
|
-
color: var(--yc-color-text-secondary);
|
70
|
-
}
|
71
|
-
.bc-button-with-icon_disabled:hover {
|
72
|
-
color: var(--yc-color-text-secondary);
|
73
|
-
}
|
74
|
-
.mobile .bc-button-with-icon:hover {
|
75
|
-
color: inherit;
|
76
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/* use this for style redefinitions to awoid problems with
|
2
|
-
unpredictable css rules order in build */
|
3
|
-
.bc-feed-header {
|
4
|
-
margin-top: 16px;
|
5
|
-
}
|
6
|
-
.bc-feed-header__header {
|
7
|
-
padding: 16px 0;
|
8
|
-
}
|
9
|
-
.bc-feed-header__content {
|
10
|
-
position: relative;
|
11
|
-
height: 100%;
|
12
|
-
padding-bottom: 0;
|
13
|
-
}
|
14
|
-
.bc-feed-header__content_offset_large {
|
15
|
-
padding: calc(128px - 96px) 0 16px;
|
16
|
-
margin-bottom: -48px;
|
17
|
-
}
|
18
|
-
.bc-feed-header__content_theme_dark.bc-feed-header__content_theme_dark .bc-feed-header__title,
|
19
|
-
.bc-feed-header__content_theme_dark.bc-feed-header__content_theme_dark .bc-feed-header__description * {
|
20
|
-
color: var(--yc-color-text-light-primary);
|
21
|
-
}
|
22
|
-
|
23
|
-
.bc-feed-header_has-background {
|
24
|
-
height: calc(100% + 96px);
|
25
|
-
}
|
26
|
-
.bc-feed-header__content {
|
27
|
-
position: relative;
|
28
|
-
z-index: 10;
|
29
|
-
}
|
30
|
-
.bc-feed-header__background, .bc-feed-header__background-media {
|
31
|
-
z-index: 5;
|
32
|
-
}
|
33
|
-
.bc-feed-header__background {
|
34
|
-
position: absolute;
|
35
|
-
top: 0;
|
36
|
-
left: 50%;
|
37
|
-
width: 1440px;
|
38
|
-
transform: translateX(-50%);
|
39
|
-
max-width: 100vw;
|
40
|
-
height: 100%;
|
41
|
-
border-radius: var(--bc-border-radius);
|
42
|
-
}
|
43
|
-
@media (max-width: 769px) {
|
44
|
-
.bc-feed-header_has-background .bc-feed-header__background-img {
|
45
|
-
display: none;
|
46
|
-
}
|
47
|
-
.bc-feed-header_has-background .bc-feed-header__content_vertical-offset_s, .bc-feed-header_has-background .bc-feed-header__content_vertical-offset_m, .bc-feed-header_has-background .bc-feed-header__content_vertical-offset_l, .bc-feed-header_has-background .bc-feed-header__content_vertical-offset_xl {
|
48
|
-
padding: calc(96px - 16px) 0;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
.mobile .bc-feed-header_has-background .bc-feed-header__title {
|
52
|
-
font-size: var(--yc-text-display-2-font-size);
|
53
|
-
line-height: var(--yc-text-display-2-line-height);
|
54
|
-
}
|