Skip to content

Commit da8e700

Browse files
committed
Card 5 (Grid: Areas)
1 parent ab48471 commit da8e700

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/index.pcss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,16 @@
5252
justify-items: center;
5353
align-items: center;
5454
}
55+
56+
[data-card="5"] {
57+
display: grid;
58+
grid-template-areas: "a . b" ". c ." "d . e";
59+
justify-items: center;
60+
align-items: center;
61+
62+
& .item:nth-child(1) { grid-area: a; }
63+
& .item:nth-child(2) { grid-area: b; }
64+
& .item:nth-child(3) { grid-area: c; }
65+
& .item:nth-child(4) { grid-area: d; }
66+
& .item:nth-child(5) { grid-area: e; }
67+
}

0 commit comments

Comments
 (0)