@comicrelief/component-library 7.36.0 → 7.38.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/Button/Button.js +1 -1
- package/dist/components/Atoms/Icons/Arrow.js +25 -4
- package/dist/components/Atoms/Icons/AtSign.js +32 -6
- package/dist/components/Atoms/Icons/Chevron.js +25 -3
- package/dist/components/Atoms/Icons/Download.js +31 -4
- package/dist/components/Atoms/Icons/External.js +31 -4
- package/dist/components/Atoms/Icons/Favourite.js +31 -4
- package/dist/components/Atoms/Icons/Internal.js +31 -4
- package/dist/components/Atoms/Input/Input.js +1 -1
- package/dist/components/Atoms/Link/Link.md +22 -21
- package/dist/components/Atoms/Link/Link.style.js +3 -3
- package/dist/components/Atoms/Link/Link.test.js +1 -1
- package/dist/components/Atoms/Logo/Logo.js +1 -1
- package/dist/components/Atoms/Select/Select.js +1 -1
- package/dist/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/dist/components/Atoms/Text/Text.js +2 -2
- package/dist/components/Molecules/Accordion/Accordion.js +3 -3
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +7 -0
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
- package/dist/components/Molecules/Banner/Banner.js +2 -2
- package/dist/components/Molecules/Box/Box.js +4 -4
- package/dist/components/Molecules/CardDs/CardDs.style.js +9 -9
- package/dist/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +11 -0
- package/dist/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
- package/dist/components/Molecules/InfoBanner/InfoBanner.js +2 -2
- package/dist/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
- package/dist/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
- package/dist/components/Molecules/SearchResult/SearchResult.js +3 -3
- package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +4 -4
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +11 -0
- package/dist/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
- package/dist/components/Organisms/EmailSignUp/EmailSignUp.style.js +2 -2
- package/dist/components/Organisms/Footer/Footer.style.js +4 -4
- package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/dist/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
- package/dist/components/Organisms/Header/Header.style.js +3 -3
- package/dist/components/Organisms/Header/Nav/Nav.style.js +6 -6
- package/dist/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +6 -6
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +7 -7
- package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
- package/dist/components/Organisms/Membership/Membership.style.js +2 -2
- package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +10 -10
- package/dist/theme/crTheme/buttonColors.js +1 -1
- package/dist/theme/crTheme/theme.js +2 -0
- package/dist/theme/shared/allBreakpoints.js +20 -0
- package/package.json +1 -1
- package/src/components/Atoms/Button/Button.js +1 -1
- package/src/components/Atoms/Icons/Arrow.js +13 -2
- package/src/components/Atoms/Icons/AtSign.js +20 -7
- package/src/components/Atoms/Icons/Chevron.js +13 -1
- package/src/components/Atoms/Icons/Download.js +18 -4
- package/src/components/Atoms/Icons/External.js +18 -4
- package/src/components/Atoms/Icons/Favourite.js +18 -4
- package/src/components/Atoms/Icons/Internal.js +18 -4
- package/src/components/Atoms/Input/Input.js +1 -1
- package/src/components/Atoms/Link/Link.md +22 -21
- package/src/components/Atoms/Link/Link.style.js +3 -3
- package/src/components/Atoms/Link/Link.test.js +11 -0
- package/src/components/Atoms/Logo/Logo.js +1 -1
- package/src/components/Atoms/Select/Select.js +1 -1
- package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/src/components/Atoms/Text/Text.js +3 -3
- package/src/components/Molecules/Accordion/Accordion.js +6 -6
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +7 -0
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
- package/src/components/Molecules/Banner/Banner.js +2 -2
- package/src/components/Molecules/Box/Box.js +4 -4
- package/src/components/Molecules/CardDs/CardDs.style.js +9 -9
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +11 -0
- package/src/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
- package/src/components/Molecules/InfoBanner/InfoBanner.js +2 -2
- package/src/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
- package/src/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
- package/src/components/Molecules/SearchResult/SearchResult.js +3 -3
- package/src/components/Molecules/SingleMessage/SingleMessage.style.js +6 -6
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +11 -0
- package/src/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
- package/src/components/Organisms/EmailSignUp/EmailSignUp.style.js +3 -3
- package/src/components/Organisms/Footer/Footer.style.js +4 -4
- package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
- package/src/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
- package/src/components/Organisms/Header/Header.style.js +3 -3
- package/src/components/Organisms/Header/Nav/Nav.style.js +6 -6
- package/src/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +7 -7
- package/src/components/Organisms/ImpactSlider/ImpactSlider.style.js +8 -8
- package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
- package/src/components/Organisms/Membership/Membership.style.js +2 -2
- package/src/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +21 -21
- package/src/theme/crTheme/buttonColors.js +1 -1
- package/src/theme/crTheme/theme.js +2 -0
- package/src/theme/shared/allBreakpoints.js +14 -0
|
@@ -32,7 +32,7 @@ const Copy = styled.div`
|
|
|
32
32
|
${zIndex('low')};
|
|
33
33
|
${({ hasVideo, fullImage }) => (hasVideo === true && fullImage === true ? 'display: none;' : null)};
|
|
34
34
|
padding: ${spacing('l')};
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
${media('small')} {
|
|
37
37
|
${({ vhFull, fullImage }) => (vhFull || fullImage
|
|
38
38
|
? 'min-height: calc(100vh - 5.625rem); flex-direction: column; justify-content: center;'
|
|
@@ -61,12 +61,12 @@ const Copy = styled.div`
|
|
|
61
61
|
`};
|
|
62
62
|
|
|
63
63
|
${props => (props.hasImage
|
|
64
|
-
? css`@media ${({ theme }) => theme.
|
|
64
|
+
? css`@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
65
65
|
width: 50%;
|
|
66
66
|
}
|
|
67
67
|
`
|
|
68
68
|
: css`
|
|
69
|
-
@media ${({ theme }) => theme.
|
|
69
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
70
70
|
width: 100%;
|
|
71
71
|
max-width ${container.small};
|
|
72
72
|
padding: ${spacing('xl')};
|
|
@@ -77,13 +77,13 @@ const Copy = styled.div`
|
|
|
77
77
|
|
|
78
78
|
${media('medium')} {
|
|
79
79
|
${({ paddingOption }) => handlePadding(paddingOption)};
|
|
80
|
-
}
|
|
80
|
+
}
|
|
81
81
|
`;
|
|
82
82
|
|
|
83
83
|
const Media = styled.div`
|
|
84
84
|
width: 100%;
|
|
85
85
|
${({ fullImage }) => (fullImage ? 'height: 200px;' : 'height: 280px;')};
|
|
86
|
-
@media ${({ theme }) => theme.
|
|
86
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
87
87
|
height: auto;
|
|
88
88
|
width: ${({ fullImage }) => (fullImage ? '100%' : '50%')};
|
|
89
89
|
${({ fullImage }) => (fullImage ? 'min-height: 500px;' : null)};
|
|
@@ -129,7 +129,7 @@ const PlayButton = styled.button`
|
|
|
129
129
|
`;
|
|
130
130
|
|
|
131
131
|
const Image = styled.div`
|
|
132
|
-
@media ${({ theme }) => theme.
|
|
132
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
133
133
|
img {
|
|
134
134
|
position: ${({ fullImage, vhFull }) => (fullImage || vhFull ? 'absolute' : null)};
|
|
135
135
|
}
|
|
@@ -12,7 +12,7 @@ const Title = styled(Text)`
|
|
|
12
12
|
letter-spacing: 0.03em;
|
|
13
13
|
text-transform: uppercase;
|
|
14
14
|
margin: ${spacing('md')} 0;
|
|
15
|
-
@media ${({ theme }) => theme.
|
|
15
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
16
16
|
margin-bottom: ${spacing('m')};
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
@@ -57,7 +57,7 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
57
57
|
|
|
58
58
|
const Title = styled(Text)`
|
|
59
59
|
margin: ${spacing('md')} 0;
|
|
60
|
-
@media ${({ theme }) => theme.
|
|
60
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
61
61
|
margin-bottom: ${spacing('m')};
|
|
62
62
|
}
|
|
63
63
|
`;
|
|
@@ -103,7 +103,7 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
103
103
|
|
|
104
104
|
const Title = styled(Text)`
|
|
105
105
|
margin: ${spacing('md')} 0;
|
|
106
|
-
@media ${({ theme }) => theme.
|
|
106
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
107
107
|
margin-bottom: ${spacing('m')};
|
|
108
108
|
}
|
|
109
109
|
`;
|
|
@@ -12,7 +12,7 @@ const Container = styled.div`
|
|
|
12
12
|
justify-content: space-around;
|
|
13
13
|
background: ${({ theme, backgroundColor }) => theme.color(backgroundColor)};
|
|
14
14
|
|
|
15
|
-
@media ${({ theme }) => theme.
|
|
15
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
16
16
|
flex-direction: ${({ imageLeft }) => (imageLeft ? 'row' : 'row-reverse')};
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
@@ -24,7 +24,7 @@ const Subtitle = styled(Text)`
|
|
|
24
24
|
|
|
25
25
|
const Image = styled.div`
|
|
26
26
|
height: 100%;
|
|
27
|
-
@media ${({ theme }) => theme.
|
|
27
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
28
28
|
height: 448px;
|
|
29
29
|
}
|
|
30
30
|
img {
|
|
@@ -38,7 +38,7 @@ const MediaLink = styled.a`
|
|
|
38
38
|
? `margin-right: ${spacing('m')}`
|
|
39
39
|
: `margin-left: ${spacing('m')}`)};
|
|
40
40
|
|
|
41
|
-
@media ${({ theme }) => theme.
|
|
41
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
42
42
|
margin: 0;
|
|
43
43
|
height: 448px;
|
|
44
44
|
flex-grow: 0;
|
|
@@ -109,7 +109,7 @@ const CTA = styled.div`
|
|
|
109
109
|
font-family: ${({ theme }) => theme.fontFamilies('Montserrat')};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
@media ${({ theme }) => theme.
|
|
112
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
113
113
|
${({ hasImage }) => !hasImage && `bottom: -${spacing('m')};`}
|
|
114
114
|
}
|
|
115
115
|
`;
|
|
@@ -133,7 +133,7 @@ const Copy = styled.div`
|
|
|
133
133
|
)};
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
@media ${({ theme }) => theme.
|
|
136
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
137
137
|
min-height: 448px;
|
|
138
138
|
height: auto;
|
|
139
139
|
width: calc(50% + 1.5rem);
|
|
@@ -149,7 +149,7 @@ const Copy = styled.div`
|
|
|
149
149
|
: `margin: ${spacing('l')} -${spacing('m')} ${spacing('m')} 0`)};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
@media ${({ theme }) => theme.
|
|
152
|
+
@media ${({ theme }) => theme.allBreakpoints('XL')} {
|
|
153
153
|
padding: calc(${spacing('m')} * 2);
|
|
154
154
|
|
|
155
155
|
${({ hasLink }) => hasLink && `padding-bottom: calc(${spacing('m')} * 3)`};
|
|
@@ -79,6 +79,10 @@ exports[`renders correctly 1`] = `
|
|
|
79
79
|
color: #FFFFFF;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.c13 {
|
|
83
|
+
fill: #FFFFFF;
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
.c0 {
|
|
83
87
|
display: -webkit-box;
|
|
84
88
|
display: -webkit-flex;
|
|
@@ -175,6 +179,12 @@ exports[`renders correctly 1`] = `
|
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
@media (min-width:1024px) {
|
|
183
|
+
.c13 {
|
|
184
|
+
fill: #FFFFFF;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
178
188
|
@media (min-width:740px) {
|
|
179
189
|
.c0 {
|
|
180
190
|
-webkit-flex-direction: row;
|
|
@@ -310,6 +320,7 @@ exports[`renders correctly 1`] = `
|
|
|
310
320
|
type="button"
|
|
311
321
|
>
|
|
312
322
|
<svg
|
|
323
|
+
className="c13"
|
|
313
324
|
fill="#FFFFFF"
|
|
314
325
|
height={24}
|
|
315
326
|
viewBox="0 0 96 96"
|
|
@@ -20,7 +20,7 @@ const CookieText = styled(Text)`
|
|
|
20
20
|
&:first-of-type {
|
|
21
21
|
margin-bottom: ${spacing('sm')};
|
|
22
22
|
}
|
|
23
|
-
@media ${({ theme }) => theme.
|
|
23
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
24
24
|
width: 75%;
|
|
25
25
|
margin: ${spacing('none')} auto;
|
|
26
26
|
&:first-of-type {
|
|
@@ -33,7 +33,7 @@ const AcceptCookieBtn = styled(Link)`
|
|
|
33
33
|
padding: ${spacing('sm')} ${spacing('md')};
|
|
34
34
|
display: block;
|
|
35
35
|
margin-bottom: 10px;
|
|
36
|
-
@media ${({ theme }) => theme.
|
|
36
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
37
37
|
margin: 0 ${spacing('xsm')} 0 0;
|
|
38
38
|
display: inline-block;
|
|
39
39
|
}
|
|
@@ -51,11 +51,11 @@ const NameWrapper = styled.div`
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0;
|
|
53
53
|
|
|
54
|
-
@media ${({ theme }) => theme.
|
|
54
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
55
55
|
justify-content: start;
|
|
56
56
|
flex-direction: ${({ columnLayout }) => (columnLayout ? 'column' : 'row')};
|
|
57
57
|
gap: ${({ columnLayout }) => (columnLayout ? 0 : spacing('md'))};
|
|
58
|
-
)};
|
|
58
|
+
)};
|
|
59
59
|
|
|
60
60
|
}
|
|
61
61
|
`;
|
|
@@ -68,7 +68,7 @@ const InputField = styled(TextInput)`
|
|
|
68
68
|
color: ${({ theme }) => theme.color('white')};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@media ${({ theme }) => theme.
|
|
71
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
72
72
|
max-width: 290px;
|
|
73
73
|
}
|
|
74
74
|
`;
|
|
@@ -11,7 +11,7 @@ const FooterWrapper = styled.footer.attrs(() => ({
|
|
|
11
11
|
background: #222;
|
|
12
12
|
position: relative;
|
|
13
13
|
padding: ${spacing('md')} 0;
|
|
14
|
-
@media ${({ theme }) => theme.
|
|
14
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
15
15
|
padding: ${spacing('l')};
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
@@ -23,7 +23,7 @@ const Angle = styled.div`
|
|
|
23
23
|
height: 50px;
|
|
24
24
|
background: #222;
|
|
25
25
|
margin-bottom: 1rem;
|
|
26
|
-
@media ${({ theme }) => theme.
|
|
26
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
27
27
|
clip-path: polygon(0 100%,100% 0,100% 101%,0 101%);
|
|
28
28
|
height: 95px;
|
|
29
29
|
}
|
|
@@ -37,7 +37,7 @@ const InnerWrapper = styled.div`
|
|
|
37
37
|
max-width: 1200px;
|
|
38
38
|
margin: 0 auto;
|
|
39
39
|
padding: 0 ${spacing('md')} ${spacing('l')};
|
|
40
|
-
@media ${({ theme }) => theme.
|
|
40
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
41
41
|
padding: 0 ${spacing('md')} ${spacing('xl')};
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
@@ -67,7 +67,7 @@ const FooterCopyright = styled.div`
|
|
|
67
67
|
line-height: 24px;
|
|
68
68
|
margin-bottom: 5px;
|
|
69
69
|
|
|
70
|
-
@media ${({ theme }) => theme.
|
|
70
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
71
71
|
font-size: 16px;
|
|
72
72
|
line-height: 27px;
|
|
73
73
|
}
|
|
@@ -51,7 +51,7 @@ const SubNavMenu = styled.ul`
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
@media ${({ theme }) => theme.
|
|
54
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
55
55
|
max-height: none;
|
|
56
56
|
height: auto;
|
|
57
57
|
|
|
@@ -73,7 +73,7 @@ const SubNavItem = styled.li`
|
|
|
73
73
|
background-color: inherit;
|
|
74
74
|
padding: 8px 0;
|
|
75
75
|
|
|
76
|
-
@media ${({ theme }) => theme.
|
|
76
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
77
77
|
height: auto;
|
|
78
78
|
margin-top: 12px;
|
|
79
79
|
padding: 0;
|
|
@@ -99,7 +99,7 @@ const SubNavItem = styled.li`
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
@media ${({ theme }) => theme.
|
|
102
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
103
103
|
${({ column }) => (column === true ? 'flex: 0 0 100%;' : null)};
|
|
104
104
|
}
|
|
105
105
|
`;
|
|
@@ -122,7 +122,7 @@ const NavMenu = styled.ul`
|
|
|
122
122
|
padding: 0;
|
|
123
123
|
margin: 0;
|
|
124
124
|
|
|
125
|
-
@media ${({ theme }) => theme.
|
|
125
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
126
126
|
display: flex;
|
|
127
127
|
flex-wrap: wrap;
|
|
128
128
|
justify-content: start;
|
|
@@ -143,12 +143,12 @@ const NavItem = styled.li`
|
|
|
143
143
|
margin: 0;
|
|
144
144
|
margin-bottom: 1rem;
|
|
145
145
|
|
|
146
|
-
@media ${({ theme }) => theme.
|
|
146
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
147
147
|
flex: 0 0 30%;
|
|
148
148
|
margin: 0;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
@media ${({ theme }) => theme.
|
|
151
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
152
152
|
/* Minus 9% to remove 3 x 1.5% margins from previous rule */
|
|
153
153
|
flex: 0 0 calc(25% - 1rem);
|
|
154
154
|
margin-right: 1rem;
|
|
@@ -169,7 +169,7 @@ const NavItem = styled.li`
|
|
|
169
169
|
line-height: 40px;
|
|
170
170
|
font-weight: 800;
|
|
171
171
|
|
|
172
|
-
@media ${({ theme }) => theme.
|
|
172
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
173
173
|
font-size: 20px;
|
|
174
174
|
line-height: 40px;
|
|
175
175
|
}
|
|
@@ -190,7 +190,7 @@ const NavItem = styled.li`
|
|
|
190
190
|
right: -25px;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
@media ${({ theme }) => theme.
|
|
193
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
194
194
|
cursor: default;
|
|
195
195
|
display: inline;
|
|
196
196
|
|
|
@@ -12,7 +12,7 @@ const HeaderWrapper = styled.header.attrs(() => ({
|
|
|
12
12
|
padding: 0;
|
|
13
13
|
height: 75px;
|
|
14
14
|
|
|
15
|
-
@media ${({ theme }) => theme.
|
|
15
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
16
16
|
height: auto;
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
@@ -25,7 +25,7 @@ const InnerWrapper = styled.div`
|
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
max-width: ${container.large};
|
|
27
27
|
|
|
28
|
-
@media ${({ theme }) => theme.
|
|
28
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
29
29
|
margin: 0 auto;
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
@@ -72,7 +72,7 @@ const MetaIcons = styled.div`
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@media ${({ theme }) => theme.
|
|
75
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
76
76
|
position: relative;
|
|
77
77
|
display: flex;
|
|
78
78
|
align-items: center;
|
|
@@ -38,7 +38,7 @@ const Nav = styled.nav`
|
|
|
38
38
|
left: inherit;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@media ${({ theme }) => theme.
|
|
41
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
42
42
|
${zIndex('medium')};
|
|
43
43
|
position: relative;
|
|
44
44
|
top: 0;
|
|
@@ -67,7 +67,7 @@ const SubNavMenu = styled.ul`
|
|
|
67
67
|
align-items: center;
|
|
68
68
|
background-color: ${({ theme }) => theme.color('deep_violet_dark')};
|
|
69
69
|
|
|
70
|
-
@media ${({ theme }) => theme.
|
|
70
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
71
71
|
display: none;
|
|
72
72
|
display: ${({ isKeyPressed }) => (isKeyPressed ? 'flex' : 'none')};
|
|
73
73
|
top: 90px;
|
|
@@ -120,7 +120,7 @@ const SubNavLinkUnderline = styled(SubNavLink)`
|
|
|
120
120
|
bottom: 10px;
|
|
121
121
|
margin: 0 10px;
|
|
122
122
|
}
|
|
123
|
-
@media ${({ theme }) => theme.
|
|
123
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
124
124
|
::before {
|
|
125
125
|
display: block;
|
|
126
126
|
position: absolute;
|
|
@@ -147,7 +147,7 @@ const NavMenu = styled.ul`
|
|
|
147
147
|
padding: 0;
|
|
148
148
|
margin: 0;
|
|
149
149
|
|
|
150
|
-
@media ${({ theme }) => theme.
|
|
150
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
151
151
|
position: relative;
|
|
152
152
|
display: flex;
|
|
153
153
|
flex-wrap: wrap;
|
|
@@ -164,7 +164,7 @@ const NavLink = styled(NavLinkClass)`
|
|
|
164
164
|
display: flex;
|
|
165
165
|
gap: 4px;
|
|
166
166
|
font-family: ${({ theme }) => theme.fontFamilies(theme.font.regular)};
|
|
167
|
-
@media ${({ theme }) => theme.
|
|
167
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
168
168
|
padding: 10px 0;
|
|
169
169
|
height: auto;
|
|
170
170
|
:focus + ${SubNavMenu} {
|
|
@@ -203,7 +203,7 @@ const NavItem = styled.li`
|
|
|
203
203
|
:hover {
|
|
204
204
|
background-color: ${({ theme }) => theme.color('teal_light')};
|
|
205
205
|
}
|
|
206
|
-
@media ${({ theme }) => theme.
|
|
206
|
+
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
207
207
|
margin: 0 4px;
|
|
208
208
|
padding: 25px 5px;
|
|
209
209
|
|
|
@@ -10,7 +10,7 @@ const MoneybuyWrapper = styled.div`
|
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
align-items: center;
|
|
12
12
|
|
|
13
|
-
@media ${({ theme }) => theme.
|
|
13
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
align-items: stretch;
|
|
16
16
|
}
|
|
@@ -34,13 +34,13 @@ const Moneybuy = styled.div`
|
|
|
34
34
|
opacity: 0.5;
|
|
35
35
|
`}
|
|
36
36
|
|
|
37
|
-
@media ${({ theme }) => theme.
|
|
37
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
38
38
|
width: 70%;
|
|
39
39
|
padding: 8px 40px;
|
|
40
40
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@media ${({ theme }) => theme.
|
|
43
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
44
44
|
padding: 20px 14px;
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
width: 18%;
|
|
@@ -56,13 +56,13 @@ const OrLabel = styled(Text)`
|
|
|
56
56
|
`;
|
|
57
57
|
|
|
58
58
|
const MoneybuyImage = styled.span`
|
|
59
|
-
background: center / 65% no-repeat url("${props => props.imageURL}"),
|
|
59
|
+
background: center / 65% no-repeat url("${props => props.imageURL}"),
|
|
60
60
|
${props => props.theme.color('grey_extra_light')};
|
|
61
61
|
width: 48px;
|
|
62
62
|
height: 48px;
|
|
63
63
|
border-radius: 48px;
|
|
64
64
|
|
|
65
|
-
@media ${({ theme }) => theme.
|
|
65
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
66
66
|
width: 0;
|
|
67
67
|
height: 0;
|
|
68
68
|
padding: 30%;
|
|
@@ -75,7 +75,7 @@ const MoneybuyAmount = styled(Text)`
|
|
|
75
75
|
margin: 0 10px;
|
|
76
76
|
width: 25%;
|
|
77
77
|
|
|
78
|
-
@media ${({ theme }) => theme.
|
|
78
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
79
79
|
margin: 8px 15px 2px;
|
|
80
80
|
width: auto;
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@ const MoneybuyDescription = styled(Text)`
|
|
|
85
85
|
text-align: left;
|
|
86
86
|
width: 50%;
|
|
87
87
|
|
|
88
|
-
@media ${({ theme }) => theme.
|
|
88
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
89
89
|
width: 100%;
|
|
90
90
|
text-align: center;
|
|
91
91
|
}
|
|
@@ -8,10 +8,10 @@ const OuterWrapper = styled.div`
|
|
|
8
8
|
background-color: ${props => props.theme.color(`${props.backgroundColour}`)};
|
|
9
9
|
padding: 32px 16px;
|
|
10
10
|
|
|
11
|
-
@media ${({ theme }) => theme.
|
|
11
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
12
12
|
padding: 50px;
|
|
13
13
|
}
|
|
14
|
-
@media ${({ theme }) => theme.
|
|
14
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
15
15
|
padding: 64px 0;
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
@@ -21,7 +21,7 @@ const InnerWrapper = styled.div`
|
|
|
21
21
|
max-width: 780px;
|
|
22
22
|
margin: 0 auto;
|
|
23
23
|
|
|
24
|
-
@media ${({ theme }) => theme.
|
|
24
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
25
25
|
h1 {
|
|
26
26
|
font-size: 48px;
|
|
27
27
|
line-height: 48px;
|
|
@@ -31,7 +31,7 @@ const InnerWrapper = styled.div`
|
|
|
31
31
|
|
|
32
32
|
const Copy = styled.div`
|
|
33
33
|
position: relative;
|
|
34
|
-
@media ${({ theme }) => theme.
|
|
34
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
35
35
|
p {
|
|
36
36
|
font-size: 20px;
|
|
37
37
|
line-height: 24.38px;
|
|
@@ -43,7 +43,7 @@ const CurrentAmountCopy = styled(Text)`
|
|
|
43
43
|
font-weight: bold;
|
|
44
44
|
margin-top: 16px;
|
|
45
45
|
|
|
46
|
-
@media ${({ theme }) => theme.
|
|
46
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
47
47
|
font-size: 20px;
|
|
48
48
|
line-height: 24.38px;
|
|
49
49
|
margin: 24px 0 38px;
|
|
@@ -55,13 +55,13 @@ const SubmitButton = styled(Button)`
|
|
|
55
55
|
width: 100%;
|
|
56
56
|
font-family: ${({ theme }) => theme.fontFamilies(theme.font.regular)};
|
|
57
57
|
display: block;
|
|
58
|
-
|
|
59
|
-
@media ${({ theme }) => theme.
|
|
58
|
+
|
|
59
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
60
60
|
width: 70%;
|
|
61
61
|
margin: 40px auto 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
@media ${({ theme }) => theme.
|
|
64
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
65
65
|
width: 100%;
|
|
66
66
|
}
|
|
67
67
|
`;
|
|
@@ -20,7 +20,7 @@ const TopCopyWrapper = styled.div`
|
|
|
20
20
|
display: flex;
|
|
21
21
|
width: 100%;
|
|
22
22
|
|
|
23
|
-
@media ${({ theme }) => theme.
|
|
23
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
24
24
|
padding: 10px;
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
@@ -42,7 +42,7 @@ const FormField = styled.div`${({ theme }) => css`
|
|
|
42
42
|
display: flex;
|
|
43
43
|
flex-direction: column;
|
|
44
44
|
|
|
45
|
-
@media ${theme.
|
|
45
|
+
@media ${theme.allBreakpoints('M')} {
|
|
46
46
|
width: 50%;
|
|
47
47
|
padding: 10px;
|
|
48
48
|
}
|
|
@@ -82,7 +82,7 @@ const CheckLabel = styled.label`${({ theme }) => css`
|
|
|
82
82
|
align-items: center;
|
|
83
83
|
font-size: ${theme.fontSize('xs')};
|
|
84
84
|
|
|
85
|
-
@media ${theme.
|
|
85
|
+
@media ${theme.allBreakpoints('M')} {
|
|
86
86
|
font-size: ${theme.fontSize('s')};
|
|
87
87
|
}
|
|
88
88
|
`}`;
|
|
@@ -108,7 +108,7 @@ const CheckInput = styled.input`
|
|
|
108
108
|
float: left;
|
|
109
109
|
border-radius: 8px;
|
|
110
110
|
|
|
111
|
-
@media ${({ theme }) => theme.
|
|
111
|
+
@media ${({ theme }) => theme.allBreakpoints('M')} {
|
|
112
112
|
margin-right: 15px;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -12,7 +12,7 @@ const Container = styled.div`
|
|
|
12
12
|
display: flex;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
min-height: 100vh;
|
|
15
|
-
@media ${({ theme }) => theme.
|
|
15
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: inherit;
|
|
18
18
|
min-height: 750px;
|
|
@@ -37,7 +37,7 @@ const BgImage = styled(Picture)`
|
|
|
37
37
|
height: 100%;
|
|
38
38
|
box-shadow: inset 0px ${spacing('xl')} ${spacing('l')} -${spacing('l')};
|
|
39
39
|
}
|
|
40
|
-
@media ${({ theme }) => theme.
|
|
40
|
+
@media ${({ theme }) => theme.allBreakpoints('L')} {
|
|
41
41
|
height: 100%;
|
|
42
42
|
|
|
43
43
|
:before {
|