Skip to content

Commit

Permalink
refactor: container queries added to cardgroup container
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwaxhello committed Jun 14, 2024
1 parent 4c606ce commit c8b47d9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/components-css/card-group/index.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
.frameless-card-group {
container-type: inline-size;
display: grid;
gap: var(--frameless-card-group-gap);
grid-auto-flow: dense;
}

@media (width >= 600px) {
.frameless-card-group__container {
container-type: inline-size;
}

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

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

@container (max-width: 400px) {
.frameless-card {
--utrecht-paragraph-font-size: var(--frameless-card-paragraph-font-size);
}
}

0 comments on commit c8b47d9

Please sign in to comment.