@comicrelief/component-library 7.37.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.
Files changed (83) hide show
  1. package/dist/components/Atoms/Button/Button.js +1 -1
  2. package/dist/components/Atoms/Icons/Arrow.js +1 -1
  3. package/dist/components/Atoms/Icons/AtSign.js +1 -1
  4. package/dist/components/Atoms/Icons/Chevron.js +1 -1
  5. package/dist/components/Atoms/Icons/Download.js +1 -1
  6. package/dist/components/Atoms/Icons/External.js +1 -1
  7. package/dist/components/Atoms/Icons/Favourite.js +1 -1
  8. package/dist/components/Atoms/Icons/Internal.js +1 -1
  9. package/dist/components/Atoms/Input/Input.js +1 -1
  10. package/dist/components/Atoms/Link/Link.style.js +3 -3
  11. package/dist/components/Atoms/Logo/Logo.js +1 -1
  12. package/dist/components/Atoms/Select/Select.js +1 -1
  13. package/dist/components/Atoms/SocialIcons/SocialIcons.js +2 -2
  14. package/dist/components/Atoms/Text/Text.js +2 -2
  15. package/dist/components/Molecules/Accordion/Accordion.js +3 -3
  16. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
  17. package/dist/components/Molecules/Banner/Banner.js +2 -2
  18. package/dist/components/Molecules/Box/Box.js +4 -4
  19. package/dist/components/Molecules/CardDs/CardDs.style.js +9 -9
  20. package/dist/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
  21. package/dist/components/Molecules/InfoBanner/InfoBanner.js +2 -2
  22. package/dist/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
  23. package/dist/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
  24. package/dist/components/Molecules/SearchResult/SearchResult.js +3 -3
  25. package/dist/components/Molecules/SingleMessage/SingleMessage.style.js +4 -4
  26. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
  27. package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
  28. package/dist/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
  29. package/dist/components/Organisms/EmailSignUp/EmailSignUp.style.js +2 -2
  30. package/dist/components/Organisms/Footer/Footer.style.js +4 -4
  31. package/dist/components/Organisms/Footer/Nav/Nav.style.js +8 -8
  32. package/dist/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
  33. package/dist/components/Organisms/Header/Header.style.js +3 -3
  34. package/dist/components/Organisms/Header/Nav/Nav.style.js +6 -6
  35. package/dist/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +6 -6
  36. package/dist/components/Organisms/ImpactSlider/ImpactSlider.style.js +7 -7
  37. package/dist/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
  38. package/dist/components/Organisms/Membership/Membership.style.js +2 -2
  39. package/dist/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +10 -10
  40. package/dist/theme/crTheme/theme.js +2 -0
  41. package/dist/theme/shared/allBreakpoints.js +20 -0
  42. package/package.json +1 -1
  43. package/src/components/Atoms/Button/Button.js +1 -1
  44. package/src/components/Atoms/Icons/Arrow.js +1 -1
  45. package/src/components/Atoms/Icons/AtSign.js +1 -1
  46. package/src/components/Atoms/Icons/Chevron.js +1 -1
  47. package/src/components/Atoms/Icons/Download.js +1 -1
  48. package/src/components/Atoms/Icons/External.js +1 -1
  49. package/src/components/Atoms/Icons/Favourite.js +1 -1
  50. package/src/components/Atoms/Icons/Internal.js +1 -1
  51. package/src/components/Atoms/Input/Input.js +1 -1
  52. package/src/components/Atoms/Link/Link.style.js +3 -3
  53. package/src/components/Atoms/Logo/Logo.js +1 -1
  54. package/src/components/Atoms/Select/Select.js +1 -1
  55. package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
  56. package/src/components/Atoms/Text/Text.js +3 -3
  57. package/src/components/Molecules/Accordion/Accordion.js +6 -6
  58. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.js +6 -6
  59. package/src/components/Molecules/Banner/Banner.js +2 -2
  60. package/src/components/Molecules/Box/Box.js +4 -4
  61. package/src/components/Molecules/CardDs/CardDs.style.js +9 -9
  62. package/src/components/Molecules/DoubleCopy/DoubleCopy.style.js +1 -1
  63. package/src/components/Molecules/InfoBanner/InfoBanner.js +2 -2
  64. package/src/components/Molecules/PartnerLink/PartnerLink.style.js +1 -1
  65. package/src/components/Molecules/Promo/_PromoVideoButton.style.js +1 -1
  66. package/src/components/Molecules/SearchResult/SearchResult.js +3 -3
  67. package/src/components/Molecules/SingleMessage/SingleMessage.style.js +6 -6
  68. package/src/components/Molecules/SingleMessageDS/SingleMessageDs.md +3 -3
  69. package/src/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +6 -6
  70. package/src/components/Organisms/CookieBanner/CookieBanner.style.js +2 -2
  71. package/src/components/Organisms/EmailSignUp/EmailSignUp.style.js +3 -3
  72. package/src/components/Organisms/Footer/Footer.style.js +4 -4
  73. package/src/components/Organisms/Footer/Nav/Nav.style.js +8 -8
  74. package/src/components/Organisms/Header/Burger/BurgerMenu.style.js +1 -1
  75. package/src/components/Organisms/Header/Header.style.js +3 -3
  76. package/src/components/Organisms/Header/Nav/Nav.style.js +6 -6
  77. package/src/components/Organisms/ImpactSlider/ImpactMoneybuys.style.js +7 -7
  78. package/src/components/Organisms/ImpactSlider/ImpactSlider.style.js +8 -8
  79. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +4 -4
  80. package/src/components/Organisms/Membership/Membership.style.js +2 -2
  81. package/src/components/Organisms/WYMDCarousel/WYMDCarousel.style.js +21 -21
  82. package/src/theme/crTheme/theme.js +2 -0
  83. package/src/theme/shared/allBreakpoints.js +14 -0
@@ -37,11 +37,11 @@ const Link = styled(link)`
37
37
  color: inherit;
38
38
  width: 100%;
39
39
 
40
- @media ${({ theme }) => theme.breakpoint('small')} {
40
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
41
41
  flex-direction: row;
42
42
  }
43
43
 
44
- @media ${({ theme }) => theme.breakpoint('medium')} {
44
+ @media ${({ theme }) => theme.allBreakpoints('L')} {
45
45
  flex-direction: ${({ category }) => !category && category !== '' && 'column'};
46
46
  }
47
47
  `;
@@ -65,13 +65,13 @@ const ImageWrapper = styled.div`
65
65
  img {
66
66
  border-radius: 1rem 1rem 0 0;
67
67
  }
68
- @media ${({ theme }) => theme.breakpoint('small')} {
68
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
69
69
  width: 45%;
70
70
  img {
71
71
  border-radius: 1rem 0 0 1rem;
72
72
  }
73
73
  }
74
- @media ${({ theme }) => theme.breakpoint('medium')} {
74
+ @media ${({ theme }) => theme.allBreakpoints('L')} {
75
75
  width: 100%;
76
76
  img {
77
77
  border-radius: 1rem 1rem 0 0;
@@ -88,11 +88,11 @@ const CopyWrapper = styled.div`
88
88
  ${({ category }) => !category
89
89
  && category !== ''
90
90
  && css`
91
- @media ${({ theme }) => theme.breakpoint('small')} {
91
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
92
92
  width: 55%;
93
93
  }
94
94
  `};
95
- @media ${({ theme }) => theme.breakpoint('medium')} {
95
+ @media ${({ theme }) => theme.allBreakpoints('L')} {
96
96
  width: 100%;
97
97
  }
98
98
  `;
@@ -15,11 +15,11 @@ const Container = styled.div`
15
15
  margin: 0 auto;
16
16
  max-width: ${screen.large};
17
17
 
18
- @media ${({ theme }) => theme.breakpoint('small')} {
18
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
19
19
  padding: ${spacing('xl')} ${spacing('l')};
20
20
  }
21
21
 
22
- @media ${({ theme }) => theme.breakpoint('large')} {
22
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
23
23
  padding: ${spacing('xl')} ${spacing('xl')};
24
24
  }
25
25
  `;
@@ -9,11 +9,11 @@ const Container = styled.div`
9
9
  position: relative;
10
10
  height: 100%;
11
11
  flex-direction: column;
12
- @media ${({ theme }) => theme.breakpoint('small')} {
12
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
13
13
  flex-direction: row;
14
14
  }
15
15
 
16
- @media ${({ theme }) => theme.breakpoint('large')} {
16
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
17
17
  flex-direction: column;
18
18
  }
19
19
  `;
@@ -34,11 +34,11 @@ const Copy = styled.div`
34
34
  flex-grow: 0;
35
35
  flex-shrink: 0;
36
36
  flex-basis: calc(200% / 3);
37
- @media ${({ theme }) => theme.breakpoint('small')} {
37
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
38
38
  justify-content: center;
39
39
  }
40
40
 
41
- @media ${({ theme }) => theme.breakpoint('large')} {
41
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
42
42
  justify-content: normal;
43
43
  }
44
44
  `;
@@ -9,11 +9,11 @@ const Container = styled.div`
9
9
  height: 100%;
10
10
  width: 100%;
11
11
  background: ${({ theme, backgroundColor }) => theme.color(backgroundColor)};
12
- @media ${({ theme }) => theme.breakpoint('small')} {
12
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
13
13
  flex-direction: row;
14
14
  }
15
15
 
16
- @media ${({ theme }) => theme.breakpoint('large')} {
16
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
17
17
  flex-direction: column;
18
18
  }
19
19
  `;
@@ -21,7 +21,7 @@ const Container = styled.div`
21
21
  const Image = styled.div`
22
22
  height: auto;
23
23
  margin: 0 0 0 ${spacing('m')};
24
- @media ${({ theme }) => theme.breakpoint('small')} {
24
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
25
25
  margin: 0 -${spacing('m')} 0 ${spacing('m')};
26
26
  }
27
27
 
@@ -33,10 +33,10 @@ const Image = styled.div`
33
33
 
34
34
  const MediaLink = styled.a`
35
35
  width: 100%;
36
- @media ${({ theme }) => theme.breakpoint('small')} {
36
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
37
37
  width: calc(50% + 6rem);
38
38
  }
39
- @media ${({ theme }) => theme.breakpoint('large')} {
39
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
40
40
  width: 100%;
41
41
  }
42
42
  `;
@@ -51,7 +51,7 @@ const Copy = styled.div`
51
51
  background: ${({ theme, backgroundColor }) => theme.color(backgroundColor)};
52
52
  // width: 100%;
53
53
  margin: 0 ${spacing('m')} 0 0;
54
- @media ${({ theme }) => theme.breakpoint('large')} {
54
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
55
55
  height: 100%;
56
56
  }
57
57
  ${zIndex('low')};
@@ -59,12 +59,12 @@ const Copy = styled.div`
59
59
  && css`
60
60
  margin-top: calc(-2 * ${spacing('m')});
61
61
  min-height: calc(5 * ${spacing('l')});
62
- @media ${({ theme }) => theme.breakpoint('small')} {
62
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
63
63
  margin: ${spacing('m')} 0 -${spacing('m')} -${spacing('m')};
64
64
  width: calc(50% + 6rem);
65
65
  }
66
66
 
67
- @media ${({ theme }) => theme.breakpoint('large')} {
67
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
68
68
  margin: calc(-2 * ${spacing('m')}) 0 -${spacing('m')} 0;
69
69
  width: 100%;
70
70
  }
@@ -76,7 +76,7 @@ const CTA = styled.div`
76
76
  right: ${spacing('m')};
77
77
  bottom: -${spacing('m')};
78
78
  ${zIndex('medium')};
79
- @media ${({ theme }) => theme.breakpoint('small')} {
79
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
80
80
  bottom: calc(-1 * (${spacing('l')} + ${spacing('md')}));
81
81
  ${({ hasImage }) => !hasImage && `bottom: -${spacing('m')};`};
82
82
  }
@@ -4,7 +4,7 @@ import spacing from '../../../theme/shared/spacing';
4
4
 
5
5
  const Section = styled.section`
6
6
  width: 100%;
7
- @media ${({ theme }) => theme.breakpoint('small')} {
7
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
8
8
  display: flex;
9
9
  }
10
10
  `;
@@ -11,7 +11,7 @@ const Container = styled.section`
11
11
  flex-wrap: wrap;
12
12
  flex-direction: column;
13
13
  position: relative;
14
- @media ${({ theme }) => theme.breakpoint('small')} {
14
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
15
15
  flex-direction: row;
16
16
  }
17
17
  `;
@@ -22,7 +22,7 @@ const Info = styled.div`
22
22
  width: 100%;
23
23
  margin-bottom: ${spacing('l')};
24
24
  flex-direction: column;
25
- @media ${({ theme }) => theme.breakpoint('small')} {
25
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
26
26
  width: calc(100% / 3);
27
27
  }
28
28
  `;
@@ -8,7 +8,7 @@ import zIndex from '../../../theme/shared/zIndex';
8
8
  const MoreInfo = styled(Text)`
9
9
  ${hideVisually}
10
10
  height: auto;
11
- @media ${({ theme }) => theme.breakpoint('small')} {
11
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
12
12
  font-size: ${({ theme }) => theme.fontSize('s')};
13
13
  }
14
14
  `;
@@ -54,7 +54,7 @@ const PlayButton = styled.button`
54
54
  left: 10px;
55
55
  `}
56
56
 
57
- @media ${({ theme }) => theme.breakpoint('medium')} {
57
+ @media ${({ theme }) => theme.allBreakpoints('L')} {
58
58
  top: 20px;
59
59
  right: 20px;
60
60
 
@@ -24,7 +24,7 @@ const Item = styled(Link)`
24
24
  text-decoration: none;
25
25
  color: inherit;
26
26
  width: 100%;
27
- @media ${({ theme }) => theme.breakpoint('small')} {
27
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
28
28
  flex-direction: row;
29
29
  }
30
30
  :hover {
@@ -35,10 +35,10 @@ const Item = styled(Link)`
35
35
 
36
36
  const ImageWrapper = styled.div`
37
37
  height: auto;
38
- @media ${({ theme }) => theme.breakpoint('small')} {
38
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
39
39
  width: ${({ smallImageWidth }) => smallImageWidth};
40
40
  }
41
- @media ${({ theme }) => theme.breakpoint('large')} {
41
+ @media ${({ theme }) => theme.allBreakpoints('XL')} {
42
42
  width: ${({ largeImageWidth }) => largeImageWidth};
43
43
  }
44
44
  `;
@@ -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.breakpoint('small')} {
64
+ ? css`@media ${({ theme }) => theme.allBreakpoints('M')} {
65
65
  width: 50%;
66
66
  }
67
67
  `
68
68
  : css`
69
- @media ${({ theme }) => theme.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('large')} {
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)`};
@@ -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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
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.breakpoint('small')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
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.breakpoint('medium')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
146
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
147
147
  flex: 0 0 30%;
148
148
  margin: 0;
149
149
  }
150
150
 
151
- @media ${({ theme }) => theme.breakpoint('medium')} {
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.breakpoint('small')} {
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.breakpoint('small')} {
193
+ @media ${({ theme }) => theme.allBreakpoints('M')} {
194
194
  cursor: default;
195
195
  display: inline;
196
196
 
@@ -91,7 +91,7 @@ const BurgerWrapper = styled(Link)`
91
91
  }
92
92
  }
93
93
 
94
- @media ${({ theme }) => theme.breakpoint('nav')} {
94
+ @media ${({ theme }) => theme.allBreakpoints('Nav')} {
95
95
  display: none;
96
96
  }
97
97
  `;
@@ -12,7 +12,7 @@ const HeaderWrapper = styled.header.attrs(() => ({
12
12
  padding: 0;
13
13
  height: 75px;
14
14
 
15
- @media ${({ theme }) => theme.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('nav')} {
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.breakpoint('medium')} {
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.breakpoint('small')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
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.breakpoint('medium')} {
88
+ @media ${({ theme }) => theme.allBreakpoints('L')} {
89
89
  width: 100%;
90
90
  text-align: center;
91
91
  }