forked from sandeepravi/collage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection-main-blog.css
61 lines (51 loc) · 2.11 KB
/
section-main-blog.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.blog-articles {
display: grid;
grid-gap: 1rem;
column-gap: var(--grid-mobile-horizontal-spacing);
row-gap: var(--grid-mobile-vertical-spacing);
}
.blog-articles .card-wrapper {
width: 100%;
}
@media screen and (min-width: 750px) {
.blog-articles {
grid-template-columns: 1fr 1fr;
column-gap: var(--grid-desktop-horizontal-spacing);
row-gap: var(--grid-desktop-vertical-spacing);
}
.blog-articles--collage > *:nth-child(3n + 1),
.blog-articles--collage > *:nth-child(3n + 2):last-child {
grid-column: span 2;
text-align: center;
}
.blog-articles--collage > *:nth-child(3n + 1) .card,
.blog-articles--collage > *:nth-child(3n + 2):last-child .card {
text-align: center;
}
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio::before {
padding-bottom: 22rem;
}
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
padding-bottom: 44rem;
}
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
padding-bottom: 66rem;
}
}
@media screen and (min-width: 990px) {
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--small .ratio .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--small .ratio .ratio::before {
padding-bottom: 27.5rem;
}
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--medium .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--medium .ratio::before {
padding-bottom: 55rem;
}
.blog-articles--collage > *:nth-child(3n + 1) .article-card__image--large .ratio::before,
.blog-articles--collage > *:nth-child(3n + 2):last-child .article-card__image--large .ratio::before {
padding-bottom: 82.5rem;
}
}