Skip to content

Commit

Permalink
Interim 180 (#188)
Browse files Browse the repository at this point in the history
* INTERIM-180 Add classes for full-width layout

* INTERIM-180 Adjust spacing
  • Loading branch information
sacarney authored and angelamnr committed Jan 9, 2019
1 parent 8ae77e9 commit 0ac2275
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions css/suitcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,65 @@ ul.tabs.secondary img {
}
}

/* --- Full Width Option --- */
/* Add these classes to the Panel Page in General Settings. Supplement
* with the CSS code field.
*/

.megapanels_full-width .zone-content {
max-width: 100% !important;
width: 100%;
margin: 0;
}

.megapanels_full-width .grid-12 {
width: 100% !important;
margin: 0;
}

.megapanels_full-width .megapanels-wrapper_full_top,
.megapanels_full-width .megapanels-wrapper_full_bottom {
margin-right: 0;
margin-left: 0;
}

.megapanels_full-width.megapanels_content-contained .megapanels-row {

}

/* Mimic container-12 */

@media (max-width: 740px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
margin-right: 0;
margin-left: 0;
}
}
@media (min-width: 740px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
width: 92%;
margin-left: 4%;
margin-right: 4%;
}
}

@media (min-width: 1200px) {
.megapanels_full-width.megapanels_content-contained .megapanels-row {
width: 92%;
max-width: calc(1200px + 2rem);
margin-left: auto !important;
margin-right: auto !important;
}
}

.megapanels_full-width.megapanels_content-contained .suitcase_megapanels {
margin: 0;
}

.megapanels_full-width.megapanels_content-contained .megapanels-pane {
margin: 0;
}

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

0 comments on commit 0ac2275

Please sign in to comment.