Skip to content

Instantly share code, notes, and snippets.

@EmranAhmed
Last active May 14, 2018 10:00
Show Gist options
  • Save EmranAhmed/d2f067203ccd3a72e6c3 to your computer and use it in GitHub Desktop.
Save EmranAhmed/d2f067203ccd3a72e6c3 to your computer and use it in GitHub Desktop.
Bootstrap 3 Media Queries, responsive
  • Usages
 .footer{
  font-size: 50px;
  @media @md-screen, @media @sm-screen {
        font-size: 30px;
    }
    @media @xs-screen {
        font-size: 40px;
    }
}
/*  For Large devices Desktops */
@lg-screen: ~"only screen and (max-width:@{screen-lg})";
/*  For Medium devices Desktops */
@md-screen: ~"only screen and (max-width:@{screen-md})";
/*  For Small devices Tablets*/
@sm-screen: ~"only screen and (max-width:@{screen-sm})";
/*  For Phones*/
@xs-screen: ~"only screen and (max-width:@{screen-xs})";
/*  For Retina*/
@retina-screen: ~"only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5)";
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
}
/*========== Non-Mobile First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
}
/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
}
/*! flexiblegs.style.css */
/* xl */
/* your style */
/* responsive */
/* lg */
@media (max-width: 1024px) {
/* your style */
}
/* md */
@media (max-width: 768px) {
/* your style */
}
/* sm */
@media (max-width: 667px) {
/* your style */
}
/* xs */
@media (max-width: 414px) {
/* your style */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment