Skip to content

Commit ae9cf0a

Browse files
committed
fix: fixing the columns order on small devices
Signed-off-by: DANIEL KATOTO <[email protected]>
1 parent 1effa49 commit ae9cf0a

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

src/sections/Developer-Infrastructure/features.js

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,11 @@ const FeatureWrapper = styled.div`
2929
}
3030
}
3131
}
32-
.catalog-container .catalog:nth-child(even) {
33-
.catalog-image {
34-
@media (max-width: 767px) {
35-
order: 0;
36-
}
37-
}
38-
.catalog-detail {
39-
@media (max-width: 767px) {
40-
order: 1;
41-
}
42-
}
43-
}
4432
.catalog {
4533
display: flex;
4634
padding: 2rem 0;
47-
@media (max-width: 768px) {
35+
@media (max-width: 767px) {
4836
padding: 2rem 0;
49-
}
50-
@media (max-width: 468px) {
5137
flex-direction: column;
5238
}
5339
.catalog-detail {
@@ -68,14 +54,8 @@ const FeatureWrapper = styled.div`
6854
font-size: 2rem;
6955
line-height: 2.5rem;
7056
text-align: center;
71-
padding-left: 100px;
72-
padding-right: 100px;
7357
margin-bottom: 1rem;
7458
}
75-
@media (max-width: 467px) {
76-
padding-left: 25px;
77-
padding-right: 25px;
78-
}
7959
}
8060
.caption {
8161
font-weight: 400;
@@ -88,12 +68,6 @@ const FeatureWrapper = styled.div`
8868
font-size: 1rem;
8969
line-height: 1.5rem;
9070
text-align: center;
91-
padding-left: 100px;
92-
padding-right: 100px;
93-
}
94-
@media (max-width: 467px) {
95-
padding-left: 25px;
96-
padding-right: 25px;
9771
}
9872
}
9973
}
@@ -107,16 +81,15 @@ const FeatureWrapper = styled.div`
10781
align-items: center;
10882
@media (max-width: 767px) {
10983
justify-content: center;
110-
}
111-
.kubernetes-image {
112-
@media (max-width: 767px) {
113-
max-width: 90%;
114-
margin-bottom: 2rem;
115-
}
11684
}
11785
}
11886
}
11987
}
88+
.catalog:nth-child(1){
89+
@media (max-width: 767px) {
90+
flex-direction: column-reverse;
91+
}
92+
}
12093
`;
12194

12295
const Feature = () => {

0 commit comments

Comments
 (0)