Skip to content

Commit ded41bb

Browse files
committed
Applied top margin to dialog headers rather than .ui-dialog, as the latter was breaking content-only dialogs meant to align with the top of the viewport.
1 parent 566c785 commit ded41bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

css/structure/jquery.mobile.dialog.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
.ui-dialog { width: 80%; max-width: 500px; margin: 10% auto 15px auto; }
1+
.ui-dialog { width: 92.5%; max-width: 500px; margin: 10% auto 15px auto; padding: 0; }
22

3+
.ui-dialog .ui-header {
4+
margin-top: 15%;
5+
}
36
.ui-dialog .ui-header,
47
.ui-dialog .ui-content,
58
.ui-dialog .ui-footer {
@@ -15,7 +18,6 @@
1518
.ui-dialog .ui-content {
1619
padding: 15px;
1720
}
18-
.ui-dialog .ui-content,
19-
.ui-dialog .ui-footer {
21+
.ui-dialog {
2022
margin-top: -15px;
2123
}

0 commit comments

Comments
 (0)