Created
November 11, 2015 17:22
-
-
Save emarket-design/e64e0a7fe8f34acad5f4 to your computer and use it in GitHub Desktop.
Adjusts emd-container class font size depending on the view port; usefull adjusting text in containers.
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
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
div.emd-container{ | |
font-size: 70% !important; | |
line-height:normal !important;; | |
} | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { | |
div.emd-container{ | |
font-size: 75% !important; | |
line-height:normal !important;; | |
} | |
} | |
/* Small Devices, Tablets */ | |
@media only screen and (min-width : 768px) { | |
div.emd-container{ | |
font-size: 80% !important; | |
line-height:normal !important;; | |
} | |
} | |
/* Medium Devices, Desktops */ | |
@media only screen and (min-width : 992px) { | |
div.emd-container{ | |
font-size: 85% !important; | |
line-height:normal !important;; | |
} | |
} | |
/* Large Devices, Wide Screens */ | |
@media only screen and (min-width : 1200px) { | |
div.emd-container{ | |
font-size: 100% !important; | |
line-height:normal !important;; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment