@gravity-ui/blog-constructor 1.0.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/CHANGELOG.md +23 -216
  2. package/README.md +63 -1
  3. package/build/cjs/blocks/Author/Author.css +31 -0
  4. package/build/cjs/blocks/Banner/Banner.css +58 -0
  5. package/build/cjs/blocks/CTA/CTA.css +56 -0
  6. package/build/cjs/blocks/ColoredText/ColoredText.css +28 -0
  7. package/build/cjs/blocks/Layout/Layout.css +22 -0
  8. package/build/cjs/blocks/Media/Media.css +41 -0
  9. package/build/cjs/blocks/Meta/Meta.css +7 -0
  10. package/build/cjs/blocks/YFM/__tests__/YFM.test.d.ts +1 -0
  11. package/build/cjs/blocks/YFM/__tests__/YFM.test.js +16 -0
  12. package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  13. package/build/cjs/components/FeedHeader/FeedHeader.css +54 -0
  14. package/build/cjs/components/FeedHeader/components/Controls/Controls.css +108 -0
  15. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  16. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  17. package/build/cjs/components/Paginator/Paginator.css +54 -0
  18. package/build/cjs/components/PostCard/PostCard.css +85 -0
  19. package/build/cjs/components/PostInfo/PostInfo.css +88 -0
  20. package/build/cjs/components/Posts/Posts.css +28 -0
  21. package/build/cjs/components/PostsEmpty/PostsEmpty.css +25 -0
  22. package/build/cjs/components/PostsError/PostError.css +30 -0
  23. package/build/cjs/components/Search/Search.css +32 -0
  24. package/build/cjs/components/Wrapper/Wrapper.css +32 -0
  25. package/build/cjs/containers/BlogPage/BlogPage.css +21 -0
  26. package/build/cjs/containers/BlogPostPage/BlogPostPage.css +251 -0
  27. package/build/cjs/models/blocks.d.ts +0 -1
  28. package/build/esm/blocks/Author/Author.css +31 -0
  29. package/build/esm/blocks/Banner/Banner.css +58 -0
  30. package/build/esm/blocks/CTA/CTA.css +56 -0
  31. package/build/esm/blocks/ColoredText/ColoredText.css +28 -0
  32. package/build/esm/blocks/Layout/Layout.css +22 -0
  33. package/build/esm/blocks/Media/Media.css +41 -0
  34. package/build/esm/blocks/Meta/Meta.css +7 -0
  35. package/build/esm/blocks/YFM/__tests__/YFM.test.d.ts +1 -0
  36. package/build/esm/blocks/YFM/__tests__/YFM.test.js +11 -0
  37. package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  38. package/build/esm/components/FeedHeader/FeedHeader.css +54 -0
  39. package/build/esm/components/FeedHeader/components/Controls/Controls.css +108 -0
  40. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  41. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  42. package/build/esm/components/Paginator/Paginator.css +54 -0
  43. package/build/esm/components/PostCard/PostCard.css +85 -0
  44. package/build/esm/components/PostInfo/PostInfo.css +88 -0
  45. package/build/esm/components/Posts/Posts.css +28 -0
  46. package/build/esm/components/PostsEmpty/PostsEmpty.css +25 -0
  47. package/build/esm/components/PostsError/PostError.css +30 -0
  48. package/build/esm/components/Search/Search.css +32 -0
  49. package/build/esm/components/Wrapper/Wrapper.css +32 -0
  50. package/build/esm/containers/BlogPage/BlogPage.css +21 -0
  51. package/build/esm/containers/BlogPostPage/BlogPostPage.css +251 -0
  52. package/build/esm/models/blocks.d.ts +0 -1
  53. package/package.json +38 -28
  54. package/server/models/blocks.d.ts +0 -1
  55. package/styles/mixins.css +2 -0
  56. package/styles/mixins.scss +0 -11
  57. package/styles/root.css +21 -0
  58. package/styles/storybook/index.scss +1 -1
  59. package/styles/styles.css +196 -0
  60. package/styles/variables.css +0 -0
  61. package/styles/yfm.css +103 -0
@@ -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
+ }
@@ -7,7 +7,6 @@ export type AuthorProps = ClassNameProps & {
7
7
  image: string;
8
8
  } & PaddingsYFMProps;
9
9
  export type BannerProps = ContentBlockProps & {
10
- background?: string;
11
10
  color?: string;
12
11
  image?: string;
13
12
  imageSize?: 's' | 'm';
@@ -0,0 +1,31 @@
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
+ }
@@ -0,0 +1,58 @@
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
+ }
@@ -0,0 +1,56 @@
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
+ }
@@ -0,0 +1,28 @@
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
+ }
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,41 @@
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
+ }
@@ -0,0 +1,7 @@
1
+ .bc-meta {
2
+ padding: 0;
3
+ margin: 0;
4
+ }
5
+ .bc-meta__breadcrumbs {
6
+ display: inline-block;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { render, screen } from '@testing-library/react';
3
+ import { YFM } from '../YFM';
4
+ const text = 'YFM block';
5
+ describe('YFM', () => {
6
+ test('Has id', async () => {
7
+ render(React.createElement(YFM, { text: text }));
8
+ const yfm = screen.getByText(text);
9
+ expect(yfm).toHaveClass('yfm');
10
+ });
11
+ });
@@ -0,0 +1,76 @@
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
+ }
@@ -0,0 +1,54 @@
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
+ }