Skip to content

Commit 9a2daa0

Browse files
Page: Tweak CSS for non-active page hiding
Ref 99005f0 and 8cbf649 Closes jquery-archivegh-8495
1 parent d5c5868 commit 9a2daa0

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,31 @@ div.ui-mobile-viewport {
5050
border: 0;
5151
}
5252

53-
/* Need to make sure things with visibility:visible inside a pag stay hidden */
54-
.ui-page:not(.ui-page-active) *{
55-
visibility: hidden !important;
56-
}
57-
.ui-page:not(.ui-page-active) {
58-
overflow: hidden;
59-
max-height: 100%;
60-
}
6153
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
54+
6255
.ui-page {
6356
outline: none;
6457
}
58+
59+
.ui-page:not(.ui-page-active),
60+
[data-role=page]:not(.ui-page-active) {
61+
bottom: 0;
62+
max-height: 100%;
63+
overflow: hidden;
64+
}
65+
66+
/* Use !important to override "visibility: visible" for any element inside a non-active page */
67+
68+
.ui-page:not(.ui-page-active) * {
69+
visibility: hidden !important;
70+
}
71+
6572
.ui-mobile .ui-page-active {
6673
visibility: visible;
6774
overflow: visible;
6875
overflow-x: hidden;
6976
}
77+
7078
@media screen and (orientation: portrait) {
7179
.ui-mobile .ui-page {
7280
min-height: 420px;

0 commit comments

Comments
 (0)