-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathapplication.css
More file actions
435 lines (346 loc) · 8.23 KB
/
application.css
File metadata and controls
435 lines (346 loc) · 8.23 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
@import "tailwindcss";
@import "./components/sidebar.css";
@import "./components/tom-select.css";
/* Form Styles */
.form-label {
@apply block text-sm font-semibold text-gray-700 mb-2;
}
.form-input,
.form-select,
.form-textarea {
@apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg text-sm transition-all duration-200 bg-gray-50;
}
.form-select {
appearance: none;
padding-right: 2.5rem;
}
.form-textarea {
@apply resize-y;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
@apply outline-none border-blue-500 ring-4 ring-blue-500/10 bg-white;
}
.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
@apply border-gray-300;
}
.form-required {
@apply text-red-500;
}
.form-help-text {
@apply mt-2 text-xs text-gray-500;
}
.form-grid {
@apply grid gap-6;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.form-grid-full {
grid-column: 1 / -1;
}
/* Alternative Input Styles (lighter borders, less padding) */
.input-label {
@apply block text-sm font-semibold text-gray-700 mb-2;
}
.input-field {
@apply w-full border border-gray-300 rounded-lg text-sm transition-all duration-200 bg-white;
padding: 0.625rem 0.875rem;
}
.input-field:focus {
@apply outline-none border-blue-500 bg-white;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.input-field:hover:not(:focus) {
@apply border-gray-400;
}
.select-field {
@apply w-full border border-gray-300 rounded-lg text-sm bg-white transition-all duration-200 cursor-pointer;
padding: 0.625rem 2.5rem 0.625rem 0.875rem;
appearance: none;
}
.select-field:focus {
@apply outline-none border-blue-500;
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.select-field:hover:not(:focus) {
@apply border-gray-400;
}
/* Custom gradient backgrounds */
.bg-gradient-blue {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.bg-gradient-gray {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.bg-gradient-page {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.bg-gradient-purple {
background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}
.bg-gradient-green {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.bg-gradient-red {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.bg-gradient-amber {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
/* Custom shadows */
.shadow-blue {
box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4),
0 4px 6px -2px rgba(59, 130, 246, 0.05);
}
.shadow-blue-lg {
box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4),
0 10px 10px -5px rgba(59, 130, 246, 0.1);
}
/* Pagy */
nav.pagy {
@apply flex items-center justify-center my-4;
}
nav.pagy a {
@apply px-4 py-2 border border-gray-300 bg-gray-100 text-gray-700 font-medium text-sm transition-colors duration-200 rounded-none;
margin-left: -1px;
}
nav.pagy a:first-child {
@apply rounded-l-lg;
margin-left: 0;
}
nav.pagy a:last-child {
@apply rounded-r-lg;
}
nav.pagy a.gap {
@apply border-l-2 border-r-2 bg-white;
}
/* Layout Utilities */
.page-container {
@apply min-h-screen py-1;
}
.content-wrapper {
@apply max-w-7xl mx-auto overflow-x-hidden p-4 pb-16 min-h-screen;
}
.section-spacing {
margin-bottom: 2rem;
}
.section-spacing-lg {
margin-bottom: 2.5rem;
}
/* Flexbox Utilities */
.flex-between {
@apply flex justify-between items-center;
}
.flex-between-wrap {
@apply flex justify-between items-center flex-wrap gap-4;
}
.flex-center {
@apply flex items-center gap-4;
}
.flex-center-sm {
@apply flex items-center gap-2;
}
/* Card Components */
.card-elevated {
@apply bg-white rounded-2xl shadow-lg border border-gray-200;
}
.card-header-gradient {
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
@apply p-6 text-white;
}
.card-body {
@apply p-8;
}
.card-body-sm {
@apply p-6;
}
/* Icon Containers */
.icon-wrapper {
@apply p-3 rounded-xl flex-shrink-0;
}
.icon-wrapper-sm {
@apply p-2 rounded-lg;
}
.icon-wrapper-translucent {
background: rgba(255, 255, 255, 0.2);
@apply p-2 rounded-lg;
}
.icon-size {
@apply w-4 h-4;
}
.icon-size-md {
@apply w-5 h-5;
}
.icon-size-lg {
@apply w-6 h-6;
}
/* Typography */
.page-title {
@apply text-4xl font-bold text-gray-800 m-0;
}
.page-subtitle {
@apply text-gray-500 m-0 text-base;
}
.section-title {
@apply text-xl font-semibold m-0;
}
.form-label-styled {
@apply block font-semibold text-gray-700 mb-3 text-sm;
}
.label-with-icon {
@apply flex items-center gap-2;
}
.text-required {
@apply text-red-600;
}
.text-muted {
@apply text-gray-500 text-xs mt-2;
}
/* Error/Alert Components */
.alert-error {
@apply bg-red-50 border border-red-200 rounded-xl p-6 mb-8;
}
.alert-error-title {
@apply text-red-600 font-semibold m-0 text-base;
}
.alert-error-list {
@apply m-0 pl-6 text-red-600 text-sm;
}
/* Breadcrumb */
.breadcrumb-nav {
@apply text-sm text-gray-500;
}
.breadcrumb-list {
@apply flex gap-2 list-none p-0 m-0;
}
.breadcrumb-separator {
@apply text-gray-300;
}
.breadcrumb-current {
@apply text-gray-700 font-medium;
}
/* Grid Layouts */
.form-grid {
@apply grid gap-8;
}
.form-grid-auto {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
/* Info Panel */
.info-panel {
@apply bg-gray-50 border-2 border-gray-200 rounded-xl p-6;
}
/* Table Styles */
.table-header {
@apply py-5 px-6 text-left text-xs font-bold text-slate-600 uppercase tracking-wider;
}
.table-cell {
@apply py-5 px-6;
}
.user-avatar {
@apply w-10 h-10 bg-gradient-to-br from-indigo-500 to-indigo-600 rounded-full flex items-center justify-center text-white font-semibold text-sm;
}
.badge-admin {
@apply inline-flex items-center gap-1.5 bg-gradient-to-br from-red-600 to-red-700 text-white py-1.5 px-3 rounded-full text-xs font-semibold;
}
.badge-contributor {
@apply inline-flex items-center gap-1.5 text-white py-1.5 px-3 rounded-full text-xs font-semibold;
}
.badge-provider {
@apply text-white py-1 px-2 rounded-full font-semibold;
font-size: 0.625rem;
}
.btn-view {
@apply bg-blue-500 text-white py-2 px-3 rounded-md no-underline text-xs font-semibold inline-flex items-center gap-1.5 transition-all hover:bg-blue-600;
}
.btn-edit {
@apply bg-gray-500 text-white py-2 px-3 rounded-md no-underline text-xs font-semibold inline-flex items-center gap-1.5 transition-all hover:bg-gray-600;
}
.empty-state {
@apply p-12 px-6 text-center;
}
.pagination-footer {
@apply bg-gray-50 p-6 border-t border-gray-200 flex justify-between items-center;
}
/* Form Container */
.form-container {
max-width: 800px;
margin: 0 auto;
padding: 0 1rem;
}
/* Success Alert */
.alert-success {
@apply bg-green-50 border border-green-200 text-green-700 p-4 rounded-lg mb-8;
}
nav.pagy a:hover:not(.current):not(.gap) {
@apply bg-blue-800 text-white border-blue-800;
}
nav.pagy a.current {
@apply bg-blue-600 text-white border-blue-600 font-semibold;
}
/* Responsive Table Styles */
@media (max-width: 768px) {
.hide-mobile {
display: none !important;
}
.table-container table {
table-layout: auto !important;
}
}
.table-container table td:not(.actions-col),
.table-container table th:not(.actions-col) {
word-wrap: break-word;
word-break: break-word;
overflow-wrap: anywhere;
}
.table-container table td.actions-col {
white-space: nowrap;
}
.help-text {
@apply mt-2 text-xs text-gray-500 m-0;
}
/* Beacon Configuration Admin View styles */
.beacon-online {
display: inline-block;
width: 10px;
height: 10px;
background-color: #10b981;
border-radius: 50%;
animation: pulse-green 2s infinite;
}
.beacon-online-large {
display: inline-block;
width: 16px;
height: 16px;
background-color: #10b981;
border-radius: 50%;
animation: pulse-green 2s infinite;
}
.beacon-offline {
display: inline-block;
width: 10px;
height: 10px;
background-color: #ef4444;
border-radius: 50%;
}
.beacon-offline-large {
display: inline-block;
width: 16px;
height: 16px;
background-color: #ef4444;
border-radius: 50%;
}
@keyframes pulse-green {
0%, 100% {
opacity: 1;
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
50% {
opacity: 0.8;
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
}
}