Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Restyle the board: black, flat, line icons

emanuele-em5b4e3c8fc0fb
diff --git a/src/app.js b/src/app.js
index 43f1897..fa1f477 100644
--- a/src/app.js
+++ b/src/app.js
@@ -57,6 +57,28 @@ function el(tag, attrs = {}, ...children) {
return node;
}
+// Line icons (from Lucide, ISC licence), drawn in the text colour.
+const ICONS = {
+ newProject: '<path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.4 2.6a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4Z"/>',
+ board: '<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M8 7v7M12 7v4M16 7v9"/>',
+ folder: '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',
+ search: '<circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/>',
+ close: '<path d="M18 6 6 18M6 6l12 12"/>',
+ more: '<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>',
+ plus: '<path d="M5 12h14M12 5v14"/>',
+ trash: '<path d="M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6"/>',
+ text: '<path d="M17 6H3M21 12H3M15 18H3"/>',
+ comment: '<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/>',
+};
+
+function icon(name, color) {
+ const span = el("span", { class: "icon", style: color ? `color:${color}` : null });
+ span.innerHTML = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${ICONS[name]}</svg>`;
+ return span;
+}
+
+document.querySelectorAll("[data-icon]").forEach((n) => n.replaceWith(icon(n.dataset.icon)));
+
let toastTimer;
function toast(message) {
document.querySelector(".toast")?.remove();
@@ -234,18 +256,18 @@ function render() {
function renderNav() {
const { projects } = state.board;
const open = projects.reduce((n, p) => n + p.open, 0);
- const link = (slug, name, count, color) =>
+ const link = (slug, name, count, glyph) =>
el("a", { href: "#" + slug, class: state.project === slug ? "active" : null,
onclick: (e) => { e.preventDefault(); setProject(slug); } },
- color ? el("span", { class: "dot", style: `background:${color}` }) : null,
+ glyph,
el("span", { class: "name" }, name),
el("span", { class: "count" }, String(count)));
const item = (p) => el("div", { class: "item" + (state.menu === p.slug ? " menu-open" : "") },
- link(p.slug, p.name, p.open, projectColor(p.slug)),
+ link(p.slug, p.name, p.open, icon("folder", projectColor(p.slug))),
el("button", { class: "more", title: "More", "aria-label": `More for ${p.name}`, "aria-haspopup": "menu",
- onclick: (e) => toggleProjectMenu(p, e.currentTarget) }, "⋯"));
+ onclick: (e) => toggleProjectMenu(p, e.currentTarget) }, icon("more")));
$("#nav").replaceChildren(
- link("all", "All projects", open),
+ link("all", "All projects", open, icon("board")),
...(projects.length ? [el("div", { class: "label" }, "Projects")] : []),
...projects.map(item),
);
@@ -253,9 +275,6 @@ function renderNav() {
// ---------- project menu ----------
-const TRASH = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" ' +
- 'stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6"/></svg>';
-
// The "⋯" menu of a sidebar project. `state.menu` holds its slug, so the row keeps
// its highlight while the sidebar is redrawn by polling.
function toggleProjectMenu(p, button) {
@@ -264,10 +283,8 @@ function toggleProjectMenu(p, button) {
if (wasOpen) return;
state.menu = p.slug;
button.closest(".item").classList.add("menu-open");
- const icon = el("span", {});
- icon.innerHTML = TRASH;
const remove = el("button", { class: "danger", role: "menuitem", onclick: () => { closeMenu(); deleteProject(p); } },
- icon, "Delete project");
+ icon("trash"), "Delete project");
const menu = el("div", { class: "menu", role: "menu" }, remove);
document.body.append(menu);
const r = button.getBoundingClientRect();
@@ -348,7 +365,7 @@ function renderColumns() {
el("span", { class: "count" })),
el("div", { class: "cards" }),
);
- if (i === 0) col.append(el("div", { class: "add" }, el("button", { class: "ghost", onclick: newTask }, "+ Add task")));
+ if (i === 0) col.append(el("div", { class: "add" }, el("button", { class: "ghost", onclick: newTask }, icon("plus"), "Add task")));
wireDrop(col, col.querySelector(".cards"), status);
return col;
}));
@@ -391,8 +408,8 @@ function card(t, showProject) {
el("span", { class: "mono" }, key(t)),
showProject ? el("span", { class: "tag" }, el("span", { class: "dot", style: `background:${projectColor(t.project)}` }), t.project) : null,
el("span", { class: "spacer" }),
- t.description ? el("span", { title: "Has a description" }, "≡") : null,
- t.comments ? el("span", { title: `${t.comments} comments` }, `💬 ${t.comments}`) : null,
+ t.description ? el("span", { class: "icon", title: "Has a description" }, icon("text")) : null,
+ t.comments ? el("span", { class: "comments", title: `${t.comments} comments` }, icon("comment"), String(t.comments)) : null,
));
node.addEventListener("dragstart", (e) => {
state.dragging = t.id;
diff --git a/src/index.html b/src/index.html
index 9a03bd9..3094ad9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -7,185 +7,202 @@
<link rel="icon" href="/logo.png">
<style>
:root {
- --bg: #f7f7f5; --sidebar: #efefeb; --col: #ededea; --card: #ffffff; --panel: #ffffff;
- --text: #1f1f1c; --muted: #6d6d66; --faint: #9b9b93; --border: #dfdfd9; --hover: #e4e4df;
- --accent: #3b5bdb; --accent-text: #ffffff; --danger: #c92a2a; --shadow: 0 1px 2px rgba(0,0,0,.06);
- --drop: #3b5bdb; --code: #f1f1ed;
+ --bg: #ffffff; --sidebar: #f9f9f9; --col: #f7f7f7; --card: #ffffff; --card-hover: #f4f4f4; --panel: #ffffff;
+ --field: #f4f4f4; --hover: #ececec; --active: #e5e5e5; --menu: #ffffff;
+ --text: #0d0d0d; --muted: #5d5d5d; --faint: #8f8f8f; --border: #e5e5e5; --card-border: #ebebeb;
+ --accent: #0d0d0d; --accent-text: #ffffff; --danger: #dc2626; --danger-bg: rgba(220, 38, 38, .08);
+ --link: #2563eb; --code: #f2f2f2; --shadow: 0 10px 30px rgba(0,0,0,.12);
color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
:root {
- --bg: #181817; --sidebar: #131312; --col: #1e1e1c; --card: #272725; --panel: #20201e;
- --text: #e9e9e4; --muted: #a3a39b; --faint: #74746d; --border: #33332f; --hover: #2c2c29;
- --accent: #7d93ff; --accent-text: #0f1530; --danger: #ff8787; --shadow: 0 1px 2px rgba(0,0,0,.3);
- --drop: #7d93ff; --code: #2c2c29;
+ --bg: #000000; --sidebar: #000000; --col: #0b0b0b; --card: #171717; --card-hover: #1e1e1e; --panel: #0b0b0b;
+ --field: #171717; --hover: #1a1a1a; --active: #242424; --menu: #1c1c1c;
+ --text: #ececec; --muted: #a1a1a1; --faint: #6e6e6e; --border: #1f1f1f; --card-border: transparent;
+ --accent: #ffffff; --accent-text: #000000; --danger: #f87171; --danger-bg: rgba(248, 113, 113, .1);
+ --link: #7ab7ff; --code: #1c1c1c; --shadow: 0 10px 30px rgba(0,0,0,.6);
}
}
-* { box-sizing: border-box; }
+* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--active) transparent; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg); color: var(--text);
- font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
- display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden;
+ font: 14px/1.5 ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
+ -webkit-font-smoothing: antialiased;
+ display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
+/* No focus rings: fields and buttons show focus with their background instead. */
+:focus { outline: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
+.icon { display: inline-flex; flex: none; }
+.icon svg { width: 18px; height: 18px; display: block; }
+.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
/* Sidebar */
aside {
background: var(--sidebar); border-right: 1px solid var(--border);
- display: flex; flex-direction: column; min-height: 0; padding: 14px 8px;
+ display: flex; flex-direction: column; min-height: 0; padding: 12px 8px;
}
-.brand { font-weight: 650; font-size: 15px; padding: 2px 10px 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
-.brand img { width: 30px; height: 30px; margin: -6px 0; }
-.nav { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 1px; }
-.nav a {
- display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
- color: inherit; text-decoration: none; white-space: nowrap;
+.brand { font-weight: 600; font-size: 17px; padding: 4px 10px 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
+.brand img { width: 28px; height: 28px; margin: -4px 0; }
+.nav { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
+.ghost, .nav a {
+ display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
+ background: none; color: inherit; text-align: left; text-decoration: none; white-space: nowrap;
}
-.nav a:hover { background: var(--hover); }
-.nav a.active { background: var(--card); box-shadow: var(--shadow); font-weight: 550; }
+.ghost:hover, .ghost:focus-visible, .nav a:hover, .nav a:focus-visible { background: var(--hover); }
+.nav a.active { background: var(--active); }
.nav a .name { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.nav a .count { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
+.nav .label { color: var(--faint); padding: 18px 10px 6px; }
/* A project row: its "more" button takes the count's place on hover, like most sidebars. */
.nav .item { position: relative; }
.nav .more {
- position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: none;
- width: 24px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted);
- line-height: 1; font-size: 15px; letter-spacing: 1px;
+ position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none;
+ width: 28px; height: 28px; padding: 5px; border: 0; border-radius: 8px; background: none; color: var(--muted);
}
-.nav .more:hover, .nav .item.menu-open .more { background: var(--hover); color: var(--text); }
+.nav .more:hover, .nav .item.menu-open .more { color: var(--text); }
.nav .item:hover .more, .nav .item:focus-within .more, .nav .item.menu-open .more { display: block; }
.nav .item:hover .count, .nav .item:focus-within .count, .nav .item.menu-open .count { visibility: hidden; }
.nav .item.menu-open a { background: var(--hover); }
@media (hover: none) { .nav .more { display: block; } .nav .item .count { visibility: hidden; } }
.menu {
- position: fixed; z-index: 30; min-width: 170px; padding: 4px; background: var(--panel);
- border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
+ position: fixed; z-index: 30; min-width: 190px; padding: 6px; background: var(--menu);
+ border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
}
.menu button {
- display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px;
+ display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
background: none; text-align: left;
}
-.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
+.menu button:hover, .menu button:focus-visible { background: var(--hover); }
.menu button.danger { color: var(--danger); }
-.menu span { display: flex; }
-.menu svg { width: 16px; height: 16px; flex: none; }
-.nav .label { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 4px; }
-.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
-.ghost {
- background: none; border: 0; color: var(--muted); text-align: left;
- padding: 6px 10px; border-radius: 6px; width: 100%;
-}
-.ghost:hover { background: var(--hover); color: var(--text); }
-form.new-project { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
-form.new-project .row { display: flex; gap: 6px; }
+.menu button.danger:hover, .menu button.danger:focus-visible { background: var(--danger-bg); }
+form.new-project { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 10px; }
+form.new-project .row { display: flex; gap: 6px; margin-top: 2px; }
+
+/* Controls */
input.field, textarea.field, select.field {
- background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; width: 100%;
- outline: none;
+ background: var(--field); border: 0; border-radius: 12px; padding: 8px 12px; width: 100%;
}
-.field:focus { border-color: var(--accent); }
+.field::placeholder, .inline::placeholder { color: var(--faint); }
+select.field {
+ appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
+ background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
+}
+select.field:hover { background-color: var(--hover); }
.btn {
- border: 1px solid var(--border); background: var(--card); border-radius: 6px; padding: 5px 12px;
+ border: 0; background: var(--hover); border-radius: 99px; padding: 7px 16px; font-weight: 500;
}
-.btn:hover { background: var(--hover); }
-.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 550; }
-.btn.primary:hover { filter: brightness(1.08); }
-.btn.danger { color: var(--danger); }
+.btn:hover, .btn:focus-visible { background: var(--active); }
+.btn.primary { background: var(--accent); color: var(--accent-text); }
+.btn.primary:hover, .btn.primary:focus-visible { opacity: .85; }
+.btn.danger { background: none; color: var(--danger); padding-left: 12px; padding-right: 12px; }
+.btn.danger:hover, .btn.danger:focus-visible { background: var(--danger-bg); }
/* Main board */
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
header {
- display: flex; align-items: center; gap: 12px; padding: 14px 20px 12px; flex-wrap: wrap;
+ display: flex; align-items: center; gap: 12px; padding: 16px 24px 14px; flex-wrap: wrap; min-height: 64px;
}
header .info { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 0; }
+header h1 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
+header .sub { color: var(--muted); }
+header .sub a { color: inherit; text-decoration: none; }
+header .sub a:hover { color: var(--text); }
.search { display: flex; align-items: center; gap: 10px; }
.search .note { color: var(--faint); font-size: 12px; white-space: nowrap; }
-.search input { width: 220px; padding: 5px 10px; }
-header h1 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
-header .sub { color: var(--muted); }
-header .sub a { color: inherit; }
+.search label { position: relative; display: flex; align-items: center; }
+.search label .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
+.search label .icon svg { width: 16px; height: 16px; }
+.search input { width: 240px; padding: 7px 14px 7px 36px; border-radius: 99px; }
+.search input::-webkit-search-cancel-button { display: none; }
.columns {
- flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
- gap: 12px; padding: 0 20px 20px; overflow-x: auto;
+ flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
+ gap: 12px; padding: 0 24px 24px; overflow-x: auto;
}
.column {
- background: var(--col); border-radius: 10px; display: flex; flex-direction: column; min-height: 0;
+ background: var(--col); border-radius: 18px; display: flex; flex-direction: column; min-height: 0;
}
.column h2 {
- font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
- margin: 0; padding: 12px 12px 8px; display: flex; align-items: center; gap: 8px;
+ font-size: 13px; font-weight: 600; text-transform: capitalize; color: var(--muted);
+ margin: 0; padding: 14px 16px 10px; display: flex; align-items: center; gap: 8px;
}
-.column h2 .count { color: var(--faint); font-weight: 500; }
+.column h2 .count { color: var(--faint); font-weight: 400; }
.cards { flex: 0 1 auto; overflow-y: auto; padding: 2px 8px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 8px; }
.card {
- background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
- box-shadow: var(--shadow); cursor: grab; user-select: none;
+ background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 10px 12px;
+ cursor: grab; user-select: none; transition: background .1s;
}
-.card:hover { border-color: var(--faint); }
-.card.open { border-color: var(--accent); }
+.card:hover { background: var(--card-hover); }
+.card.open { background: var(--active); }
.card.dragging { opacity: .4; }
.card .title { overflow-wrap: anywhere; }
.card .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--faint); font-size: 12px; }
.card .meta .spacer { flex: 1; }
+.card .meta .icon svg { width: 14px; height: 14px; }
+.card .meta .comments { display: inline-flex; align-items: center; gap: 4px; }
.tag {
- display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted);
- border: 1px solid var(--border); border-radius: 99px; padding: 0 7px 0 6px;
+ display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
+ background: var(--hover); border-radius: 99px; padding: 1px 9px 1px 8px;
}
.tag .dot { width: 6px; height: 6px; }
-.drop-line { height: 2px; background: var(--drop); border-radius: 2px; margin: -4px 2px; }
+.drop-line { height: 2px; background: var(--text); border-radius: 2px; margin: -4px 4px; }
.add { padding: 0 8px 8px; }
+.add .ghost { color: var(--muted); }
+.add .ghost:hover { color: var(--text); }
.empty {
- margin: auto; text-align: center; color: var(--muted); max-width: 360px; padding: 40px 20px;
+ margin: auto; text-align: center; color: var(--muted); max-width: 380px; padding: 40px 20px;
}
-.empty h1 { color: var(--text); font-size: 18px; }
+.empty h1 { color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
/* Task panel */
.panel {
- position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--panel);
- border-left: 1px solid var(--border); box-shadow: -8px 0 30px rgba(0,0,0,.12);
- display: flex; flex-direction: column; transform: translateX(100%); transition: transform .16s ease-out;
+ position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--panel);
+ border-left: 1px solid var(--border); box-shadow: var(--shadow);
+ display: flex; flex-direction: column; transform: translateX(100%); transition: transform .18s ease-out;
z-index: 10;
}
.panel.shown { transform: none; }
+.panel .top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px 20px; }
+.panel .top .key { color: var(--muted); }
+.panel .top .spacer { flex: 1; }
+.panel .top .ghost { width: auto; padding: 6px; color: var(--muted); }
+.panel .top .ghost:hover { color: var(--text); }
/* The project, shown as a tag; picking another one moves the task. */
-.panel .project-pick { position: relative; }
.panel .project-pick select {
- appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0 2px 0 0; margin: 0;
- font-size: inherit; color: inherit; cursor: pointer; outline: none; field-sizing: content;
+ appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; margin: 0;
+ font-size: inherit; color: inherit; cursor: pointer; field-sizing: content;
}
-.panel .project-pick:hover, .panel .project-pick:focus-within { border-color: var(--faint); }
-.panel .top select { width: auto; padding: 2px 6px; font-size: 12.5px; }
-.panel .top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
-.panel .top .key { color: var(--muted); }
-.panel .top .spacer { flex: 1; }
-.panel .body { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
+.panel .project-pick:hover, .panel .project-pick:focus-within { background: var(--active); color: var(--text); }
+.panel .body { overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
/* The body scrolls instead; without this a long task squeezes the title and textareas to nothing. */
.panel .body > * { flex-shrink: 0; }
/* Title and description look like text and are edited in place. */
.panel .inline {
- border: 1px solid transparent; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 6px;
- width: calc(100% + 12px); resize: none; overflow: hidden; outline: none; display: block;
+ border: 0; background: none; padding: 6px 10px; margin: -6px -10px; border-radius: 10px;
+ width: calc(100% + 20px); resize: none; overflow: hidden; display: block;
}
-.panel .inline:hover { border-color: var(--border); }
-.panel .inline:focus { border-color: var(--accent); background: var(--card); }
-.panel .inline::placeholder { color: var(--faint); }
-.panel .title-input { font-size: 18px; font-weight: 650; }
-.panel .desc-input { min-height: 3.2em; }
-.props { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; align-items: center; color: var(--muted); }
-.props select { width: auto; padding: 3px 6px; }
+.panel .inline:hover, .panel .inline:focus { background: var(--hover); }
+.panel .title-input { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
+.panel .desc-input { min-height: 3.4em; }
+.props { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; align-items: center; color: var(--muted); }
+.props select { width: auto; padding: 4px 30px 4px 12px; border-radius: 99px; text-transform: capitalize; }
.props span { color: var(--text); }
.section h3 {
- font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px;
- display: flex; align-items: center; gap: 8px; font-weight: 600;
+ font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600;
+ display: flex; align-items: center; gap: 8px;
}
-.comment { border-top: 1px solid var(--border); padding: 10px 0; }
-.comment:first-child { border-top: 0; padding-top: 0; }
-.comment .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
+.section h3 .count { color: var(--faint); font-weight: 400; }
+.comment { padding: 10px 0; }
+.comment:first-child { padding-top: 0; }
+.comment .who { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.comment .who b { color: var(--text); font-weight: 600; }
-.new-comment textarea { min-height: 64px; resize: vertical; }
-.new-comment .actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--faint); font-size: 12px; }
+.new-comment { margin-top: 6px; }
+.new-comment textarea { min-height: 76px; resize: vertical; border-radius: 18px; padding: 12px 14px; }
+.new-comment .actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--faint); font-size: 12px; }
/* Rendered Markdown */
.md > :first-child { margin-top: 0; }
@@ -195,17 +212,17 @@ header .sub a { color: inherit; }
.md h1 { font-size: 17px; }
.md ul, .md ol { padding-left: 1.3em; }
.md li.check { list-style: none; margin-left: -1.3em; }
-.md code { background: var(--code); border-radius: 4px; padding: 1px 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
-.md pre { background: var(--code); border-radius: 6px; padding: 8px 10px; overflow-x: auto; }
+.md code { background: var(--code); border-radius: 6px; padding: 1px 5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
+.md pre { background: var(--code); border-radius: 12px; padding: 10px 12px; overflow-x: auto; }
.md pre code { padding: 0; background: none; }
-.md blockquote { border-left: 3px solid var(--border); padding-left: 10px; color: var(--muted); }
-.md a { color: var(--accent); }
+.md blockquote { border-left: 3px solid var(--active); padding-left: 10px; color: var(--muted); }
+.md a { color: var(--link); }
.toast {
- position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
- padding: 8px 14px; border-radius: 8px; z-index: 20; box-shadow: 0 4px 16px rgba(0,0,0,.2);
+ position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
+ padding: 9px 16px; border-radius: 99px; z-index: 20; box-shadow: var(--shadow); font-weight: 500;
}
-.offline { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 12px; z-index: 20; }
+.offline { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 12px; z-index: 20; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
@@ -213,11 +230,12 @@ header .sub a { color: inherit; }
aside { border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; }
.brand { padding-bottom: 6px; }
.nav { flex-direction: row; overflow-x: auto; }
+ .nav a { width: auto; }
.nav .label { display: none; }
#new-project-toggle, form.new-project { display: none; }
.columns { grid-auto-columns: minmax(78vw, 1fr); padding: 0 12px 12px; }
header { padding: 12px; }
- .search, .search input { width: 100%; }
+ .search, .search label, .search input { width: 100%; }
}
</style>
</head>
@@ -227,8 +245,7 @@ header .sub a { color: inherit; }
<img src="/logo.png" alt="">
Kanzo
</div>
- <nav class="nav" id="nav"></nav>
- <button class="ghost" id="new-project-toggle">+ New project</button>
+ <button class="ghost" id="new-project-toggle"><span class="icon" data-icon="newProject"></span>New project</button>
<form class="new-project" id="new-project" hidden>
<input class="field" name="slug" placeholder="slug, e.g. api" required autocomplete="off" pattern="[a-zA-Z0-9][a-zA-Z0-9\-]{0,31}" title="Letters, digits and -, up to 32">
<input class="field" name="name" placeholder="Name (optional)" autocomplete="off">
@@ -238,6 +255,7 @@ header .sub a { color: inherit; }
<button class="btn" type="button" id="new-project-cancel">Cancel</button>
</div>
</form>
+ <nav class="nav" id="nav"></nav>
</aside>
<main>
@@ -245,7 +263,7 @@ header .sub a { color: inherit; }
<div class="info" id="header"></div>
<div class="search" id="search-box" hidden>
<span class="note" id="search-note"></span>
- <input class="field" id="search" type="search" placeholder="Search tasks /" autocomplete="off" spellcheck="false" aria-label="Search tasks">
+ <label><span class="icon" data-icon="search"></span><input class="field" id="search" type="search" placeholder="Search tasks" autocomplete="off" spellcheck="false" aria-label="Search tasks" title="Search (/)"></label>
</div>
</header>
<div class="columns" id="columns"></div>
@@ -256,7 +274,7 @@ header .sub a { color: inherit; }
<span class="key mono" id="p-key"></span>
<span id="p-project"></span>
<span class="spacer"></span>
- <button class="ghost" style="width:auto" id="p-close" title="Close (Esc)">✕</button>
+ <button class="ghost" id="p-close" title="Close (Esc)" aria-label="Close"><span class="icon" data-icon="close"></span></button>
</div>
<div class="body">
<textarea class="inline title-input" id="p-title" rows="1" spellcheck="false" placeholder="Task title"></textarea>