Skip to content

Instantly share code, notes, and snippets.

@benlwilliams
Last active December 25, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benlwilliams/7046883 to your computer and use it in GitHub Desktop.
Save benlwilliams/7046883 to your computer and use it in GitHub Desktop.
Zero width columns for Zurb Foundation grid. Used instead of Foundation's visibility classes because they can force some display properties that are undesired on the hidden element. Also, just feels more natural.
.small-0 { display:none; }
@media #{$small} {
.medium-0 { display:none; }
[class*="medium-"]:not(.medium-0) { display:block; } // resets the .small-0 display property
}
@media #{$medium} {
.large-0 { display:none; }
[class*="large-"]:not(.large-0) { display:block; } // resets the .medium-0 display property
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment