Style asset inputs on the capture form
Add proper CSS for the asset name inputs, the × remove button (small
circular ghost button), and the + Add asset link (accent-coloured text
button, left-aligned). Removes the non-existent btn-small class.
diff --git a/lib/views/capture.rb b/lib/views/capture.rb
index 2fbbfcd..81006b3 100644
--- a/lib/views/capture.rb
+++ b/lib/views/capture.rb
@@ -138,7 +138,7 @@ module Domus
end
button(
type: "button",
- class: "btn btn-ghost btn-small",
+ class: "asset-add-btn",
"@click": "assetNames.push('')"
) { plain "+ Add asset" }
end
diff --git a/public/app.css b/public/app.css
index d12ebec..81b30f2 100644
--- a/public/app.css
+++ b/public/app.css
@@ -232,6 +232,81 @@ html, body {
.btn-row .btn-primary { flex: 1; }
+/* ---- asset inputs ---- */
+.asset-inputs {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-xs);
+}
+
+.asset-inputs-label {
+ margin: 0;
+ font-size: var(--step--1);
+ color: var(--ink-3);
+ font-weight: 500;
+}
+
+.asset-input-row {
+ display: flex;
+ gap: var(--space-2xs);
+ align-items: center;
+}
+
+.asset-input-row input[type="text"] {
+ flex: 1;
+ min-width: 0;
+ padding: var(--space-2xs) var(--space-xs);
+ border: 1px solid var(--line-2);
+ border-radius: calc(var(--radius) - 2px);
+ font-family: var(--font-ui);
+ font-size: var(--step-0);
+ color: var(--ink);
+ background: var(--surface);
+ outline: none;
+}
+
+.asset-input-row input[type="text"]:focus {
+ border-color: var(--accent);
+ box-shadow: 0 0 0 2px var(--accent-soft);
+}
+
+.btn-remove-asset {
+ flex: none;
+ width: 28px;
+ height: 28px;
+ padding: 0;
+ border: none;
+ border-radius: 50%;
+ background: transparent;
+ color: var(--ink-3);
+ font-size: var(--step-0);
+ line-height: 1;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: background .12s ease, color .12s ease;
+}
+
+.btn-remove-asset:hover {
+ background: var(--fill-2);
+ color: var(--ink);
+}
+
+.asset-add-btn {
+ align-self: flex-start;
+ padding: 0;
+ border: none;
+ background: transparent;
+ font-family: var(--font-ui);
+ font-size: var(--step--1);
+ font-weight: 550;
+ color: var(--accent-ink);
+ cursor: pointer;
+}
+
+.asset-add-btn:hover { text-decoration: underline; }
+
/* ---- svg icons ---- */
.icon { flex: none; }