Last active
May 3, 2018 14:19
-
-
Save MariaJackson1/fb58920b9b51434aed41a85e2b1fc800 to your computer and use it in GitHub Desktop.
GeneratePress Breakpoints
This file contains hidden or 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
| @media (max-width: 768px) { | |
| /* CSS in here for mobile only */ | |
| } | |
| @media (min-width: 769px) and (max-width: 1024px) { | |
| /* CSS in here for tablet only */ | |
| } | |
| @media (min-width: 1025px) { | |
| /* CSS in here for desktop only */ | |
| } | |
| ================================================================================ | |
| Hide-on classes for responsive display: | |
| hide-on-mobile | |
| hide-on-tablet | |
| hide-on-desktop | |
| <div class="hide-on-mobile hide-on-tablet"> | |
| Content here will only display in Desktop | |
| </div> | |
| ================================================================================ | |
| @media (min-width: 1025px) { | |
| /* CSS in here for desktop only */ | |
| } | |
| /* TABLET LANDSCAPE VERSION */ | |
| @media only screen and (min-width: 768px) and (orientation : landscape) { | |
| /* CSS in here */ | |
| } | |
| /* TABLET PORTRAIT VERSION */ | |
| @media only screen and (min-width: 768px) and (orientation : portrait) { | |
| /* CSS in here */ | |
| } | |
| @media (min-width: 768px) and (max-width: 1024px) { | |
| /* CSS in here for tablet only */ | |
| } | |
| /* PHONE LANDSCAPE VERSION */ | |
| @media only screen and (min-width: 320px) and (orientation : landscape) { | |
| /* CSS in here */ | |
| } | |
| /* PHONE PORTRAIT VERSION */ | |
| @media only screen and (min-width: 320px) and (orientation : portrait) { | |
| /* CSS in here */ | |
| } | |
| @media (max-width: 767px) { | |
| /* CSS in here for mobile only */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment