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

Commit 40d970b

Browse files
Dialog: Rewrote CSS (same styling, better construction). Also prevents additional margin-top, just when screen height is little.
1 parent d906940 commit 40d970b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

css/structure/jquery.mobile.dialog.css

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,27 @@
66
max-width: 500px;
77
margin: 10% auto 15px auto;
88
padding: 0;
9-
}
10-
.ui-dialog-contain > .ui-header {
11-
margin-top: 15%;
12-
border: none;
13-
overflow: hidden;
9+
position: relative;
10+
top: -15px;
1411
}
1512
.ui-dialog-contain > .ui-header,
1613
.ui-dialog-contain > .ui-content,
1714
.ui-dialog-contain > .ui-footer {
1815
display: block;
1916
position: relative;
2017
width: auto;
18+
margin: 0;
2119
}
22-
.ui-dialog-contain > .ui-header,
23-
.ui-dialog-contain > .ui-footer {
20+
.ui-dialog-contain > .ui-header {
21+
border: none;
22+
overflow: hidden;
2423
z-index: 10;
2524
padding: 0;
2625
}
27-
.ui-dialog-contain > .ui-footer {
28-
padding: 0 15px;
29-
}
3026
.ui-dialog-contain > .ui-content {
3127
padding: 15px;
3228
}
33-
.ui-dialog {
34-
margin-top: -15px;
29+
.ui-dialog-contain > .ui-footer {
30+
z-index: 10;
31+
padding: 0 15px;
3532
}

0 commit comments

Comments
 (0)