-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
574 lines (503 loc) · 15.2 KB
/
Copy pathstyle.css
File metadata and controls
574 lines (503 loc) · 15.2 KB
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
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
/* --- Google Fonts Imports --- */
/* Imports specific fonts to be used in the design. 'Press Start 2P' gives a retro, pixelated feel,
while 'VT323' provides a terminal-like appearance. */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
/* --- General Body Styles --- */
/* Sets the overall background image for the entire page, ensuring it covers the view and remains fixed.
It also defines the default text color for better readability on a dark background. */
body {
background-image: url('images/tavern_background.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
color: #f0f0f0;
}
/* --- Header Section Styles --- */
/* Styles the main header of the application, including its layout, background, padding, and font.
It uses flexbox for internal alignment and has a subtle bottom border. */
.header {
display: flex;
flex-direction: column;
align-items: flex-start;
background-color: rgba(0, 0, 0, 0.6);
padding: 20px;
font-family: 'Press Start 2P', monospace;
position: relative; /* Allows for absolute positioning of child elements like user info */
border-bottom: 1px solid #333;
}
/* --- Logo and Site Name in Header --- */
/* Controls the alignment and spacing of the logo and the site's name within the header,
ensuring they are visually grouped. */
.logo-name {
display: flex;
align-items: center;
padding: 0;
margin-bottom: 10px;
width: 100%;
}
.logo-name > div:first-child {
display: flex;
align-items: center;
gap: 30px;
width: auto;
margin-bottom: 10px;
}
.logo {
width: 40px;
height: auto;
filter: invert(1); /* Inverts the logo colors for visibility on dark backgrounds */
}
.name,
.logo-name > div:first-child h1 {
margin: 0;
flex-grow: 1;
font-family: 'Press Start 2P', monospace;
color: #f0f0f0;
}
/* --- Top Navigation Bar --- */
/* Styles the primary navigation links, including their layout, spacing, and visual appearance
(background, borders, and hover effects). */
.top-navigation {
display: flex;
gap: 10px;
flex-wrap: wrap;
padding-bottom: 5px;
}
.top-navigation a {
text-decoration: none;
color: #f0f0f0;
background-color: #333;
padding: 8px 15px;
border-radius: 20px;
font-family: 'Press Start 2P', monospace;
border: 1px solid #555;
}
.top-navigation a:hover {
background-color: #555;
border-color: #777;
}
/* --- User Information Section --- */
/* Positions and styles the user's avatar, username, and level progress bar within the header.
This section is absolutely positioned for flexible placement. */
.user-info {
display: flex;
align-items: flex-start;
gap: 10px;
position: absolute;
top: 40px;
right: 40px;
}
.user-details {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.level-info {
display: flex;
align-items: center;
gap: 5px;
margin-top: 5px;
color: #f0f0f0;
}
.level-bar-placeholder {
background-color: #555;
width: 100px;
height: 8px;
border-radius: 4px;
overflow: hidden;
}
.level-progress {
background-color: #8fbc8f; /* Green color for the progress bar fill */
height: 100%;
width: 50%; /* Example width, dynamically set by PHP */
border-radius: 4px;
}
.username {
font-size: 1em;
text-align: right;
color: #f0f0f0;
}
.user-info img {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 50%; /* Makes the image circular */
vertical-align: top;
filter: grayscale(100%) brightness(1.5);
}
/* --- Dashboard Section Containers (Tasks, Exams, Timetable) --- */
/* Defines common styles for the various dashboard widgets, including background, borders,
padding, and font family. Each widget then has specific positioning and sizing. */
.task-dashboard-container,
.upcoming-exam-container,
.timetable-container {
background-color: rgba(0, 0, 0, 0.7);
color: #f0f0f0;
padding: 15px 20px;
border: 1px solid #333;
margin-top: 10px;
border-radius: 5px;
font-family: 'VT323';
}
/* --- Task Dashboard Specific Styles --- */
/* Sets the size, position (floating left), and text alignment for the task summary widget. */
.task-dashboard-container {
font-size: 1.5em;
width: 30%;
margin-left: 0;
margin-right: auto;
float: left;
text-align: center;
}
.tasks-display-dashboard {
display: block;
color: #f0f0f0;
font-weight: bold;
margin-bottom: 10px;
text-decoration: none;
}
/* --- Upcoming Exam Container Specific Styles --- */
/* Positions and sizes the upcoming exam widget, ensuring it clears previous floated elements. */
.upcoming-exam-container {
margin-top: 30px;
width: 30%;
margin-left: 0;
float: left;
clear: left; /* Ensures it starts on a new line below previous floated elements */
text-align: center;
}
.upcoming-exam-title {
color: #f0f0f0;
margin-top: 0;
margin-bottom: 10px;
font-size: 2em;
font-weight: bold;
}
.exam-subject, .exam-date, .exam-time {
color: #ddd;
margin-bottom: 5px;
font-size: 1.5em;
}
/* --- Dashboard Timetable Container Specific Styles --- */
/* Defines the layout and positioning for the timetable widget on the dashboard,
including its negative top margin to align with other elements. */
.timetable-container {
width: calc(100% - 52% - 2%); /* Calculates width based on other elements to fill space */
margin-left: 7.5%;
float: left;
margin-top: -200px; /* Pulls the container upwards */
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.timetable-container h2 {
color: #f0f0f0;
margin-top: 0;
margin-bottom: 10px;
font-size: 1.5em;
font-weight: bold;
text-align: center;
width: 100%;
}
/* --- Table Styles (used for Timetable) --- */
/* General styling for tables, including cell borders, padding, and text alignment. */
.timetable {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
font-size: 0.9em;
flex-grow: 1;
color: #ddd;
}
.timetable th, .timetable td {
border: 1px solid #555;
padding: 8px;
text-align: center;
}
.timetable th {
background-color: #333;
font-weight: bold;
color: #f0f0f0;
}
.timetable .time-slot {
font-weight: bold;
background-color: #555;
color: #f0f0f0;
}
.timetable .break {
background-color: #774d0f; /* Specific background for break times */
font-style: italic;
color: #ddd;
}
.timetable .subject {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* Adds "..." for overflowing text */
}
/* --- Button Styles (Dashboard and Forms) --- */
/* Defines the appearance and hover effects for various action buttons across the dashboard and forms. */
.tasks-details-button,
.exam-details-button,
.goto-classes-button,
.add-task-button,
.auth-container .auth-button,
.setup-classes-container .save-classes-button {
background-color: #333;
color: #f0f0f0; /* Default text color */
border: 1px solid #555; /* Default border color */
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
margin-top: 15px;
margin-bottom: 10px;
font-family: 'VT323';
text-decoration: none;
transition: background-color 0.3s ease; /* Smooth transition for hover */
}
/* Specific button color overrides */
.exam-details-button {
font-size: 1.5em;
margin-top: 10px;
}
.goto-classes-button,
.auth-container .auth-button {
color: #007bff; /* Blue text for specific buttons */
border: 1px solid #007bff; /* Blue border for specific buttons */
}
.setup-classes-container .save-classes-button {
background-color: #4CAF50; /* Green background for save button */
color: white;
border: none;
}
/* Hover effects */
.tasks-details-button:hover,
.exam-details-button:hover,
.goto-classes-button:hover,
.add-task-button:hover,
.auth-container .auth-button:hover {
background-color: #555;
}
.setup-classes-container .save-classes-button:hover {
background-color: #45a049;
}
/* --- Add Task Input and Container --- */
/* Styles the input field and its container for adding new tasks, including focus states
and placeholder text. */
.add-task-container {
display: flex;
gap: 10px;
margin-top: 20px;
margin-bottom: 20px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 5px;
border: 1px solid #555;
}
#newTask {
flex-grow: 1;
padding: 10px;
border: 1px solid #555;
border-radius: 3px;
font-size: 16px;
background-color: rgba(255, 255, 255, 0.1);
color: #eee;
}
.add-task-container.focused {
border-color: #aaa;
box-shadow: 0 0 5px rgba(170, 170, 170, 0.5);
}
#newTask::placeholder {
color: #aaa;
background-color: transparent;
}
/* --- Authentication Pages (Login/Register) General Styles --- */
/* These styles center the authentication containers on the page and define their
general appearance like background, padding, and borders. */
body.auth-body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-image: url('images/tavern_background.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
margin: 0;
}
.auth-container {
background-color: rgba(0, 0, 0, 0.7);
padding: 30px;
border-radius: 8px;
border: 1px solid #333;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
width: 300px;
color: #f0f0f0;
font-family: 'VT323';
}
/* --- Authentication Form Elements --- */
/* Styles for titles, input fields, labels, and messages within the login and registration forms. */
.auth-container .auth-title {
text-align: center;
color: #f0f0f0;
margin-bottom: 20px;
font-size: 1.8em;
}
.auth-container .error-message {
color: #dc3545; /* Red for errors */
margin-bottom: 15px;
text-align: center;
font-size: 0.9em;
}
.auth-container .success-message {
color: #28a745; /* Green for success */
margin-bottom: 15px;
text-align: center;
font-size: 0.9em;
}
.auth-container .form-group {
margin-bottom: 15px;
}
.auth-container label {
display: block;
margin-bottom: 5px;
color: #ddd;
font-size: 1em;
}
.auth-container .auth-input {
width: 100%;
padding: 10px;
border: 1px solid #555;
border-radius: 4px;
box-sizing: border-box;
margin-bottom: 10px;
background-color: rgba(255, 255, 255, 0.1);
color: #f0f0f0;
font-size: 1em;
}
.auth-container .auth-input::placeholder {
color: #aaa;
}
.auth-container .auth-link {
text-align: center;
margin-top: 20px;
font-size: 0.9em;
color: #ccc;
}
.auth-container .auth-link a {
color: #007bff;
text-decoration: none;
}
.auth-container .auth-link a:hover {
text-decoration: underline;
}
/* --- Global Error Message Styling --- */
/* Provides a distinct visual style for general error messages across the application. */
.error-message {
background-color: #fdecea;
color: #d9534f;
border: 1px solid #d9534f;
padding: 15px;
margin-bottom: 15px;
border-radius: 4px;
font-weight: bold;
}
.error-message p {
margin: 0;
}
.error-title {
font-size: 1.2em;
margin-bottom: 5px;
}
/* --- Setup Classes Page Specific Styles --- */
/* Styles for the page where users can input and manage their class timetable. */
.setup-classes-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.setup-classes-container h2 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
.setup-timetable {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.setup-timetable th, .setup-timetable td {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}
.setup-timetable th {
background-color: #eee;
font-weight: bold;
color: #333;
}
.setup-timetable .time-slot {
background-color: #f0f0f0;
font-weight: bold;
color: #333;
}
.setup-timetable input[type="text"] {
width: 100%;
padding: 8px;
margin-bottom: 5px;
border: 1px solid #ddd;
border-radius: 3px;
box-sizing: border-box;
font-size: 0.9em;
color: #333;
background-color: #fff;
}
.setup-classes-container p a {
display: block;
margin-top: 10px;
color: #337ab7;
text-decoration: none;
text-align: center;
}
.setup-classes-container p a:hover {
text-decoration: underline;
}
/* --- Timetable Display Specific Styles --- */
/* Styles for how the timetable is displayed, distinguishing between subject, room, and break times.
Note: Some classes here (`timetable-container`, `timetable`, `timetable th`, `timetable td`, `time-slot`, `break`)
are duplicates of those in the dashboard section but are included here for clarity if this CSS
were to be modularized or used on a dedicated timetable page with different base styles. */
.timetable-title {
text-align: center;
color: #333;
margin-bottom: 20px;
}
.subject {
display: block;
font-weight: bold;
color: #337ab7;
}
.room {
display: block;
color: #777;
font-size: 0.9em;
}
.day {
vertical-align: top;
}
.timetable-container p a {
display: block;
margin-top: 10px;
color: #337ab7;
text-decoration: none;
text-align: center;
}
.timetable-container p a:hover {
text-decoration: underline;
}