Skip to content

Commit

Permalink
MWPW-151932 - Section metadata style grid enhancement for tablet VP (#…
Browse files Browse the repository at this point in the history
…2800)

* poc for up-tablet

* moved one-up to approp mq

* remove redundant two-up-tablet. Use min-max defaults
  • Loading branch information
ryanmparrish committed Sep 2, 2024
1 parent 3ad052c commit 8b62e93
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions libs/blocks/section-metadata/section-metadata.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,17 @@ main > .section[class*='-up'] > .content {
.section.two-up.reverse-mobile > div:nth-child(2) {
order: 1;
}

}

@media screen and (min-width: 600px) and (max-width: 1200px) {
.section.five-up {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section.one-up-tablet { grid-template-columns: 1fr; }
.section.three-up-tablet { grid-template-columns: repeat(3, 1fr); }
.section.four-up-tablet { grid-template-columns: repeat(4, 1fr); }

.section.masonry-layout {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
Expand All @@ -264,15 +269,6 @@ main > .section[class*='-up'] > .content {
}
}

@media screen and (max-width: 900px) {
.section.two-up.one-up-tablet,
.section.three-up.one-up-tablet,
.section.four-up.one-up-tablet,
.section.five-up.one-up-tablet {
grid-template-columns: 1fr;
}
}

@media screen and (min-width: 720px) {
.section.grid-width-6 {
padding-left: calc((100vw - 600px) / 2);
Expand Down

0 comments on commit 8b62e93

Please sign in to comment.