inboxer 0.1.0 → 0.3.0
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 +37 -49
- package/dist/config.js +3 -0
- package/dist/core/attachments.d.ts +9 -0
- package/dist/core/attachments.js +30 -0
- package/dist/core/mail.d.ts +31 -3
- package/dist/core/mail.js +149 -13
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/mcp.js +27 -4
- package/dist/provider/resend.js +22 -4
- package/dist/provider/types.d.ts +8 -1
- package/dist/types.d.ts +13 -0
- package/dist/ui/assets.js +1 -0
- package/dist/ui/routes.d.ts +1 -1
- package/dist/ui/routes.js +88 -42
- package/dist/ui/static/app.js +27 -0
- package/dist/ui/static/style.css +35 -0
- package/dist/ui/strings.d.ts +7 -3
- package/dist/ui/strings.js +7 -3
- package/dist/ui/views.d.ts +5 -0
- package/dist/ui/views.js +68 -9
- package/package.json +9 -8
- package/skills/inboxer/SKILL.md +13 -25
- package/src/config.ts +3 -0
- package/src/core/attachments.ts +33 -0
- package/src/core/mail.ts +150 -14
- package/src/index.ts +3 -0
- package/src/mcp.ts +27 -5
- package/src/provider/resend.ts +23 -4
- package/src/provider/types.ts +9 -1
- package/src/types.ts +13 -2
- package/src/ui/assets.ts +1 -0
- package/src/ui/routes.ts +167 -55
- package/src/ui/static/app.js +54 -0
- package/src/ui/static/style.css +303 -55
- package/src/ui/strings.ts +19 -5
- package/src/ui/views.ts +358 -84
package/src/ui/static/style.css
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
color-scheme: light dark;
|
|
3
|
-
--bg: light-dark(#fbfbfa, #
|
|
4
|
-
--fg: light-dark(#0a0a0a, #
|
|
5
|
-
--muted: light-dark(#
|
|
6
|
-
--line: light-dark(#e6e6e3, #
|
|
7
|
-
--soft: light-dark(#f1f1ef, #
|
|
3
|
+
--bg: light-dark(#fbfbfa, #262624);
|
|
4
|
+
--fg: light-dark(#0a0a0a, #ececea);
|
|
5
|
+
--muted: light-dark(#6b6b67, #a3a39e);
|
|
6
|
+
--line: light-dark(#e6e6e3, #3a3a37);
|
|
7
|
+
--soft: light-dark(#f1f1ef, #1f1f1e);
|
|
8
|
+
--chip: light-dark(#e9e9e6, #333331);
|
|
9
|
+
--surface: light-dark(#ffffff, #2e2e2c);
|
|
10
|
+
--mine: light-dark(#ffe6d6, #4a2e20);
|
|
11
|
+
--mine-line: light-dark(#ffd2b8, #5e3a28);
|
|
8
12
|
--accent: light-dark(#ff4d00, #ff7a3d);
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--primary-
|
|
12
|
-
--primary-
|
|
13
|
+
--accent-text: light-dark(#c43d00, #ff8f5c);
|
|
14
|
+
--focus: light-dark(#0a0a0a, #a3a39e);
|
|
15
|
+
--primary-bg: light-dark(#0a0a0a, #ececea);
|
|
16
|
+
--primary-fg: light-dark(#fbfbfa, #1f1f1e);
|
|
13
17
|
--danger: light-dark(#d92d20, #ff6b5e);
|
|
18
|
+
--backdrop: light-dark(rgb(10 10 10 / .42), rgb(0 0 0 / .5));
|
|
14
19
|
--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
|
|
20
|
+
--tabbar: 64px;
|
|
15
21
|
font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
16
22
|
font-size: 15px;
|
|
17
23
|
line-height: 1.5;
|
|
@@ -24,24 +30,242 @@
|
|
|
24
30
|
[hidden] { display: none !important; }
|
|
25
31
|
body { margin: 0; background: var(--bg); color: var(--fg); }
|
|
26
32
|
a { color: inherit; text-decoration: none; }
|
|
27
|
-
|
|
28
|
-
h1 { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 24px; }
|
|
33
|
+
h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 24px; }
|
|
29
34
|
::selection { background: var(--accent); color: #fff; }
|
|
35
|
+
.icon { flex: none; }
|
|
30
36
|
|
|
31
|
-
/*
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.
|
|
37
|
+
/* Shell: a tab bar on a phone, a sidebar on a wide screen */
|
|
38
|
+
.sidebar { display: none; }
|
|
39
|
+
body.app { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
|
|
40
|
+
body.app.full { padding-bottom: 0; }
|
|
41
|
+
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 32px; }
|
|
42
|
+
|
|
43
|
+
.tabbar {
|
|
44
|
+
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
|
|
45
|
+
display: flex; align-items: center;
|
|
46
|
+
padding: 4px 8px env(safe-area-inset-bottom);
|
|
47
|
+
background: var(--bg); border-top: 1px solid var(--line);
|
|
48
|
+
}
|
|
49
|
+
body.full .tabbar { display: none; }
|
|
50
|
+
.tabbar a {
|
|
51
|
+
position: relative; flex: 1; height: 56px;
|
|
52
|
+
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
|
|
53
|
+
font-size: 11px; font-weight: 500; color: var(--muted);
|
|
54
|
+
}
|
|
55
|
+
.tabbar a[aria-current="page"] { color: var(--fg); }
|
|
56
|
+
.tabbar .count {
|
|
57
|
+
position: absolute; top: 4px; left: 52%;
|
|
58
|
+
min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
|
|
59
|
+
display: flex; align-items: center; justify-content: center;
|
|
60
|
+
background: var(--accent); color: #1f1f1e; font-family: var(--mono); font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
.tab-compose { flex: 1; height: 56px; padding: 0; border: none; background: none; display: flex; align-items: center; justify-content: center; }
|
|
63
|
+
.tab-compose span {
|
|
64
|
+
width: 52px; height: 40px; border-radius: 14px;
|
|
65
|
+
display: flex; align-items: center; justify-content: center;
|
|
66
|
+
background: var(--primary-bg); color: var(--primary-fg);
|
|
67
|
+
}
|
|
68
|
+
.tab-compose:hover { border: none; }
|
|
69
|
+
|
|
70
|
+
@media (min-width: 900px) {
|
|
71
|
+
body.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); padding-bottom: 0; }
|
|
72
|
+
.tabbar { display: none; }
|
|
73
|
+
.sidebar {
|
|
74
|
+
position: sticky; top: 0; height: 100dvh;
|
|
75
|
+
display: flex; flex-direction: column; gap: 4px;
|
|
76
|
+
padding: 20px 14px; border-right: 1px solid var(--line);
|
|
77
|
+
}
|
|
78
|
+
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; padding: 0 12px; }
|
|
79
|
+
.brand span { color: var(--accent); }
|
|
80
|
+
.sidebar .domain { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 12px 0; overflow-wrap: anywhere; }
|
|
81
|
+
.new-mail { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; margin: 16px 0 14px; }
|
|
82
|
+
.side-nav { display: flex; flex-direction: column; gap: 2px; }
|
|
83
|
+
.side-nav a {
|
|
84
|
+
display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px;
|
|
85
|
+
color: var(--muted); font-size: 14px; font-weight: 500;
|
|
86
|
+
}
|
|
87
|
+
.side-nav a:hover { color: var(--fg); }
|
|
88
|
+
.side-nav a[aria-current="page"] { background: var(--chip); color: var(--fg); }
|
|
89
|
+
.side-nav .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--accent-text); }
|
|
90
|
+
.side-end { margin-top: auto; }
|
|
91
|
+
.page { padding-top: 40px; }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Inbox: the list, and the open thread beside it on a wide screen */
|
|
95
|
+
.split .pane { display: none; }
|
|
96
|
+
.split.has-thread .list { display: none; }
|
|
97
|
+
.split.has-thread .pane { display: block; }
|
|
98
|
+
@media (min-width: 900px) {
|
|
99
|
+
.split { display: flex; height: 100dvh; }
|
|
100
|
+
.split .list { display: block; width: 380px; flex: none; overflow-y: auto; border-right: 1px solid var(--line); }
|
|
101
|
+
.split .pane { display: block; flex: 1; min-width: 0; background: var(--soft); }
|
|
102
|
+
body.context-open .split .list { display: none; }
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.list-head { padding: 18px 16px 12px; }
|
|
106
|
+
.list-head h1 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
107
|
+
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
|
|
108
|
+
.chips { display: flex; gap: 8px; }
|
|
109
|
+
.chip {
|
|
110
|
+
display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
|
|
111
|
+
border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap;
|
|
112
|
+
}
|
|
113
|
+
.chip:hover { border-color: var(--focus); }
|
|
114
|
+
.chip[aria-current="page"] { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
|
|
115
|
+
|
|
116
|
+
.row { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
|
|
117
|
+
.row:hover { background: var(--soft); }
|
|
118
|
+
.row[aria-current="page"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
|
|
119
|
+
.avatar {
|
|
120
|
+
width: 44px; height: 44px; border-radius: 999px; flex: none;
|
|
121
|
+
display: flex; align-items: center; justify-content: center;
|
|
122
|
+
background: var(--chip); font-size: 14px; font-weight: 600;
|
|
123
|
+
}
|
|
124
|
+
.row-main { flex: 1; min-width: 0; }
|
|
125
|
+
.row-top { display: flex; align-items: baseline; gap: 8px; }
|
|
126
|
+
.row .who { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
127
|
+
.row time { flex: none; font-family: var(--mono); font-size: 11px; color: var(--muted); }
|
|
128
|
+
.row-subject { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
129
|
+
.row.unread .who { font-weight: 600; }
|
|
130
|
+
.row.unread .row-subject { color: var(--fg); font-weight: 500; }
|
|
131
|
+
.row.unread time { color: var(--accent-text); }
|
|
132
|
+
.row-tags { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
133
|
+
.list .empty { border-top: 1px solid var(--line); }
|
|
134
|
+
|
|
135
|
+
/* Thread */
|
|
136
|
+
.thread {
|
|
137
|
+
position: relative; height: 100dvh;
|
|
138
|
+
display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
|
|
139
|
+
background: var(--soft);
|
|
140
|
+
}
|
|
141
|
+
.thread > :not(.context-panel, .context-backdrop) { grid-column: 1; }
|
|
142
|
+
.thread-head {
|
|
143
|
+
display: flex; align-items: center; gap: 4px; padding: 8px 6px;
|
|
144
|
+
background: var(--bg); border-bottom: 1px solid var(--line);
|
|
145
|
+
}
|
|
146
|
+
.icon-btn {
|
|
147
|
+
width: 44px; height: 44px; padding: 0; flex: none; border: none; border-radius: 999px;
|
|
148
|
+
display: inline-flex; align-items: center; justify-content: center; background: none; color: var(--fg);
|
|
149
|
+
}
|
|
150
|
+
.icon-btn:hover { background: var(--soft); border: none; }
|
|
151
|
+
.thread-head form { margin: 0; }
|
|
152
|
+
.thread-title {
|
|
153
|
+
flex: 1; min-width: 0; height: auto; padding: 4px 6px; border: none; border-radius: 12px;
|
|
154
|
+
display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; font: inherit; color: inherit;
|
|
155
|
+
}
|
|
156
|
+
button.thread-title:hover { background: var(--soft); border: none; }
|
|
157
|
+
.thread-subject {
|
|
158
|
+
font-size: 15px; font-weight: 600; line-height: 1.25;
|
|
159
|
+
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
160
|
+
}
|
|
161
|
+
.thread-meta { max-width: 100%; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
162
|
+
.context-btn { display: none; }
|
|
163
|
+
|
|
164
|
+
.messages { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 20px; }
|
|
165
|
+
.day {
|
|
166
|
+
align-self: center; padding: 4px 10px; border-radius: 999px; background: var(--chip);
|
|
167
|
+
font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
|
|
168
|
+
}
|
|
169
|
+
.msg { max-width: 86%; padding: 12px 14px 8px; border-radius: 18px; font-size: 14.5px; }
|
|
170
|
+
.msg.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
|
|
171
|
+
.msg.mine { align-self: flex-end; background: var(--mine); border: 1px solid var(--mine-line); border-bottom-right-radius: 6px; }
|
|
172
|
+
.msg .body { margin: 0; }
|
|
173
|
+
.msg > .meta { margin-bottom: 6px; }
|
|
174
|
+
.msg-from { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
|
|
175
|
+
.msg-time { display: block; text-align: right; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
|
|
176
|
+
|
|
177
|
+
/* A draft in a thread sits on our side as a dashed bubble */
|
|
178
|
+
.messages .card {
|
|
179
|
+
align-self: flex-end; max-width: 86%; padding: 12px 14px;
|
|
180
|
+
background: var(--surface); border: 1.5px dashed var(--accent); border-radius: 18px; border-bottom-right-radius: 6px;
|
|
181
|
+
}
|
|
182
|
+
.messages .card.editing { width: 100%; max-width: 100%; }
|
|
183
|
+
.messages .card.pending, .messages .card.notice { border-style: solid; border-color: var(--line); }
|
|
184
|
+
.messages .card .mailbox, .messages .draft-head .subject { display: none; }
|
|
185
|
+
.messages .card .body { margin-top: 10px; }
|
|
186
|
+
.messages .card .actions { justify-content: flex-end; margin-top: 12px; }
|
|
187
|
+
|
|
188
|
+
.composer {
|
|
189
|
+
display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px;
|
|
190
|
+
padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
|
|
191
|
+
background: var(--bg); border-top: 1px solid var(--line);
|
|
192
|
+
}
|
|
193
|
+
.composer textarea {
|
|
194
|
+
flex: 1; min-width: 0; min-height: 44px; max-height: 40dvh; margin: 0; padding: 11px 16px;
|
|
195
|
+
field-sizing: content; resize: none; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
|
|
196
|
+
}
|
|
197
|
+
.composer textarea:focus { border-color: var(--focus); }
|
|
198
|
+
.composer .send { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
|
|
199
|
+
.reply-all { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 2px 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); cursor: pointer; }
|
|
200
|
+
.reply-all input { accent-color: var(--accent); }
|
|
201
|
+
|
|
202
|
+
/* Context: a side panel on a wide screen, a bottom sheet on a phone */
|
|
203
|
+
.context-panel { display: none; background: var(--bg); }
|
|
204
|
+
.context-head { display: flex; align-items: center; height: 60px; padding: 0 8px 0 16px; }
|
|
205
|
+
.context-head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; }
|
|
206
|
+
.context-body { overflow-y: auto; padding: 0 16px 16px; }
|
|
207
|
+
.context-body section { padding: 14px 0; border-top: 1px solid var(--line); }
|
|
208
|
+
.context-backdrop { display: none; }
|
|
209
|
+
body.context-open .context-panel { display: flex; flex-direction: column; }
|
|
210
|
+
@media (max-width: 899px) {
|
|
211
|
+
body.context-open .context-backdrop { display: block; position: fixed; inset: 0; z-index: 20; background: var(--backdrop); }
|
|
212
|
+
body.context-open .context-panel {
|
|
213
|
+
position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; height: 70dvh;
|
|
214
|
+
border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgb(0 0 0 / .25);
|
|
215
|
+
padding-bottom: env(safe-area-inset-bottom); animation: rise .2s ease-out;
|
|
216
|
+
}
|
|
217
|
+
.context-panel::before {
|
|
218
|
+
content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
|
|
219
|
+
border-radius: 999px; background: var(--line);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
@media (min-width: 900px) {
|
|
223
|
+
.thread { height: 100dvh; }
|
|
224
|
+
.msg, .messages .card { max-width: 68%; }
|
|
225
|
+
.messages { padding: 20px 32px 28px; }
|
|
226
|
+
.thread-head { padding: 12px 20px 12px 12px; gap: 8px; }
|
|
227
|
+
.context-btn { display: inline-flex; align-items: center; }
|
|
228
|
+
body.context-open .context-btn { background: var(--chip); }
|
|
229
|
+
body.context-open .thread { grid-template-columns: minmax(0, 1fr) 360px; }
|
|
230
|
+
body.context-open .context-panel { grid-column: 2; grid-row: 1 / -1; border-left: 1px solid var(--line); min-height: 0; }
|
|
231
|
+
.composer { padding: 0 24px 20px; background: none; border: none; }
|
|
232
|
+
}
|
|
233
|
+
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
|
|
234
|
+
|
|
235
|
+
/* Context rows, shared by the panel and the folded block on a draft */
|
|
236
|
+
.context .who, .context-body .who { font-family: var(--mono); font-size: .75rem; color: var(--fg); overflow-wrap: anywhere; }
|
|
237
|
+
.context dl, .context-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; font-family: var(--mono); font-size: .75rem; }
|
|
238
|
+
.context dt, .context-body dt { color: var(--muted); }
|
|
239
|
+
.context dd, .context-body dd { margin: 0; overflow-wrap: anywhere; }
|
|
240
|
+
.context p, .context-body p { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--soft); white-space: pre-wrap; font-size: .8125rem; color: var(--muted); }
|
|
241
|
+
.context summary { margin-top: 14px; }
|
|
242
|
+
.context section { margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
|
|
243
|
+
|
|
244
|
+
/* Sheets: New mail rises from the bottom on a phone and centers on a wide screen */
|
|
245
|
+
dialog.sheet {
|
|
246
|
+
margin: auto 0 0; width: 100%; max-width: 100%; height: 70dvh; max-height: 70dvh; padding: 0;
|
|
247
|
+
border: none; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--fg);
|
|
248
|
+
box-shadow: 0 -8px 30px rgb(0 0 0 / .25);
|
|
249
|
+
}
|
|
250
|
+
dialog.sheet[open] { animation: rise .2s ease-out; }
|
|
251
|
+
dialog.sheet::backdrop { background: var(--backdrop); }
|
|
252
|
+
dialog.sheet form { position: relative; height: 100%; display: flex; flex-direction: column; }
|
|
253
|
+
.grabber { width: 40px; height: 5px; border-radius: 999px; background: var(--line); margin: 8px auto 9px; flex: none; }
|
|
254
|
+
.sheet-close { position: absolute; top: 8px; right: 8px; color: var(--muted); z-index: 1; }
|
|
255
|
+
dialog.sheet .field { padding: 0 16px; }
|
|
256
|
+
dialog.sheet .field.compact { padding-right: 60px; }
|
|
257
|
+
dialog.sheet .field output { font-family: var(--mono); font-size: .8rem; padding: 10px 0; }
|
|
258
|
+
dialog.sheet textarea { flex: 1; min-height: 0; margin: 0; padding: 12px 16px; resize: none; }
|
|
259
|
+
.sheet-actions {
|
|
260
|
+
display: flex; justify-content: flex-end; gap: 8px;
|
|
261
|
+
padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
|
|
262
|
+
}
|
|
263
|
+
.sheet-actions button { height: 44px; display: inline-flex; align-items: center; gap: 8px; }
|
|
264
|
+
@media (min-width: 900px) {
|
|
265
|
+
dialog.sheet { margin: auto; width: 640px; height: min(640px, 80dvh); border-radius: 18px; }
|
|
266
|
+
dialog.sheet[open] { animation: none; }
|
|
267
|
+
.grabber { visibility: hidden; }
|
|
268
|
+
}
|
|
45
269
|
|
|
46
270
|
/* Meta and labels */
|
|
47
271
|
.meta {
|
|
@@ -53,30 +277,54 @@ header form { margin: 0; }
|
|
|
53
277
|
font-family: var(--mono); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
|
|
54
278
|
padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--fg);
|
|
55
279
|
}
|
|
56
|
-
.badge.draft { border-color: var(--accent); color: var(--accent); }
|
|
57
|
-
.dot { width:
|
|
280
|
+
.badge.draft { border-color: var(--accent); color: var(--accent-text); }
|
|
281
|
+
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: auto; }
|
|
58
282
|
|
|
59
|
-
/*
|
|
283
|
+
/* Cards: drafts for review and devices */
|
|
60
284
|
.card { border-top: 1px solid var(--line); padding: 24px 0; scroll-margin-top: 64px; }
|
|
61
|
-
.card > .meta + .meta { margin-top:
|
|
285
|
+
.card > .meta + .meta, .draft-head { margin-top: 8px; }
|
|
62
286
|
.subject { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 4px; }
|
|
63
|
-
.note {
|
|
64
|
-
.
|
|
65
|
-
.context section { margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--line); }
|
|
66
|
-
.context .who { font-family: var(--mono); font-size: .75rem; color: var(--fg); overflow-wrap: anywhere; }
|
|
67
|
-
.context dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 8px 0 0; font-family: var(--mono); font-size: .75rem; }
|
|
68
|
-
.context dt { color: var(--muted); }
|
|
69
|
-
.context dd { margin: 0; overflow-wrap: anywhere; }
|
|
70
|
-
.context p { margin: 8px 0 0; white-space: pre-wrap; font-size: .8125rem; color: var(--muted); }
|
|
287
|
+
.note { background: var(--soft); border-radius: 10px; padding: 6px 10px; margin: 12px 0; white-space: pre-wrap; font-size: .8125rem; color: var(--muted); }
|
|
288
|
+
.messages .note { background: var(--chip); }
|
|
71
289
|
.body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; font: inherit; }
|
|
290
|
+
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
|
|
291
|
+
.images a { display: block; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); }
|
|
292
|
+
.images img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
|
|
293
|
+
.images a:hover img { opacity: .8; }
|
|
294
|
+
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
|
|
295
|
+
.file {
|
|
296
|
+
display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
|
|
297
|
+
padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
|
|
298
|
+
font-family: var(--mono); font-size: .72rem; white-space: nowrap; transition: border-color .15s;
|
|
299
|
+
}
|
|
300
|
+
.file:hover { border-color: var(--focus); }
|
|
301
|
+
.file span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
302
|
+
.file .size { color: var(--muted); flex: none; }
|
|
303
|
+
.draft-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
|
|
304
|
+
.draft-files .warn { flex-basis: 100%; margin: 0; color: var(--danger); font-family: var(--mono); font-size: .72rem; }
|
|
305
|
+
.draft-files .link { font-size: 1rem; line-height: 1; }
|
|
306
|
+
.attach { cursor: pointer; color: var(--muted); }
|
|
307
|
+
.attach:hover { color: var(--fg); }
|
|
308
|
+
[data-drop] { position: relative; }
|
|
309
|
+
.drop-hint {
|
|
310
|
+
display: none; position: absolute; inset: 8px 0; z-index: 1;
|
|
311
|
+
align-items: center; justify-content: center;
|
|
312
|
+
border: 1px dashed var(--accent); border-radius: 8px;
|
|
313
|
+
background: color-mix(in srgb, var(--bg) 88%, transparent);
|
|
314
|
+
font-family: var(--mono); font-size: .8rem; color: var(--accent-text); pointer-events: none;
|
|
315
|
+
}
|
|
316
|
+
[data-drop].dragging .drop-hint { display: flex; }
|
|
72
317
|
.notice { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
|
|
318
|
+
.pending { position: relative; }
|
|
319
|
+
.pending-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .9rem; }
|
|
320
|
+
.pending-row span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
|
|
321
|
+
.pending-row strong { color: var(--fg); font-weight: 500; }
|
|
322
|
+
.countdown { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; animation: countdown linear forwards; }
|
|
323
|
+
.messages .countdown { left: 14px; right: 14px; width: auto; top: auto; bottom: 6px; }
|
|
324
|
+
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
73
325
|
.conflict { border-top: 2px solid var(--danger); }
|
|
74
326
|
.conflict .warn { color: var(--danger); font-weight: 600; margin: 14px 0 4px; }
|
|
75
327
|
|
|
76
|
-
.thread-row { display: block; transition: opacity .15s; }
|
|
77
|
-
.thread-row:hover { opacity: .65; }
|
|
78
|
-
.thread-row .subject { margin: 8px 0 2px; }
|
|
79
|
-
|
|
80
328
|
details summary {
|
|
81
329
|
cursor: pointer; list-style: none; margin-top: 18px;
|
|
82
330
|
font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
|
|
@@ -92,11 +340,11 @@ button {
|
|
|
92
340
|
font: inherit; font-size: .875rem; font-weight: 500;
|
|
93
341
|
height: 36px; padding: 0 16px; border-radius: 999px;
|
|
94
342
|
border: 1px solid var(--line); background: transparent; color: var(--fg);
|
|
95
|
-
cursor: pointer; transition: border-color .15s, opacity .15s;
|
|
343
|
+
cursor: pointer; transition: border-color .15s, opacity .15s, background-color .15s;
|
|
96
344
|
}
|
|
97
345
|
button:hover { border-color: var(--focus); }
|
|
98
|
-
button.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-
|
|
99
|
-
button.primary:hover {
|
|
346
|
+
button.primary { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }
|
|
347
|
+
button.primary:hover { opacity: .9; }
|
|
100
348
|
button.danger { color: var(--danger); border-color: transparent; }
|
|
101
349
|
button.danger:hover { border-color: var(--danger); }
|
|
102
350
|
button.link { height: auto; padding: 0; border: none; color: var(--muted); }
|
|
@@ -106,9 +354,10 @@ button.link:hover { color: var(--fg); }
|
|
|
106
354
|
select {
|
|
107
355
|
appearance: none; -webkit-appearance: none;
|
|
108
356
|
font: inherit; font-size: .8rem; color: var(--fg); cursor: pointer;
|
|
109
|
-
height:
|
|
357
|
+
height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px;
|
|
110
358
|
background: transparent;
|
|
111
359
|
}
|
|
360
|
+
select option { background: var(--bg); color: var(--fg); }
|
|
112
361
|
.select { position: relative; display: inline-flex; color: var(--fg); }
|
|
113
362
|
.select::after {
|
|
114
363
|
content: ""; position: absolute; right: 13px; top: 50%; pointer-events: none;
|
|
@@ -118,27 +367,26 @@ select {
|
|
|
118
367
|
select:hover, select:focus { border-color: var(--focus); outline: none; }
|
|
119
368
|
|
|
120
369
|
/* Editor */
|
|
121
|
-
.field { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
|
|
370
|
+
.field { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
|
|
122
371
|
.field label {
|
|
123
372
|
flex: 0 0 64px;
|
|
124
373
|
font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
|
|
125
374
|
}
|
|
126
|
-
.field input { flex: 1; min-width: 0; border: none; background: none; padding:
|
|
375
|
+
.field input { flex: 1; min-width: 0; border: none; background: none; padding: 11px 0; font: inherit; color: var(--fg); outline: none; }
|
|
127
376
|
.field:focus-within { border-bottom-color: var(--focus); }
|
|
128
377
|
.field .link { font-family: var(--mono); font-size: .72rem; }
|
|
129
378
|
textarea {
|
|
130
379
|
display: block; width: 100%; min-height: 16rem; margin-top: 16px; padding: 0; resize: vertical;
|
|
131
380
|
border: none; background: none; font: inherit; color: var(--fg); outline: none;
|
|
132
381
|
}
|
|
382
|
+
.messages .editing textarea { min-height: 10rem; }
|
|
133
383
|
|
|
134
|
-
/*
|
|
135
|
-
.
|
|
136
|
-
.
|
|
137
|
-
.
|
|
138
|
-
.tabs a:hover { color: var(--fg); }
|
|
139
|
-
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--focus); }
|
|
384
|
+
/* Settings */
|
|
385
|
+
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
|
|
386
|
+
.setting label { font-weight: 500; }
|
|
387
|
+
.setting .danger { padding: 0; }
|
|
140
388
|
|
|
141
389
|
/* States */
|
|
142
|
-
.centered { max-width: 360px; margin: 20vh auto 0; text-align: center; }
|
|
390
|
+
.centered { max-width: 360px; margin: 20vh auto 0; padding: 0 16px; text-align: center; }
|
|
143
391
|
.centered h1 { font-size: 1.75rem; }
|
|
144
|
-
.empty { color: var(--muted); font-family: var(--mono); font-size: .8rem; border-top: 1px solid var(--line); padding: 48px
|
|
392
|
+
.empty { color: var(--muted); font-family: var(--mono); font-size: .8rem; border-top: 1px solid var(--line); padding: 48px 16px; text-align: center; }
|
package/src/ui/strings.ts
CHANGED
|
@@ -4,6 +4,10 @@ export const S = {
|
|
|
4
4
|
navDrafts: "Drafts",
|
|
5
5
|
navInbox: "Inbox",
|
|
6
6
|
navDevices: "Devices",
|
|
7
|
+
navSettings: "Settings",
|
|
8
|
+
mainNav: "Main",
|
|
9
|
+
back: "Back",
|
|
10
|
+
close: "Close",
|
|
7
11
|
logout: "Log out",
|
|
8
12
|
themeSystem: "System",
|
|
9
13
|
themeLight: "Light",
|
|
@@ -23,11 +27,23 @@ export const S = {
|
|
|
23
27
|
save: "Save",
|
|
24
28
|
saveAndSend: "Save & Send",
|
|
25
29
|
cancel: "Cancel",
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
attach: "Attach",
|
|
31
|
+
remove: "Remove",
|
|
32
|
+
dropFiles: "Drop files to attach",
|
|
33
|
+
tooLarge: "is larger than",
|
|
34
|
+
sending: "Sending to",
|
|
35
|
+
discarding: "Discarding draft",
|
|
36
|
+
undo: "Undo",
|
|
28
37
|
sentTo: "Sent to",
|
|
29
38
|
discarded: "Draft discarded.",
|
|
30
39
|
editedByHuman: "Edited by you",
|
|
40
|
+
byAgent: "By agent",
|
|
41
|
+
newMail: "New mail",
|
|
42
|
+
saveDraft: "Save draft",
|
|
43
|
+
reply: "Reply",
|
|
44
|
+
replyAll: "Reply all",
|
|
45
|
+
today: "Today",
|
|
46
|
+
yesterday: "Yesterday",
|
|
31
47
|
thread: "Thread",
|
|
32
48
|
thisThread: "This thread",
|
|
33
49
|
context: "Context",
|
|
@@ -37,7 +53,7 @@ export const S = {
|
|
|
37
53
|
yourVersion: "Your version",
|
|
38
54
|
currentVersion: "Current version",
|
|
39
55
|
|
|
40
|
-
|
|
56
|
+
filterPending: "Pending",
|
|
41
57
|
filterAll: "All",
|
|
42
58
|
filterArchived: "Archived",
|
|
43
59
|
allMailboxes: "All mailboxes",
|
|
@@ -48,12 +64,10 @@ export const S = {
|
|
|
48
64
|
|
|
49
65
|
archive: "Archive",
|
|
50
66
|
unarchive: "Move to inbox",
|
|
51
|
-
status: "Status",
|
|
52
67
|
|
|
53
68
|
devicesEmpty: "No signed-in devices.",
|
|
54
69
|
thisDevice: "This device",
|
|
55
70
|
revoke: "Revoke",
|
|
56
|
-
confirmRevoke: "Sign this device out?",
|
|
57
71
|
createdBy: "Link from",
|
|
58
72
|
lastSeen: "Last seen",
|
|
59
73
|
signedIn: "Signed in",
|