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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/README.md +61 -1
  2. package/build/cjs/blocks/Author/Author.css +31 -0
  3. package/build/cjs/blocks/Banner/Banner.css +58 -0
  4. package/build/cjs/blocks/CTA/CTA.css +56 -0
  5. package/build/cjs/blocks/ColoredText/ColoredText.css +28 -0
  6. package/build/cjs/blocks/Layout/Layout.css +22 -0
  7. package/build/cjs/blocks/Media/Media.css +41 -0
  8. package/build/cjs/blocks/Meta/Meta.css +7 -0
  9. package/build/cjs/blocks/YFM/__tests__/YFM.test.d.ts +1 -0
  10. package/build/cjs/blocks/YFM/__tests__/YFM.test.js +16 -0
  11. package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  12. package/build/cjs/components/FeedHeader/FeedHeader.css +54 -0
  13. package/build/cjs/components/FeedHeader/components/Controls/Controls.css +108 -0
  14. package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  15. package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  16. package/build/cjs/components/Paginator/Paginator.css +54 -0
  17. package/build/cjs/components/PostCard/PostCard.css +85 -0
  18. package/build/cjs/components/PostInfo/PostInfo.css +88 -0
  19. package/build/cjs/components/Posts/Posts.css +28 -0
  20. package/build/cjs/components/PostsEmpty/PostsEmpty.css +25 -0
  21. package/build/cjs/components/PostsError/PostError.css +30 -0
  22. package/build/cjs/components/Search/Search.css +32 -0
  23. package/build/cjs/components/Wrapper/Wrapper.css +32 -0
  24. package/build/cjs/containers/BlogPage/BlogPage.css +21 -0
  25. package/build/cjs/containers/BlogPostPage/BlogPostPage.css +251 -0
  26. package/build/cjs/models/blocks.d.ts +0 -1
  27. package/build/esm/blocks/Author/Author.css +31 -0
  28. package/build/esm/blocks/Banner/Banner.css +58 -0
  29. package/build/esm/blocks/CTA/CTA.css +56 -0
  30. package/build/esm/blocks/ColoredText/ColoredText.css +28 -0
  31. package/build/esm/blocks/Layout/Layout.css +22 -0
  32. package/build/esm/blocks/Media/Media.css +41 -0
  33. package/build/esm/blocks/Meta/Meta.css +7 -0
  34. package/build/esm/blocks/YFM/__tests__/YFM.test.d.ts +1 -0
  35. package/build/esm/blocks/YFM/__tests__/YFM.test.js +11 -0
  36. package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
  37. package/build/esm/components/FeedHeader/FeedHeader.css +54 -0
  38. package/build/esm/components/FeedHeader/components/Controls/Controls.css +108 -0
  39. package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
  40. package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
  41. package/build/esm/components/Paginator/Paginator.css +54 -0
  42. package/build/esm/components/PostCard/PostCard.css +85 -0
  43. package/build/esm/components/PostInfo/PostInfo.css +88 -0
  44. package/build/esm/components/Posts/Posts.css +28 -0
  45. package/build/esm/components/PostsEmpty/PostsEmpty.css +25 -0
  46. package/build/esm/components/PostsError/PostError.css +30 -0
  47. package/build/esm/components/Search/Search.css +32 -0
  48. package/build/esm/components/Wrapper/Wrapper.css +32 -0
  49. package/build/esm/containers/BlogPage/BlogPage.css +21 -0
  50. package/build/esm/containers/BlogPostPage/BlogPostPage.css +251 -0
  51. package/build/esm/models/blocks.d.ts +0 -1
  52. package/package.json +38 -28
  53. package/server/models/blocks.d.ts +0 -1
  54. package/styles/mixins.css +2 -0
  55. package/styles/mixins.scss +0 -11
  56. package/styles/root.css +21 -0
  57. package/styles/styles.css +196 -0
  58. package/styles/variables.css +0 -0
  59. package/styles/yfm.css +103 -0
