1// Extra small devices (portrait phones, less than 576px)
2@media (max-width: 575.98px) { ... }
3
4// Small devices (landscape phones, 576px and up)
5@media (min-width: 576px) and (max-width: 767.98px) { ... }
6
7// Medium devices (tablets, 768px and up)
8@media (min-width: 768px) and (max-width: 991.98px) { ... }
9
10// Large devices (desktops, 992px and up)
11@media (min-width: 992px) and (max-width: 1199.98px) { ... }
12
13// Extra large devices (large desktops, 1200px and up)
14@media (min-width: 1200px) { ... }
1@include media-breakpoint-up(xs) { ... }
2@include media-breakpoint-up(sm) { ... }
3@include media-breakpoint-up(md) { ... }
4@include media-breakpoint-up(lg) { ... }
5@include media-breakpoint-up(xl) { ... }
6
7// Example usage:
8@include media-breakpoint-up(sm) {
9 .some-class {
10 display: block;
11 }
12}
1/* Answer to: "bootstrap media queries" */
2
3/*
4 Since Bootstrap is developed to be mobile first, the use a handful
5 of media queries to create sensible breakpoints for their layouts
6 and interfaces. These breakpoints are mostly based on minimum
7 viewport widths and allow scaling up elements as the viewport
8 changes.
9
10 Bootstrap primarily uses the following media query ranges—or
11 breakpoints—in their source Sass files for their layout, grid system,
12 and components.
13*/
14
15/* Extra small devices (portrait phones, less than 576px) */
16/* No media query for `xs` since this is the default in Bootstrap */`32`
17
18/* Small devices (landscape phones, 576px and up) */
19@media (min-width: 576px) { ... }
20
21/* Medium devices (tablets, 768px and up) */
22@media (min-width: 768px) { ... }
23
24/* Large devices (desktops, 992px and up) */
25@media (min-width: 992px) { ... }
26
27/* Extra large devices (large desktops, 1200px and up) */
28@media (min-width: 1200px) { ... }