Skip to content

Commit

Permalink
INTERIM-146 Breakpoint improvements for panels with 3 or 4 items
Browse files Browse the repository at this point in the history
* INTERIM-146 Improve layout of panels with 3 or 4 items in a row as they transition to narrow breakpoints.

* INTERIM-146 Adjusted media query for rows of three items
  • Loading branch information
sacarney authored and angelamnr committed Jan 11, 2018
1 parent ac79c30 commit 545b7a8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ ul.tabs.secondary img {
color: #676767;
}

.panel-panel iframe {
.panel-pane iframe {
max-width: 100%;
}

Expand Down Expand Up @@ -1495,6 +1495,24 @@ in the panel settings */
margin-bottom: 1rem;
}

@media (max-width: 1139px) and (min-width: 600px) {

.megapanels-pane:first-child:nth-last-child(4),
.megapanels-pane:first-child:nth-last-child(4) ~ .megapanels-pane {
width: calc(50% - 1rem);
flex: 0 1 auto;
}
}

@media (max-width: 829px) and (min-width: 548px) {

.megapanels-pane:first-child:nth-last-child(3),
.megapanels-pane:first-child:nth-last-child(3) ~ .megapanels-pane {
width: calc(50% - 1rem);
flex: 0 1 auto;
}
}

/* ---------------------------------------- */
/* ## BLOCKS
/* ---------------------------------------- */
Expand Down

0 comments on commit 545b7a8

Please sign in to comment.