-
Notifications
You must be signed in to change notification settings - Fork 0
/
queue.css
134 lines (117 loc) · 2.69 KB
/
queue.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
:root {
--primary-light: #8abdff;
--primary: #6d5dfc;
--primary-dark: #5b0eeb;
--white: #222222;
--greyLight-1: #111111;
--greyLight-2: #000000;
--greyDark: #ffffff;
}
/* Reset styles */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
box-sizing: border-box;
font-size: 62.5%;
overflow-y: scroll;
background: var(--greyLight-1);
}
@media screen and (min-width: 900px) {
html {
font-size: 75%;
}
}
/* Container for queue page */
.container {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: "Poppins", sans-serif;
background: var(--greyLight-1);
}
.components {
width: 75rem;
border-radius: 3rem;
box-shadow: 0.8rem 0.8rem 1.4rem var(--greyLight-2), -0.2rem -0.2rem 1.8rem var(--white);
padding: 4rem;
display: grid;
grid-template-rows: repeat(autofit, -webkit-min-content);
grid-template-rows: repeat(autofit, min-content);
grid-row-gap: 2.5rem;
align-items: center;
}
/* Queue header styling */
.queue-header {
font-size: 2.4rem;
color: var(--primary-dark);
padding: 1rem 0;
}
/* Queue info section */
.queue-info p {
font-size: 1.6rem;
color: var(--greyDark);
margin-bottom: 1rem;
}
/* Queue list styling */
.queue-list {
background-color: var(--greyLight-1);
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
}
.queue-list p {
font-size: 1.8rem;
font-weight: bold;
color: var(--primary);
margin-bottom: 1rem;
}
#studentList li {
font-size: 1.6rem;
color: var(--greyDark);
list-style-type: none;
}
#studentList li:nth-child(odd) {
color: var(--greyDark);
}
#studentList li:nth-child(even) {
color: var(--greyLight-2);
}
/* Highlight "YOU" in red */
#studentList li:nth-child(n) {
color: var(--greyDark);
}
#studentList li:contains("YOU") {
color: red;
font-weight: bold;
}
/* Button styling */
button, .btn {
width: 100%;
height: auto;
border-radius: 1rem;
padding: 1.5rem;
background-color: var(--primary);
color: var(--greyLight-1);
box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.3s ease;
text-align: center;
font-size: 1.4rem;
border: none;
margin-top: 1rem;
}
button:hover, .btn:hover {
color: var(--white);
}
button:active, .btn:active {
box-shadow: inset 0.2rem 0.2rem 1rem var(--primary-dark), inset -0.2rem -0.2rem 1rem var(--primary-light);
}