Skip to content

Commit b4c0d48

Browse files
committed
Card 9 & 10 (Grid + nth-child + Position)
1 parent 8c9f53d commit b4c0d48

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/index.pcss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,31 @@
9292
bottom: 20%;
9393
}
9494
}
95+
96+
[data-card="9"],
97+
[data-card="10"] {
98+
display: grid;
99+
grid-template-rows: repeat(4, 25%);
100+
grid-template-columns: 50% 50%;
101+
justify-items: center;
102+
align-items: center;
103+
position: relative;
104+
105+
& .item:nth-child(1) {
106+
position: absolute;
107+
}
108+
}
109+
110+
[data-card="10"] {
111+
position: relative;
112+
113+
& .item:nth-child(1) {
114+
position: absolute;
115+
top: 15%;
116+
}
117+
118+
& .item:nth-child(10) {
119+
position: absolute;
120+
bottom: 15%;
121+
}
122+
}

0 commit comments

Comments
 (0)