Skip to content

Commit

Permalink
show-on classes use block instead of initial to fix incompatibility w…
Browse files Browse the repository at this point in the history
…ith IE
  • Loading branch information
Dogfalo committed Dec 20, 2015
1 parent c8a06df commit 2c16f1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions bin/materialize.css
Original file line number Diff line number Diff line change
Expand Up @@ -2873,31 +2873,31 @@ ul.staggered-list li {

@media only screen and (min-width: 993px) {
.show-on-large {
display: initial !important;
display: block !important;
}
}

@media only screen and (min-width: 600px) and (max-width: 992px) {
.show-on-medium {
display: initial !important;
display: block !important;
}
}

@media only screen and (max-width: 600px) {
.show-on-small {
display: initial !important;
display: block !important;
}
}

@media only screen and (min-width: 601px) {
.show-on-medium-and-up {
display: initial !important;
display: block !important;
}
}

@media only screen and (max-width: 992px) {
.show-on-medium-and-down {
display: initial !important;
display: block !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion css/ghpages-materialize.css

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions sass/components/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,27 +307,27 @@ ul.staggered-list li {
}
.show-on-large {
@media #{$large-and-up} {
display: initial !important;
display: block !important;
}
}
.show-on-medium {
@media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
display: initial !important;
display: block !important;
}
}
.show-on-small {
@media #{$small-and-down} {
display: initial !important;
display: block !important;
}
}
.show-on-medium-and-up {
@media #{$medium-and-up} {
display: initial !important;
display: block !important;
}
}
.show-on-medium-and-down {
@media #{$medium-and-down} {
display: initial !important;
display: block !important;
}
}

Expand Down

0 comments on commit 2c16f1b

Please sign in to comment.