Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
184 lines (162 loc) · 4.09 KB
/
Copy pathindex.css
File metadata and controls
184 lines (162 loc) · 4.09 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
@import "tailwindcss";
@plugin "daisyui" {
themes: light --default, dark --prefersdark;
}
@source "./templates";
@source "./internal";
@theme {
--font-sans: "Roboto", sans-serif;
}
/* ECSS brand orange, applied over the built-in light + dark themes.
:root[...] (0,2,0) outranks daisyUI's [data-theme] (0,1,0) regardless of order. */
:root[data-theme="light"],
:root[data-theme="dark"] {
--color-primary: #e88419;
--color-primary-content: #ffffff;
--color-secondary: #ff931e;
--color-secondary-content: #ffffff;
--color-info: #de7a0f;
--color-info-content: #ffffff;
}
form .form-error {
@apply text-error;
}
main {
@apply mx-auto max-w-screen-md;
}
.admin-page {
max-width: none;
}
.admin-table-frame {
width: fit-content;
min-width: min(100%, 22rem);
max-width: 100%;
margin-inline: auto;
box-shadow: 0 12px 30px color-mix(in srgb, var(--color-base-content) 5%, transparent);
}
.admin-table {
width: max-content;
margin-inline: auto;
white-space: nowrap;
}
.admin-tab-toggle {
position: relative;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-inline: auto;
width: min(100%, 22rem);
padding: 0.25rem;
border: 1px solid color-mix(in srgb, var(--color-base-content) 14%, transparent);
border-radius: 9999px;
background: color-mix(in srgb, var(--color-base-200) 86%, var(--color-base-content));
isolation: isolate;
}
.admin-tab-thumb {
position: absolute;
z-index: -1;
inset: 0.25rem auto 0.25rem 0.25rem;
width: calc(50% - 0.25rem);
border-radius: 9999px;
background: var(--color-primary);
box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 30%, transparent);
transition: transform 220ms ease;
}
.admin-tab-toggle[data-active-tab="unregistered"] .admin-tab-thumb {
transform: translateX(100%);
}
.admin-tab {
z-index: 1;
min-height: 2.5rem;
padding: 0.5rem 1rem;
border-radius: 9999px;
color: color-mix(in srgb, var(--color-base-content) 70%, transparent);
font-size: 0.875rem;
font-weight: 600;
transition: color 180ms ease;
}
.admin-tab.is-active {
color: var(--color-primary-content);
}
.admin-tab-panel[hidden] {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.admin-tab-thumb,
.admin-tab {
transition: none;
}
}
/* theme toggle: show the icon for the action the click performs */
.theme-sun {
display: none;
}
[data-theme="dark"] .theme-sun {
display: block;
}
[data-theme="dark"] .theme-moon {
display: none;
}
/* gentle entrance for swapped-in content */
@keyframes fade-rise {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-rise {
animation: fade-rise 280ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
.fade-rise {
animation: none;
}
.hover-3d > :first-child {
transition: none;
}
}
/* hide the up/down spinner on number inputs (locker search) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
appearance: textfield;
-moz-appearance: textfield;
}
/* staggered "spawn" entrance for the locker search results */
@keyframes locker-pop {
0% {
opacity: 0;
transform: scale(0.8) translateY(12px);
}
70% {
opacity: 1;
transform: scale(1.05) translateY(0);
}
100% {
transform: scale(1);
}
}
.locker-pop {
animation: locker-pop 360ms cubic-bezier(0.2, 0.7, 0.3, 1.4) both;
}
.locker-grid > *:nth-child(1) { animation-delay: 0ms; }
.locker-grid > *:nth-child(2) { animation-delay: 45ms; }
.locker-grid > *:nth-child(3) { animation-delay: 90ms; }
.locker-grid > *:nth-child(4) { animation-delay: 135ms; }
.locker-grid > *:nth-child(5) { animation-delay: 180ms; }
.locker-grid > *:nth-child(6) { animation-delay: 225ms; }
.locker-grid > *:nth-child(7) { animation-delay: 270ms; }
.locker-grid > *:nth-child(8) { animation-delay: 315ms; }
.locker-grid > *:nth-child(9) { animation-delay: 360ms; }
.locker-grid > *:nth-child(n + 10) { animation-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
.locker-pop {
animation: none;
}
}