datasette-ts 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/cli.js +24563 -0
- package/dist/cli.js.map +7 -0
- package/dist/worker.js +15224 -0
- package/dist/worker.js.map +7 -0
- package/package.json +39 -0
- package/public/app.css +878 -0
- package/public/cm-editor-6.0.1.bundle.js +1 -0
- package/public/sql-formatter-2.3.3.min.js +5 -0
- package/public/table.js +248 -0
- package/scripts/build.mjs +42 -0
- package/scripts/cloudflare-deploy-helpers.mjs +289 -0
package/public/app.css
ADDED
|
@@ -0,0 +1,878 @@
|
|
|
1
|
+
/* Reset and Page Setup ==================================================== */
|
|
2
|
+
|
|
3
|
+
/* Reset from http://meyerweb.com/eric/tools/css/reset/
|
|
4
|
+
v2.0 | 20110126
|
|
5
|
+
License: none (public domain)
|
|
6
|
+
*/
|
|
7
|
+
html, body, div, span, applet, object, iframe,
|
|
8
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
9
|
+
a, abbr, acronym, address, big, cite, code,
|
|
10
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
11
|
+
small, strike, strong, sub, sup, tt, var,
|
|
12
|
+
b, u, i, center,
|
|
13
|
+
dl, dt, dd, ol, ul, li,
|
|
14
|
+
fieldset, form, label, legend,
|
|
15
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
16
|
+
article, aside, canvas, details, embed,
|
|
17
|
+
figure, figcaption, footer, header, hgroup,
|
|
18
|
+
menu, nav, output, ruby, section, summary,
|
|
19
|
+
time, mark, audio, video {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
font-size: 100%;
|
|
24
|
+
font: inherit;
|
|
25
|
+
vertical-align: baseline;
|
|
26
|
+
}
|
|
27
|
+
/* HTML5 display-role reset for older browsers */
|
|
28
|
+
article, aside, details, figcaption, figure,
|
|
29
|
+
footer, header, hgroup, menu, nav, section {
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
32
|
+
body {
|
|
33
|
+
line-height: 1;
|
|
34
|
+
}
|
|
35
|
+
ol,
|
|
36
|
+
ul {
|
|
37
|
+
list-style: none;
|
|
38
|
+
}
|
|
39
|
+
blockquote,
|
|
40
|
+
q {
|
|
41
|
+
quotes: none;
|
|
42
|
+
}
|
|
43
|
+
blockquote:before,
|
|
44
|
+
blockquote:after,
|
|
45
|
+
q:before,
|
|
46
|
+
q:after {
|
|
47
|
+
content: '';
|
|
48
|
+
content: none;
|
|
49
|
+
}
|
|
50
|
+
table {
|
|
51
|
+
border-collapse: collapse;
|
|
52
|
+
border-spacing: 0;
|
|
53
|
+
}
|
|
54
|
+
th {
|
|
55
|
+
padding-right: 1em;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
}
|
|
58
|
+
strong {
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
}
|
|
61
|
+
em {
|
|
62
|
+
font-style: italic;
|
|
63
|
+
}
|
|
64
|
+
/* end reset */
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
body {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
font-family: "Helvetica Neue", sans-serif;
|
|
71
|
+
font-size: 1rem;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
line-height: 1.5;
|
|
74
|
+
color: #111A35;
|
|
75
|
+
text-align: left;
|
|
76
|
+
background-color: #F8FAFB;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Helper Styles ===========================================================*/
|
|
80
|
+
|
|
81
|
+
.intro {
|
|
82
|
+
font-size: 1rem;
|
|
83
|
+
}
|
|
84
|
+
.metadata-description {
|
|
85
|
+
margin-bottom: 1em;
|
|
86
|
+
}
|
|
87
|
+
p {
|
|
88
|
+
margin: 0 0 0.75rem 0;
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
.meta {
|
|
92
|
+
color: rgba(0,0,0,0.3);
|
|
93
|
+
font-size: 0.75rem
|
|
94
|
+
}
|
|
95
|
+
.intro {
|
|
96
|
+
font-size: 1.5rem;
|
|
97
|
+
margin-bottom: 0.75rem;
|
|
98
|
+
}
|
|
99
|
+
.context-text {
|
|
100
|
+
/* for accessibility and hidden from sight */
|
|
101
|
+
text-indent: -999em;
|
|
102
|
+
display: block;
|
|
103
|
+
width:0;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding: 0;
|
|
107
|
+
line-height: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
h1,
|
|
111
|
+
h2,
|
|
112
|
+
h3,
|
|
113
|
+
h4,
|
|
114
|
+
h5,
|
|
115
|
+
h6,
|
|
116
|
+
.header1,
|
|
117
|
+
.header2,
|
|
118
|
+
.header3,
|
|
119
|
+
.header4,
|
|
120
|
+
.header5,
|
|
121
|
+
.header6 {
|
|
122
|
+
font-weight: 700;
|
|
123
|
+
font-size: 1rem;
|
|
124
|
+
margin: 0;
|
|
125
|
+
padding: 0;
|
|
126
|
+
word-break: break-word;
|
|
127
|
+
}
|
|
128
|
+
h1,
|
|
129
|
+
.header1 {
|
|
130
|
+
font-size: 2rem;
|
|
131
|
+
margin-bottom: 0.75rem;
|
|
132
|
+
margin-top: 1rem;
|
|
133
|
+
}
|
|
134
|
+
h2,
|
|
135
|
+
.header2 {
|
|
136
|
+
font-size: 1.5rem;
|
|
137
|
+
margin-bottom: 0.75rem;
|
|
138
|
+
margin-top: 1rem;
|
|
139
|
+
}
|
|
140
|
+
h3,
|
|
141
|
+
.header3 {
|
|
142
|
+
font-size: 1.25rem;
|
|
143
|
+
margin: 1rem 0 0.25rem 0;
|
|
144
|
+
}
|
|
145
|
+
h4,
|
|
146
|
+
.header4 {
|
|
147
|
+
margin: 1rem 0 0.25rem 0;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
}
|
|
151
|
+
h5,
|
|
152
|
+
.header5 {
|
|
153
|
+
margin: 1rem 0 0.25rem 0;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
text-decoration: underline;
|
|
156
|
+
}
|
|
157
|
+
h6,
|
|
158
|
+
.header6 {
|
|
159
|
+
margin: 1rem 0 0.25rem 0;
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
font-style: italic;
|
|
162
|
+
text-decoration: underline;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.page-header {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
padding-left: 10px;
|
|
169
|
+
border-left: 10px solid #666;
|
|
170
|
+
margin-bottom: 0.75rem;
|
|
171
|
+
margin-top: 1rem;
|
|
172
|
+
}
|
|
173
|
+
.page-header h1 {
|
|
174
|
+
display: inline;
|
|
175
|
+
margin: 0;
|
|
176
|
+
font-size: 2rem;
|
|
177
|
+
padding-right: 0.2em;
|
|
178
|
+
}
|
|
179
|
+
.page-header details {
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
}
|
|
182
|
+
.page-header details > summary {
|
|
183
|
+
list-style: none;
|
|
184
|
+
display: inline-flex;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
}
|
|
187
|
+
.page-header details > summary::-webkit-details-marker {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
div,
|
|
192
|
+
section,
|
|
193
|
+
article,
|
|
194
|
+
header,
|
|
195
|
+
nav,
|
|
196
|
+
footer,
|
|
197
|
+
.wrapper {
|
|
198
|
+
display: block;
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
a:link {
|
|
203
|
+
color: #276890;
|
|
204
|
+
text-decoration: underline;
|
|
205
|
+
}
|
|
206
|
+
a:visited {
|
|
207
|
+
color: #54AC8E;
|
|
208
|
+
text-decoration: underline;
|
|
209
|
+
}
|
|
210
|
+
a:hover,
|
|
211
|
+
a:focus,
|
|
212
|
+
a:active {
|
|
213
|
+
color: #67C98D;
|
|
214
|
+
text-decoration: underline;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
button.button-as-link {
|
|
218
|
+
background: none;
|
|
219
|
+
border: none;
|
|
220
|
+
padding: 0;
|
|
221
|
+
color: #276890;
|
|
222
|
+
text-decoration: underline;
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
font-size: 1rem;
|
|
225
|
+
}
|
|
226
|
+
button.button-as-link:hover,
|
|
227
|
+
button.button-as-link:focus {
|
|
228
|
+
color: #67C98D;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
a img {
|
|
232
|
+
display: block;
|
|
233
|
+
max-width: 100%;
|
|
234
|
+
border: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
code,
|
|
238
|
+
pre {
|
|
239
|
+
font-family: monospace;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
ul.bullets,
|
|
243
|
+
ul.tight-bullets,
|
|
244
|
+
ul.spaced,
|
|
245
|
+
ol.spaced {
|
|
246
|
+
margin-bottom: 0.8rem;
|
|
247
|
+
}
|
|
248
|
+
ul.bullets,
|
|
249
|
+
ul.tight-bullets {
|
|
250
|
+
padding-left: 1.25rem;
|
|
251
|
+
}
|
|
252
|
+
ul.bullets li,
|
|
253
|
+
ul.spaced li,
|
|
254
|
+
ol.spaced li {
|
|
255
|
+
margin-bottom: 0.4rem;
|
|
256
|
+
}
|
|
257
|
+
ul.bullets li {
|
|
258
|
+
list-style-type: circle;
|
|
259
|
+
}
|
|
260
|
+
ul.tight-bullets li {
|
|
261
|
+
list-style-type: disc;
|
|
262
|
+
margin-bottom: 0;
|
|
263
|
+
word-break: break-all;
|
|
264
|
+
}
|
|
265
|
+
a.not-underlined {
|
|
266
|
+
text-decoration: none;
|
|
267
|
+
}
|
|
268
|
+
.not-underlined .underlined {
|
|
269
|
+
text-decoration: underline;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Page Furniture ========================================================= */
|
|
273
|
+
/* Header */
|
|
274
|
+
header,
|
|
275
|
+
footer {
|
|
276
|
+
padding: 0.6rem 1rem 0.5rem 1rem;
|
|
277
|
+
background-color: #276890;
|
|
278
|
+
color: rgba(255,255,244,0.9);
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
box-sizing: border-box;
|
|
281
|
+
min-height: 2.6rem;
|
|
282
|
+
}
|
|
283
|
+
header p,
|
|
284
|
+
footer p {
|
|
285
|
+
margin: 0;
|
|
286
|
+
padding: 0;
|
|
287
|
+
}
|
|
288
|
+
header .crumbs {
|
|
289
|
+
float: left;
|
|
290
|
+
}
|
|
291
|
+
header .actor {
|
|
292
|
+
float: right;
|
|
293
|
+
text-align: right;
|
|
294
|
+
padding-left: 1rem;
|
|
295
|
+
padding-right: 1rem;
|
|
296
|
+
position: relative;
|
|
297
|
+
top: -3px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
footer a:link,
|
|
301
|
+
footer a:visited,
|
|
302
|
+
footer a:hover,
|
|
303
|
+
footer a:focus,
|
|
304
|
+
footer a:active,
|
|
305
|
+
footer button.button-as-link {
|
|
306
|
+
color: rgba(255,255,244,0.8);
|
|
307
|
+
}
|
|
308
|
+
header a:link,
|
|
309
|
+
header a:visited,
|
|
310
|
+
header a:hover,
|
|
311
|
+
header a:focus,
|
|
312
|
+
header a:active,
|
|
313
|
+
header button.button-as-link {
|
|
314
|
+
color: rgba(255,255,244,0.8);
|
|
315
|
+
text-decoration: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
footer a:hover,
|
|
319
|
+
footer a:focus,
|
|
320
|
+
footer a:active,
|
|
321
|
+
footer.button-as-link:hover,
|
|
322
|
+
footer.button-as-link:focus,
|
|
323
|
+
header a:hover,
|
|
324
|
+
header a:focus,
|
|
325
|
+
header a:active,
|
|
326
|
+
button.button-as-link:hover,
|
|
327
|
+
button.button-as-link:focus {
|
|
328
|
+
color: rgba(255,255,244,1);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
/* Body */
|
|
333
|
+
section.content {
|
|
334
|
+
margin: 0 1rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* Footer */
|
|
338
|
+
footer {
|
|
339
|
+
margin-top: 1rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Navigation menu */
|
|
343
|
+
details.nav-menu > summary {
|
|
344
|
+
list-style: none;
|
|
345
|
+
display: inline;
|
|
346
|
+
float: right;
|
|
347
|
+
position: relative;
|
|
348
|
+
cursor: pointer;
|
|
349
|
+
}
|
|
350
|
+
details.nav-menu > summary::-webkit-details-marker {
|
|
351
|
+
display: none;
|
|
352
|
+
}
|
|
353
|
+
details .nav-menu-inner {
|
|
354
|
+
position: absolute;
|
|
355
|
+
top: 2rem;
|
|
356
|
+
right: 10px;
|
|
357
|
+
width: 180px;
|
|
358
|
+
background-color: #276890;
|
|
359
|
+
padding: 1rem;
|
|
360
|
+
z-index: 1000;
|
|
361
|
+
}
|
|
362
|
+
.nav-menu-inner a {
|
|
363
|
+
display: block;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* Table/database actions menu */
|
|
367
|
+
.page-header {
|
|
368
|
+
position: relative;
|
|
369
|
+
}
|
|
370
|
+
.actions-menu-links .dropdown-menu {
|
|
371
|
+
position: absolute;
|
|
372
|
+
top: calc(100% + 10px);
|
|
373
|
+
left: -10px;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Components ============================================================== */
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
h2 em {
|
|
380
|
+
font-style: normal;
|
|
381
|
+
font-weight: lighter;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Messages */
|
|
385
|
+
|
|
386
|
+
.message-info,
|
|
387
|
+
.message-warning,
|
|
388
|
+
.message-error {
|
|
389
|
+
padding: 1rem;
|
|
390
|
+
margin-bottom: 1rem;
|
|
391
|
+
background-color: rgba(103,201,141,0.3);
|
|
392
|
+
}
|
|
393
|
+
.message-warning {
|
|
394
|
+
background-color: rgba(245,166,35,0.3);
|
|
395
|
+
}
|
|
396
|
+
.message-error {
|
|
397
|
+
background-color: rgba(208,2,27,0.3);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.pattern-heading {
|
|
401
|
+
padding: 1rem;
|
|
402
|
+
margin-top: 2rem;
|
|
403
|
+
border-top: 1px solid rgba(208,2,27,0.8);
|
|
404
|
+
border-bottom: 1px solid rgba(208,2,27,0.8);
|
|
405
|
+
background-color: rgba(208,2,27,0.2)
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* URL arguments */
|
|
409
|
+
.extra-wheres ul,
|
|
410
|
+
.extra-wheres li {
|
|
411
|
+
list-style-type: none;
|
|
412
|
+
padding: 0;
|
|
413
|
+
margin: 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.wrapped-sql {
|
|
417
|
+
white-space: pre-wrap;
|
|
418
|
+
margin: 1rem 0;
|
|
419
|
+
font-family: monospace;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* Tables ================================================================== */
|
|
423
|
+
.table-wrapper {
|
|
424
|
+
overflow-x: auto;
|
|
425
|
+
}
|
|
426
|
+
table {
|
|
427
|
+
border-collapse: collapse;
|
|
428
|
+
}
|
|
429
|
+
td {
|
|
430
|
+
border-top: 1px solid #aaa;
|
|
431
|
+
border-right: 1px solid #eee;
|
|
432
|
+
padding: 4px;
|
|
433
|
+
vertical-align: top;
|
|
434
|
+
white-space: pre-wrap;
|
|
435
|
+
}
|
|
436
|
+
td.type-pk {
|
|
437
|
+
font-weight: bold;
|
|
438
|
+
}
|
|
439
|
+
td em {
|
|
440
|
+
font-style: normal;
|
|
441
|
+
font-size: 0.8em;
|
|
442
|
+
color: #aaa;
|
|
443
|
+
}
|
|
444
|
+
th {
|
|
445
|
+
padding-right: 1em;
|
|
446
|
+
}
|
|
447
|
+
table a:link {
|
|
448
|
+
text-decoration: none;
|
|
449
|
+
}
|
|
450
|
+
.rows-and-columns td:before {
|
|
451
|
+
display: block;
|
|
452
|
+
color: black;
|
|
453
|
+
margin-left: -10%;
|
|
454
|
+
font-size: 0.8em;
|
|
455
|
+
}
|
|
456
|
+
.rows-and-columns td ol,
|
|
457
|
+
.rows-and-columns td ul {
|
|
458
|
+
list-style: initial;
|
|
459
|
+
list-style-position: inside;
|
|
460
|
+
}
|
|
461
|
+
a.blob-download {
|
|
462
|
+
display: inline-block;
|
|
463
|
+
}
|
|
464
|
+
.db-table p {
|
|
465
|
+
margin-top: 0;
|
|
466
|
+
margin-bottom: 0.3em;
|
|
467
|
+
}
|
|
468
|
+
.db-table h2 {
|
|
469
|
+
margin-top: 1em;
|
|
470
|
+
margin-bottom: 0;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/* Forms =================================================================== */
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
form.sql textarea {
|
|
478
|
+
border: 1px solid #ccc;
|
|
479
|
+
width: 70%;
|
|
480
|
+
height: 3em;
|
|
481
|
+
padding: 4px;
|
|
482
|
+
font-family: monospace;
|
|
483
|
+
font-size: 1.3em;
|
|
484
|
+
}
|
|
485
|
+
form label {
|
|
486
|
+
font-weight: bold;
|
|
487
|
+
display: inline-block;
|
|
488
|
+
width: 15%;
|
|
489
|
+
}
|
|
490
|
+
.advanced-export form label {
|
|
491
|
+
width: auto;
|
|
492
|
+
}
|
|
493
|
+
.advanced-export input[type=submit] {
|
|
494
|
+
font-size: 0.6em;
|
|
495
|
+
margin-left: 1em;
|
|
496
|
+
}
|
|
497
|
+
label.sort_by_desc {
|
|
498
|
+
width: auto;
|
|
499
|
+
padding-right: 1em;
|
|
500
|
+
}
|
|
501
|
+
pre#sql-query {
|
|
502
|
+
margin-bottom: 1em;
|
|
503
|
+
}
|
|
504
|
+
form input[type=text],
|
|
505
|
+
form input[type=search] {
|
|
506
|
+
border: 1px solid #ccc;
|
|
507
|
+
border-radius: 3px;
|
|
508
|
+
width: 60%;
|
|
509
|
+
padding: 9px 4px;
|
|
510
|
+
display: inline-block;
|
|
511
|
+
font-size: 1em;
|
|
512
|
+
font-family: Helvetica, sans-serif;
|
|
513
|
+
}
|
|
514
|
+
/* Stop Webkit from styling search boxes in an inconsistent way */
|
|
515
|
+
/* https://css-tricks.com/webkit-html5-search-inputs/ comments */
|
|
516
|
+
input[type=search] {
|
|
517
|
+
-webkit-appearance: textfield;
|
|
518
|
+
}
|
|
519
|
+
input[type="search"]::-webkit-search-decoration,
|
|
520
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
521
|
+
input[type="search"]::-webkit-search-results-button,
|
|
522
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
523
|
+
display: none;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
form input[type=submit], form button[type=button] {
|
|
527
|
+
font-weight: 400;
|
|
528
|
+
cursor: pointer;
|
|
529
|
+
text-align: center;
|
|
530
|
+
vertical-align: middle;
|
|
531
|
+
border-width: 1px;
|
|
532
|
+
border-style: solid;
|
|
533
|
+
padding: .5em 0.8em;
|
|
534
|
+
font-size: 0.9rem;
|
|
535
|
+
line-height: 1;
|
|
536
|
+
border-radius: .25rem;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
form input[type=submit] {
|
|
540
|
+
color: #fff;
|
|
541
|
+
background-color: #007bff;
|
|
542
|
+
border-color: #007bff;
|
|
543
|
+
-webkit-appearance: button;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
form button[type=button] {
|
|
547
|
+
color: #007bff;
|
|
548
|
+
background-color: #fff;
|
|
549
|
+
border-color: #007bff;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.filter-row {
|
|
553
|
+
margin-bottom: 0.6em;
|
|
554
|
+
}
|
|
555
|
+
.search-row {
|
|
556
|
+
margin-bottom: 1.8em;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.search-row label {
|
|
560
|
+
font-size: 1.2em;
|
|
561
|
+
padding-right: 0.5em;
|
|
562
|
+
display: inline-block;
|
|
563
|
+
width: 80px;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.select-wrapper {
|
|
567
|
+
border: 1px solid #ccc;
|
|
568
|
+
width: 120px;
|
|
569
|
+
border-radius: 3px;
|
|
570
|
+
padding: 0;
|
|
571
|
+
background-color: #fafafa;
|
|
572
|
+
position: relative;
|
|
573
|
+
display: inline-block;
|
|
574
|
+
margin-right: 0.3em;
|
|
575
|
+
}
|
|
576
|
+
.select-wrapper:focus-within {
|
|
577
|
+
border: 1px solid black;
|
|
578
|
+
}
|
|
579
|
+
.select-wrapper.filter-op {
|
|
580
|
+
width: 80px;
|
|
581
|
+
}
|
|
582
|
+
.select-wrapper::after {
|
|
583
|
+
content: "\25BE";
|
|
584
|
+
position: absolute;
|
|
585
|
+
top: 0px;
|
|
586
|
+
right: 0.4em;
|
|
587
|
+
color: #bbb;
|
|
588
|
+
pointer-events: none;
|
|
589
|
+
font-size: 1.2em;
|
|
590
|
+
padding-top: 0.16em;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.select-wrapper select {
|
|
594
|
+
padding: 9px 8px;
|
|
595
|
+
width: 100%;
|
|
596
|
+
border: none;
|
|
597
|
+
box-shadow: none;
|
|
598
|
+
background: transparent;
|
|
599
|
+
background-image: none;
|
|
600
|
+
-webkit-appearance: none;
|
|
601
|
+
-moz-appearance: none;
|
|
602
|
+
cursor: pointer;
|
|
603
|
+
}
|
|
604
|
+
.select-wrapper select {
|
|
605
|
+
font-size: 1em;
|
|
606
|
+
font-family: Helvetica, sans-serif;
|
|
607
|
+
}
|
|
608
|
+
.select-wrapper option {
|
|
609
|
+
font-size: 1em;
|
|
610
|
+
font-family: Helvetica, sans-serif;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.select-wrapper select:focus {
|
|
614
|
+
outline: none;
|
|
615
|
+
}
|
|
616
|
+
.filters {
|
|
617
|
+
font-size: 0.8em;
|
|
618
|
+
}
|
|
619
|
+
.filters input.filter-value {
|
|
620
|
+
width: 200px;
|
|
621
|
+
border-radius: 3px;
|
|
622
|
+
-webkit-appearance: none;
|
|
623
|
+
padding: 9px 4px;
|
|
624
|
+
font-size: 1em;
|
|
625
|
+
font-family: Helvetica, sans-serif;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
.facet-results {
|
|
632
|
+
display: flex;
|
|
633
|
+
flex-direction: row;
|
|
634
|
+
flex-wrap: wrap;
|
|
635
|
+
}
|
|
636
|
+
.facet-info {
|
|
637
|
+
width: 250px;
|
|
638
|
+
margin-right: 15px;
|
|
639
|
+
}
|
|
640
|
+
.facet-info-total {
|
|
641
|
+
font-size: 0.8em;
|
|
642
|
+
color: #666;
|
|
643
|
+
padding-right: 0.25em;
|
|
644
|
+
}
|
|
645
|
+
.facet-info li,
|
|
646
|
+
.facet-info ul {
|
|
647
|
+
margin: 0;
|
|
648
|
+
padding: 0;
|
|
649
|
+
}
|
|
650
|
+
.facet-info ul {
|
|
651
|
+
padding-left: 1.25em;
|
|
652
|
+
margin-bottom: 1em;
|
|
653
|
+
}
|
|
654
|
+
.facet-info a.cross:link,
|
|
655
|
+
.facet-info a.cross:visited,
|
|
656
|
+
.facet-info a.cross:hover,
|
|
657
|
+
.facet-info a.cross:focus,
|
|
658
|
+
.facet-info a.cross:active {
|
|
659
|
+
text-decoration: none;
|
|
660
|
+
}
|
|
661
|
+
ul li.facet-truncated {
|
|
662
|
+
list-style-type: none;
|
|
663
|
+
position: relative;
|
|
664
|
+
top: -0.35em;
|
|
665
|
+
text-indent: 0.85em;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.advanced-export {
|
|
669
|
+
margin-top: 1em;
|
|
670
|
+
padding: 0.01em 2em 0.01em 1em;
|
|
671
|
+
width: auto;
|
|
672
|
+
display: inline-block;
|
|
673
|
+
box-shadow: 1px 2px 8px 2px rgba(0,0,0,0.08);
|
|
674
|
+
background-color: white;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.download-sqlite em {
|
|
678
|
+
font-style: normal;
|
|
679
|
+
font-size: 0.8em;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
p.zero-results {
|
|
685
|
+
border: 2px solid #ccc;
|
|
686
|
+
background-color: #eee;
|
|
687
|
+
padding: 0.5em;
|
|
688
|
+
font-style: italic;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* Value types */
|
|
692
|
+
.type-float, .type-int {
|
|
693
|
+
color: #666;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/* Overrides ===============================================================*/
|
|
702
|
+
|
|
703
|
+
.small-screen-only,
|
|
704
|
+
.select-wrapper.small-screen-only {
|
|
705
|
+
display: none;
|
|
706
|
+
}
|
|
707
|
+
@media only screen and (max-width: 576px) {
|
|
708
|
+
|
|
709
|
+
.small-screen-only {
|
|
710
|
+
display: initial;
|
|
711
|
+
}
|
|
712
|
+
.select-wrapper.small-screen-only {
|
|
713
|
+
display: inline-block;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
form.sql textarea {
|
|
717
|
+
width: 95%;
|
|
718
|
+
}
|
|
719
|
+
/* Force table to not be like tables anymore */
|
|
720
|
+
table.rows-and-columns,
|
|
721
|
+
.rows-and-columns thead,
|
|
722
|
+
.rows-and-columns tbody,
|
|
723
|
+
.rows-and-columns th,
|
|
724
|
+
.rows-and-columns td,
|
|
725
|
+
.rows-and-columns tr {
|
|
726
|
+
display: block;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/* Hide table headers (but not display: none;, for accessibility) */
|
|
730
|
+
.rows-and-columns thead tr {
|
|
731
|
+
position: absolute;
|
|
732
|
+
top: -9999px;
|
|
733
|
+
left: -9999px;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.rows-and-columns tr {
|
|
737
|
+
border: 1px solid #ccc;
|
|
738
|
+
margin-bottom: 1em;
|
|
739
|
+
border-radius: 10px;
|
|
740
|
+
background-color: white;
|
|
741
|
+
padding: 0.2rem;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.rows-and-columns td {
|
|
745
|
+
/* Behave like a "row" */
|
|
746
|
+
border: none;
|
|
747
|
+
border-bottom: 1px solid #eee;
|
|
748
|
+
padding: 0;
|
|
749
|
+
padding-left: 10%;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.rows-and-columns td:before {
|
|
753
|
+
display: block;
|
|
754
|
+
color: black;
|
|
755
|
+
margin-left: -10%;
|
|
756
|
+
font-size: 0.8em;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.select-wrapper {
|
|
760
|
+
width: 100px;
|
|
761
|
+
}
|
|
762
|
+
.select-wrapper.filter-op {
|
|
763
|
+
width: 60px;
|
|
764
|
+
}
|
|
765
|
+
.filters input.filter-value {
|
|
766
|
+
width: 140px;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
svg.dropdown-menu-icon {
|
|
771
|
+
display: inline-block;
|
|
772
|
+
position: relative;
|
|
773
|
+
top: 2px;
|
|
774
|
+
cursor: pointer;
|
|
775
|
+
opacity: 0.8;
|
|
776
|
+
}
|
|
777
|
+
.dropdown-menu {
|
|
778
|
+
border: 1px solid #ccc;
|
|
779
|
+
border-radius: 4px;
|
|
780
|
+
line-height: 1.4;
|
|
781
|
+
font-size: 16px;
|
|
782
|
+
box-shadow: 2px 2px 2px #aaa;
|
|
783
|
+
background-color: #fff;
|
|
784
|
+
z-index: 1000;
|
|
785
|
+
}
|
|
786
|
+
.dropdown-menu ul,
|
|
787
|
+
.dropdown-menu li {
|
|
788
|
+
list-style-type: none;
|
|
789
|
+
margin: 0;
|
|
790
|
+
padding: 0;
|
|
791
|
+
}
|
|
792
|
+
.dropdown-menu .dropdown-column-type {
|
|
793
|
+
font-size: 0.7em;
|
|
794
|
+
color: #666;
|
|
795
|
+
margin: 0;
|
|
796
|
+
padding: 4px 8px 4px 8px;
|
|
797
|
+
}
|
|
798
|
+
.dropdown-menu .dropdown-column-description {
|
|
799
|
+
margin: 0;
|
|
800
|
+
color: #666;
|
|
801
|
+
padding: 4px 8px 4px 8px;
|
|
802
|
+
max-width: 20em;
|
|
803
|
+
}
|
|
804
|
+
.dropdown-menu li {
|
|
805
|
+
border-bottom: 1px solid #ccc;
|
|
806
|
+
}
|
|
807
|
+
.dropdown-menu li:last-child {
|
|
808
|
+
border: none;
|
|
809
|
+
}
|
|
810
|
+
.dropdown-menu a:link,
|
|
811
|
+
.dropdown-menu a:visited,
|
|
812
|
+
.dropdown-menu a:hover,
|
|
813
|
+
.dropdown-menu a:focus
|
|
814
|
+
.dropdown-menu a:active {
|
|
815
|
+
text-decoration: none;
|
|
816
|
+
display: block;
|
|
817
|
+
padding: 4px 8px 2px 8px;
|
|
818
|
+
color: #222;
|
|
819
|
+
white-space: nowrap;
|
|
820
|
+
}
|
|
821
|
+
.dropdown-menu a:hover {
|
|
822
|
+
background-color: #eee;
|
|
823
|
+
}
|
|
824
|
+
.dropdown-menu .hook {
|
|
825
|
+
display: block;
|
|
826
|
+
position: absolute;
|
|
827
|
+
top: -5px;
|
|
828
|
+
left: 6px;
|
|
829
|
+
width: 0;
|
|
830
|
+
height: 0;
|
|
831
|
+
border-left: 5px solid transparent;
|
|
832
|
+
border-right: 5px solid transparent;
|
|
833
|
+
border-bottom: 5px solid #666;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.canned-query-edit-sql {
|
|
837
|
+
padding-left: 0.5em;
|
|
838
|
+
position: relative;
|
|
839
|
+
top: 1px;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.blob-download {
|
|
843
|
+
display: block;
|
|
844
|
+
white-space: nowrap;
|
|
845
|
+
padding-right: 20px;
|
|
846
|
+
position: relative;
|
|
847
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ3IDEwLjc4YS43NS43NSAwIDAwMS4wNiAwbDMuNzUtMy43NWEuNzUuNzUgMCAwMC0xLjA2LTEuMDZMOC43NSA4LjQ0VjEuNzVhLjc1Ljc1IDAgMDAtMS41IDB2Ni42OUw0Ljc4IDUuOTdhLjc1Ljc1IDAgMDAtMS4wNiAxLjA2bDMuNzUgMy43NXpNMy43NSAxM2EuNzUuNzUgMCAwMDAgMS41aDguNWEuNzUuNzUgMCAwMDAtMS41aC04LjV6Ij48L3BhdGg+PC9zdmc+");
|
|
848
|
+
background-size: 16px 16px;
|
|
849
|
+
background-position: right;
|
|
850
|
+
background-repeat: no-repeat;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
dl.column-descriptions dt {
|
|
854
|
+
font-weight: bold;
|
|
855
|
+
}
|
|
856
|
+
dl.column-descriptions dd {
|
|
857
|
+
padding-left: 1.5em;
|
|
858
|
+
white-space: pre-wrap;
|
|
859
|
+
line-height: 1.1em;
|
|
860
|
+
color: #666;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.anim-scale-in {
|
|
864
|
+
animation-name: scale-in;
|
|
865
|
+
animation-duration: 0.15s;
|
|
866
|
+
animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
@keyframes scale-in {
|
|
870
|
+
0% {
|
|
871
|
+
opacity: 0;
|
|
872
|
+
transform: scale(0.6);
|
|
873
|
+
}
|
|
874
|
+
100% {
|
|
875
|
+
opacity: 1;
|
|
876
|
+
transform: scale(1);
|
|
877
|
+
}
|
|
878
|
+
}
|