@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,196 @@
1
+ @import '~@gravity-ui/uikit/styles/styles.css';
2
+ @font-face {
3
+ font-family: "YS Display";
4
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff") format("woff");
5
+ font-weight: 100;
6
+ font-style: normal;
7
+ font-display: swap;
8
+ }
9
+ @font-face {
10
+ font-family: "YS Display";
11
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff") format("woff");
12
+ font-weight: 300;
13
+ font-style: normal;
14
+ font-display: swap;
15
+ }
16
+ @font-face {
17
+ font-family: "YS Display";
18
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff") format("woff");
19
+ font-weight: 400;
20
+ font-style: normal;
21
+ font-display: swap;
22
+ }
23
+ @font-face {
24
+ font-family: "YS Display";
25
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff") format("woff");
26
+ font-weight: 500;
27
+ font-style: normal;
28
+ font-display: swap;
29
+ }
30
+ @font-face {
31
+ font-family: "YS Display";
32
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff") format("woff");
33
+ font-weight: 700;
34
+ font-style: normal;
35
+ font-display: swap;
36
+ }
37
+ @font-face {
38
+ font-family: "YS Display";
39
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff") format("woff");
40
+ font-weight: 900;
41
+ font-style: normal;
42
+ font-display: swap;
43
+ }
44
+ @font-face {
45
+ font-family: "YS Text";
46
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff") format("woff");
47
+ font-weight: 300;
48
+ font-style: normal;
49
+ font-display: swap;
50
+ }
51
+ @font-face {
52
+ font-family: "YS Text";
53
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff") format("woff");
54
+ font-weight: 300;
55
+ font-style: italic;
56
+ font-display: swap;
57
+ }
58
+ @font-face {
59
+ font-family: "YS Text";
60
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff") format("woff");
61
+ font-weight: 400;
62
+ font-style: normal;
63
+ font-display: swap;
64
+ }
65
+ @font-face {
66
+ font-family: "YS Text";
67
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff") format("woff");
68
+ font-weight: 400;
69
+ font-style: italic;
70
+ font-display: swap;
71
+ }
72
+ @font-face {
73
+ font-family: "YS Text";
74
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff") format("woff");
75
+ font-weight: 500;
76
+ font-style: normal;
77
+ font-display: swap;
78
+ }
79
+ @font-face {
80
+ font-family: "YS Text";
81
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff") format("woff");
82
+ font-weight: 500;
83
+ font-style: italic;
84
+ font-display: swap;
85
+ }
86
+ @font-face {
87
+ font-family: "YS Text";
88
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff") format("woff");
89
+ font-weight: 700;
90
+ font-style: normal;
91
+ font-display: swap;
92
+ }
93
+ @font-face {
94
+ font-family: "YS Text";
95
+ src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff") format("woff");
96
+ font-weight: 700;
97
+ font-style: italic;
98
+ font-display: swap;
99
+ }
100
+ .YSDisplay-Thin {
101
+ font-family: "YS Display", sans-serif;
102
+ font-weight: 100;
103
+ font-style: normal;
104
+ font-stretch: normal;
105
+ }
106
+
107
+ .YSDisplay-Light {
108
+ font-family: "YS Display", sans-serif;
109
+ font-weight: 300;
110
+ font-style: normal;
111
+ font-stretch: normal;
112
+ }
113
+
114
+ .YSDisplay-Regular {
115
+ font-family: "YS Display", sans-serif;
116
+ font-weight: 400;
117
+ font-style: normal;
118
+ font-stretch: normal;
119
+ }
120
+
121
+ .YSDisplay-Medium {
122
+ font-family: "YS Display", sans-serif;
123
+ font-weight: 500;
124
+ font-style: normal;
125
+ font-stretch: normal;
126
+ }
127
+
128
+ .YSDisplay-Bold {
129
+ font-family: "YS Display", sans-serif;
130
+ font-weight: 700;
131
+ font-style: normal;
132
+ font-stretch: normal;
133
+ }
134
+
135
+ .YSDisplay-Heavy {
136
+ font-family: "YS Display", sans-serif;
137
+ font-weight: 900;
138
+ font-style: normal;
139
+ font-stretch: normal;
140
+ }
141
+
142
+ .YSText-Light {
143
+ font-family: "YS Text", sans-serif;
144
+ font-weight: 300;
145
+ font-style: normal;
146
+ font-stretch: normal;
147
+ }
148
+
149
+ .YSText-LightItalic {
150
+ font-family: "YS Text", sans-serif;
151
+ font-weight: 300;
152
+ font-style: italic;
153
+ font-stretch: normal;
154
+ }
155
+
156
+ .YSText-Regular {
157
+ font-family: "YS Text", sans-serif;
158
+ font-weight: 400;
159
+ font-style: normal;
160
+ font-stretch: normal;
161
+ }
162
+
163
+ .YSText-RegularItalic {
164
+ font-family: "YS Text", sans-serif;
165
+ font-weight: 400;
166
+ font-style: italic;
167
+ font-stretch: normal;
168
+ }
169
+
170
+ .YSText-Medium {
171
+ font-family: "YS Text", sans-serif;
172
+ font-weight: 500;
173
+ font-style: normal;
174
+ font-stretch: normal;
175
+ }
176
+
177
+ .YSText-MediumItalic {
178
+ font-family: "YS Text", sans-serif;
179
+ font-weight: 500;
180
+ font-style: italic;
181
+ font-stretch: normal;
182
+ }
183
+
184
+ .YSText-Bold {
185
+ font-family: "YS Text", sans-serif;
186
+ font-weight: 700;
187
+ font-style: normal;
188
+ font-stretch: normal;
189
+ }
190
+
191
+ .YSText-BoldItalic {
192
+ font-family: "YS Text", sans-serif;
193
+ font-weight: 700;
194
+ font-style: italic;
195
+ font-stretch: normal;
196
+ }
File without changes
package/styles/yfm.css ADDED
@@ -0,0 +1,103 @@
1
+ /* use this for style redefinitions to awoid problems with
2
+ unpredictable css rules order in build */
3
+ .yfm_blog {
4
+ font-size: var(--yc-text-body-3-font-size);
5
+ line-height: var(--yc-text-body-3-line-height);
6
+ color: var(--yc-color-text-primary);
7
+ }
8
+ .yfm_blog h1:first-child,
9
+ .yfm_blog h2:first-child,
10
+ .yfm_blog h3:first-child,
11
+ .yfm_blog h4:first-child {
12
+ padding: 0;
13
+ margin-top: 0;
14
+ padding-top: 0;
15
+ }
16
+ .yfm_blog h2 {
17
+ font-size: var(--yc-text-display-2-font-size);
18
+ line-height: var(--yc-text-display-2-line-height);
19
+ }
20
+ .yfm_blog h3 {
21
+ font-size: var(--yc-text-header-2-font-size);
22
+ line-height: var(--yc-text-header-2-line-height);
23
+ }
24
+ .yfm_blog h4 {
25
+ font-size: var(--yc-text-header-1-font-size);
26
+ line-height: var(--yc-text-header-1-line-height);
27
+ }
28
+ .yfm_blog h1,
29
+ .yfm_blog h2,
30
+ .yfm_blog h3,
31
+ .yfm_blog h4,
32
+ .yfm_blog h5,
33
+ .yfm_blog h6 {
34
+ margin-bottom: 16px;
35
+ margin-top: 48px;
36
+ padding-top: 0;
37
+ font-weight: var(--yc-text-header-font-weight);
38
+ }
39
+ .yfm_blog blockquote,
40
+ .yfm_blog dl,
41
+ .yfm_blog ol,
42
+ .yfm_blog p,
43
+ .yfm_blog pre,
44
+ .yfm_blog table,
45
+ .yfm_blog ul {
46
+ margin: 0 0 16px;
47
+ }
48
+ .yfm_blog img {
49
+ margin-bottom: 32px;
50
+ margin-top: 16px;
51
+ border-radius: 24px;
52
+ }
53
+ .yfm_blog hr {
54
+ height: 1px;
55
+ }
56
+ .yfm_blog ol,
57
+ .yfm_blog ul {
58
+ padding-left: 1.4em;
59
+ }
60
+ .yfm_blog code {
61
+ color: var(--yc-color-text-misc);
62
+ }
63
+ .yfm_blog pre > code {
64
+ color: var(--yc-color-text-primary);
65
+ }
66
+ .yfm_blog table {
67
+ color: var(--yc-color-text-primary);
68
+ border: 1px solid var(--yc-color-line-generic);
69
+ background: var(--yc-color-base-background);
70
+ }
71
+ .yfm_blog thead tr,
72
+ .yfm_blog table tr:nth-child(2n) {
73
+ background-color: var(--yc-color-base-generic);
74
+ }
75
+ .yfm_blog_media {
76
+ font-size: var(--yc-text-body-3-font-size);
77
+ line-height: var(--yc-text-body-3-line-height);
78
+ color: var(--yc-color-text-secondary);
79
+ }
80
+ .yfm_blog_breadcrumbs {
81
+ font-size: var(--yc-text-body-2-font-size);
82
+ line-height: var(--yc-text-body-2-line-height);
83
+ color: var(--yc-text-color-base);
84
+ }
85
+ .yfm_blog a {
86
+ color: var(--yc-color-text-link);
87
+ }
88
+ .yfm_blog a:hover {
89
+ color: var(--yc-color-text-link-hover);
90
+ }
91
+ .yfm_blog .yfm-tab:hover, .yfm_blog .yfm-tab:active {
92
+ color: var(--yc-color-text-link-hover);
93
+ }
94
+ .yfm_blog .yfm-tab.active {
95
+ border-bottom-color: var(--yc-color-text-link);
96
+ }
97
+ .yfm_blog .yfm-clipboard {
98
+ margin: 32px 0;
99
+ }
100
+
101
+ .yfm_blog_card p {
102
+ color: var(--pc-text-header-color);
103
+ }