@kids-reporter/draft-renderer 0.4.23 → 0.4.24

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.
@@ -19,14 +19,14 @@ const ListForAnnotation = (0, _styledComponents.default)(_articleContent.List)`
19
19
  li {
20
20
  font-size: ${({
21
21
  theme
22
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '16px' : '20px'};
22
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '20px' : '16px'};
23
23
  }
24
24
  `;
25
25
  const ParagraphForAnnotation = (0, _styledComponents.default)(_articleContent.Paragraph)`
26
26
  /* overwrite css */
27
27
  font-size: ${({
28
28
  theme
29
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '16px' : '20px'};
29
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '20px' : '16px'};
30
30
  font-weight: 400;
31
31
  margin-bottom: 20px;
32
32
  color: #494949;
@@ -15,7 +15,7 @@ const Paragraph = _styledComponents.default.div`
15
15
  max-width: 700px;
16
16
  font-size: ${({
17
17
  theme
18
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '18px' : '22px'};
18
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '22px' : '18px'};
19
19
  font-weight: 400;
20
20
  color: #3a4f66;
21
21
  letter-spacing: 0.9px;
@@ -50,25 +50,25 @@ const Heading = _styledComponents.default.div`
50
50
  h2 {
51
51
  font-size: ${({
52
52
  theme
53
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '35px' : '39px'};
53
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '39px' : '35px'};
54
54
  }
55
55
 
56
56
  h3 {
57
57
  font-size: ${({
58
58
  theme
59
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '30px' : '34px'};
59
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '34px' : '30px'};
60
60
  }
61
61
 
62
62
  h4 {
63
63
  font-size: ${({
64
64
  theme
65
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '25px' : '29px'};
65
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '29px' : '25px'};
66
66
  }
67
67
 
68
68
  h5 {
69
69
  font-size: ${({
70
70
  theme
71
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '20px' : '24px'};
71
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '24px' : '20px'};
72
72
  }
73
73
 
74
74
  ${_mediaQuery.mediaQuery.smallOnly} {
@@ -83,7 +83,7 @@ const List = _styledComponents.default.ol`
83
83
  margin: 0 auto 27px auto;
84
84
  font-size: ${({
85
85
  theme
86
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '18px' : '22px'};
86
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '22px' : '18px'};
87
87
  line-height: 2;
88
88
  letter-spacing: 0.9px;
89
89
  color: #3a4f66;
@@ -28,7 +28,7 @@ const ListForInfoBox = (0, _styledComponents.default)(_articleContent.List)`
28
28
  li {
29
29
  font-size: ${({
30
30
  theme
31
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '16px' : '20px'};
31
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '20px' : '16px'};
32
32
  line-height: 1.5;
33
33
  }
34
34
  `;
@@ -36,7 +36,7 @@ const ParagraphForInfoBox = (0, _styledComponents.default)(_articleContent.Parag
36
36
  /* overwrite css */
37
37
  font-size: ${({
38
38
  theme
39
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '16px' : '20px'};
39
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '20px' : '16px'};
40
40
  font-weight: 400;
41
41
  margin-bottom: 20px;
42
42
  line-height: 1.5;
@@ -39,7 +39,7 @@ const QuoteText = _styledComponents.default.p`
39
39
  word-break: break-word;
40
40
  font-size: ${({
41
41
  theme
42
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '18px' : '22px'};
42
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '22px' : '18px'};
43
43
  font-weight: 500;
44
44
  letter-spacing: 0.9px;
45
45
  line-height: 2;
@@ -27,7 +27,7 @@ exports.Block = Block;
27
27
  const Caption = _styledComponents.default.div`
28
28
  font-size: ${({
29
29
  theme
30
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '14px' : '18px'};
30
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '18px' : '14px'};
31
31
  line-height: 1.43;
32
32
  letter-spacing: 0.4px;
33
33
  color: #808080;
@@ -18,7 +18,7 @@ const FigureCaption = _styledComponents.default.figcaption`
18
18
  max-width: 100%;
19
19
  font-size: ${({
20
20
  theme
21
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '14px' : '18px'};
21
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '18px' : '14px'};
22
22
  margin-left: auto;
23
23
  margin-right: auto;
24
24
  margin-top: 0.5em;
@@ -69,7 +69,7 @@ const Caption = _styledComponents.default.figcaption`
69
69
  font-weight: normal;
70
70
  font-size: ${({
71
71
  theme
72
- }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'normal' ? '14px' : '18px'};
72
+ }) => (theme === null || theme === void 0 ? void 0 : theme.fontSizeLevel) === 'large' ? '18px' : '14px'};
73
73
  margin-bottom: 30px;
74
74
 
75
75
  /* border-bottom of caption */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kids-reporter/draft-renderer",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {