@gravity-ui/page-constructor 3.16.0 → 4.0.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/README.md +1 -1
- package/build/cjs/blocks/Companies/Companies.css +5 -5
- package/build/cjs/blocks/Companies/Companies.js +3 -3
- package/build/cjs/blocks/ContentLayout/ContentLayout.css +4 -4
- package/build/cjs/blocks/ContentLayout/ContentLayout.js +1 -3
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/cjs/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/cjs/blocks/Header/Header.css +22 -22
- package/build/cjs/blocks/Header/Header.js +2 -2
- package/build/cjs/blocks/Icons/Icons.css +2 -2
- package/build/cjs/blocks/Info/Info.css +1 -1
- package/build/cjs/blocks/Info/Info.js +3 -3
- package/build/cjs/blocks/Media/Media.js +2 -2
- package/build/cjs/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/cjs/blocks/Questions/Questions.css +12 -12
- package/build/cjs/blocks/Share/Share.css +14 -12
- package/build/cjs/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/cjs/blocks/Slider/Slider.css +10 -10
- package/build/cjs/blocks/Table/Table.css +5 -5
- package/build/cjs/blocks/Tabs/Tabs.css +6 -6
- package/build/cjs/blocks/Tabs/Tabs.js +2 -2
- package/build/cjs/components/Anchor/Anchor.d.ts +2 -3
- package/build/cjs/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/cjs/components/Author/Author.css +8 -8
- package/build/cjs/components/Author/Author.js +2 -2
- package/build/cjs/components/BlockBase/BlockBase.d.ts +2 -2
- package/build/cjs/components/BlockBase/BlockBase.js +1 -1
- package/build/cjs/components/Button/Button.css +4 -0
- package/build/cjs/components/Button/Button.d.ts +2 -3
- package/build/cjs/components/Button/Button.js +3 -2
- package/build/cjs/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/cjs/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/cjs/components/CardBase/CardBase.css +6 -6
- package/build/cjs/components/Control/Control.css +9 -9
- package/build/cjs/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/cjs/components/FileLink/FileLink.css +16 -56
- package/build/cjs/components/FileLink/FileLink.js +18 -1
- package/build/cjs/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/cjs/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/cjs/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/cjs/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/cjs/components/Image/Image.d.ts +2 -3
- package/build/cjs/components/Link/Link.css +13 -13
- package/build/cjs/components/Media/Video/Video.js +1 -0
- package/build/cjs/components/MetaInfo/MetaInfo.css +2 -2
- package/build/cjs/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/cjs/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/cjs/components/Table/Table.css +8 -8
- package/build/cjs/components/Title/Title.css +4 -4
- package/build/cjs/components/Title/TitleItem.css +19 -19
- package/build/cjs/components/Title/TitleItem.d.ts +2 -3
- package/build/cjs/components/Title/TitleItem.js +2 -2
- package/build/cjs/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/cjs/components/VideoBlock/VideoBlock.css +2 -2
- package/build/cjs/components/constants.d.ts +3 -1
- package/build/cjs/components/constants.js +4 -2
- package/build/cjs/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/cjs/containers/PageConstructor/PageConstructor.js +6 -3
- package/build/cjs/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/cjs/containers/PageConstructor/Provider.js +2 -2
- package/build/cjs/context/theme/ThemeContext.d.ts +2 -3
- package/build/cjs/context/theme/ThemeContext.js +0 -1
- package/build/cjs/context/theme/index.d.ts +0 -1
- package/build/cjs/context/theme/index.js +0 -1
- package/build/cjs/context/theme/useTheme.d.ts +1 -1
- package/build/cjs/context/theme/useTheme.js +2 -2
- package/build/cjs/context/theme/withTheme.js +1 -1
- package/build/cjs/editor/components/AddBlock/AddBlock.css +6 -5
- package/build/cjs/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/cjs/editor/components/ControlPanel/ControlPanel.css +12 -5
- package/build/cjs/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
- package/build/cjs/editor/components/ControlPanel/ControlPanel.js +16 -9
- package/build/cjs/editor/components/EditBlock/EditBlock.css +2 -2
- package/build/cjs/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
- package/build/cjs/editor/components/Layout/Layout.css +11 -9
- package/build/cjs/editor/components/Layout/Layout.d.ts +4 -1
- package/build/cjs/editor/components/Layout/Layout.js +2 -2
- package/build/cjs/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
- package/build/cjs/editor/containers/Editor/Editor.js +5 -5
- package/build/cjs/editor/containers/Form/Form.css +12 -12
- package/build/cjs/editor/data/previews/default-preview.js +1 -1
- package/build/cjs/editor/data/previews/header-block.js +5 -5
- package/build/cjs/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
- package/build/cjs/editor/store/index.d.ts +3 -1
- package/build/cjs/editor/store/index.js +7 -2
- package/build/cjs/editor/store/reducer.d.ts +8 -2
- package/build/cjs/editor/store/reducer.js +4 -1
- package/build/cjs/editor/styles/root.css +6 -4
- package/build/cjs/grid/Col/Col.d.ts +3 -4
- package/build/cjs/grid/Col/Col.js +2 -2
- package/build/cjs/grid/Grid/Grid.css +1 -1
- package/build/cjs/models/common.d.ts +4 -0
- package/build/cjs/models/common.js +5 -1
- package/build/cjs/models/constructor-items/blocks.d.ts +0 -4
- package/build/cjs/models/constructor-items/common.d.ts +3 -5
- package/build/cjs/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
- package/build/cjs/navigation/components/Logo/Logo.css +3 -3
- package/build/cjs/navigation/components/Logo/Logo.js +3 -3
- package/build/cjs/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
- package/build/cjs/navigation/components/Navigation/Navigation.css +2 -2
- package/build/cjs/navigation/components/NavigationItem/NavigationItem.css +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/cjs/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
- package/build/cjs/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/cjs/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/cjs/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/cjs/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/cjs/sub-blocks/Content/Content.css +22 -22
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.css +6 -6
- package/build/cjs/sub-blocks/Content/ContentList/ContentList.js +3 -3
- package/build/cjs/sub-blocks/Divider/Divider.css +1 -1
- package/build/cjs/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/cjs/sub-blocks/HubspotForm/index.js +2 -2
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/cjs/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/cjs/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/cjs/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/cjs/sub-blocks/Quote/Quote.css +10 -10
- package/build/cjs/sub-blocks/Quote/Quote.js +2 -2
- package/build/cjs/utils/theme.d.ts +1 -1
- package/build/esm/blocks/Companies/Companies.css +5 -5
- package/build/esm/blocks/Companies/Companies.js +3 -3
- package/build/esm/blocks/ContentLayout/ContentLayout.css +4 -4
- package/build/esm/blocks/ContentLayout/ContentLayout.js +1 -3
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.css +16 -16
- package/build/esm/blocks/ExtendedFeatures/ExtendedFeatures.js +3 -3
- package/build/esm/blocks/Header/Header.css +22 -22
- package/build/esm/blocks/Header/Header.js +2 -2
- package/build/esm/blocks/Icons/Icons.css +2 -2
- package/build/esm/blocks/Info/Info.css +1 -1
- package/build/esm/blocks/Info/Info.js +3 -3
- package/build/esm/blocks/Media/Media.js +3 -3
- package/build/esm/blocks/PromoFeaturesBlock/PromoFeaturesBlock.css +13 -13
- package/build/esm/blocks/Questions/Questions.css +12 -12
- package/build/esm/blocks/Share/Share.css +14 -12
- package/build/esm/blocks/Slider/Arrow/Arrow.css +4 -4
- package/build/esm/blocks/Slider/Slider.css +10 -10
- package/build/esm/blocks/Table/Table.css +5 -5
- package/build/esm/blocks/Tabs/Tabs.css +6 -6
- package/build/esm/blocks/Tabs/Tabs.js +3 -3
- package/build/esm/components/Anchor/Anchor.d.ts +2 -3
- package/build/esm/components/AnimateBlock/AnimateBlock.d.ts +2 -3
- package/build/esm/components/Author/Author.css +8 -8
- package/build/esm/components/Author/Author.js +2 -2
- package/build/esm/components/BlockBase/BlockBase.d.ts +2 -2
- package/build/esm/components/BlockBase/BlockBase.js +1 -1
- package/build/esm/components/Button/Button.css +4 -0
- package/build/esm/components/Button/Button.d.ts +2 -3
- package/build/esm/components/Button/Button.js +4 -3
- package/build/esm/components/ButtonTabs/ButtonTabs.css +4 -0
- package/build/esm/components/ButtonTabs/ButtonTabs.d.ts +2 -3
- package/build/esm/components/CardBase/CardBase.css +6 -6
- package/build/esm/components/Control/Control.css +9 -9
- package/build/esm/components/ErrorWrapper/ErrorWrapper.css +3 -3
- package/build/esm/components/FileLink/FileLink.css +16 -56
- package/build/esm/components/FileLink/FileLink.js +18 -1
- package/build/esm/components/FullWidthBackground/FullWidthBackground.css +1 -1
- package/build/esm/components/FullscreenImage/FullscreenImage.css +3 -3
- package/build/esm/components/FullscreenMedia/FullscreenMedia.css +3 -3
- package/build/esm/components/HeaderBreadcrumbs/HeaderBreadcrumbs.css +11 -11
- package/build/esm/components/Image/Image.d.ts +2 -3
- package/build/esm/components/Link/Link.css +13 -13
- package/build/esm/components/Media/Video/Video.js +1 -0
- package/build/esm/components/MetaInfo/MetaInfo.css +2 -2
- package/build/esm/components/OverflowScroller/OverflowScroller.css +1 -1
- package/build/esm/components/ReactPlayer/CustomBarControls.css +1 -1
- package/build/esm/components/ReactPlayer/ReactPlayer.css +2 -2
- package/build/esm/components/Table/Table.css +8 -8
- package/build/esm/components/Title/Title.css +4 -4
- package/build/esm/components/Title/TitleItem.css +19 -19
- package/build/esm/components/Title/TitleItem.d.ts +2 -3
- package/build/esm/components/Title/TitleItem.js +2 -2
- package/build/esm/components/UnpublishedLabel/UnpublishedLabel.css +5 -5
- package/build/esm/components/VideoBlock/VideoBlock.css +2 -2
- package/build/esm/components/constants.d.ts +3 -1
- package/build/esm/components/constants.js +3 -1
- package/build/esm/containers/PageConstructor/PageConstructor.css +50 -30
- package/build/esm/containers/PageConstructor/PageConstructor.js +7 -4
- package/build/esm/containers/PageConstructor/Provider.d.ts +2 -3
- package/build/esm/containers/PageConstructor/Provider.js +2 -2
- package/build/esm/context/theme/ThemeContext.d.ts +2 -3
- package/build/esm/context/theme/ThemeContext.js +0 -1
- package/build/esm/context/theme/index.d.ts +0 -1
- package/build/esm/context/theme/index.js +0 -1
- package/build/esm/context/theme/useTheme.d.ts +1 -1
- package/build/esm/context/theme/useTheme.js +2 -2
- package/build/esm/context/theme/withTheme.js +1 -1
- package/build/esm/editor/components/AddBlock/AddBlock.css +6 -5
- package/build/esm/editor/components/AddBlock/AddBlock.js +1 -1
- package/build/esm/editor/components/ControlPanel/ControlPanel.css +12 -5
- package/build/esm/editor/components/ControlPanel/ControlPanel.d.ts +4 -2
- package/build/esm/editor/components/ControlPanel/ControlPanel.js +17 -10
- package/build/esm/editor/components/EditBlock/EditBlock.css +2 -2
- package/build/esm/editor/components/ErrorBoundary/ErrorBoundary.css +2 -2
- package/build/esm/editor/components/Layout/Layout.css +11 -9
- package/build/esm/editor/components/Layout/Layout.d.ts +4 -1
- package/build/esm/editor/components/Layout/Layout.js +2 -2
- package/build/esm/editor/components/NotFoundBlock/NotFoundBlock.css +4 -4
- package/build/esm/editor/containers/Editor/Editor.js +5 -5
- package/build/esm/editor/containers/Form/Form.css +12 -12
- package/build/esm/editor/data/previews/default-preview.js +1 -1
- package/build/esm/editor/data/previews/header-block.js +5 -5
- package/build/esm/editor/dynamic-forms-custom/components/OneOfCustom/OneOfCustom.css +1 -1
- package/build/esm/editor/store/index.d.ts +3 -1
- package/build/esm/editor/store/index.js +8 -3
- package/build/esm/editor/store/reducer.d.ts +8 -2
- package/build/esm/editor/store/reducer.js +3 -0
- package/build/esm/editor/styles/root.css +6 -4
- package/build/esm/grid/Col/Col.d.ts +3 -4
- package/build/esm/grid/Col/Col.js +2 -2
- package/build/esm/grid/Grid/Grid.css +1 -1
- package/build/esm/models/common.d.ts +4 -0
- package/build/esm/models/common.js +4 -0
- package/build/esm/models/constructor-items/blocks.d.ts +0 -4
- package/build/esm/models/constructor-items/common.d.ts +3 -5
- package/build/esm/navigation/components/DesktopNavigation/DesktopNavigation.css +4 -4
- package/build/esm/navigation/components/Logo/Logo.css +3 -3
- package/build/esm/navigation/components/Logo/Logo.js +3 -3
- package/build/esm/navigation/components/MobileNavigation/MobileNavigation.css +7 -7
- package/build/esm/navigation/components/Navigation/Navigation.css +2 -2
- package/build/esm/navigation/components/NavigationItem/NavigationItem.css +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationDropdown/NavigationDropdown.css +1 -1
- package/build/esm/navigation/components/NavigationItem/components/NavigationLink/NavigationLink.css +2 -2
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.css +5 -5
- package/build/esm/navigation/components/NavigationPopup/NavigationPopup.js +1 -1
- package/build/esm/navigation/components/SocialIcon/SocialIcon.css +3 -3
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +4 -4
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +3 -3
- package/build/esm/sub-blocks/BannerCard/BannerCard.css +16 -16
- package/build/esm/sub-blocks/BannerCard/BannerCard.js +3 -3
- package/build/esm/sub-blocks/Content/Content.css +22 -22
- package/build/esm/sub-blocks/Content/ContentList/ContentList.css +6 -6
- package/build/esm/sub-blocks/Content/ContentList/ContentList.js +3 -3
- package/build/esm/sub-blocks/Divider/Divider.css +1 -1
- package/build/esm/sub-blocks/HubspotForm/HubspotForm.css +39 -39
- package/build/esm/sub-blocks/HubspotForm/index.js +2 -2
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +1 -1
- package/build/esm/sub-blocks/PriceDetailed/CombinedPriceDetailed/CombinedPriceDetailed.css +2 -2
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.css +17 -29
- package/build/esm/sub-blocks/PriceDetailed/PriceDescription/PriceDescription.js +18 -1
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/Details/Settings.css +7 -7
- package/build/esm/sub-blocks/PriceDetailed/PriceDetails/PriceDetails.css +5 -5
- package/build/esm/sub-blocks/Quote/Quote.css +10 -10
- package/build/esm/sub-blocks/Quote/Quote.js +3 -3
- package/build/esm/utils/theme.d.ts +1 -1
- package/package.json +7 -5
- package/server/components/constants.d.ts +3 -1
- package/server/components/constants.js +4 -2
- package/server/models/common.d.ts +4 -0
- package/server/models/common.js +5 -1
- package/server/models/constructor-items/blocks.d.ts +0 -4
- package/server/models/constructor-items/common.d.ts +3 -5
- package/server/utils/theme.d.ts +1 -1
- package/styles/colors/dark.scss +6 -0
- package/styles/colors/light.scss +6 -0
- package/styles/colors/social.scss +10 -0
- package/styles/mixins.scss +21 -25
- package/styles/root.scss +28 -14
- package/styles/storybook/common.scss +6 -6
- package/styles/storybook/palette.scss +6 -6
- package/styles/storybook/typography.scss +46 -46
- package/styles/styles.css +15 -15
- package/styles/variables.scss +0 -8
- package/styles/yfm.scss +12 -12
- package/widget/index.js +1 -1
- package/build/cjs/context/theme/ThemeProvider.d.ts +0 -22
- package/build/cjs/context/theme/ThemeProvider.js +0 -49
- package/build/cjs/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/cjs/context/theme/ThemeValueContext.js +0 -9
- package/build/cjs/context/theme/useThemeValue.d.ts +0 -2
- package/build/cjs/context/theme/useThemeValue.js +0 -11
- package/build/esm/context/theme/ThemeProvider.d.ts +0 -22
- package/build/esm/context/theme/ThemeProvider.js +0 -44
- package/build/esm/context/theme/ThemeValueContext.d.ts +0 -7
- package/build/esm/context/theme/ThemeValueContext.js +0 -5
- package/build/esm/context/theme/useThemeValue.d.ts +0 -2
- package/build/esm/context/theme/useThemeValue.js +0 -6
package/README.md
CHANGED
|
@@ -195,7 +195,7 @@ To add a theme to a block property:
|
|
|
195
195
|
|
|
196
196
|
1. In the `models/blocks.ts` file, define the type of the respective block property using the `ThemeSupporting<T>` generic, where `T` is the type of the property.
|
|
197
197
|
|
|
198
|
-
2. In the file with the block's `react` component, get the value of the property with the theme via `getThemedValue` and `
|
|
198
|
+
2. In the file with the block's `react` component, get the value of the property with the theme via `getThemedValue` and `useTheme` hook (see examples in the `MediaBlock.tsx` block).
|
|
199
199
|
|
|
200
200
|
3. Add theme support to the property validator: in the block's `schema.ts` file, wrap this property in `withTheme`.
|
|
201
201
|
|
|
@@ -8,15 +8,15 @@ unpredictable css rules order in build */
|
|
|
8
8
|
text-align: center;
|
|
9
9
|
}
|
|
10
10
|
.pc-companies-block__title {
|
|
11
|
-
font-size: var(--
|
|
12
|
-
line-height: var(--
|
|
11
|
+
font-size: var(--g-text-display-2-font-size);
|
|
12
|
+
line-height: var(--g-text-display-2-line-height);
|
|
13
13
|
color: var(--pc-text-header-color);
|
|
14
|
-
font-weight: var(--
|
|
14
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 576px) {
|
|
17
17
|
.pc-companies-block__title {
|
|
18
|
-
font-size: var(--
|
|
19
|
-
line-height: var(--
|
|
18
|
+
font-size: var(--g-text-display-1-font-size);
|
|
19
|
+
line-height: var(--g-text-display-1-line-height);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
.pc-companies-block__images {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompaniesBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const components_1 = require("../../components");
|
|
7
7
|
const AnimateBlock_1 = tslib_1.__importDefault(require("../../components/AnimateBlock/AnimateBlock"));
|
|
8
|
-
const
|
|
8
|
+
const theme_1 = require("../../context/theme");
|
|
9
9
|
const utils_1 = require("../../utils");
|
|
10
10
|
const b = (0, utils_1.block)('companies-block');
|
|
11
11
|
const CompaniesBlock = ({ title, images, animated }) => {
|
|
12
|
-
const
|
|
12
|
+
const theme = (0, theme_1.useTheme)();
|
|
13
13
|
const themedImages = (0, utils_1.getThemedValue)(images, theme) || {};
|
|
14
14
|
return (react_1.default.createElement(AnimateBlock_1.default, { className: b(), offset: 150, animate: animated },
|
|
15
15
|
react_1.default.createElement("div", { className: b('content') },
|
|
@@ -15,12 +15,12 @@ unpredictable css rules order in build */
|
|
|
15
15
|
margin-top: 24px;
|
|
16
16
|
}
|
|
17
17
|
.pc-content-layout-block__files_size_s {
|
|
18
|
-
font-size: var(--
|
|
19
|
-
line-height: var(--
|
|
18
|
+
font-size: var(--g-text-body-2-font-size);
|
|
19
|
+
line-height: var(--g-text-body-2-line-height);
|
|
20
20
|
}
|
|
21
21
|
.pc-content-layout-block__files_size_l {
|
|
22
|
-
font-size: var(--
|
|
23
|
-
line-height: var(--
|
|
22
|
+
font-size: var(--g-text-body-3-font-size);
|
|
23
|
+
line-height: var(--g-text-body-3-line-height);
|
|
24
24
|
}
|
|
25
25
|
.pc-content-layout-block__files_centered {
|
|
26
26
|
margin-left: auto;
|
|
@@ -31,9 +31,7 @@ function getTextWidth(size) {
|
|
|
31
31
|
}
|
|
32
32
|
const ContentLayoutBlock = (props) => {
|
|
33
33
|
const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
34
|
-
const { textContent, fileContent } = props;
|
|
35
|
-
const propsSource = props.properties || props;
|
|
36
|
-
const { size = 'l', background, centered, theme = 'default', textWidth = 'm' } = propsSource;
|
|
34
|
+
const { textContent, fileContent, size = 'l', background, centered, theme = 'default', textWidth = 'm', } = props;
|
|
37
35
|
const colSizes = (0, react_1.useMemo)(() => getTextWidth(textWidth), [textWidth]);
|
|
38
36
|
return (react_1.default.createElement("div", { className: b({ size, background: Boolean(background) }) },
|
|
39
37
|
react_1.default.createElement(sub_blocks_1.Content, Object.assign({ className: b('content') }, textContent, { size: size, centered: centered, colSizes: colSizes, theme: theme })),
|
|
@@ -17,17 +17,17 @@ unpredictable css rules order in build */
|
|
|
17
17
|
padding-right: 32px;
|
|
18
18
|
}
|
|
19
19
|
.pc-ExtendedFeaturesBlock__item-title {
|
|
20
|
-
font-size: var(--
|
|
21
|
-
line-height: var(--
|
|
20
|
+
font-size: var(--g-text-header-1-font-size);
|
|
21
|
+
line-height: var(--g-text-header-1-line-height);
|
|
22
22
|
color: var(--pc-text-header-color);
|
|
23
|
-
font-weight: var(--
|
|
23
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
24
24
|
display: block;
|
|
25
25
|
position: relative;
|
|
26
26
|
margin-bottom: 8px;
|
|
27
27
|
}
|
|
28
28
|
.pc-ExtendedFeaturesBlock__item-title a {
|
|
29
29
|
outline: none;
|
|
30
|
-
color: var(--
|
|
30
|
+
color: var(--g-color-text-link);
|
|
31
31
|
text-decoration: none;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
@@ -35,28 +35,28 @@ unpredictable css rules order in build */
|
|
|
35
35
|
outline: 2px solid #ffdb4d;
|
|
36
36
|
}
|
|
37
37
|
.pc-ExtendedFeaturesBlock__item-title a:hover, .pc-ExtendedFeaturesBlock__item-title a:active {
|
|
38
|
-
--pc-text-header-color: var(--
|
|
39
|
-
color: var(--
|
|
38
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
39
|
+
color: var(--g-color-text-link-hover);
|
|
40
40
|
}
|
|
41
41
|
.pc-ExtendedFeaturesBlock__item-label {
|
|
42
|
-
font-size: var(--
|
|
43
|
-
line-height: var(--
|
|
42
|
+
font-size: var(--g-text-caption-2-font-size);
|
|
43
|
+
line-height: var(--g-text-caption-2-line-height);
|
|
44
44
|
position: relative;
|
|
45
45
|
top: -3px;
|
|
46
46
|
height: 16px;
|
|
47
47
|
margin-left: 8px;
|
|
48
48
|
padding: 1.5px 5px 2px;
|
|
49
|
-
color: var(--
|
|
50
|
-
background-color: var(--
|
|
49
|
+
color: var(--g-color-base-background);
|
|
50
|
+
background-color: var(--g-color-base-brand);
|
|
51
51
|
border-radius: 4px;
|
|
52
52
|
}
|
|
53
53
|
.pc-ExtendedFeaturesBlock__item-text, .pc-ExtendedFeaturesBlock__item-link {
|
|
54
|
-
font-size: var(--
|
|
55
|
-
line-height: var(--
|
|
54
|
+
font-size: var(--g-text-body-2-font-size);
|
|
55
|
+
line-height: var(--g-text-body-2-line-height);
|
|
56
56
|
}
|
|
57
57
|
.pc-ExtendedFeaturesBlock__item-text a {
|
|
58
58
|
outline: none;
|
|
59
|
-
color: var(--
|
|
59
|
+
color: var(--g-color-text-link);
|
|
60
60
|
text-decoration: none;
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
}
|
|
@@ -64,12 +64,12 @@ unpredictable css rules order in build */
|
|
|
64
64
|
outline: 2px solid #ffdb4d;
|
|
65
65
|
}
|
|
66
66
|
.pc-ExtendedFeaturesBlock__item-text a:hover, .pc-ExtendedFeaturesBlock__item-text a:active {
|
|
67
|
-
--pc-text-header-color: var(--
|
|
68
|
-
color: var(--
|
|
67
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
68
|
+
color: var(--g-color-text-link-hover);
|
|
69
69
|
}
|
|
70
70
|
.pc-ExtendedFeaturesBlock__item-link {
|
|
71
71
|
margin-top: 8px;
|
|
72
|
-
color: var(--
|
|
72
|
+
color: var(--g-color-text-link);
|
|
73
73
|
}
|
|
74
74
|
.pc-ExtendedFeaturesBlock__icon {
|
|
75
75
|
width: 32px;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExtendedFeaturesBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const components_1 = require("../../components/");
|
|
7
7
|
const Image_1 = tslib_1.__importDefault(require("../../components/Image/Image"));
|
|
8
8
|
const utils_1 = require("../../components/Media/Image/utils");
|
|
9
|
-
const
|
|
9
|
+
const theme_1 = require("../../context/theme");
|
|
10
10
|
const grid_1 = require("../../grid");
|
|
11
11
|
const sub_blocks_1 = require("../../sub-blocks");
|
|
12
12
|
const utils_2 = require("../../utils");
|
|
@@ -17,7 +17,7 @@ const DEFAULT_SIZES = {
|
|
|
17
17
|
md: 4,
|
|
18
18
|
};
|
|
19
19
|
const ExtendedFeaturesBlock = ({ title, description, items, colSizes = DEFAULT_SIZES, animated, }) => {
|
|
20
|
-
const
|
|
20
|
+
const theme = (0, theme_1.useTheme)();
|
|
21
21
|
return (react_1.default.createElement(components_1.AnimateBlock, { className: b(), animate: animated },
|
|
22
22
|
react_1.default.createElement(components_1.Title, { title: title, subtitle: description, className: b('header') }),
|
|
23
23
|
react_1.default.createElement("div", { className: b('items') },
|
|
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
|
|
|
23
23
|
.pc-header-block__content_theme_dark .pc-header-block__title,
|
|
24
24
|
.pc-header-block__content_theme_dark .pc-header-block__description .yfm,
|
|
25
25
|
.pc-header-block__content_theme_dark .pc-header-block__description .yfm * {
|
|
26
|
-
color: var(--
|
|
26
|
+
color: var(--g-color-text-light-primary);
|
|
27
27
|
}
|
|
28
28
|
.pc-header-block__content_vertical-offset {
|
|
29
29
|
margin: 16px 0;
|
|
@@ -48,21 +48,21 @@ unpredictable css rules order in build */
|
|
|
48
48
|
z-index: 10;
|
|
49
49
|
}
|
|
50
50
|
.pc-header-block__title {
|
|
51
|
-
font-size: var(--
|
|
52
|
-
line-height: var(--
|
|
51
|
+
font-size: var(--g-text-display-4-font-size);
|
|
52
|
+
line-height: var(--g-text-display-4-line-height);
|
|
53
53
|
color: var(--pc-text-header-color);
|
|
54
|
-
font-weight: var(--
|
|
54
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
55
55
|
position: relative;
|
|
56
56
|
}
|
|
57
57
|
@media (max-width: 577px) {
|
|
58
58
|
.pc-header-block__title {
|
|
59
|
-
font-size: var(--
|
|
60
|
-
line-height: var(--
|
|
59
|
+
font-size: var(--g-text-display-2-font-size);
|
|
60
|
+
line-height: var(--g-text-display-2-line-height);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
.pc-header-block__title a {
|
|
64
64
|
outline: none;
|
|
65
|
-
color: var(--
|
|
65
|
+
color: var(--g-color-text-link);
|
|
66
66
|
text-decoration: none;
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
}
|
|
@@ -70,21 +70,21 @@ unpredictable css rules order in build */
|
|
|
70
70
|
outline: 2px solid #ffdb4d;
|
|
71
71
|
}
|
|
72
72
|
.pc-header-block__title a:hover, .pc-header-block__title a:active {
|
|
73
|
-
--pc-text-header-color: var(--
|
|
74
|
-
color: var(--
|
|
73
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
74
|
+
color: var(--g-color-text-link-hover);
|
|
75
75
|
}
|
|
76
76
|
.pc-header-block__description {
|
|
77
77
|
margin-top: 16px;
|
|
78
78
|
font-weight: normal;
|
|
79
|
-
font-size: var(--
|
|
80
|
-
line-height: var(--
|
|
81
|
-
margin-block-end: var(--
|
|
79
|
+
font-size: var(--g-text-caption-2-font-size);
|
|
80
|
+
line-height: var(--g-text-caption-2-line-height);
|
|
81
|
+
margin-block-end: var(--g-text-body-1-line-height);
|
|
82
82
|
}
|
|
83
83
|
.pc-header-block__description .yfm,
|
|
84
84
|
.pc-header-block__description .yfm * {
|
|
85
|
-
font-size: var(--
|
|
86
|
-
line-height: var(--
|
|
87
|
-
color: var(--
|
|
85
|
+
font-size: var(--g-text-body-3-font-size);
|
|
86
|
+
line-height: var(--g-text-body-3-line-height);
|
|
87
|
+
color: var(--g-color-text-primary);
|
|
88
88
|
}
|
|
89
89
|
.pc-header-block__buttons {
|
|
90
90
|
margin-top: 16px;
|
|
@@ -165,18 +165,18 @@ unpredictable css rules order in build */
|
|
|
165
165
|
transform: none;
|
|
166
166
|
max-width: none;
|
|
167
167
|
width: 100%;
|
|
168
|
-
background-color: var(--
|
|
168
|
+
background-color: var(--g-color-base-background);
|
|
169
169
|
}
|
|
170
170
|
.pc-header-block__overtitle {
|
|
171
|
-
font-size: var(--
|
|
172
|
-
line-height: var(--
|
|
173
|
-
margin-block-start: var(--
|
|
171
|
+
font-size: var(--g-text-body-3-font-size);
|
|
172
|
+
line-height: var(--g-text-body-3-line-height);
|
|
173
|
+
margin-block-start: var(--g-text-body-3-line-height);
|
|
174
174
|
margin-bottom: 8px;
|
|
175
175
|
font-weight: 400;
|
|
176
176
|
}
|
|
177
177
|
.pc-header-block__overtitle a {
|
|
178
178
|
outline: none;
|
|
179
|
-
color: var(--
|
|
179
|
+
color: var(--g-color-text-link);
|
|
180
180
|
text-decoration: none;
|
|
181
181
|
cursor: pointer;
|
|
182
182
|
}
|
|
@@ -184,8 +184,8 @@ unpredictable css rules order in build */
|
|
|
184
184
|
outline: 2px solid #ffdb4d;
|
|
185
185
|
}
|
|
186
186
|
.pc-header-block__overtitle a:hover, .pc-header-block__overtitle a:active {
|
|
187
|
-
--pc-text-header-color: var(--
|
|
188
|
-
color: var(--
|
|
187
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
188
|
+
color: var(--g-color-text-link-hover);
|
|
189
189
|
}
|
|
190
190
|
@media (max-width: 1440px) {
|
|
191
191
|
.pc-header-block__background, .pc-header-block__background.pc-header-block__background_media {
|
|
@@ -8,7 +8,7 @@ const HeaderBreadcrumbs_1 = tslib_1.__importDefault(require("../../components/He
|
|
|
8
8
|
const utils_1 = require("../../components/Media/Image/utils");
|
|
9
9
|
const YFMWrapper_1 = tslib_1.__importDefault(require("../../components/YFMWrapper/YFMWrapper"));
|
|
10
10
|
const mobileContext_1 = require("../../context/mobileContext");
|
|
11
|
-
const
|
|
11
|
+
const theme_1 = require("../../context/theme");
|
|
12
12
|
const grid_1 = require("../../grid");
|
|
13
13
|
const utils_2 = require("../../utils");
|
|
14
14
|
const utils_3 = require("./utils");
|
|
@@ -23,7 +23,7 @@ const FullWidthBackground = ({ background }) => (react_1.default.createElement("
|
|
|
23
23
|
const HeaderBlock = (props) => {
|
|
24
24
|
const { title, overtitle, description, buttons, image, video, width = 'm', imageSize, offset = 'default', background, theme: textTheme = 'light', verticalOffset = 'm', className, breadcrumbs, status, children, } = props;
|
|
25
25
|
const isMobile = (0, react_1.useContext)(mobileContext_1.MobileContext);
|
|
26
|
-
const
|
|
26
|
+
const theme = (0, theme_1.useTheme)();
|
|
27
27
|
const hasRightSideImage = Boolean(image || video);
|
|
28
28
|
const curImageSize = imageSize || (0, utils_3.getImageSize)(width);
|
|
29
29
|
const titleSizes = hasRightSideImage ? (0, utils_3.titleWithImageSizes)(curImageSize) : (0, utils_3.getTitleSizes)(width);
|
|
@@ -4,8 +4,8 @@ unpredictable css rules order in build */
|
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-wrap: wrap;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
7
|
+
font-size: var(--g-text-body-2-font-size);
|
|
8
|
+
line-height: var(--g-text-body-2-line-height);
|
|
9
9
|
}
|
|
10
10
|
.pc-icons-block_size_s .pc-icons-block__item {
|
|
11
11
|
width: 96px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* use this for style redefinitions to awoid problems with
|
|
2
2
|
unpredictable css rules order in build */
|
|
3
3
|
.pc-info-block__container {
|
|
4
|
-
background-color: var(--
|
|
4
|
+
background-color: var(--g-color-base-brand);
|
|
5
5
|
padding: 96px 64px;
|
|
6
6
|
border-radius: var(--pc-border-radius);
|
|
7
7
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InfoBlock = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
6
|
-
const
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const theme_1 = require("../../context/theme");
|
|
7
7
|
const grid_1 = require("../../grid");
|
|
8
8
|
const Content_1 = tslib_1.__importDefault(require("../../sub-blocks/Content/Content"));
|
|
9
9
|
const utils_1 = require("../../utils");
|
|
@@ -11,7 +11,7 @@ const b = (0, utils_1.block)('info-block');
|
|
|
11
11
|
const sizes = { md: 6, all: 12 };
|
|
12
12
|
const InfoBlock = (props) => {
|
|
13
13
|
const { backgroundColor, theme: blockTheme = 'dark', buttons = [], title, sectionsTitle, links = [], rightContent = {}, leftContent = {}, } = props;
|
|
14
|
-
const
|
|
14
|
+
const theme = (0, theme_1.useTheme)();
|
|
15
15
|
const contentTheme = blockTheme === 'dark' ? 'dark' : 'default';
|
|
16
16
|
const rightLinks = [
|
|
17
17
|
...((rightContent === null || rightContent === void 0 ? void 0 : rightContent.links) || []),
|
|
@@ -5,12 +5,12 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Media_1 = tslib_1.__importDefault(require("../../components/Media/Media"));
|
|
7
7
|
const MediaBase_1 = tslib_1.__importDefault(require("../../components/MediaBase/MediaBase"));
|
|
8
|
-
const
|
|
8
|
+
const theme_1 = require("../../context/theme");
|
|
9
9
|
const utils_1 = require("../../utils");
|
|
10
10
|
const MediaBlock = (props) => {
|
|
11
11
|
const { media } = props;
|
|
12
12
|
const [play, setPlay] = (0, react_1.useState)(false);
|
|
13
|
-
const
|
|
13
|
+
const theme = (0, theme_1.useTheme)();
|
|
14
14
|
const mediaThemed = (0, utils_1.getThemedValue)(media, theme);
|
|
15
15
|
return (react_1.default.createElement(MediaBase_1.default, Object.assign({}, props, { onScroll: () => setPlay(true) }),
|
|
16
16
|
react_1.default.createElement(MediaBase_1.default.Card, null,
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/* use this for style redefinitions to awoid problems with
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
7
|
.pc-PromoFeaturesBlock__card-title {
|
|
8
|
-
font-size: var(--
|
|
9
|
-
line-height: var(--
|
|
8
|
+
font-size: var(--g-text-header-1-font-size);
|
|
9
|
+
line-height: var(--g-text-header-1-line-height);
|
|
10
10
|
color: var(--pc-text-header-color);
|
|
11
|
-
font-weight: var(--
|
|
11
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
12
12
|
}
|
|
13
13
|
.pc-PromoFeaturesBlock__card-container {
|
|
14
14
|
display: flex;
|
|
@@ -23,7 +23,7 @@ unpredictable css rules order in build */
|
|
|
23
23
|
background-color: inherit;
|
|
24
24
|
}
|
|
25
25
|
.pc-PromoFeaturesBlock__background_grey {
|
|
26
|
-
background-color: var(--
|
|
26
|
+
background-color: var(--g-color-base-misc-light);
|
|
27
27
|
}
|
|
28
28
|
.pc-PromoFeaturesBlock_grey {
|
|
29
29
|
padding: 64px 0;
|
|
@@ -44,8 +44,8 @@ unpredictable css rules order in build */
|
|
|
44
44
|
margin-bottom: 8px;
|
|
45
45
|
}
|
|
46
46
|
.pc-PromoFeaturesBlock__card-text {
|
|
47
|
-
font-size: var(--
|
|
48
|
-
line-height: var(--
|
|
47
|
+
font-size: var(--g-text-body-2-font-size);
|
|
48
|
+
line-height: var(--g-text-body-2-line-height);
|
|
49
49
|
}
|
|
50
50
|
.pc-PromoFeaturesBlock__card-media {
|
|
51
51
|
margin-top: 16px;
|
|
@@ -57,24 +57,24 @@ unpredictable css rules order in build */
|
|
|
57
57
|
padding: 32px;
|
|
58
58
|
}
|
|
59
59
|
.pc-PromoFeaturesBlock__card_light {
|
|
60
|
-
background-color: var(--
|
|
60
|
+
background-color: var(--g-color-base-background);
|
|
61
61
|
}
|
|
62
62
|
.pc-PromoFeaturesBlock__card_default {
|
|
63
|
-
background-color: var(--
|
|
63
|
+
background-color: var(--g-color-base-misc-light);
|
|
64
64
|
}
|
|
65
65
|
.pc-PromoFeaturesBlock__card_accent {
|
|
66
|
-
color: var(--
|
|
67
|
-
background-color: var(--
|
|
66
|
+
color: var(--g-color-text-light-primary);
|
|
67
|
+
background-color: var(--g-color-base-brand);
|
|
68
68
|
}
|
|
69
69
|
.pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-title,
|
|
70
70
|
.pc-PromoFeaturesBlock__card_accent .pc-PromoFeaturesBlock__card-text > .yfm * {
|
|
71
|
-
color: var(--
|
|
71
|
+
color: var(--g-color-text-light-primary);
|
|
72
72
|
}
|
|
73
73
|
.pc-PromoFeaturesBlock__card_accent-light {
|
|
74
|
-
background-color: var(--
|
|
74
|
+
background-color: var(--pc-color-base-copper);
|
|
75
75
|
}
|
|
76
76
|
.pc-PromoFeaturesBlock__card_primary {
|
|
77
|
-
background-color: var(--
|
|
77
|
+
background-color: var(--pc-color-base-gold);
|
|
78
78
|
}
|
|
79
79
|
@media (min-width: 769px) {
|
|
80
80
|
.pc-PromoFeaturesBlock.pc-AnimateBlock .pc-PromoFeaturesBlock__card-container-column, .pc-AnimateBlock .pc-PromoFeaturesBlock .pc-PromoFeaturesBlock__card-container-column {
|
|
@@ -12,23 +12,23 @@ unpredictable css rules order in build */
|
|
|
12
12
|
}
|
|
13
13
|
.pc-QuestionsBlock__item {
|
|
14
14
|
padding-bottom: 32px;
|
|
15
|
-
border-bottom: 1px solid var(--
|
|
15
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
|
16
16
|
}
|
|
17
17
|
.pc-QuestionsBlock__item + .pc-QuestionsBlock__item {
|
|
18
18
|
padding-top: 32px;
|
|
19
19
|
}
|
|
20
20
|
.pc-QuestionsBlock__item-title {
|
|
21
|
-
font-size: var(--
|
|
22
|
-
line-height: var(--
|
|
21
|
+
font-size: var(--g-text-header-1-font-size);
|
|
22
|
+
line-height: var(--g-text-header-1-line-height);
|
|
23
23
|
color: var(--pc-text-header-color);
|
|
24
|
-
font-weight: var(--
|
|
24
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
25
25
|
position: relative;
|
|
26
26
|
padding-right: 24px;
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
}
|
|
29
29
|
.pc-QuestionsBlock__item-title a {
|
|
30
30
|
outline: none;
|
|
31
|
-
color: var(--
|
|
31
|
+
color: var(--g-color-text-link);
|
|
32
32
|
text-decoration: none;
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
}
|
|
@@ -36,23 +36,23 @@ unpredictable css rules order in build */
|
|
|
36
36
|
outline: 2px solid #ffdb4d;
|
|
37
37
|
}
|
|
38
38
|
.pc-QuestionsBlock__item-title a:hover, .pc-QuestionsBlock__item-title a:active {
|
|
39
|
-
--pc-text-header-color: var(--
|
|
40
|
-
color: var(--
|
|
39
|
+
--pc-text-header-color: var(--g-color-text-link-hover);
|
|
40
|
+
color: var(--g-color-text-link-hover);
|
|
41
41
|
}
|
|
42
42
|
.pc-QuestionsBlock__text {
|
|
43
|
-
font-size: var(--
|
|
44
|
-
line-height: var(--
|
|
43
|
+
font-size: var(--g-text-body-2-font-size);
|
|
44
|
+
line-height: var(--g-text-body-2-line-height);
|
|
45
45
|
margin-top: 12px;
|
|
46
46
|
}
|
|
47
47
|
.pc-QuestionsBlock__arrow {
|
|
48
48
|
position: absolute;
|
|
49
49
|
right: 0;
|
|
50
50
|
top: 0;
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--g-color-text-primary);
|
|
52
52
|
}
|
|
53
53
|
.pc-QuestionsBlock__link {
|
|
54
|
-
font-size: var(--
|
|
55
|
-
line-height: var(--
|
|
54
|
+
font-size: var(--g-text-body-2-font-size);
|
|
55
|
+
line-height: var(--g-text-body-2-line-height);
|
|
56
56
|
}
|
|
57
57
|
@media (max-width: 769px) {
|
|
58
58
|
.pc-QuestionsBlock__title {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/* use this for style redefinitions to awoid problems with
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
7
|
.pc-share-block__title {
|
|
8
|
-
font-size: var(--
|
|
9
|
-
line-height: var(--
|
|
8
|
+
font-size: var(--g-text-body-3-font-size);
|
|
9
|
+
line-height: var(--g-text-body-3-line-height);
|
|
10
10
|
color: var(--pc-text-header-color);
|
|
11
|
-
font-weight: var(--
|
|
11
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
12
12
|
text-align: center;
|
|
13
13
|
font-weight: normal;
|
|
14
14
|
}
|
|
@@ -20,27 +20,29 @@ unpredictable css rules order in build */
|
|
|
20
20
|
.pc-share-block__item.pc-share-block__item {
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: center;
|
|
23
|
-
|
|
23
|
+
align-items: center;
|
|
24
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
25
|
+
width: 48px !important;
|
|
24
26
|
height: 48px;
|
|
25
27
|
border-radius: 100%;
|
|
26
28
|
}
|
|
27
29
|
.pc-share-block__item.pc-share-block__item_type_vk {
|
|
28
|
-
background-color: var(--
|
|
30
|
+
background-color: var(--pc-color-vk);
|
|
29
31
|
}
|
|
30
32
|
.pc-share-block__item.pc-share-block__item_type_facebook {
|
|
31
|
-
background-color: var(--
|
|
33
|
+
background-color: var(--pc-color-facebook);
|
|
32
34
|
}
|
|
33
35
|
.pc-share-block__item.pc-share-block__item_type_twitter {
|
|
34
|
-
background-color: var(--
|
|
36
|
+
background-color: var(--pc-color-twitter);
|
|
35
37
|
}
|
|
36
38
|
.pc-share-block__item.pc-share-block__item_type_telegram {
|
|
37
|
-
background-color: var(--
|
|
39
|
+
background-color: var(--pc-color-telegram);
|
|
38
40
|
}
|
|
39
41
|
.pc-share-block__item.pc-share-block__item_type_telegram {
|
|
40
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--pc-color-telegram);
|
|
41
43
|
}
|
|
42
44
|
.pc-share-block__item.pc-share-block__item_type_linkedin {
|
|
43
|
-
background-color: var(--
|
|
45
|
+
background-color: var(--pc-color-linkedin);
|
|
44
46
|
}
|
|
45
47
|
.pc-share-block__item.pc-share-block__item.pc-share-block__item.pc-share-block__item:before {
|
|
46
48
|
border-radius: 100%;
|
|
@@ -48,14 +50,14 @@ unpredictable css rules order in build */
|
|
|
48
50
|
|
|
49
51
|
.pc-share-block__item.pc-share-block__item:hover:before {
|
|
50
52
|
/* stylelint-disable-next-line declaration-no-important */
|
|
51
|
-
background-color: var(--
|
|
53
|
+
background-color: var(--g-color-base-generic) !important;
|
|
52
54
|
border-radius: 100%;
|
|
53
55
|
}
|
|
54
56
|
.pc-share-block__item.pc-share-block__item + .pc-share-block__item.pc-share-block__item {
|
|
55
57
|
margin-left: 12px;
|
|
56
58
|
}
|
|
57
59
|
.pc-share-block__item.pc-share-block__item svg {
|
|
58
|
-
color: var(--
|
|
60
|
+
color: var(--g-color-base-background);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
@media (max-width: 577px) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.pc-slider-block-arrow__button:hover {
|
|
6
|
-
box-shadow: 0px 4px 24px var(--
|
|
6
|
+
box-shadow: 0px 4px 24px var(--g-color-sfx-shadow), 0px 2px 8px var(--g-color-sfx-shadow);
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -43,14 +43,14 @@ unpredictable css rules order in build */
|
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
width: 42px;
|
|
45
45
|
height: 42px;
|
|
46
|
-
color: var(--
|
|
46
|
+
color: var(--g-color-text-secondary);
|
|
47
47
|
border-radius: 100%;
|
|
48
|
-
background-color: var(--
|
|
48
|
+
background-color: var(--g-color-base-background);
|
|
49
49
|
box-shadow: 0 4px 24px var(--pc-color-sfx-shadow), 0 2px 8px var(--pc-color-sfx-shadow);
|
|
50
50
|
transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
51
51
|
}
|
|
52
52
|
.pc-slider-block-arrow:hover .pc-slider-block-arrow__button {
|
|
53
|
-
color: var(--
|
|
53
|
+
color: var(--g-color-text-primary);
|
|
54
54
|
box-shadow: 0 2px 12px var(--pc-color-sfx-shadow), 0 4px 24px var(--pc-color-sfx-shadow);
|
|
55
55
|
}
|
|
56
56
|
.pc-slider-block-arrow__icon {
|
|
@@ -143,17 +143,17 @@ unpredictable css rules order in build */
|
|
|
143
143
|
width: 8px;
|
|
144
144
|
height: 8px;
|
|
145
145
|
border-radius: 100%;
|
|
146
|
-
background-color: var(--
|
|
146
|
+
background-color: var(--g-color-line-generic-accent);
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
}
|
|
149
149
|
.pc-SliderBlock__dot:hover {
|
|
150
|
-
background-color: var(--
|
|
150
|
+
background-color: var(--g-color-line-generic-accent-hover);
|
|
151
151
|
}
|
|
152
152
|
.pc-SliderBlock__dot + .pc-SliderBlock__dot {
|
|
153
153
|
margin-left: 16px;
|
|
154
154
|
}
|
|
155
155
|
.pc-SliderBlock__dot_active {
|
|
156
|
-
background-color: var(--
|
|
156
|
+
background-color: var(--g-color-line-generic-active);
|
|
157
157
|
}
|
|
158
158
|
.pc-SliderBlock__bar {
|
|
159
159
|
position: absolute;
|
|
@@ -180,19 +180,19 @@ unpredictable css rules order in build */
|
|
|
180
180
|
position: absolute;
|
|
181
181
|
top: 0;
|
|
182
182
|
left: 0;
|
|
183
|
-
color: var(--
|
|
183
|
+
color: var(--g-color-text-secondary);
|
|
184
184
|
}
|
|
185
185
|
.pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_l {
|
|
186
|
-
font-size: var(--
|
|
187
|
-
line-height: var(--
|
|
186
|
+
font-size: var(--g-text-header-1-font-size);
|
|
187
|
+
line-height: var(--g-text-header-1-line-height);
|
|
188
188
|
}
|
|
189
189
|
.pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_m {
|
|
190
|
-
font-size: var(--
|
|
191
|
-
line-height: var(--
|
|
190
|
+
font-size: var(--g-text-body-2-font-size);
|
|
191
|
+
line-height: var(--g-text-body-2-line-height);
|
|
192
192
|
}
|
|
193
193
|
.pc-SliderBlock__footer .pc-SliderBlock__disclaimer_size_s {
|
|
194
|
-
font-size: var(--
|
|
195
|
-
line-height: var(--
|
|
194
|
+
font-size: var(--g-text-body-1-font-size);
|
|
195
|
+
line-height: var(--g-text-body-1-line-height);
|
|
196
196
|
}
|
|
197
197
|
@media (min-width: 769px) {
|
|
198
198
|
.pc-SliderBlock__animate-slides.pc-AnimateBlock .slick-slide, .pc-AnimateBlock .pc-SliderBlock__animate-slides .slick-slide {
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
/* use this for style redefinitions to awoid problems with
|
|
6
6
|
unpredictable css rules order in build */
|
|
7
7
|
.pc-table-block__title {
|
|
8
|
-
font-size: var(--
|
|
9
|
-
line-height: var(--
|
|
8
|
+
font-size: var(--g-text-display-2-font-size);
|
|
9
|
+
line-height: var(--g-text-display-2-line-height);
|
|
10
10
|
color: var(--pc-text-header-color);
|
|
11
|
-
font-weight: var(--
|
|
11
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
12
12
|
top: calc(var(--header-height) + 32px);
|
|
13
13
|
position: sticky;
|
|
14
14
|
margin-right: 32px;
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 576px) {
|
|
17
17
|
.pc-table-block__title {
|
|
18
|
-
font-size: var(--
|
|
19
|
-
line-height: var(--
|
|
18
|
+
font-size: var(--g-text-display-1-font-size);
|
|
19
|
+
line-height: var(--g-text-display-1-line-height);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
.pc-table-block__table {
|