1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00
Files
csslayout/styles/patterns/_card-layout.scss
2022-09-21 12:35:13 +07:00

23 lines
404 B
SCSS

.card-layout {
display: flex;
/* Put a card in the next row when previous cards take all width */
flex-wrap: wrap;
margin-left: -0.25rem;
margin-right: -0.25rem;
/* Demo */
width: 8rem;
}
.card-layout__item {
/* There will be 3 cards per row */
flex-basis: 33.33333%;
padding-left: 0.25rem;
padding-right: 0.25rem;
/* Demo */
margin: 0.25rem 0;
}