Skip to content

Commit

Permalink
WILE-48 Fix middle-width wrapping issues for 3 and 4 columns in Megap…
Browse files Browse the repository at this point in the history
…anels. (#167)
  • Loading branch information
sacarney authored and angelamnr committed Mar 2, 2018
1 parent 48aa39b commit 358cfcb
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ in the panel settings */
}

.megapanels-pane {
flex: 1 1 0px;
flex: 1 1 250px;
min-width: 250px;
margin: 0 0.5rem;
margin-bottom: 1rem;
Expand All @@ -1509,7 +1509,17 @@ in the panel settings */
margin-bottom: 1rem;
}

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

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

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

.megapanels-pane:first-child:nth-last-child(4),
.megapanels-pane:first-child:nth-last-child(4) ~ .megapanels-pane {
Expand All @@ -1518,7 +1528,7 @@ in the panel settings */
}
}

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

.megapanels-pane:first-child:nth-last-child(3),
.megapanels-pane:first-child:nth-last-child(3) ~ .megapanels-pane {
Expand Down

0 comments on commit 358cfcb

Please sign in to comment.