@comicrelief/component-library 8.55.4 → 8.56.0
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.
- package/dist/components/Atoms/Text/Text.md +165 -115
- package/dist/components/Molecules/CTA/CTASingleCard/CTASingleCard.md +2 -2
- package/dist/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +2 -0
- package/dist/components/Molecules/CTA/shared/CTACard.style.js +1 -1
- package/dist/components/Molecules/SingleMessage/SingleMessage.js +8 -2
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +70 -60
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +13 -1
- package/dist/theme/shared/global.css +19 -46
- package/package.json +1 -1
- package/src/components/Atoms/Text/Text.md +165 -115
- package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.md +2 -2
- package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +2 -0
- package/src/components/Molecules/CTA/shared/CTACard.style.js +1 -0
- package/src/components/Molecules/SingleMessage/SingleMessage.js +10 -3
- package/src/components/Molecules/SingleMessage/SingleMessage.style.js +18 -14
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +13 -1
- package/src/theme/shared/global.css +19 -46
|
@@ -44,65 +44,38 @@ body {
|
|
|
44
44
|
-webkit-font-smoothing: antialiased;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
/* Resets to override browsers' user agent stylesheets */
|
|
48
|
+
h1, h2 {
|
|
48
49
|
text-transform: uppercase;
|
|
49
50
|
font-family: 'Anton', Impact, sans-serif;
|
|
50
|
-
margin-bottom: 1rem;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
h1
|
|
54
|
-
|
|
55
|
-
margin: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
h2,
|
|
59
|
-
h3,
|
|
60
|
-
h4,
|
|
61
|
-
h5,
|
|
62
|
-
p,
|
|
63
|
-
a,
|
|
64
|
-
button {
|
|
65
|
-
font-family: inherit;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
h2 {
|
|
69
|
-
text-transform: uppercase;
|
|
70
|
-
font-family: 'Anton', Impact, sans-serif;
|
|
71
|
-
margin-bottom: 1rem;
|
|
53
|
+
h1, h2, h3, h4, h5, h6, p {
|
|
54
|
+
word-break: break-word;
|
|
55
|
+
margin: 0 0 1rem 0;
|
|
72
56
|
}
|
|
73
57
|
|
|
74
|
-
|
|
75
|
-
|
|
58
|
+
h1:last-child,
|
|
59
|
+
h2:last-child,
|
|
60
|
+
h3:last-child,
|
|
61
|
+
h4:last-child,
|
|
62
|
+
h5:last-child
|
|
63
|
+
h6:last-child,
|
|
64
|
+
p:last-child {
|
|
65
|
+
margin-bottom: 0;
|
|
76
66
|
}
|
|
77
67
|
|
|
78
|
-
p,
|
|
79
|
-
|
|
80
|
-
button {
|
|
81
|
-
margin-top: 0;
|
|
68
|
+
h2, h3, h4, h5, h6, p, a, button {
|
|
69
|
+
font-family: inherit;
|
|
82
70
|
}
|
|
83
71
|
|
|
84
|
-
|
|
85
|
-
h3:first-child,
|
|
86
|
-
h4:first-child,
|
|
87
|
-
h5:first-child {
|
|
72
|
+
p, a, button {
|
|
88
73
|
margin-top: 0;
|
|
89
74
|
}
|
|
90
75
|
|
|
91
|
-
h1,
|
|
92
|
-
h2
|
|
93
|
-
|
|
94
|
-
h4,
|
|
95
|
-
h5,
|
|
96
|
-
p {
|
|
97
|
-
word-break: break-word;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
p:first-child {
|
|
101
|
-
margin-bottom: 1rem;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
p:last-child {
|
|
105
|
-
margin-bottom: 0;
|
|
76
|
+
p + h1,
|
|
77
|
+
p + h2 {
|
|
78
|
+
margin-top: 2rem;
|
|
106
79
|
}
|
|
107
80
|
|
|
108
81
|
table {
|