-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
309 lines (275 loc) · 6.59 KB
/
style.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
/* popup */
.popup_wrapper {
display: flex;
flex: 1;
flex-direction: column;
width: 200px;
}
.popup_wrapper .popup_wrapper_header {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.popup_wrapper_content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.extension_ready {
display: none;
}
.btn {
position: relative;
display: block;
margin: 15px auto;
padding: 0;
overflow: hidden;
border-width: 0;
outline: none;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
background-color: #3498db;
color: #ecf0f1;
transition: background-color .3s;
}
.btn:hover, .btn:focus {
background-color:dodgerblue;
}
.btn > * {
position: relative;
}
.btn span {
display: block;
padding: 8px 24px;
font-weight: bold;
font-size: small;
}
.btn:before {
content: "";
position: absolute;
top: 50%;
left: 50%;
display: block;
width: 0;
padding-top: 0;
border-radius: 100%;
background-color: rgba(236, 240, 241, .3);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.btn:active:before {
width: 120%;
padding-top: 120%;
transition: width .2s ease-out, padding-top .2s ease-out;
}
.warn,
.warn::before,
.warn::after
{
position: relative;
padding: 0;
margin: 0;
}
.warn {
font-size: 36px;
color: transparent;
}
.warn.warning {
display: inline-block;
top: 0.225em;
width: 1.15em;
height: 1.15em;
overflow: hidden;
border: none;
background-color: transparent;
border-radius: 0.625em;
}
.warn.warning::before {
content: "";
display: block;
top: -0.08em;
left: 0.0em;
position: absolute;
border: transparent 0.6em solid;
border-bottom-color: #fd3;
border-bottom-width: 1em;
border-top-width: 0;
box-shadow: #999 0 1px 1px;
}
.warn.warning::after {
display: block;
position: absolute;
top: 0.15em;
left: 0;
width: 100%;
padding: 0 1px;
text-align: center;
font-family: "Garamond";
content: "!";
font-size: 0.65em;
font-weight: bold;
color: #333;
}
.tick-mark {
position: relative;
display: inline-block;
width: 30px;
height: 30px;
}
.tick-mark::before {
position: absolute;
left: 0;
top: 50%;
height: 50%;
width: 3px;
background-color: greenyellow;
content: "";
transform: translateX(10px) rotate(-45deg);
transform-origin: left bottom;
}
.tick-mark::after {
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 100%;
background-color: greenyellow;
content: "";
transform: translateX(10px) rotate(-45deg);
transform-origin: left bottom;
}
/*
* GoSFU and MySchedule
*/
/* for Myschedule and GoSfu */
.rmp_instructor_wrapper {
position: relative;
margin: auto;
font-weight: bold; /* font weight of instructor's name */
text-decoration: underline;
color: #3498db; /* color of instructor's name */
}
.rmp_instructor_wrapper:hover{
background-color: yellow; /* highlight colour of instructor name when hover */
}
/* shows hover box */
.rmp_instructor_wrapper:hover .rating_box_wrapper {
visibility: visible;
opacity: 1;
transform: none;
transition-duration: 0.1s, 0.4s; /* speed of transition */
}
/* hover box properties */
.rating_box_wrapper {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
min-width: 150px;
position: absolute;
text-align: left;
color: black;
visibility: hidden;
padding: 10px;
background: #EEEEEE; /* background colour of the hover box */
border-radius: 12px; /* border radius */
border: #808080 solid 3px; /* border colour and thickness */
z-index: 999; /* to be in front of the schedule in myschedule */
left: -160px; /* position of hover box */
top: -155px;
transition: opacity 0.25s ease-out, transform 0.25s ease-out; /* first number: how fast it appears,
second number: how fast it moves diagonally
same number recommended */
opacity: 0;
transform: scale(0.95) translateY(1em) translateX(1em); /* first number: how big the hoverbox starts
second and third number: how far it moves left and up */
}
/* hover box tail properties */
.rating_box_wrapper:after {
content: '';
position: absolute;
border-style: solid;
border-width: 10px 10px 0; /* tail of the hover box
first number: length, second number width */
border-color: #EEEEEE transparent; /* same colour as the background */
display: block;
width: 0;
z-index: 3;
bottom: -10px; /* position of the tail */
left: 155px;
}
/* hover box tail border properties */
.rating_box_wrapper:before {
content: '';
position: absolute;
border-style: solid;
border-width: 12px 12px 0; /* tail border (border-with of tail) + (border +- 1) */
border-color: #808080 transparent;
display: block;
width: 0;
z-index: 2;
bottom: -15px; /* has to have a right porportion with position of the tail */
left: 153px;
}
.rating_item_wrapper {
display: flex;
flex-direction: column;
margin: 0px 10px;
}
.rating_item_wrapper h3 {
text-decoration: underline;
text-align: center;
margin-bottom: 5px;
overflow: hidden;
}
.rating_item_wrapper p {
margin: 1px 0px;
font-weight: lighter;
}
.rating_item_wrapper b {
font-weight: bolder;
font-size: medium;
}
.rating_item_wrapper hr {
margin: 3px 0px;
}
/* Loading Screen */
#logo {
width: 300px;
height: 300px;
}
.loading_wrapper {
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
text-align: center;
align-items: center;
margin-top: 120px;
}
.loading_warning_header {
padding: 20px 0px 0px 0px;
}
.loading_header {
padding: 10px 0px 0px 0px;
}
#spinner {
margin: 0 auto;
border-radius: 50%;
border: 5px solid rgba(0, 0, 0, 0.1);
border-top-color: #3498db;
width: 75px;
height: 75px;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}