Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .hide utilities #746

Merged
merged 2 commits into from
Apr 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions pages/css/utilities/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Hide utilities are able to be applied or changed per breakpoint using the follow

| Shorthand | Range |
| --- | --- |
| -sm | 0—544px |
| -md | 544px—768px |
| -lg | 768px—1004px |
| -sm | 0—543px |
| -md | 544px—767px |
| -lg | 768px—1003px |
| -xl | 1004px and above |

```html
Expand Down
6 changes: 3 additions & 3 deletions src/utilities/visibility-display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ $display-values: (

// Hide utilities for each breakpoint
// Each hide utility only applies to one breakpoint range.
@media (max-width: $width-sm) {
@media (max-width: $width-sm - 1px) {
.hide-sm {
display: none !important;
}
}

@media (min-width: $width-sm) and (max-width: $width-md) {
@media (min-width: $width-sm) and (max-width: $width-md - 1px) {
.hide-md {
display: none !important;
}
}

@media (min-width: $width-md) and (max-width: $width-lg) {
@media (min-width: $width-md) and (max-width: $width-lg - 1px) {
.hide-lg {
display: none !important;
}
Expand Down