-
Notifications
You must be signed in to change notification settings - Fork 9
/
modal.css3.css
91 lines (82 loc) · 1.59 KB
/
modal.css3.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#rdp-modal {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 1;
visibility: visible;
transform: scale(1.0);
transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
z-index: 999;
}
#rdp-modal.hidden {
opacity: 0;
visibility: hidden;
transform: scale(1.1);
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
#rdp-modal.displaynone {
display: none;
}
#rdp-modal .hidden {
display: none;
visibility: hidden;
opacity: 0;
}
#rdp-modal .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: .1rem;
width: 60rem;
height: 60rem;
max-width: 90%;
max-height: 90%;
min-width: 340px;
border-radius: 0.2rem;
}
#rdp-modal .close {
position: absolute;
right: .2rem;
top: -1.6rem;
text-align: center;
cursor: pointer;
opacity: 1;
}
#rdp-modal .close svg {
fill: #aaa;
}
#rdp-modal .close:hover svg {
fill: #910000;
}
#rdp-modal .frame {
width: 100%;
height: 100%;
}
#rdp-modal .frame-cont {
overflow: hidden;
height: 100%;
-webkit-overflow-scrolling: touch;
}
@supports (-webkit-overflow-scrolling: touch) {
/* CSS specific to iOS devices */
#rdp-modal .frame-cont {
overflow: hidden;
overflow-y: auto;
height: 100%;
-webkit-overflow-scrolling: touch;
}
}
#rdp-modal iframe {
border: 0;
width: 100%;
height: 100%;
opacity: 1;
}
#rdp-modal iframe.hidden {
opacity: 0;
}