Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Doc update - remove media-breakpoint-up(xs)
If media-breakpoint-down(xl) is not listed, then media-breakpoint-up(xs) does not need to be listed either.
The above 4 media queries are now aligned with the 4 media-breakpoint-up mixins (just like their media-breakpoint-down counterparts).
  • Loading branch information
DavidDeSloovere authored Apr 16, 2018
commit d31f13c3b0e94691c11d6556049e5d372a4b9ad0
10 changes: 8 additions & 2 deletions docs/4.1/layout/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ Bootstrap primarily uses the following media query ranges—or breakpoints—in
Since we write our source CSS in Sass, all our media queries are available via Sass mixins:

{% highlight scss %}
@include media-breakpoint-up(xs) { ... }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's actually swap this with something that explicitly states there's no xs query?

// No media query necessary for `xs` breakpoint as it's effectively `@media (min-width: 0) { ... }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. People might think 'where is xs'.

@include media-breakpoint-up(sm) { ... }
@include media-breakpoint-up(md) { ... }
@include media-breakpoint-up(lg) { ... }
@include media-breakpoint-up(xl) { ... }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's insert an example then to back up that xs comment I suggested earlier.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added example, hope I interpreted the comment correctly.

// Example usage:
// Example usage, small and up:
@include media-breakpoint-up(sm) {
.some-class {
display: block;
Expand Down Expand Up @@ -112,6 +111,13 @@ Once again, these media queries are also available via Sass mixins:
@include media-breakpoint-down(sm) { ... }
@include media-breakpoint-down(md) { ... }
@include media-breakpoint-down(lg) { ... }

// Example usage, medium and down:
@include media-breakpoint-down(md) {
.some-class {
display: block;
}
}
{% endhighlight %}

There are also media queries and mixins for targeting a single segment of screen sizes using the minimum and maximum breakpoint widths.
Expand Down