Skip to content

Commit

Permalink
Mobile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Jul 18, 2024
1 parent 2e0b9e1 commit 8c0287e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions web/app/themes/gds/resources/blocks/media-card/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.wp-block-gds-media-card {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 1fr;
border-radius: var(--gds-border-radius);
box-shadow: var(--gds-box-shadow);
background-color: var(--gds-color-white);
Expand Down Expand Up @@ -28,6 +29,7 @@
padding: var(--gds-media-card-padding);
display: flex;
flex-direction: column;
overflow: hidden;

> * {
margin-block-start: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ gds-carousel-pager {
// Utility for getting prevent CLS but the variable can be overridden with CSS
// too.
@for $i from 1 through 4 {
&[column-count="#{$i}"] {
--carousel-columns: #{$i};
@media (min-width >= 600px) {
&[column-count="#{$i}"] {
--carousel-columns: #{$i};
}
}
}

Expand Down

0 comments on commit 8c0287e

Please sign in to comment.