Files
obelisk/app/renderer/styles/toolbar.css
T
tommy0103 9fc7f202f0 feat(app): add weekly recap cards with swipeable story UI and export
Introduce a Spotify-Wrapped-style recap feature: five themed cards
  (Cover, Path, Vibe, Workflow, Closing) rendered per archetype palette,
  with keyboard/swipe navigation and image export via capture IPC. Add
  RecapList, RecapDetail, RecapExport views and recap component library.
  Wire recap:list/read/updated IPC channels through preload, document the
  retrieval-to-card contract in references/recap-patterns.md, and bundle
  dist-renderer for production use.
2026-06-14 03:16:49 +08:00

112 lines
4.8 KiB
CSS

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.toolbar {
height: 44px; flex-shrink: 0;
display: flex; align-items: center; gap: 10px;
padding: 0 14px;
border-bottom: 1px solid var(--hairline-strong);
background: rgba(0,0,0,0.15);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.breadcrumb { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crumb {
font-size: var(--text-md); color: var(--muted);
padding: 4px 6px; border-radius: 4px;
cursor: pointer; transition: all 0.1s;
display: inline-flex; align-items: center; gap: 6px;
line-height: 1; border: 0; background: transparent;
white-space: nowrap; text-decoration: none;
}
.crumb:hover { background: var(--surface-strong); color: var(--fg-2); }
.crumb.terminal { color: var(--fg); font-weight: 600; cursor: default; }
.crumb.terminal:hover { background: transparent; }
.crumb svg { width: 13px; height: 13px; color: var(--muted); }
.crumb.filename {
font-family: var(--font-mono); font-weight: 500; color: var(--fg);
overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.crumb-sep { color: var(--muted-2); font-size: var(--text-md); user-select: none; }
.toolbar-spacer { flex: 1; }
.toolbar-search { width: 220px; position: relative; }
.toolbar-search input {
width: 100%; height: 26px;
padding: 0 30px 0 26px;
border: 1px solid var(--hairline); border-radius: 5px;
background: var(--surface);
font-size: var(--text-base); color: var(--fg);
transition: all 0.12s;
}
.toolbar-search input::placeholder { color: var(--muted-2); }
.toolbar-search input:focus {
outline: 0; border-color: var(--accent);
background: var(--surface-strong);
box-shadow: 0 0 0 2px var(--accent-soft);
}
.toolbar-search-icon {
position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
width: 12px; height: 12px; color: var(--muted); pointer-events: none;
}
.toolbar-search-kbd {
position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
font-family: var(--font-mono); font-size: 10px; color: var(--muted-2);
padding: 1px 5px;
border: 1px solid var(--hairline); border-radius: 3px;
pointer-events: none; line-height: 1.2;
}
.toolbar-search input:focus ~ .toolbar-search-kbd,
.toolbar-search input:not(:placeholder-shown) ~ .toolbar-search-kbd { opacity: 0; }
.filter-toggle {
height: 26px; width: 26px; border-radius: 5px;
color: var(--muted); display: inline-grid; place-items: center;
transition: all 0.1s; border: 1px solid transparent;
}
.filter-toggle:hover { color: var(--fg-2); background: var(--surface-strong); }
.filter-toggle.active { color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent-soft); }
.filter-toggle svg { width: 13px; height: 13px; }
.sort-group {
display: inline-flex; align-items: center; gap: 2px;
height: 26px; padding: 0 4px 0 8px;
border-radius: 5px; cursor: pointer;
color: var(--muted); font-size: var(--text-sm);
transition: background 0.1s, color 0.1s;
}
.sort-group:hover { background: var(--surface-strong); color: var(--fg-2); }
.sort-group .label { font-family: var(--font-mono); letter-spacing: 0.02em; }
.sort-group svg { width: 13px; height: 13px; }
.sort-group .arrow-up, .sort-group .arrow-down { transition: opacity 0.12s; }
.sort-group.desc .arrow-up { opacity: 0.25; }
.sort-group.desc .arrow-down { opacity: 1; }
.sort-group.asc .arrow-up { opacity: 1; }
.sort-group.asc .arrow-down { opacity: 0.25; }
.tab-group {
display: inline-flex;
border: 1px solid var(--hairline-strong); border-radius: 5px;
overflow: hidden; height: 26px;
}
.tab-group button {
padding: 0 12px; font-size: 12px; color: var(--muted);
border: none; background: none; cursor: pointer;
border-right: 1px solid var(--hairline-strong);
display: inline-flex; align-items: center; transition: all 0.1s;
font-family: inherit;
}
.tab-group button:last-child { border-right: 0; }
.tab-group button:hover { background: var(--surface); color: var(--fg-2); }
.tab-group button.active { background: var(--accent-soft); color: var(--accent-2); }
.toolbar-action-primary {
display: inline-flex; align-items: center; gap: 5px;
height: 26px; padding: 0 12px;
border: 1px solid rgba(167,139,250,0.35); border-radius: 5px;
background: var(--accent-soft); color: var(--accent-2);
font-size: 12px; font-weight: 500; cursor: pointer;
transition: all 0.12s;
}
.toolbar-action-primary:hover {
background: rgba(167,139,250,0.18); border-color: var(--accent);
color: var(--fg); box-shadow: 0 0 12px rgba(167,139,250,0.20);
}
.toolbar-action-primary .plus { font-size: 14px; line-height: 1; opacity: 0.8; font-weight: 400; }