@@ -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
+ }
@@ -0,0 +1,108 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-feed-controls__header {
4
+ position: relative;
5
+ display: flex;
6
+ flex-direction: column;
7
+ border-radius: var(--bc-border-radius);
8
+ padding-bottom: 20px;
9
+ z-index: 10;
10
+ }
11
+ .bc-feed-controls__header-item {
12
+ display: flex;
13
+ justify-content: center;
14
+ flex-wrap: wrap;
15
+ }
16
+ .bc-feed-controls__header-item_title {
17
+ font-size: var(--yc-text-display-4-font-size);
18
+ line-height: var(--yc-text-display-4-line-height);
19
+ padding-top: 112px;
20
+ padding-bottom: 96px;
21
+ }
22
+ .bc-feed-controls__search {
23
+ background-color: var(--yc-color-base-background);
24
+ border-radius: 10px;
25
+ width: 100%;
26
+ max-width: 100%;
27
+ }
28
+ .bc-feed-controls__search .yc-text-input_view_normal .yc-text-input__control {
29
+ border-color: var(--yc-color-base-background);
30
+ }
31
+ .bc-feed-controls__select {
32
+ background-color: var(--yc-color-base-background);
33
+ border-radius: 10px;
34
+ width: 100%;
35
+ }
36
+ .bc-feed-controls__popup.bc-feed-controls__popup {
37
+ border-radius: 12px;
38
+ }
39
+ .bc-feed-controls__popup.bc-feed-controls__popup .yc-select-filter + .yc-select-list {
40
+ margin-top: 0;
41
+ }
42
+ .bc-feed-controls__popup.bc-feed-controls__popup .yc-select-filter + .yc-select-list::-webkit-scrollbar {
43
+ display: none;
44
+ }
45
+ .bc-feed-controls__popup.bc-feed-controls__popup .yc-list__item {
46
+ margin: 4px;
47
+ border-radius: 8px;
48
+ }
49
+ .bc-feed-controls__popup.bc-feed-controls__popup .yc-select-filter {
50
+ margin-top: 4px;
51
+ padding: 4px;
52
+ border-bottom: 1px solid var(--yc-color-line-generic);
53
+ }
54
+ .bc-feed-controls__popup.bc-feed-controls__popup .yc-select-filter .yc-text-input__control.yc-text-input__control_type_input {
55
+ border: none;
56
+ }
57
+
58
+ .bc-feed-controls__popup-filter .yc-text-input__control {
59
+ font-size: var(--yc-text-body-2-font-size);
60
+ line-height: var(--yc-text-body-2-line-height);
61
+ border: none;
62
+ }
63
+ .bc-feed-controls__popup-filter .yc-text-input__control:hover, .bc-feed-controls__popup-filter .yc-text-input__control:focus {
64
+ border: none;
65
+ }
66
+ .bc-feed-controls__select:hover {
67
+ background-color: var(--yc-color-base-background);
68
+ width: 100%;
69
+ }
70
+ .bc-feed-controls__saved-only-button {
71
+ border-radius: 10px;
72
+ }
73
+ .bc-feed-controls__saved-only-button_savedOnly {
74
+ --yc-button-background-color: var(--pc-monochrome-button-background-color);
75
+ --yc-button-background-color-hover: var(--pc-monochrome-button-background-color-hover);
76
+ }
77
+ .bc-feed-controls__saved-only-button_savedOnly, .bc-feed-controls__saved-only-button_savedOnly:link, .bc-feed-controls__saved-only-button_savedOnly:visited, .bc-feed-controls__saved-only-button_savedOnly:active, .bc-feed-controls__saved-only-button_savedOnly:focus {
78
+ color: var(--pc-monochrome-button-color);
79
+ }
80
+ .bc-feed-controls__saved-only-button_savedOnly:hover {
81
+ color: var(--pc-monochrome-button-color);
82
+ }
83
+ .bc-feed-controls__saved-only-button_savedOnly:focus {
84
+ color: var(--yc-color-base-background);
85
+ }
86
+ .bc-feed-controls__filter-item {
87
+ margin-right: 8px;
88
+ margin-left: 8px;
89
+ margin-bottom: 12px;
90
+ min-width: 230px;
91
+ flex-grow: 1;
92
+ }
93
+ @media (min-width: 577px) {
94
+ .bc-feed-controls__filter-item {
95
+ max-width: 240px;
96
+ }
97
+ }
98
+ .bc-feed-controls__filter-item_width-auto {
99
+ width: auto;
100
+ min-width: auto;
101
+ flex-grow: 0;
102
+ }
103
+ .bc-feed-controls__icon {
104
+ color: var(--yc-my-color-brand-normal);
105
+ }
106
+ .bc-feed-controls__icon_savedOnly {
107
+ color: var(--yc-color-base-background);
108
+ }
@@ -0,0 +1,14 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-feed-custom-select-option {
4
+ font-size: var(--yc-text-body-2-font-size);
5
+ line-height: var(--yc-text-body-2-line-height);
6
+ display: flex;
7
+ }
8
+ .bc-feed-custom-select-option__icon {
9
+ margin-right: 6px;
10
+ }
11
+ .bc-feed-custom-select-option__icon > svg {
12
+ width: 20px;
13
+ height: 20px;
14
+ }
@@ -0,0 +1,53 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-feed-custom-switcher__custom-switcher {
4
+ font-size: var(--yc-text-body-2-font-size);
5
+ line-height: var(--yc-text-body-2-line-height);
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: row;
9
+ align-items: center;
10
+ background-color: var(--yc-color-base-background);
11
+ border: 1px solid var(--yc-color-base-background);
12
+ border-radius: 10px;
13
+ width: 100%;
14
+ line-height: 42px;
15
+ }
16
+ .bc-feed-custom-switcher__custom-switcher + .yc-popup-wrapper.yc-popup-wrapper_open {
17
+ position: absolute !important;
18
+ inset: auto !important;
19
+ transform: translate3d(0, 4px, 0) !important;
20
+ }
21
+ .bc-feed-custom-switcher__custom-switcher:hover {
22
+ border-color: var(--yc-color-base-generic-hover);
23
+ cursor: pointer;
24
+ }
25
+ .bc-feed-custom-switcher__custom-switcher-element_content {
26
+ display: inline-block;
27
+ flex-grow: 1;
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ padding: 0 12px;
32
+ }
33
+ .bc-feed-custom-switcher__custom-switcher-element_counter {
34
+ align-items: center;
35
+ height: 20px;
36
+ padding: 0 6px;
37
+ background-color: var(--yc-color-base-selection);
38
+ border-radius: 4px;
39
+ transition: backgound-color 0.1s linear;
40
+ font-size: var(--yc-text-body-1-font-size);
41
+ line-height: var(--yc-text-body-1-line-height);
42
+ }
43
+ .bc-feed-custom-switcher__custom-switcher-element_arrow {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ min-width: 30px;
48
+ height: 100%;
49
+ }
50
+ .bc-feed-custom-switcher__switcher-arrow {
51
+ width: 16px;
52
+ height: 16px;
53
+ }
@@ -0,0 +1,54 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .bc-paginator {
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ display: flex;
8
+ align-items: center;
9
+ }
10
+ .bc-paginator__item {
11
+ display: inline-flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ min-width: 44px;
15
+ min-height: 44px;
16
+ margin-left: 4px;
17
+ padding: 12px 0px;
18
+ color: var(--yc-color-text-primary);
19
+ font-size: var(--yc-text-body-2-font-size);
20
+ line-height: var(--yc-text-body-2-line-height);
21
+ }
22
+ .bc-paginator__item_type_page {
23
+ --bc-border-radius: 10px;
24
+ width: 44px;
25
+ height: 44px;
26
+ cursor: pointer;
27
+ border-radius: var(--bc-border-radius);
28
+ }
29
+ .bc-paginator__item_type_page:hover {
30
+ background: var(--yc-color-base-simple-hover);
31
+ }
32
+ .bc-paginator__item_type_page.bc-paginator__item_active {
33
+ background: var(--yc-color-base-simple-hover);
34
+ cursor: default;
35
+ }
36
+ .bc-paginator__pagination {
37
+ display: flex;
38
+ flex-direction: row;
39
+ justify-content: center;
40
+ align-items: center;
41
+ width: 100%;
42
+ }
43
+ @media (max-width: 577px) {
44
+ .bc-paginator__pagination {
45
+ flex-direction: column;
46
+ }
47
+ }
48
+ .bc-paginator__pagination-block {
49
+ display: flex;
50
+ flex-direction: row;
51
+ justify-content: center;
52
+ align-items: center;
53
+ margin-bottom: 4px;
54
+ }
@@ -0,0 +1,85 @@
1
+ .bc-post-card__title_size_m, .bc-post-card__title_size_s {
2
+ margin: 0;
3
+ }
4
+
5
+ /* use this for style redefinitions to awoid problems with
6
+ unpredictable css rules order in build */
7
+ .bc-post-card__card {
8
+ display: flex;
9
+ flex-direction: column;
10
+ min-height: 400px;
11
+ }
12
+ .bc-post-card__card_fullWidth {
13
+ flex-direction: row;
14
+ }
15
+ @media (max-width: 1081px) {
16
+ .bc-post-card__card_fullWidth {
17
+ flex-direction: column;
18
+ }
19
+ }
20
+ .bc-post-card__header_fullWidth {
21
+ width: 66%;
22
+ min-height: 480px;
23
+ height: 100%;
24
+ }
25
+ @media (max-width: 1081px) {
26
+ .bc-post-card__header_fullWidth {
27
+ width: 100%;
28
+ min-height: auto;
29
+ }
30
+ }
31
+ .bc-post-card__title {
32
+ margin-bottom: 8px;
33
+ }
34
+ .bc-post-card__title_size_s {
35
+ font-size: var(--yc-text-header-1-font-size);
36
+ line-height: var(--yc-text-header-1-line-height);
37
+ color: var(--pc-text-header-color);
38
+ font-weight: var(--yc-text-accent-font-weight);
39
+ }
40
+ .bc-post-card__title_size_m {
41
+ font-size: var(--yc-text-display-2-font-size);
42
+ line-height: var(--yc-text-display-2-line-height);
43
+ color: var(--pc-text-header-color);
44
+ font-weight: var(--yc-text-accent-font-weight);
45
+ }
46
+ @media (max-width: 576px) {
47
+ .bc-post-card__title_size_m {
48
+ font-size: var(--yc-text-display-1-font-size);
49
+ line-height: var(--yc-text-display-1-line-height);
50
+ }
51
+ }
52
+ .bc-post-card__image-container {
53
+ height: 156px;
54
+ }
55
+ .bc-post-card__tag {
56
+ color: var(--yc-color-text-secondary);
57
+ font-weight: var(--yc-text-accent-font-weight);
58
+ }
59
+ .bc-post-card__tag_size_s {
60
+ font-size: var(--yc-text-body-2-font-size);
61
+ line-height: var(--yc-text-body-2-line-height);
62
+ padding-bottom: 4px;
63
+ }
64
+ .bc-post-card__tag_size_m {
65
+ font-size: var(--yc-text-body-3-font-size);
66
+ line-height: var(--yc-text-body-3-line-height);
67
+ padding-bottom: 8px;
68
+ }
69
+ .bc-post-card__description {
70
+ word-wrap: break-word;
71
+ overflow: hidden;
72
+ text-overflow: ellipsis;
73
+ max-height: 96px;
74
+ white-space: initial;
75
+ color: var(--yc-color-text-primary);
76
+ }
77
+ @supports (-webkit-line-clamp: 5) {
78
+ .bc-post-card__description {
79
+ max-height: auto;
80
+ -webkit-line-clamp: 5;
81
+ }
82
+ }
83
+ .bc-post-card__description_size_m {
84
+ max-height: 128px;
85
+ }