@gravity-ui/blog-constructor 1.0.0 → 2.0.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/build/cjs/blocks/Author/Author.css +31 -0
  2. package/build/cjs/blocks/Banner/Banner.css +58 -0
  3. package/build/cjs/blocks/CTA/CTA.css +56 -0
  4. package/build/cjs/blocks/ColoredText/ColoredText.css +28 -0
  5. package/build/cjs/blocks/Layout/Layout.css +22 -0
  6. package/build/cjs/blocks/Media/Media.css +41 -0
  7. package/build/cjs/blocks/Meta/Meta.css +7 -0
  8. package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  9. package/build/cjs/components/FeedHeader/FeedHeader.css +54 -0
  10. package/build/cjs/components/FeedHeader/components/Controls/Controls.css +109 -0
  11. package/build/cjs/components/FeedHeader/components/Controls/Controls.js +2 -2
  12. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  13. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  14. package/build/cjs/components/Paginator/Paginator.css +54 -0
  15. package/build/cjs/components/PostCard/PostCard.css +85 -0
  16. package/build/cjs/components/PostInfo/PostInfo.css +88 -0
  17. package/build/cjs/components/PostInfo/components/Sharing.js +1 -1
  18. package/build/cjs/components/Posts/Posts.css +28 -0
  19. package/build/cjs/components/PostsEmpty/PostsEmpty.css +25 -0
  20. package/build/cjs/components/PostsError/PostError.css +30 -0
  21. package/build/cjs/components/Search/Search.css +32 -0
  22. package/build/cjs/components/Wrapper/Wrapper.css +32 -0
  23. package/build/cjs/containers/BlogPage/BlogPage.css +21 -0
  24. package/build/cjs/containers/BlogPostPage/BlogPostPage.css +251 -0
  25. package/build/esm/blocks/Author/Author.css +31 -0
  26. package/build/esm/blocks/Banner/Banner.css +58 -0
  27. package/build/esm/blocks/CTA/CTA.css +56 -0
  28. package/build/esm/blocks/ColoredText/ColoredText.css +28 -0
  29. package/build/esm/blocks/Layout/Layout.css +22 -0
  30. package/build/esm/blocks/Media/Media.css +41 -0
  31. package/build/esm/blocks/Meta/Meta.css +7 -0
  32. package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  33. package/build/esm/components/FeedHeader/FeedHeader.css +54 -0
  34. package/build/esm/components/FeedHeader/components/Controls/Controls.css +109 -0
  35. package/build/esm/components/FeedHeader/components/Controls/Controls.js +2 -2
  36. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  37. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  38. package/build/esm/components/Paginator/Paginator.css +54 -0
  39. package/build/esm/components/PostCard/PostCard.css +85 -0
  40. package/build/esm/components/PostInfo/PostInfo.css +88 -0
  41. package/build/esm/components/PostInfo/components/Sharing.js +2 -2
  42. package/build/esm/components/Posts/Posts.css +28 -0
  43. package/build/esm/components/PostsEmpty/PostsEmpty.css +25 -0
  44. package/build/esm/components/PostsError/PostError.css +30 -0
  45. package/build/esm/components/Search/Search.css +32 -0
  46. package/build/esm/components/Wrapper/Wrapper.css +32 -0
  47. package/build/esm/containers/BlogPage/BlogPage.css +21 -0
  48. package/build/esm/containers/BlogPostPage/BlogPostPage.css +251 -0
  49. package/package.json +2 -2
  50. package/styles/mixins.css +2 -0
  51. package/styles/mixins.scss +8 -9
  52. package/styles/root.css +21 -0
  53. package/styles/styles.css +196 -0
  54. package/styles/variables.css +0 -0
  55. package/styles/yfm.css +103 -0
