Unlisted
Script
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
export const sqliteStyle = `
:root {
--main-font: "Source Sans 3", "Source Sans Pro", -apple-system, system-ui,
sans-serif;
--mono-font: "Fira Code", "M Plus Code Latin", monospace, monospace;
--rhythm: 1.25rem;
--bg: var(--gray-0);
--fg: var(--gray-12);
--accent: #e2e8f0;
--accent-dark: #cad2da;
--gray-0: #f8fafb;
--gray-5: #b1b6b9;
--gray-12: #121210;
--density: 1;
--font-size: 1rem;
--border-radius: 0.2rem;
--section-border-weight: 1.5px;
}
* {
--gap: calc(var(--rhythm) * var(--density));
}
html {
font-size: var(--font-size);
font-family: var(--main-font);
line-height: var(--rhythm);
color: var(--fg);
background: var(--bg);
width: 100%;
}
body {
margin: 0;
width: 100%;
}
header {
border-bottom: var(--section-border-weight) solid black;
}
header > h1 {
margin-block: 0;
padding: var(--gap);
position: relative;
text-transform: uppercase;
}
h2 {
text-transform: uppercase;
margin-top: 0;
}
.tables-list {
display: flex;
padding: 0.5rem;
padding-right: 1rem;
flex-direction: column;
}
.tables-list-item {
display: inline-flex;
padding-left: 0.75rem;
padding-right: 0.75rem;
justify-content: flex-start;
align-items: center;
border-radius: 0.375rem;
height: 2rem;
white-space: nowrap;
cursor: pointer;
font-size: calc(var(--font-size) * 1);
line-height: calc(var(--rhythm) * 1);
& a {
text-decoration: none;
}
& svg {
margin-right: 8px;
}
}
.tables-list-item:hover {
background-color: var(--accent);
}
.tables-list-item.selected {
background-color: var(--accent-dark);
}
.root-container {
display: flex;
flex-direction: column;
height: 100vh;
max-height: 100vh;
max-width: 100%;
background: var(--bg);
}
.sidebar-layout {
display: flex;
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
April 7, 2024