Last active
August 29, 2015 14:17
-
-
Save facelordgists/404ea3ade7d4741a064f to your computer and use it in GitHub Desktop.
Mobile width classes
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
// 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