@@ -0,0 +1,88 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-post-info__item {
4
+ font-size: var(--yc-text-body-2-font-size);
5
+ line-height: var(--yc-text-body-2-line-height);
6
+ display: flex;
7
+ padding-right: 24px;
8
+ padding-top: 12px;
9
+ flex-wrap: nowrap;
10
+ align-items: center;
11
+ }
12
+ .bc-post-info__item_size_s {
13
+ font-size: var(--yc-text-body-2-font-size);
14
+ line-height: var(--yc-text-body-2-line-height);
15
+ }
16
+ .bc-post-info__item_size_m {
17
+ font-size: var(--yc-text-body-3-font-size);
18
+ line-height: var(--yc-text-body-3-line-height);
19
+ }
20
+ .bc-post-info__item:last-child {
21
+ font-size: var(--yc-text-body-2-font-size);
22
+ line-height: var(--yc-text-body-2-line-height);
23
+ display: flex;
24
+ padding-right: 0px;
25
+ padding-top: 12px;
26
+ flex-wrap: nowrap;
27
+ align-items: center;
28
+ }
29
+ .bc-post-info__switcher {
30
+ color: var(--yc-color-text-secondary);
31
+ }
32
+ .bc-post-info__switcher:hover {
33
+ color: var(--yc-color-text-primary);
34
+ }
35
+ .bc-post-info__switcher_theme_dark {
36
+ color: var(--yc-color-text-light-secondary);
37
+ }
38
+ .bc-post-info__switcher_theme_dark.yc-share-tooltip__container, .bc-post-info__switcher_theme_dark.yc-share-popover__container {
39
+ color: var(--yc-color-text-light-secondary);
40
+ }
41
+ .bc-post-info__switcher_theme_dark:hover {
42
+ color: var(--yc-color-text-light-primary);
43
+ }
44
+ .bc-post-info__switcher_theme_dark:hover.yc-share-tooltip__container, .bc-post-info__switcher_theme_dark:hover.yc-share-popover__container {
45
+ color: var(--yc-color-text-light-primary);
46
+ }
47
+ .bc-post-info__container {
48
+ display: flex;
49
+ align-items: flex-start;
50
+ flex-wrap: wrap;
51
+ padding-top: 12px;
52
+ color: var(--yc-color-text-secondary);
53
+ }
54
+ .bc-post-info__container_theme_dark {
55
+ color: var(--yc-color-text-light-secondary);
56
+ }
57
+ .bc-post-info__icon {
58
+ margin-right: 6px;
59
+ display: flex;
60
+ align-items: center;
61
+ }
62
+ .bc-post-info__title {
63
+ width: auto;
64
+ overflow: hidden;
65
+ }
66
+ .bc-post-info__title_cursor {
67
+ cursor: pointer;
68
+ }
69
+ .bc-post-info__content {
70
+ display: flex;
71
+ }
72
+ .bc-post-info__content_cursor {
73
+ cursor: pointer;
74
+ }
75
+ .bc-post-info__content_cursor:hover {
76
+ color: var(--yc-color-text-primary);
77
+ }
78
+ .bc-post-info__content_cursor.bc-post-info__content_theme_dark:hover {
79
+ color: var(--yc-color-text-light-primary);
80
+ }
81
+ .bc-post-info__likes {
82
+ display: flex;
83
+ }
84
+ .bc-post-info__suggest-container {
85
+ display: flex;
86
+ flex-grow: 1;
87
+ flex-wrap: wrap;
88
+ }
@@ -1,5 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
- import { ShareTooltip } from '@gravity-ui/uikit';
2
+ import { SharePopover } 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(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 }))));
24
+ React.createElement(SharePopover, { 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, shareOptions: shareOptions, handleMetrika: handleMetrika }))));
25
25
  };
@@ -0,0 +1,28 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-posts__cards-container, .bc-posts__pinned-container {
4
+ padding-top: 24px;
5
+ scroll-margin: 48px;
6
+ }
7
+ .bc-posts__pagination {
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ justify-content: center;
12
+ padding-top: 48px;
13
+ padding-bottom: 64px;
14
+ }
15
+ .bc-posts__more-button {
16
+ margin-bottom: 12px;
17
+ }
18
+ .bc-posts__error-show-more {
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ color: var(--yc-color-promo-base-tomato);
24
+ padding-bottom: 12px;
25
+ }
26
+ .bc-posts__paginator {
27
+ padding-top: 12px;
28
+ }
@@ -0,0 +1,25 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-posts-empty__container {
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ }
9
+ .bc-posts-empty__title, .bc-posts-empty__subtitle {
10
+ text-align: center;
11
+ word-wrap: break-word;
12
+ max-width: 400px;
13
+ width: 100%;
14
+ }
15
+ .bc-posts-empty__title {
16
+ margin-top: 24px;
17
+ font-size: var(--yc-text-display-2-font-size);
18
+ line-height: var(--yc-text-display-2-line-height);
19
+ font-weight: var(--yc-text-accent-font-weight);
20
+ }
21
+ .bc-posts-empty__subtitle {
22
+ margin-top: 16px;
23
+ font-size: var(--yc-text-body-3-font-size);
24
+ line-height: var(--yc-text-body-3-line-height);
25
+ }
@@ -0,0 +1,30 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-posts-error__container {
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ padding-top: 24px;
9
+ padding-bottom: 64px;
10
+ }
11
+ .bc-posts-error__title, .bc-posts-error__subtitle {
12
+ text-align: center;
13
+ word-wrap: break-word;
14
+ max-width: 400px;
15
+ width: 100%;
16
+ }
17
+ .bc-posts-error__title {
18
+ margin-top: 24px;
19
+ font-size: var(--yc-text-display-2-font-size);
20
+ line-height: var(--yc-text-display-2-line-height);
21
+ font-weight: var(--yc-text-accent-font-weight);
22
+ }
23
+ .bc-posts-error__subtitle {
24
+ margin-top: 16px;
25
+ font-size: var(--yc-text-body-3-font-size);
26
+ line-height: var(--yc-text-body-3-line-height);
27
+ }
28
+ .bc-posts-error__button {
29
+ padding: 24px 0 48px;
30
+ }
@@ -0,0 +1,32 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-search {
4
+ font-size: var(--yc-text-body-1-font-size);
5
+ line-height: var(--yc-text-body-1-line-height);
6
+ position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: flex-end;
10
+ height: 44px;
11
+ transition: width 0.3s;
12
+ }
13
+ .bc-search__close-button, .bc-search__search-button {
14
+ position: absolute;
15
+ z-index: 2;
16
+ right: 10px;
17
+ color: var(--yc-color-text-hint);
18
+ }
19
+ .bc-search__search-button:hover {
20
+ color: var(--yc-color-text-secondary);
21
+ }
22
+ .bc-search__search-suggest-container {
23
+ width: 100%;
24
+ }
25
+ .bc-search__search-suggest .yc-text-input__control {
26
+ padding-right: 32px;
27
+ }
28
+ .bc-search_size_s {
29
+ height: 36px;
30
+ width: 352px;
31
+ max-width: 100%;
32
+ }
@@ -0,0 +1,32 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-wrapper_padding-top_xs {
4
+ padding-top: 0px;
5
+ }
6
+ .bc-wrapper_padding-top_s {
7
+ padding-top: 16px;
8
+ }
9
+ .bc-wrapper_padding-top_m {
10
+ padding-top: 32px;
11
+ }
12
+ .bc-wrapper_padding-top_l {
13
+ padding-top: 48px;
14
+ }
15
+ .bc-wrapper_padding-top_xl {
16
+ padding-top: 64px;
17
+ }
18
+ .bc-wrapper_padding-bottom_xs {
19
+ padding-bottom: 0px;
20
+ }
21
+ .bc-wrapper_padding-bottom_s {
22
+ padding-bottom: 16px;
23
+ }
24
+ .bc-wrapper_padding-bottom_m {
25
+ padding-bottom: 32px;
26
+ }
27
+ .bc-wrapper_padding-bottom_l {
28
+ padding-bottom: 48px;
29
+ }
30
+ .bc-wrapper_padding-bottom_xl {
31
+ padding-bottom: 64px;
32
+ }
@@ -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
+ }
@@ -0,0 +1,251 @@
1
+ @charset "UTF-8";
2
+ @import '~@doc-tools/transform/dist/css/yfm.css';
3
+ :root {
4
+ --header-height: 64px;
5
+ }
6
+
7
+ .yc-root {
8
+ --yc-text-accent-font-weight: 500;
9
+ --bc-transparent: rgba(255, 255, 255, 0);
10
+ --bc-image-padding: 4px;
11
+ --bc-border-radius: var(--pc-border-radius, 24px);
12
+ --bc-color-sfx-shadow: var(--yc-color-base-simple-hover);
13
+ --bc-color-line-generic-active-solid: #b3b3b3;
14
+ --bc-color-base-float-hover: var(--yc-color-base-float);
15
+ --bc-monochrome-button: #262626;
16
+ --bc-monochrome-button-hover: #393939;
17
+ --bc-text-header-color: var(--yc-color-text-primary);
18
+ }
19
+ .yc-root.yc-root_theme_dark {
20
+ --bc-color-sfx-shadow: var(--yc-color-sfx-shadow);
21
+ --bc-color-line-generic-active-solid: #6c6c70;
22
+ --bc-color-base-float-hover: var(--yc-color-base-float-hover);
23
+ }
24
+
25
+ /* use this for style redefinitions to awoid problems with
26
+ unpredictable css rules order in build */
27
+ .yfm_blog {
28
+ font-size: var(--yc-text-body-3-font-size);
29
+ line-height: var(--yc-text-body-3-line-height);
30
+ color: var(--yc-color-text-primary);
31
+ }
32
+ .yfm_blog h1:first-child,
33
+ .yfm_blog h2:first-child,
34
+ .yfm_blog h3:first-child,
35
+ .yfm_blog h4:first-child {
36
+ padding: 0;
37
+ margin-top: 0;
38
+ padding-top: 0;
39
+ }
40
+ .yfm_blog h2 {
41
+ font-size: var(--yc-text-display-2-font-size);
42
+ line-height: var(--yc-text-display-2-line-height);
43
+ }
44
+ .yfm_blog h3 {
45
+ font-size: var(--yc-text-header-2-font-size);
46
+ line-height: var(--yc-text-header-2-line-height);
47
+ }
48
+ .yfm_blog h4 {
49
+ font-size: var(--yc-text-header-1-font-size);
50
+ line-height: var(--yc-text-header-1-line-height);
51
+ }
52
+ .yfm_blog h1,
53
+ .yfm_blog h2,
54
+ .yfm_blog h3,
55
+ .yfm_blog h4,
56
+ .yfm_blog h5,
57
+ .yfm_blog h6 {
58
+ margin-bottom: 16px;
59
+ margin-top: 48px;
60
+ padding-top: 0;
61
+ font-weight: var(--yc-text-header-font-weight);
62
+ }
63
+ .yfm_blog blockquote,
64
+ .yfm_blog dl,
65
+ .yfm_blog ol,
66
+ .yfm_blog p,
67
+ .yfm_blog pre,
68
+ .yfm_blog table,
69
+ .yfm_blog ul {
70
+ margin: 0 0 16px;
71
+ }
72
+ .yfm_blog img {
73
+ margin-bottom: 32px;
74
+ margin-top: 16px;
75
+ border-radius: 24px;
76
+ }
77
+ .yfm_blog hr {
78
+ height: 1px;
79
+ }
80
+ .yfm_blog ol,
81
+ .yfm_blog ul {
82
+ padding-left: 1.4em;
83
+ }
84
+ .yfm_blog code {
85
+ color: var(--yc-color-text-misc);
86
+ }
87
+ .yfm_blog pre > code {
88
+ color: var(--yc-color-text-primary);
89
+ }
90
+ .yfm_blog table {
91
+ color: var(--yc-color-text-primary);
92
+ border: 1px solid var(--yc-color-line-generic);
93
+ background: var(--yc-color-base-background);
94
+ }
95
+ .yfm_blog thead tr,
96
+ .yfm_blog table tr:nth-child(2n) {
97
+ background-color: var(--yc-color-base-generic);
98
+ }
99
+ .yfm_blog_media {
100
+ font-size: var(--yc-text-body-3-font-size);
101
+ line-height: var(--yc-text-body-3-line-height);
102
+ color: var(--yc-color-text-secondary);
103
+ }
104
+ .yfm_blog_breadcrumbs {
105
+ font-size: var(--yc-text-body-2-font-size);
106
+ line-height: var(--yc-text-body-2-line-height);
107
+ color: var(--yc-text-color-base);
108
+ }
109
+ .yfm_blog a {
110
+ color: var(--yc-color-text-link);
111
+ }
112
+ .yfm_blog a:hover {
113
+ color: var(--yc-color-text-link-hover);
114
+ }
115
+ .yfm_blog .yfm-tab:hover, .yfm_blog .yfm-tab:active {
116
+ color: var(--yc-color-text-link-hover);
117
+ }
118
+ .yfm_blog .yfm-tab.active {
119
+ border-bottom-color: var(--yc-color-text-link);
120
+ }
121
+ .yfm_blog .yfm-clipboard {
122
+ margin: 32px 0;
123
+ }
124
+
125
+ .yfm_blog_card p {
126
+ color: var(--pc-text-header-color);
127
+ }
128
+
129
+ /* use this for style redefinitions to awoid problems with
130
+ unpredictable css rules order in build */
131
+ .yfm_constructor {
132
+ font-family: var(--yc-font-family-sans);
133
+ color: var(--yc-color-text-primary);
134
+ }
135
+ .yfm_constructor code,
136
+ .yfm_constructor kbd,
137
+ .yfm_constructor pre {
138
+ font-family: var(--yc-font-family-monospace);
139
+ color: var(--yc-color-text-primary);
140
+ }
141
+ .yfm_constructor.yfm_constructor h1,
142
+ .yfm_constructor.yfm_constructor h2,
143
+ .yfm_constructor.yfm_constructor h3,
144
+ .yfm_constructor.yfm_constructor h4,
145
+ .yfm_constructor.yfm_constructor h5,
146
+ .yfm_constructor.yfm_constructor h6,
147
+ .yfm_constructor.yfm_constructor span,
148
+ .yfm_constructor.yfm_constructor p,
149
+ .yfm_constructor.yfm_constructor li {
150
+ color: var(--yc-color-text-primary);
151
+ }
152
+ .yfm_constructor.yfm_constructor_notice li,
153
+ .yfm_constructor.yfm_constructor_notice p {
154
+ color: var(--yc-color-text-secondary);
155
+ }
156
+ .yfm_constructor.yfm_constructor ul,
157
+ .yfm_constructor.yfm_constructor ol,
158
+ .yfm_constructor.yfm_constructor li,
159
+ .yfm_constructor.yfm_constructor p {
160
+ margin: 0 0 12px;
161
+ }
162
+ .yfm_constructor.yfm_constructor p strong {
163
+ font-weight: 500;
164
+ }
165
+ .yfm_constructor.yfm_constructor_size_s ul,
166
+ .yfm_constructor.yfm_constructor_size_s ol,
167
+ .yfm_constructor.yfm_constructor_size_s li,
168
+ .yfm_constructor.yfm_constructor_size_s p {
169
+ margin-bottom: 8px;
170
+ }
171
+
172
+ .yfm_constructor_theme_dark p {
173
+ color: var(--yc-color-text-light-primary);
174
+ }
175
+ .yfm_constructor_footnote_text p, .yfm_constructor_footnote_page p {
176
+ opacity: 0.5;
177
+ }
178
+ .yfm_constructor_footnote_text p {
179
+ font-size: var(--yc-text-body-2-font-size);
180
+ line-height: var(--yc-text-body-2-line-height);
181
+ }
182
+ .yfm_constructor_footnote_page p {
183
+ font-size: var(--yc-text-body-1-font-size);
184
+ line-height: var(--yc-text-body-1-line-height);
185
+ display: inline;
186
+ }
187
+ .yfm_constructor_list_style ul {
188
+ padding-left: 20px;
189
+ }
190
+ .yfm_constructor_list_style_dash ul {
191
+ list-style-type: none;
192
+ position: relative;
193
+ }
194
+ .yfm_constructor_list_style_dash ul li:before {
195
+ content: "—";
196
+ position: absolute;
197
+ margin-left: -20px;
198
+ }
199
+ .yfm_constructor a {
200
+ outline: none;
201
+ color: var(--yc-color-text-link);
202
+ text-decoration: none;
203
+ cursor: pointer;
204
+ }
205
+ .utilityfocus .yfm_constructor a:focus {
206
+ outline: 2px solid #ffdb4d;
207
+ }
208
+ .yfm_constructor a:hover, .yfm_constructor a:active {
209
+ --pc-text-header-color: var(--yc-color-text-link-hover);
210
+ color: var(--yc-color-text-link-hover);
211
+ }
212
+ .yfm_constructor table {
213
+ color: var(--yc-color-text-primary);
214
+ border: 1px solid var(--yc-color-line-generic);
215
+ background: var(--yc-color-base-background);
216
+ }
217
+ .yfm_constructor thead,
218
+ .yfm_constructor table tr:nth-child(2n) {
219
+ background-color: var(--yc-color-base-generic);
220
+ }
221
+
222
+ .yfm_constructor_table {
223
+ /* stylelint-enable declaration-no-important */
224
+ }
225
+ .yfm_constructor_table table {
226
+ border: 0;
227
+ table-layout: fixed;
228
+ }
229
+ .yfm_constructor_table thead,
230
+ .yfm_constructor_table tr {
231
+ /* stylelint-disable declaration-no-important */
232
+ background-color: transparent !important;
233
+ }
234
+ .yfm_constructor_table tbody tr {
235
+ border-top: 1px solid var(--yc-color-line-generic);
236
+ }
237
+ .yfm_constructor_table td,
238
+ .yfm_constructor_table th {
239
+ min-width: 120px;
240
+ width: 120px;
241
+ box-sizing: content-box;
242
+ white-space: inherit !important;
243
+ }
244
+ .yfm_constructor_table td:first-child,
245
+ .yfm_constructor_table th:first-child {
246
+ min-width: 172px;
247
+ width: 172px;
248
+ }
249
+ .yfm_constructor_table th {
250
+ text-align: left !important;
251
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/blog-constructor",
3
- "version": "1.0.0",
3
+ "version": "2.0.0-alpha.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": "^3.20.0",
47
+ "@gravity-ui/uikit": "^4.1.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",
@@ -0,0 +1,2 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
@@ -1,6 +1,5 @@
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';
4
3
  @import '@gravity-ui/uikit/styles/mixins.scss';
5
4
 
6
5
  @mixin paddings() {
@@ -49,12 +48,12 @@
49
48
  }
50
49
  }
51
50
 
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);
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);
56
55
 
57
- // &:hover {
58
- // color: var(--yc-color-text-light-primary);
59
- // }
60
- // }
56
+ &:hover {
57
+ color: var(--yc-color-text-light-primary);
58
+ }
59
+ }
@@ -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
+ }