Skip to content

Commit baabf8c

Browse files
committed
chore: fix carbon ads position on hoome page
1 parent 3cb6308 commit baabf8c

File tree

1 file changed

+4
-53
lines changed

1 file changed

+4
-53
lines changed

docs/src/pages/index.module.css

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,13 @@
88
text-align: center;
99
position: relative;
1010
overflow: hidden;
11+
display: flex;
12+
flex-direction: column;
1113
}
1214

1315
.heroAds {
14-
position: absolute;
15-
left: 0;
16-
top: 12px;
17-
}
18-
19-
@media screen and (min-width: 375px) {
20-
.heroAds {
21-
top: 4rem;
22-
}
23-
}
24-
25-
@media screen and (min-width: 425px) {
26-
.heroAds {
27-
left: unset;
28-
top: 8px;
29-
}
30-
}
31-
32-
@media screen and (min-width: 768px) {
33-
.heroAds {
34-
transform: translateX(calc(50% - 30px));
35-
}
36-
}
37-
38-
@media screen and (min-width: 1024px) {
39-
.heroAds {
40-
top: 10rem;
41-
transform: unset;
42-
}
43-
}
44-
45-
@media screen and (min-width: 1256px) {
46-
.heroAds {
47-
left: 4rem;
48-
}
49-
}
50-
51-
@media screen and (min-width: 1440px) {
52-
.heroAds {
53-
left: 8rem;
54-
}
55-
}
56-
57-
@media screen and (min-width: 2000px) {
58-
.heroAds {
59-
left: 16rem;
60-
}
61-
}
62-
63-
@media screen and (min-width: 2560px) {
64-
.heroAds {
65-
left: 32rem;
66-
}
16+
padding-top: 2rem;
17+
min-height: 196px;
6718
}
6819

6920
@media screen and (max-width: 996px) {

0 commit comments

Comments
 (0)