Skip to content

Instantly share code, notes, and snippets.

@shealan
Last active October 26, 2016 11:21
Show Gist options
  • Save shealan/99824b1e108b592c45f02fa822a70a0e to your computer and use it in GitHub Desktop.
Save shealan/99824b1e108b592c45f02fa822a70a0e to your computer and use it in GitHub Desktop.
Reorder Divi Checkerboard Panels on Mobile
/* add this block of code to the theme options > custom styles area */
/* add class "pnpd-swap-mobile-order" to checkerboard rows you wish to reorder on mobile */
@media only screen and (max-width: 980px) {
.pnpd-swap-mobile-order {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.pnpd-swap-mobile-order div:nth-child(1) {
-webkit-box-ordinal-group: 3;
-webkit-order: 2;
-ms-flex-order: 2;
order: 2;
}
.pnpd-swap-mobile-order div:nth-child(2) {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment