Last active
August 29, 2015 14:17
-
-
Save maddesigns/891832689605c192cb29 to your computer and use it in GitHub Desktop.
Foundation 5 grid width pull and push in CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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