Skip to content

Commit

Permalink
Merge pull request #746 from primer/fix-hide-utilities
Browse files Browse the repository at this point in the history
Fix .hide utilities
  • Loading branch information
shawnbot authored Apr 5, 2019
2 parents c7fd221 + a463660 commit d0616bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit d0616bc

Please sign in to comment.