-
Notifications
You must be signed in to change notification settings - Fork 38
/
style.css
453 lines (425 loc) · 10.3 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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');
:root{
--color-primary: #7380ec;
--color-danger: #ff7782;
--color-success: #41f1b6;
--color-warning: #ffbb55;
--color-white: #fff;
--color-info: #7d8da1;
--color-dark: #363949;
--color-light: rgba(132, 139, 200, 0.18);
--color-dark-varient: #677483;
--color-background: #f6f6f9;
--card-border-radius: 2rem;
--border-radius-1: 0.4rem;
--border-radius-2: 1.2rem;
--card-padding: 1.8rem;
--box-shadow: 0 2rem 3rem var(--color-light)
}
.dark-theme{
--color-background: #181a1e;
--color-white: #202528;
--color-dark: #edeffd;
--color-dark-varient: #a3bdcc;
--color-light: rgba(0,0,0,0.4);
--box-shadow: 0 2rem 3rem var(--color-light)
}
*{
margin:0;
padding: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
html{
font-size: 14px;
scroll-behavior: smooth;
}
body{
font-family: 'Poppins', sans-serif;
font-size: .88rem;
background: var(--color-background);
user-select: none;
overflow-x: hidden;
color: var(--color-dark);
}
*{
color: var(--color-dark);
}
img{
display: block;
width: 100%;
}
h1{
font-weight: 800;
font-size: 1.8rem;
}
h2{font-size: 1.4rem;}
h3{font-size: .87rem;}
h4{font-size: .8rem;}
h5{font-size: .77rem;}
small{font-size: .75rem;}
.text-muted{color: var(--color-info);}
p{color: var(--color-dark-varient);}
b{color: var(--color-dark);}
.primary{color: var(--color-primary);}
.danger{color: var(--color-danger);}
.success{color: var(--color-success)}
.warning{color: var(--color-warning);}
.container{
position: relative;
display: grid;
width: 93%;
margin: 0 3rem;
gap: 1.8rem;
grid-template-columns: 14rem auto 23rem;
padding-top: 4rem;
}
header h3{font-weight: 500;}
header{
position: fixed;
width: 100vw;
z-index: 1000;
background-color: var(--color-background);
}
header.active{box-shadow: var(--box-shadow);}
header .logo{
display: flex;
gap: .8rem;
margin-right: auto;
}
header .logo img{
width: 2rem;
height: 2rem;
}
header,
header .navbar{
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0 3rem;
color: var(--color-info);
}
header .navbar a{
display: flex;
margin-left: 2rem;
gap: 1rem;
align-items: center;
justify-content: space-between;
position: relative;
height: 3.7rem;
transition: all 300ms ease;
padding: 0 2rem;
}
header .navbar a:hover {
padding-top: 1.5rem;
}
header .navbar a.active{
background: var(--color-light);
color: var(--color-primary);
}
header .navbar a.active::before{
content: "";
background-color: var(--color-primary);
position: absolute;
height: 5px;
width: 100%;
left: 0;top: 0;
}
header #profile-btn{
display: none;
font-size: 2rem;
margin: .5rem 2rem 0 0;
cursor: pointer;
}
header .theme-toggler{
background: var(--color-light);
display: flex;
justify-content: space-between;
align-items: center;
height: 1.6rem;
width: 4.2rem;
cursor: pointer;
border-radius: var(--border-radius-1);
margin-right: 2rem;
}
header .theme-toggler span{
font-size: 1.2rem;
width: 50%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
header .theme-toggler span.active{
background-color: var(--color-primary);
color: white;
border-radius: var(--border-radius-1);
}
/* Profile section */
aside .profile{
margin-top: 2rem;
width: 13rem;
position: fixed;
}
aside .profile .top{
display: flex;
align-items: center;
gap: 1rem;
border-bottom: 1px solid var(--color-light);
padding-bottom: 1rem;
}
aside .profile .top:hover .profile-photo{
scale: 1.05;
}
aside .profile .top .profile-photo{
width: 6rem;
height: 6rem;
border-radius: 50%;
overflow: hidden;
border: 5px solid var(--color-light);
transition: all 400ms ease;
}
aside .profile .about p{
padding-bottom: 1rem;
}
aside .profile .about{
margin-top: 1rem;
}
/* Home Section */
main{
position: relative;
margin-top: 1.4rem;
}
main .subjects{
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 1.6rem;
}
main .subjects > div{
background-color: var(--color-white);
padding: var(--card-padding);
border-radius: var(--card-border-radius);
margin-top: 1rem;
box-shadow: var(--box-shadow);
transition: all 300ms ease;
}
main .subjects > div:hover{
box-shadow: none;
}
main .subjects > div span{
background-color: var(--color-primary);
padding: .5rem;
border-radius: 50%;
color: var(--color-white);
font-size: 1.5rem;
}
main .subjects > div.mth span,main .subjects > div.cg span{background: var(--color-danger);}
main .subjects > div.cs span{background: var(--color-success);}
main .subjects h3{
margin: 1rem 0 0.6rem;
font-size: 1rem;
}
main .subjects .progress{
position: relative;
width: 89px;
height: 89px;
border-radius: 50%;
margin: auto;
}
main .subjects svg circle{
fill: none;
stroke: var(--color-primary);
stroke-width: 8;
stroke-linecap: round;
transform: translate(5px, 5px);
stroke-dasharray: 110;
stroke-dashoffset: 92;
}
main .subjects .eg svg circle{
stroke-dashoffset: 25;
stroke-dasharray: 210;
}
main .subjects .mth svg circle{
stroke-dashoffset: 7;
stroke-dasharray: 210;
}
main .subjects .cs svg circle{
stroke-dashoffset: 35;
stroke-dasharray: 210;
}
main .subjects .cg svg circle{
stroke-dashoffset: 0;
stroke-dasharray: 210;
}
main .subjects .net svg circle{
stroke-dashoffset: 5;
stroke-dasharray: 210;
}
main .subjects .progress .number{
position: absolute;
top: 0;left: 0;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
main .subjects small{
margin-top: 1rem;
display: block;
}
main .timetable{
margin-top: 2rem;
}
main .timetable h2{
margin-bottom: .8rem;
}
main .timetable table{
background-color: var(--color-white);
width: 100%;
border-radius: var(--card-border-radius);
padding: var(--card-padding);
text-align: center;
box-shadow: var(--box-shadow);
transition: all 300ms ease;
}
main .timetable span{display: none;}
main .timetable table:hover{box-shadow: none;}
main table tbody td{
height: 2.8rem;
border-bottom: 1px solid var(--color-light);
color: var(--color-dark-varient);
}
main table tbody tr:last-child td{border: none;}
main .timetable.active{
width: 100%;
height: 100vh;
position: fixed;
top: 0;left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
main .timetable.active h2{
color: var(--color-dark);
}
main .timetable.active table{
width: 90%;
max-width: 1000px;
position: relative;
}
main .timetable.active span{
display: block;
font-size: 2rem;
color: var(--color-dark);
cursor: pointer;
}
.timetable div{
position: relative;
width: 50%;
display: flex;
align-items: center;
justify-content: space-between;
}
main .timetable.active .closeBtn{
position: absolute;
top: 5%;right: 5%;
}
/* Right */
.right{margin-top: 2.2rem;padding-left: 1.5rem;}
.right .announcements h2{margin-bottom: .8rem;}
.right .announcements .updates{
background-color: var(--color-white);
padding: var(--card-padding);
border-radius: var(--card-border-radius);
box-shadow: var(--box-shadow);
transition: all 300ms ease;
}
.right .announcements .updates:hover{box-shadow: none;}
.right .announcements .updates .message{
gap: 1rem;
line-height: 1.5;
padding: .5rem 0;
}
/* Teachers on leave */
.right .leaves{margin-top: 2rem;}
.right .leaves h2{margin-bottom: .8rem;}
.right .leaves .teacher{
background: var(--color-white);
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: .7rem;
padding: 1.4rem var(--card-padding);
border-radius: var(--border-radius-2);
transition: all 300ms ease;
box-shadow: var(--box-shadow);
}
.right .profile-photo{
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
overflow: hidden;
}
.right .leaves .teacher:hover{box-shadow: none;}
/* MEDIA QUERIES */
@media screen and (max-width: 1200px) {
html{font-size: 12px;}
.container{
grid-template-columns: 13rem auto 20rem;
}
header{position: fixed;}
.container{padding-top: 4rem;}
header .logo h2{display: none;}
header .navbar h3{display: none;}
header .navbar a{width: 4.5rem; padding: 0 1rem;}
main .subjects{
grid-template-columns: repeat(2, 1fr);
gap: 1;
}
main .timetable{
width: 150%;
position: absolute;
padding: 4rem 0 0 0;
}
}
@media screen and (max-width: 768px){
html{font-size: 10px;}
header{padding: 0 .8rem;}
.container{width: 100%; grid-template-columns: 1fr;margin: 0;}
header #profile-btn{display: inline;}
header .navbar{padding: 0;}
header .navbar a{margin: 0 .5rem 0 0;}
header .theme-toggler{margin: 0;}
aside{
position: absolute;
top: 4rem;left: 0;right: 0;
background-color: var(--color-white);
padding-left: 2rem;
transform: translateX(-100%);
z-index: 10;
width:18rem;
height: 100%;
box-shadow: 1rem 3rem 4rem var(--color-light);
transition: all 2s ease;
}
aside.active{
transform: translateX(0);
}
main{padding: 0 2rem;}
main .timetable{
position: relative;
margin: 3rem 0 0 0;
width: 100%;
}
main .timetable table{
width: 100%;
margin: 0;
}
.right{
width: 100%;
padding: 2rem;
}
}