-
Notifications
You must be signed in to change notification settings - Fork 6
/
SUSTechTISHelper.css
141 lines (118 loc) · 2.21 KB
/
SUSTechTISHelper.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* Mainly from https://www.w3schools.com/howto/howto_css_modals.asp */
/* The Modal (background) */
.modal {
position: fixed;
/* Stay in place */
z-index: 10;
/* Sit on top */
padding-top: 5px;
/* 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 */
}
/* Modal Content */
.modal-content {
position: relative;
background-color: #fefefe;
margin: auto;
padding: 0;
width: 80%;
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
}
/* Add Animation */
@-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
}
}
/* The Close Button */
.close {
color: white;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.modal-header {
padding: 2px 16px;
height: 42px;
background-color: #5cb85c;
color: white;
}
.modal-title {
padding-top: 6px;
color: white;
float: left;
font-size: 20px;
font-weight: bold;
}
.modal-body {
padding: 2px 16px;
}
.us-popup {
position: fixed;
top: 50%;
left: 50%;
background: #FFF;
padding: 22px;
width: auto;
max-width: 500px;
z-index: 9999;
transform: translate(-50%, -50%);
}
.us-popup-inner {
margin: 0 22px;
}
.us-popup-close {
cursor: pointer;
background: transparent;
border: 0;
padding: 0;
z-index: 10000;
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
opacity: 0.65;
font-size: 28px;
}
.us-popup-reader {
overflow-y: scroll;
max-height: 500px;
}