Skip to content

Instantly share code, notes, and snippets.

@maddesigns
Last active August 29, 2015 14:17
Show Gist options
  • Save maddesigns/891832689605c192cb29 to your computer and use it in GitHub Desktop.
Save maddesigns/891832689605c192cb29 to your computer and use it in GitHub Desktop.
Foundation 5 grid width pull and push in CSS
old:
<div class="small-text-center medium-text-right large-text-right small-12 medium-4 medium-push-8 large-3 large-push-5 columns"> … </div>
new:
<div class="footer-nav"> … </div>
.footer-nav {
@include grid-column(12);
text-align: center;
@media #{$medium-up} {
@include grid-column(4, $push: 8);
text-align: right;
}
@media #{$large-up} {
@include grid-column(3, $push: 5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment