Skip to content

Commit

Permalink
Card container query updates (#923)
Browse files Browse the repository at this point in the history
* Added container query rule around flex-basis.

* Missed these to replace with container query.
  • Loading branch information
bspeare authored Apr 4, 2024
1 parent 4d2c977 commit e4c1d21
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/scss/components/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,9 @@
}

> * {
flex-basis: 100%;
@include container-query() {
flex-basis: 100%;
}
}

.media--small.media--circle {
Expand All @@ -340,13 +342,13 @@
}
}
}
@include breakpoint(sm) {
@include container-query() {
flex: 0 0 35%;
}
}

.media--large {
@include breakpoint(sm) {
@include container-query() {
flex: 0 0 52.5%;
}
}
Expand Down

0 comments on commit e4c1d21

Please sign in to comment.