-
Notifications
You must be signed in to change notification settings - Fork 1
/
modalStyle.css
122 lines (109 loc) · 2.07 KB
/
modalStyle.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/*The modal (background)*/
@font-face {
font-family: arial;
src: url(./res/fonts/Arial.ttf);
}
html,
body {
-webkit-font-smoothing: antialiased;
width: 100%;
height: 100%;
margin: 0;
}
.modal {
display: none;
/*Hidden by default*/
position: fixed;
/* Stay in place */
z-index: 1;
/*Sit on top*/
padding-top: 100px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height*/
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/*Fallback color*/
background-color: rgba(0, 0, 0, 0.4);
/*Black w/ opacity: */
font-family: arial;
/* some times, Arial simply doesn't work, this is a workaround*/
}
.user {
-webkit-app-region: no-drag;
}
/* Modal Context/Box*/
.modal-content {
position: relative;
background-color: #fefefe;
margin: auto;
/*15% from the top and centered*/
padding: 20px;
border: 1px solid #888;
border-radius: 5px;
width: 50%;
/*Could be more or less, depending on screen size */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
/*-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s;*/
}
@-webkit-keyframes animatetop {
from {
top: -300px;
opacity: 0;
}
to {
top: 0;
opacity: 1;
}
}
@keyframes animatetop {
from {
top: -300px;
opacity: 0;
}
to {
top: 0;
opacity: 1;
}
}
@-webkit-keyframes animatetopRe {
from {
top: 0;
opacity: 1;
}
to {
top: -300px;
opacity: 0;
}
}
@keyframes animatetopRe {
from {
top: 0;
opacity: 1;
}
to {
top: -300px;
opacity: 0;
}
}
/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}