-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdavidmodal.css
107 lines (96 loc) · 2.21 KB
/
davidmodal.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.davidmodal-container {
display: none;
position: fixed;
z-index: 10;
left: 0px;
top: 0px;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.davidmodal-content {
border-width: 0px;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 10vh;
border-radius: 0.25rem;
box-shadow: 0 0 20px 10px rgba(0,0,0,0.5);
width: 80%;
height: 80vh
}
.davidmodal-x {
cursor: pointer;
position: absolute;
top: 10vh;
right: 10%;
border-left: 1px solid rgb(150, 150, 150);
border-bottom: 1px solid rgb(150, 150, 150);
border-top-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
width: 30px;
height: 30px;
}
.davidmodal-x::after, .davidmodal-x::before {
content: '';
position: absolute;
width: 29px;
height: 2px;
background-color: rgb(150, 150, 150);
border-radius: 0.25rem;
top: 13px;
right: 0px;
}
.davidmodal-x::before {
transform: rotate(45deg);
}
.davidmodal-x::after {
transform: rotate(-45deg);
}
.davidmodal-x:hover {
background-color: rgb(150, 150, 150);
border: 1px solid rgb(230, 230, 230);
}
.davidmodal-x:hover::after, .davidmodal-x:hover::before {
background-color: rgb(230, 230, 230);
}
/* These classes help with the fadein/fadeout of the modal. They shouldn't be set directly.
Utilize the javascript functions to toggle display of modal. */
.showdavidmodal
{
opacity: 1;
animation: fadeInDavidModal 0.25s;
}
.hidedavidmodal
{
opacity: 0;
animation: fadeOutDavidModal 0.25s;
}
@keyframes fadeInDavidModal
{ from { opacity: 0; }
to { opacity: 1; } }
@keyframes fadeOutDavidModal
{ from { opacity: 1; }
to { opacity: 0; } }
.davidmodal-loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
border-radius: 50%;
border: 5px solid;
border-top-color: rgb(230, 230, 230);
border-bottom-color: rgb(255, 221, 142);
border-left-color: rgb(25, 25, 25);
border-right-color: rgb(139, 101, 8);
width: 50px;
height: 50px;
animation: loadingDavidModal 1500ms ease-in-out infinite;
}
@keyframes loadingDavidModal
{
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}