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

Commit 2ebb0fd

Browse files
Popup: Made images inherit the corner styling when they are the only child in the popup.
1 parent 457cafa commit 2ebb0fd

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

css/structure/jquery.mobile.popup.css

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.ui-popup-open .ui-header-fixed,
22
.ui-popup-open .ui-footer-fixed {
33
position: absolute !important; /* See line #553 of popup.js */
4-
54
}
65
.ui-popup-screen {
76
background-image: url(data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); /* Necessary to set some form of background to ensure element is clickable in IE6/7. While legacy IE won't understand the data-URI'd image, it ensures no additional requests occur in all other browsers with little overhead. */
@@ -14,34 +13,28 @@
1413
opacity: 0;
1514
z-index: 1099;
1615
}
17-
1816
.ui-popup-screen.in {
1917
opacity: 0.5;
2018
filter: Alpha(Opacity=50);
2119
}
22-
2320
.ui-popup-screen.out {
2421
opacity: 0;
2522
filter: Alpha(Opacity=0);
2623
}
27-
2824
.ui-popup-container {
2925
z-index: 1100;
3026
display: inline-block;
3127
position: absolute;
3228
padding: 0;
3329
outline: 0;
3430
}
35-
3631
.ui-popup {
3732
position: relative;
3833
}
39-
4034
.ui-popup.ui-content,
4135
.ui-popup .ui-content {
4236
overflow: visible;
4337
}
44-
4538
.ui-popup > p,
4639
.ui-popup > h1,
4740
.ui-popup > h2,
@@ -91,14 +84,19 @@
9184
.ui-popup-container .ui-content > h6:last-child {
9285
margin-bottom: 0;
9386
}
94-
9587
.ui-popup > img {
9688
width: auto;
9789
height: auto;
9890
max-width: 100%;
9991
max-height: 100%;
10092
vertical-align: middle;
10193
}
94+
.ui-popup:not(.ui-content) > img:only-child,
95+
.ui-popup:not(.ui-content) > .ui-btn-left:first-child + img:last-child,
96+
.ui-popup:not(.ui-content) > .ui-btn-right:first-child + img:last-child {
97+
-webkit-border-radius: inherit;
98+
border-radius: inherit;
99+
}
102100
.ui-popup iframe {
103101
vertical-align: middle;
104102
}
@@ -119,16 +117,13 @@
119117
width: 100%; display: block;
120118
}
121119
}
122-
123120
.ui-popup > .ui-btn-left,
124121
.ui-popup > .ui-btn-right {
125122
position: absolute;
126123
top: -9px;
127124
margin: 0;
128125
z-index: 1101;
129126
}
130-
131127
.ui-popup > .ui-btn-left { left: -9px; }
132128
.ui-popup > .ui-btn-right { right: -9px; }
133-
134129
.ui-popup-hidden { top: -99999px; left: -9999px; }

0 commit comments

Comments
 (0)