Skip to content

Instantly share code, notes, and snippets.

@justintemps
Last active February 15, 2017 08:47
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 justintemps/1b7767543052bb00b7540f55906adf5b to your computer and use it in GitHub Desktop.
Save justintemps/1b7767543052bb00b7540f55906adf5b to your computer and use it in GitHub Desktop.
Substitute for .hide-for-large using Foundation for Emails
/**
* ONLY MOBILE / NO MOBILE
*/
/* .small-only shows for mobile, hides for desktop */
table.container table.row .small-only {
display: none;
font-size: 0;
line-height: 0px;
max-height: 0px;
mso-hide: all;
overflow :hidden;
visibility: hidden;
}
/* .large-only shows for desktop, hides for mobile */
@include mobile {
table.container table.row .small-only {
display: table !important;
font-size: 100% !important;
line-height: 100% !important;
overflow: visible !important;
visibility: visible !important;
}
.large-only {
display: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment