Skip to content

Commit 4e3a9e0

Browse files
authored
Overlay click close add
1 parent c1a88ba commit 4e3a9e0

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

css/lightweightpopup.css

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1-
.lwp{
1+
*{
2+
box-sizing:border-box;
3+
}
4+
.lwp-overlay{
25
background:rgba(0,0,0,0.9);
36
padding:5px;
47
margin:0px auto;
58
position:fixed;
69
top:0;
710
width:100%;
811
height:100%;
9-
z-index:1072;
12+
z-index:1070;
1013
overflow-x:hidden;
1114
overflow-y:auto;
1215
}
16+
.lwp{
17+
z-index:1072;
18+
position:absolute;
19+
left:0px;
20+
right:0;
21+
top:0;
22+
bottom:0px;
23+
margin:0px auto;
24+
}
1325
.lwp .loading{
1426
text-align:center;
1527
color:#FFF;
@@ -18,19 +30,18 @@
1830
color:#444;
1931
}
2032
.lwp #lwp{
21-
margin:15px auto;
33+
margin:0px auto;
2234
background:#FFF;
2335
border:5px solid #000;
2436
overflow-x:hidden;
2537
overflow-y:hidden;
2638
border-radius:5px;
2739
position:relative;
28-
top:5%;
29-
max-width:450px;
3040
}
3141
.lwp .lwpIframe{
3242
width: 100%;
3343
height: 100%;
44+
min-height: 100%;
3445
display: block;
3546
border: 0;
3647
padding: 0;
@@ -62,8 +73,7 @@
6273
top: -5px;
6374
}
6475
.lwp #lwpBody{
65-
padding:15px;
66-
min-height:100%;
76+
overflow:auto;
6777
}
6878
.lwp #lwpClose{
6979
float:right;
@@ -76,4 +86,4 @@
7686
}
7787
.lwp-hidden{
7888
overflow:hidden;
79-
}
89+
}

0 commit comments

Comments
 (0)