Skip to content

Commit

Permalink
Merge pull request #13192 from storybookjs/13178-fix-only-ie11
Browse files Browse the repository at this point in the history
UI: Target only IE10/IE11 for our CSS vertical centering hack
  • Loading branch information
shilman authored Nov 20, 2020
2 parents 1e064ef + fd0fc30 commit 1e44231
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/core/src/server/templates/base-preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
}

/* Vertical centering fix for IE11 */
.sb-show-main.sb-main-centered:after {
content: '';
min-height: inherit;
font-size: 0;
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.sb-show-main.sb-main-centered:after {
content: '';
min-height: inherit;
font-size: 0;
}
}

.sb-show-main.sb-main-fullscreen {
Expand Down

0 comments on commit 1e44231

Please sign in to comment.