-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcode.css
More file actions
602 lines (542 loc) · 11.9 KB
/
code.css
File metadata and controls
602 lines (542 loc) · 11.9 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
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
body {
font-family: sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
color: #333;
}
.container {
width: 100%;
max-width: none; /* Use full window width */
margin: 0; /* Align to window edges for maximum space */
background: #fff;
padding: 18px 20px 28px 20px;
border-radius: 6px;
box-shadow: none;
}
.header-section {
display: flex;
align-items: center; /* Vertically align items in the center */
margin-bottom: 20px; /* Space below the header */
}
#logo {
height: 100px; /* Adjust as needed */
width: auto; /* Maintain aspect ratio */
margin-right: 15px; /* Space between logo and title */
max-width: 100%; /* Prevent overflow on very small screens */
}
h1, h2, h3 {
color: #440560;
margin-top: 0;
margin-bottom: 0.5em; /* Added some bottom margin for h2/h3 */
}
h1 {
margin-bottom: 0;
}
.controls, .search-section, .browse-section, .status, .mode-selection {
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
label {
display: block;
margin-bottom: 5px;
margin-top: 0px;
font-size: 14px;
}
input[type="file"], input[type="text"], select {
padding: 8px;
margin-right: 10px;
border: 1px solid #ddd;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
margin-bottom: 8px;
font-size: 16px; /* Prevent iOS auto-zoom on input focus */
min-height: 44px; /* Touch-friendly minimum height */
display: block;
}
input[type="file"] {
width: auto;
}
/* Specific width for dropdowns if needed */
/* Removed empty ruleset for #columnSelect, #browseFileSelect */
#searchResults {
max-height: calc(100vh - 260px); /* Use more vertical space */
overflow-y: auto;
overflow-x: auto;
margin-top: 10px;
padding-right: 1px;
border: 1px solid #ddd;
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
scroll-behavior: smooth;
}
button {
padding: 10px 15px;
background-color: #440560;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 5px;
margin-right: 5px;
min-height: 44px; /* Minimum touch target size */
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: background-color 0.2s ease;
}
button:hover {
background-color: #7a0091; /* Darker hover */
}
#clearButton {
background-color: #dd8fc7;
}
#clearButton:hover {
background-color: #c86ba5; /* Darker hover for clear */
}
#loadedFilesList {
list-style: disc;
padding-left: 20px;
max-height: 100px; /* Limit height for loaded files list */
overflow-y: auto;
border: 1px solid #eee;
padding-top: 5px;
padding-bottom: 5px;
}
#loadedFilesList li {
margin-bottom: 5px;
}
/* Results item styling - might not be used if table view is primary */
.result-item {
border: 1px solid #e0e0e0;
padding: 10px;
margin-bottom: 10px;
background-color: #f9f9f9;
border-radius: 4px;
}
.result-item strong {
color: #007bff;
}
.result-item pre {
white-space: pre-wrap;
word-wrap: break-word;
background-color: #eee;
padding: 8px;
border-radius: 3px;
font-family: monospace;
font-size: 0.9em;
overflow-x: auto;
}
.highlight { /* For search term highlighting if implemented later */
background-color: yellow;
font-weight: bold;
}
#resultsCount {
margin-bottom: 10px;
font-style: italic;
}
.download-buttons {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.download-buttons button:disabled {
background-color: #c7b2ce; /* Adjusted disabled color */
color: #777;
cursor: not-allowed;
}
#downloadCsvButton {
display: none;
}
table {
width: 100%;
min-width: 1600px;
border-collapse: collapse;
font-size: 0.85em;
table-layout: fixed; /* Fixed table layout so col widths are respected */
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
white-space: normal; /* Allow wrapping so table adapts to viewport */
vertical-align: top;
}
td {
max-width: none;
overflow-wrap: anywhere;
}
/* Per-column wrapping control */
.col-nowrap {
white-space: nowrap !important;
overflow: hidden;
text-overflow: ellipsis;
}
.col-wrap {
white-space: normal !important;
overflow-wrap: anywhere;
}
th {
background-color: #e9d8ed; /* Lighter purple for headers */
color: #333;
position: sticky; /* Make headers sticky */
top: 0; /* Stick to the top of the scrollable container */
z-index: 10;
cursor: pointer;
}
/* Sort arrow styling */
th .sort-arrow {
font-size: 0.8em;
margin-left: 5px;
color: #555;
}
/* Style for current sort column */
th.sorted-asc, th.sorted-desc {
background-color: #d5b9dd; /* Slightly darker to indicate active sort */
}
/* Hide all sort arrows by default */
.sort-arrow {
visibility: hidden; /* Initially hidden, shown by JS */
display: inline-block; /* Ensure it takes space */
}
/* Show arrow for the currently sorted column */
th.sorted-asc .sort-arrow,
th.sorted-desc .sort-arrow {
visibility: visible;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
tr:hover {
background-color: #f1e8f3; /* Lighter purple hover for rows */
}
/* =========================
RESPONSIVE DESIGN BREAKPOINTS
========================= */
/* Tablet devices (768px and below) */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 12px 15px 20px 15px;
}
input[type="text"], select {
width: 100%;
margin-right: 0;
margin-bottom: 10px;
font-size: 16px; /* Prevent zoom on iOS */
}
button {
padding: 12px 10px; /* Ensure tappable size (44px min height) */
font-size: 14px;
margin-bottom: 10px;
}
.header-section {
flex-direction: column;
align-items: flex-start;
}
#logo {
height: 70px;
margin-bottom: 10px;
margin-right: 0;
}
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.2em;
}
th, td {
white-space: normal;
font-size: 0.85em;
padding: 6px;
}
.controls-row {
flex-direction: column;
gap: 12px;
}
.controls-left, .controls-right {
width: 100%;
min-width: auto;
flex: none;
}
.browse-search-inline {
flex-direction: column;
gap: 8px;
}
.browse-search-inline input[type="text"],
.browse-search-inline button {
width: 100%;
margin: 0;
}
.results-top {
flex-direction: column;
align-items: flex-start;
}
.results-top-right {
width: 100%;
flex-wrap: wrap;
}
.download-buttons-inline {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.download-buttons-inline button {
margin: 0;
width: 100%;
}
#columnsToggle {
margin-left: 0;
}
.columns-panel {
position: fixed;
left: 10px;
right: 10px;
top: auto;
bottom: auto;
max-width: none;
min-width: auto;
}
#searchResults {
max-height: calc(100vh - 400px);
}
}
/* Small mobile phones (480px and below) */
@media (max-width: 480px) {
body {
padding: 8px;
}
.container {
padding: 10px 12px 20px 12px;
border-radius: 0;
}
input[type="text"], select, button {
font-size: 16px; /* Prevent auto-zoom on iOS */
}
button {
padding: 12px 8px; /* Ensure minimum 44px tap target */
width: 100%;
margin: 5px 0;
}
#logo {
height: 50px;
}
h1 {
font-size: 1.3em;
margin-bottom: 10px;
}
h2 {
font-size: 1.1em;
}
h3 {
font-size: 1em;
}
label {
font-size: 0.95em;
margin-bottom: 5px;
}
.controls, .search-section, .browse-section, .status, .mode-selection {
margin-bottom: 15px;
padding-bottom: 12px;
}
th, td {
font-size: 0.75em;
padding: 4px;
}
table {
font-size: 0.8em;
}
.download-buttons-inline {
grid-template-columns: 1fr;
}
#searchResults {
max-height: calc(100vh - 420px);
font-size: 14px;
}
.columns-panel {
left: 8px;
right: 8px;
}
.columns-panel-inner {
max-height: 300px;
}
.result-item {
padding: 8px;
margin-bottom: 8px;
}
}
/* Very small devices (320px and below) - edge case */
@media (max-width: 320px) {
body {
padding: 5px;
}
.container {
padding: 8px 10px;
}
#logo {
height: 40px;
}
h1 {
font-size: 1.1em;
}
th, td {
font-size: 0.7em;
padding: 3px;
}
}
/* Controls row: place organism selector and search inline */
.controls-row {
display: flex;
gap: 16px;
align-items: flex-end;
justify-content: flex-start;
flex-wrap: wrap;
}
.controls-left {
min-width: 220px;
flex: 0 0 320px;
}
.controls-right {
flex: 1 1 480px;
min-width: 200px; /* Ensure minimum width */
}
.browse-search-inline {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: nowrap;
}
.browse-search-inline input[type="text"] {
flex: 1 1 auto;
min-width: 150px;
}
.browse-search-inline button {
white-space: nowrap;
}
/* Results top area */
.results-top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.results-top-left {
display: flex;
flex-direction: column;
}
.results-top-right {
display: flex;
align-items: center;
}
.download-buttons-inline button {
margin-left: 8px;
}
/* Columns panel */
.columns-panel {
position: absolute;
right: 20px;
top: 56px;
background: #fff;
border: 1px solid #ddd;
padding: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
border-radius: 4px;
z-index: 2000;
min-width: 220px;
max-height: 70vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.columns-panel-inner {
max-height: 360px;
overflow: auto;
}
.columns-panel label {
display: block;
font-size: 13px;
margin: 6px 0;
}
/* Footer Styles */
.footer {
border-top: 1px solid #ddd;
margin-top: 30px;
padding-top: 20px;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
color: #666;
font-size: 0.9em;
}
.version {
font-weight: 500;
color: #440560;
}
.help-link {
font-weight: 500;
color: #440560;
text-decoration: none;
}
.help-link:hover {
text-decoration: underline;
}
.github-link {
display: inline-flex;
align-items: center;
justify-content: center;
color: #333;
transition: color 0.3s ease;
}
.github-link:hover {
color: #440560;
}
.github-link svg {
width: 24px;
height: 24px;
}
/* Styles for custom header tooltip and info icons */
.custom-tooltip {
position: fixed;
background: rgba(0,0,0,0.88);
color: #fff;
padding: 6px 8px;
border-radius: 4px;
font-size: 12px;
z-index: 1200;
max-width: 360px;
pointer-events: none; /* So it doesn't interfere with hover events */
opacity: 0;
transition: opacity 120ms ease-in-out, transform 120ms ease-in-out;
transform: translateY(4px);
}
.custom-tooltip.visible {
opacity: 1;
transform: translateY(0);
}
.info-icon {
margin-left: 8px;
font-size: 11px;
line-height: 12px;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
color: inherit;
border-radius: 50%;
border: 1px solid rgba(0,0,0,0.15);
background: #fff;
margin-right: 4px;
cursor: pointer;
}
.info-icon:hover {
background: #f0f0f0;
}