Skip to content

Instantly share code, notes, and snippets.

@facelordgists
Last active August 29, 2015 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save facelordgists/404ea3ade7d4741a064f to your computer and use it in GitHub Desktop.
Save facelordgists/404ea3ade7d4741a064f to your computer and use it in GitHub Desktop.
Mobile width classes
// MAX WIDTH CLASSES
// ******************
// Mobile
@media (max-width: 767px){
a[class*=m-maxw-]{
display: inline-block;
}
.m-maxw-100p { max-width:100% !important}
.m-maxw-90p { max-width:90% !important}
.m-maxw-80p { max-width:80% !important}
.m-maxw-70p { max-width:70% !important}
.m-maxw-60p { max-width:60% !important}
.m-maxw-50p { max-width:50% !important}
.m-maxw-40p { max-width:40% !important}
.m-maxw-30p { max-width:30% !important}
.m-maxw-20p { max-width:20% !important}
.m-maxw-10p { max-width:10% !important}
}
// Desktop
@media (min-width: 768px){
a[class^=maxw-]{
display: inline-block;
}
.maxw-100p { max-width:100% !important}
.maxw-90p { max-width:90% !important}
.maxw-80p { max-width:80% !important}
.maxw-70p { max-width:70% !important}
.maxw-60p { max-width:60% !important}
.maxw-50p { max-width:50% !important}
.maxw-40p { max-width:40% !important}
.maxw-30p { max-width:30% !important}
.maxw-20p { max-width:20% !important}
.maxw-10p { max-width:10% !important}
}
// ******************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment