Last active
August 1, 2017 11:42
-
-
Save mazhar266/8915879 to your computer and use it in GitHub Desktop.
Media Query as Bootstrap
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:767px){} | |
@media(min-width:768px){} | |
@media(min-width:992px){} | |
@media(min-width:1200px){} |
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
// init -- for own taste | |
// rename desktop as laptop | |
$screen-laptop : $screen-desktop; | |
// rename large screen as desktop | |
$screen-desktop : $screen-lg-desktop; | |
// specially for the smart watches | |
$screen-mobile : 320px; | |
// normal mobile css first | |
@media(min-width:$screen-tablet){ | |
// tablet code here | |
} | |
@media(min-width:$screen-laptop){ | |
// laptop screen / desktop code here | |
} | |
@media(min-width:$screen-desktop){ | |
// large screen / desktop code here | |
} | |
// new way | |
// @media (max-width: 767px) { | |
@include media-breakpoint-down(sm) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment