-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdexs.css
83 lines (70 loc) · 1.44 KB
/
dexs.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
/* Dexs Modal JS Library v1.0.2 */
/* github.com/PolarComputer/Dexs-Modal */
/* Dexs Shade */
.dexs-shade {
position: fixed;
opacity: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000;
pointer-events: none;
}
.dexs-shade.show {
opacity: 0.5;
pointer-events: auto;
}
.dexs-shade.fade {
transition: opacity .15s linear;
transition-delay: 0.3s;
}
.dexs-shade.fade.show {
transition-delay: 0s;
}
/* Modal */
modal.dexs {
position: fixed;
z-index: 1050;
top: 50%;
left: 50%;
transform: translate(-50%, -75%); /* for fade down animation */
-webkit-transform: translate(-50%, -75%); /* for fade down animation */
max-width: 80%;
max-height: 80vh;
width: fit-content;
background: white;
border-radius: 10px;
overflow-y: unset;
pointer-events: none;
transition: transform .3s ease-out,-webkit-transform .3s ease-out, opacity 0.2s linear 0.1s;
opacity: 0;
}
modal.dexs.scrollable {
overflow-y: auto;
}
modal.dexs.open {
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
opacity: 1;
pointer-events: auto;
transition-delay: 0.2s;
}
modal.dexs.dexs--small {
width: 500px;
}
modal.dexs .modal-body {
padding: 20px;
}
modal.dexs .modal-footer {
border-radius: 0px 0px 10px 10px;
background: white;
border-top: solid 1px #EEEEEE;
padding: 10px;
text-align: right
}
modal.dexs .modal-footer.sticky-footer {
position: sticky;
bottom: 0px;
}