@hellobetterdigitalnz/selwynui 0.0.1-53 → 0.0.1-55

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.
@@ -25,44 +25,46 @@ const CarouselBlock = (props : CarouselBlockProps) =>{
25
25
 
26
26
  return <div className={`${styles.carousel} carouselBlock`}>
27
27
  <Container>
28
- <div className={styles.carouselTitle}>
29
- <h3>{title}</h3>
30
- <div className={styles.actions}>
31
- <button
32
- className="custom-arrow prev"
33
- onClick={() => sliderRef.current?.slickPrev()}
34
- aria-label="Previous"
35
- >
36
- <CaretLeft type="thin" />
37
- </button>
28
+ <div className={styles.carouselWrapper}>
29
+ <div className={styles.carouselTitle}>
30
+ <h3>{title}</h3>
31
+ <div className={styles.actions}>
32
+ <button
33
+ className="custom-arrow prev"
34
+ onClick={() => sliderRef.current?.slickPrev()}
35
+ aria-label="Previous"
36
+ >
37
+ <CaretLeft type="thin" />
38
+ </button>
38
39
 
39
- <button
40
- className="custom-arrow next"
41
- onClick={() => sliderRef.current?.slickNext()}
42
- aria-label="Next"
43
- >
44
- <CaretRight type="thin" />
45
- </button>
46
- </div>
47
- </div>
48
- <Slider ref={sliderRef} {...settings}>
49
- {cards.map((card, index) => (
50
- <div className={styles.card}>
51
- <DetailsCard
52
- key={index}
53
- title={card.title}
54
- date={card.date}
55
- description={card.description}
56
- image={card.image}
57
- link={card.link}
58
- pillar={card.pillar}
59
- variation={'long'}
60
- />
40
+ <button
41
+ className="custom-arrow next"
42
+ onClick={() => sliderRef.current?.slickNext()}
43
+ aria-label="Next"
44
+ >
45
+ <CaretRight type="thin" />
46
+ </button>
61
47
  </div>
62
- ))}
63
- </Slider>
64
- <div className={styles.btn}>
65
- {action}
48
+ </div>
49
+ <Slider ref={sliderRef} {...settings}>
50
+ {cards.map((card, index) => (
51
+ <div className={styles.card}>
52
+ <DetailsCard
53
+ key={index}
54
+ title={card.title}
55
+ date={card.date}
56
+ description={card.description}
57
+ image={card.image}
58
+ link={card.link}
59
+ pillar={card.pillar}
60
+ variation={'long'}
61
+ />
62
+ </div>
63
+ ))}
64
+ </Slider>
65
+ <div className={styles.btn}>
66
+ {action}
67
+ </div>
66
68
  </div>
67
69
  </Container>
68
70
  </div>
@@ -1,54 +1,60 @@
1
- .carouselTitle{
2
- margin: -12px;
3
- margin-bottom: 70px;
4
- display: flex;
5
- flex-wrap: wrap;
6
- justify-content: space-between;
7
- align-items: center;
8
-
9
- h3{
10
- font-size: 36px;
11
- line-height: 1;
12
- font-weight: 700;
13
- padding: 12px;
1
+ .carousel{
2
+ .carouselWrapper{
3
+ width: 100%;
14
4
  }
15
5
 
16
- .actions{
17
- padding: 12px;
18
- }
19
-
20
-
21
- @media screen and (min-width: 992px) {
22
- margin-bottom: 84px;
6
+ .carouselTitle{
7
+ margin: -12px;
8
+ margin-bottom: 70px;
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ justify-content: space-between;
12
+ align-items: center;
23
13
 
24
14
  h3{
25
- font-size: var(--font-size-h3);
15
+ font-size: 36px;
16
+ line-height: 1;
17
+ font-weight: 700;
18
+ padding: 12px;
26
19
  }
27
20
 
28
- }
21
+ .actions{
22
+ padding: 12px;
23
+ }
29
24
 
30
- }
31
25
 
32
- .card{
33
- width: 312px !important;
34
- margin-right: 16px;
35
- }
26
+ @media screen and (min-width: 992px) {
27
+ margin-bottom: 84px;
36
28
 
37
- .btn{
38
- margin-top: 36px;
39
- display: flex;
40
- }
29
+ h3{
30
+ font-size: var(--font-size-h3);
31
+ }
41
32
 
42
- @media screen and (min-width: 992px) {
33
+ }
43
34
 
44
- .card {
45
- width: 456px !important;
46
- margin-right: 24px;
47
35
  }
48
36
 
37
+ .card{
38
+ width: 312px !important;
39
+ margin-right: 16px;
40
+ }
49
41
 
50
42
  .btn{
51
- margin-top: 72px;
43
+ margin-top: 36px;
44
+ display: flex;
52
45
  }
53
46
 
47
+ @media screen and (min-width: 992px) {
48
+
49
+ .card {
50
+ width: 456px !important;
51
+ margin-right: 24px;
52
+ }
53
+
54
+
55
+ .btn{
56
+ margin-top: 72px;
57
+ }
58
+
59
+ }
54
60
  }
@@ -283,7 +283,7 @@
283
283
 
284
284
  //Fluid
285
285
  &.imageContentFluid{
286
- overflow-x: hidden;
286
+ overflow: hidden;
287
287
 
288
288
  .pillarlogo{
289
289
  display: flex;
@@ -16,7 +16,6 @@ const KPIBlock = (props: KPIBlockProps) => {
16
16
 
17
17
  const className = cslx(
18
18
  styles.kpi ,
19
- `${pillar}`,
20
19
  {
21
20
  [styles[`kpi--pb-${spacingBottom}`]]: spacingBottom,
22
21
  },
@@ -2,7 +2,6 @@
2
2
  @import "../../../node_modules/slick-carousel/slick/slick-theme.css";
3
3
 
4
4
  .carouselBlock{
5
- overflow-x: hidden;
6
5
 
7
6
  .custom-arrow{
8
7
  background: transparent;