File tree Expand file tree Collapse file tree 1 file changed +32
-22
lines changed
src/components/Call-To-Actions/CTA_FullWidth Expand file tree Collapse file tree 1 file changed +32
-22
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import { Categories } from "./cta_fullwidth_categories";
66
77const CTA_FullWidthWrapper = styled . div `
88 display: flex;
9- flex: 0 0 100% ;
9+ flex-wrap: wrap ;
1010 width: 98%;
11- height: 16rem;
11+ min- height: 16rem;
1212 margin: 1.5rem auto;
1313 box-shadow: 0px 0px 16px 4px rgba(0, 0, 0, 0.1);
1414 border-radius: 0.5rem;
@@ -24,36 +24,42 @@ const CTA_FullWidthWrapper = styled.div`
2424 object-fit: cover;
2525 pointer-events: none;
2626 border-radius: 0.5rem 0 0 0.5rem;
27- padding: 2rem ;
27+ padding: 1.5rem ;
2828 }
2929
3030 .cta-content {
31- padding: 0.5rem ;
31+ padding: 2rem ;
3232 display: flex;
33- flex: auto ;
33+ flex: 1 ;
3434 text-align: center;
3535 align-items: center;
36+ justify-content: space-around;
37+ gap: 2rem;
3638 height: 100%;
3739
3840 div {
39- flex: 0 0 75 %;
41+ flex: 0 1 70 %;
4042 }
4143
4244 p {
4345 margin-top: 0.5rem;
4446 }
4547 a {
46- flex: 0 0 25% ;
48+ flex: 0 0 auto ;
4749 }
4850 }
4951
5052 @media screen and (max-width: 1200px) {
5153 .cta-content {
54+ flex-direction: column;
55+ justify-content: center;
56+ gap: 1.5rem;
5257 div {
53- flex: 0 0 65%;
58+ flex: 0 0 auto;
59+ width: 100%;
5460 }
5561 a {
56- flex: 0 0 35% ;
62+ flex: 0 0 auto ;
5763 }
5864 }
5965 }
@@ -65,30 +71,34 @@ const CTA_FullWidthWrapper = styled.div`
6571 }
6672
6773 @media screen and (max-width: 699px) {
68- display: block;
69- width: 18rem;
70- height: 18rem;
74+ display: flex;
75+ flex-direction: column;
76+ width: 100%;
77+ height: auto;
7178 margin: 1.5rem auto;
7279 border-radius: 0.25rem;
7380
7481 img {
75- width: 18rem;
76- height: 18rem;
77- position: absolute;
78- opacity: 0.35;
82+ width: 100%;
83+ height: auto;
84+ max-height: 250px;
85+ position: static;
86+ opacity: 1;
7987 border-radius: 0.25rem;
88+ padding: 2rem;
8089 }
8190
8291 .cta-content {
83- position: absolute;
84- height: 18rem;
85- display: block;
86- width: 18rem;
92+ position: static;
93+ height: auto;
94+ display: flex;
95+ flex-direction: column;
96+ width: 100%;
8797 background: none;
88- padding: 4rem 1rem ;
98+ padding: 1.5rem 2rem 3rem 2rem ;
8999
90100 p {
91- color: white ;
101+ color: inherit ;
92102 }
93103 }
94104 }
You can’t perform that action at this time.
0 commit comments