-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
main.css
320 lines (291 loc) · 7.6 KB
/
main.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
@tailwind base;
@layer base {
@media print {
.pagebreak {
clear: both;
page-break-after: always;
}
}
.icon-decoration {
@apply align-baseline mr-2;
}
.full-size {
@apply basis-full h-dvh;
}
.small-size {
@apply basis-1/2 2xl:basis-1/3;
}
.map-tiles,
.leaflet-tooltip,
.leaflet-control {
@apply dark:saturate-0 dark:invert dark:contrast-[0.80] dark:brightness-[0.85];
}
body {
@apply md:px-20;
@apply bg-neutral-100 text-zinc-900;
@apply dark:bg-neutral-900 dark:text-zinc-100;
}
ol {
@apply list-decimal list-inside my-5;
}
ul {
@apply list-disc list-inside my-5;
}
.dirty {
@apply text-sm pill;
@apply text-amber-600 border-amber-600;
@apply dark:text-amber-300 dark:border-amber-300;
}
textarea,
select,
input {
@apply rounded-xl px-6 py-2 border;
@apply bg-zinc-100 border-zinc-300 placeholder:text-slate-500;
@apply dark:bg-zinc-900 dark:border-zinc-700 dark:placeholder:text-slate-500;
@apply hover:brightness-125 hover:contrast-125;
@apply focus:brightness-125 focus:contrast-125;
}
button.edit,
button.share {
@apply border-amber-400;
@apply bg-amber-300;
@apply dark:bg-amber-500;
}
button.dangerous {
@apply border-rose-600;
@apply bg-rose-500;
@apply dark:bg-rose-700;
}
button {
@apply border-green-600;
@apply text-white bg-green-500;
@apply dark:text-white dark:bg-green-700;
@apply rounded-xl mx-2 px-6 py-2 border font-bold;
@apply hover:brightness-125 hover:contrast-125;
@apply focus:brightness-125 focus:contrast-125;
}
h2 {
@apply text-xl md:text-2xl mb-5 mx-2 px-2;
@apply text-zinc-800;
@apply dark:text-zinc-200;
}
h3 {
@apply text-base md:text-xl mb-5;
@apply text-zinc-800;
@apply dark:text-zinc-200;
}
a {
@apply hover:brightness-125 hover:contrast-125;
}
form {
@apply my-5;
tr {
@apply mb-2 gap-4;
label {
@apply text-right block py-1;
}
}
label {
@apply px-2;
}
}
.note {
@apply text-xs border-l-2 border-amber-500 p-1 pl-3;
@apply text-zinc-600;
@apply dark:text-zinc-400;
}
.footer {
@apply flex justify-center gap-10;
}
.footer a,
.content a {
@apply text-amber-700;
@apply dark:text-amber-100;
}
.footer,
.menu {
@apply px-6 py-3 items-baseline;
@apply bg-neutral-200 text-zinc-700;
@apply dark:bg-neutral-800 dark:text-zinc-300;
> div {
@apply print:hidden;
}
}
.footer {
@apply rounded-t-xl mt-2;
}
.menu {
@apply rounded-b-xl mb-2;
a {
@apply mt-5 mr-5;
span.autohide {
@apply hidden md:contents;
}
}
h1 {
@apply text-xl md:text-3xl border-b-2 md:border-b-0 mb-3 md:mb-0 pb-3 md:pb-0;
@apply text-black border-neutral-500;
@apply dark:text-white border-neutral-500;
}
}
.actions {
@apply gap-3 float-right items-baseline flex print:hidden;
> button,
> form {
@apply my-0;
> button {
@apply rounded-md mx-0 px-2 py-1;
a {
@apply text-white hover:text-white;
@apply dark:text-white dark:hover:text-white;
@apply text-center;
}
}
}
}
.content {
@apply rounded-xl py-5 px-1 md:px-10;
@apply bg-neutral-300;
@apply dark:bg-neutral-700;
}
.inner-form {
@apply rounded-xl p-2 md:p-5 m-2 border print:border-0;
@apply bg-neutral-200 border-neutral-200 hover:border-neutral-500;
@apply dark:bg-neutral-800 dark:border-neutral-800 dark:hover:border-neutral-500;
}
.version-notice {
@apply bg-sky-900 border-sky-600 text-sky-300;
@apply dark:bg-sky-100 dark:border-sky-400 dark:text-sky-700;
}
.notice {
@apply bg-green-900 border-green-600 text-green-300;
@apply dark:bg-green-100 dark:border-green-400 dark:text-green-700;
}
.alert {
@apply bg-red-900 border-red-600 text-red-300;
@apply dark:bg-red-100 dark:border-red-400 dark:text-red-700;
}
.version-notice,
.notice,
.alert {
@apply border;
@apply px-4 py-3 m-5 rounded-md relative;
a {
@apply underline;
}
}
.workouts_list_details div {
@apply w-[150px] overflow-hidden whitespace-nowrap text-ellipsis;
}
.recent-activity .workouts_list_details div {
@apply min-w-[100px] max-w-[150px] w-auto;
}
table {
@apply text-sm w-full text-left table-auto border;
@apply border-neutral-500;
@apply dark:border-neutral-500;
tfoot,
thead {
@apply uppercase font-bold;
@apply bg-zinc-100 text-zinc-700;
@apply dark:bg-zinc-900 dark:text-zinc-300;
tr {
@apply border;
@apply border-neutral-500;
@apply dark:border-neutral-500;
}
}
td,
th {
@apply p-2 print:p-0;
@apply align-top;
}
th {
@apply text-zinc-700;
@apply dark:text-zinc-300;
}
tbody {
tr {
@apply even:bg-neutral-300 odd:bg-neutral-200 hover:bg-amber-100;
@apply dark:even:bg-neutral-700 dark:odd:bg-neutral-800 dark:hover:bg-amber-800;
}
}
}
.workout-info {
th,
td {
@apply px-2;
}
tr {
@apply mb-2;
}
}
.modal {
@apply hidden fixed inset-0 overflow-y-auto h-full w-full px-4 z-[3000];
@apply bg-gray-100 bg-opacity-80;
@apply dark:bg-gray-900 dark:bg-opacity-60;
.window {
@apply relative top-40 mx-auto shadow-xl rounded-3xl max-w-md;
@apply bg-neutral-100;
@apply dark:bg-neutral-900;
button.close-modal {
a {
@apply bg-transparent rounded-lg text-sm p-1.5 ml-auto inline-flex;
@apply text-gray-600 hover:bg-gray-800 hover:text-gray-100;
@apply dark:text-gray-400 dark:hover:bg-gray-200 dark:hover:text-gray-900;
}
}
.modal-content {
@apply p-6 pt-0 text-center;
h3 {
@apply text-xl font-normal mt-3 mb-10;
@apply text-zinc-900;
@apply dark:text-zinc-100;
}
button {
@apply focus:ring-4 font-medium rounded-lg text-base inline-flex items-center px-3 py-2.5 text-center;
}
button.confirm {
@apply mr-2;
@apply text-white bg-red-600 hover:bg-red-800 focus:ring-red-300;
@apply dark:text-black dark:bg-red-400 dark:hover:bg-red-200 dark:focus:ring-red-700;
}
button.cancel {
@apply border;
@apply text-gray-900 bg-white hover:bg-gray-100 focus:ring-cyan-200 border-gray-200;
@apply dark:text-gray-100 dark:bg-black dark:hover:bg-gray-900 dark:focus:ring-cyan-800 dark:border-gray-800;
}
}
}
}
.user-pill {
@apply pill;
}
.selectable-pill {
@apply pill;
@apply hover:brightness-125 cursor-pointer;
@apply bg-red-400 peer-checked:bg-green-400 border-red-500 peer-checked:border-red-500;
@apply dark:bg-red-800 dark:peer-checked:bg-green-800 dark:border-red-700 dark:peer-checked:border-green-700;
}
.pill {
@apply inline-block rounded-full m-1 min-w-[150px] py-2 px-5 border text-center;
@apply hover:brightness-110;
@apply bg-neutral-300 border-neutral-500;
@apply dark:bg-neutral-700 dark:border-neutral-500;
}
.workout-item {
@apply rounded-xl py-2 px-5 border min-h-[150px];
@apply hover:brightness-110;
@apply bg-neutral-300 border-neutral-500;
@apply dark:bg-neutral-700 dark:border-neutral-500;
.meta {
@apply text-neutral-600;
@apply dark:text-neutral-400;
}
}
.vanish {
@apply transition-all duration-1000 max-h-0 py-0 my-0 border-0 opacity-0;
}
}
@tailwind components;
@tailwind utilities;