Skip to content

abradifcode/bootstrap-3-breakpoints-mixins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Bootstrap 3 breakpoints @mixins

Useful scss @mixins for easy integration of Bootstrap 3 breakpoints

With Bootstrap 4 we got new super-useful @mixins for @media breakpoints such as media-breakpoint-up, media-breakpoint-down, etc. So, I've created similar @mixins that can be used in your projects based on Bootstrap 3.

Usage

Include mixin-breakpoints.scss in your project and then use the following @mixins.

media-breakpoint-up(breakpoint)

SCSS
body {
  @include media-breakpoint-up(md) {
    background-color: red;
  }
}
Compiled CSS
@media (min-width: 992px) {
  body {
    background-color: red;
  }
}

media-breakpoint-down(breakpoint)

SCSS
body {
  @include media-breakpoint-down(lg) {
    background-color: green;
  }
}
Compiled CSS:
@media (max-width: 1199px) {
  body {
    background-color: green;
  }
}

About

Useful scss @Mixins for easy integration of Bootstrap 3 breakpoints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 100.0%