Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Page: Tweak CSS for non-active page hiding
Browse files Browse the repository at this point in the history
Ref 99005f0 and 8cbf649
Closes gh-8495
  • Loading branch information
jaspermdegroot committed Sep 1, 2016
1 parent d5c5868 commit 9a2daa0
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions css/structure/jquery.mobile.core.css
Expand Up @@ -50,23 +50,31 @@ div.ui-mobile-viewport {
border: 0;
}

/* Need to make sure things with visibility:visible inside a pag stay hidden */
.ui-page:not(.ui-page-active) *{
visibility: hidden !important;
}
.ui-page:not(.ui-page-active) {
overflow: hidden;
max-height: 100%;
}
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */

.ui-page {
outline: none;
}

.ui-page:not(.ui-page-active),
[data-role=page]:not(.ui-page-active) {
bottom: 0;
max-height: 100%;
overflow: hidden;
}

/* Use !important to override "visibility: visible" for any element inside a non-active page */

.ui-page:not(.ui-page-active) * {
visibility: hidden !important;
}

.ui-mobile .ui-page-active {
visibility: visible;
overflow: visible;
overflow-x: hidden;
}

@media screen and (orientation: portrait) {
.ui-mobile .ui-page {
min-height: 420px;
Expand Down

1 comment on commit 9a2daa0

@deepsea887
Copy link

Choose a reason for hiding this comment

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

how many

Please sign in to comment.