Skip to content

Commit

Permalink
style: added media and container queries to card
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwaxhello committed Jun 12, 2024
1 parent 861007b commit 4bc81bf
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions packages/components-css/card-group/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
.frameless-card-group {
border-radius: var(--frameless-border-radius-sm);
container-type: inline-size;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
grid-auto-flow: dense;
}

@media (width >= 600px) {
.frameless-card-group {
display: grid;
gap: 24px;
grid-template-columns: 1fr 1fr;
}
}

@media (width <= 900px) {
.frameless-card-group {
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}
}

@container (min-width: 450px) {
.frameless-card {
background-color: red;
}
}

@container (max-width: 450px) {
.frameless-card {
background-color: blue;
}
}

0 comments on commit 4bc81bf

Please sign in to comment.