mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-10 02:24:35 +08:00
- Introduced styles for the help view including tab transitions, accordion animations, search highlighting, and responsive design. - Implemented core memory styles with modal base styles, memory card designs, and knowledge graph visualization. - Enhanced dark mode support across various components. - Added loading states and empty state designs for better user experience.
272 lines
5.1 KiB
CSS
272 lines
5.1 KiB
CSS
/* ========================================
|
|
* History View Styles
|
|
* ======================================== */
|
|
.history-view {
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
.history-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem 0;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 1px solid hsl(var(--border));
|
|
}
|
|
|
|
.history-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.history-count {
|
|
font-size: 0.8125rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.history-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.history-search-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.history-search-wrapper i {
|
|
position: absolute;
|
|
left: 0.625rem;
|
|
color: hsl(var(--muted-foreground));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.history-search-input {
|
|
padding: 0.5rem 0.75rem 0.5rem 2rem;
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: 0.5rem;
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
font-size: 0.8125rem;
|
|
width: 220px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.history-search-input:focus {
|
|
outline: none;
|
|
border-color: hsl(var(--primary));
|
|
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
|
|
width: 260px;
|
|
}
|
|
|
|
.history-search-input::placeholder {
|
|
color: hsl(var(--muted-foreground) / 0.7);
|
|
}
|
|
|
|
.history-filter-select {
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: 0.5rem;
|
|
background: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
font-size: 0.8125rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.history-filter-select:hover {
|
|
border-color: hsl(var(--primary) / 0.5);
|
|
}
|
|
|
|
.history-filter-select:focus {
|
|
outline: none;
|
|
border-color: hsl(var(--primary));
|
|
}
|
|
|
|
/* History List */
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.history-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
padding: 1rem;
|
|
background: hsl(var(--card));
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.history-item:hover {
|
|
background: hsl(var(--hover));
|
|
border-color: hsl(var(--primary) / 0.3);
|
|
box-shadow: 0 2px 8px hsl(var(--foreground) / 0.05);
|
|
}
|
|
|
|
.history-item:hover .history-item-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.history-item-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.history-item-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.history-tool-tag {
|
|
font-size: 0.625rem;
|
|
font-weight: 600;
|
|
padding: 0.1875rem 0.5rem;
|
|
border-radius: 9999px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.history-tool-tag.tool-gemini {
|
|
background: hsl(210 80% 55% / 0.12);
|
|
color: hsl(210 80% 45%);
|
|
}
|
|
|
|
.history-tool-tag.tool-qwen {
|
|
background: hsl(280 70% 55% / 0.12);
|
|
color: hsl(280 70% 45%);
|
|
}
|
|
|
|
.history-tool-tag.tool-codex {
|
|
background: hsl(142 71% 45% / 0.12);
|
|
color: hsl(142 71% 35%);
|
|
}
|
|
|
|
.history-tool-tag.tool-claude {
|
|
background: hsl(25 90% 50% / 0.12);
|
|
color: hsl(25 90% 40%);
|
|
}
|
|
|
|
.history-mode-tag {
|
|
font-size: 0.625rem;
|
|
font-weight: 500;
|
|
padding: 0.1875rem 0.5rem;
|
|
background: hsl(var(--muted));
|
|
color: hsl(var(--muted-foreground));
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.history-source-dir {
|
|
font-size: 0.625rem;
|
|
font-weight: 500;
|
|
padding: 0.1875rem 0.5rem;
|
|
background: hsl(var(--accent));
|
|
color: hsl(var(--accent-foreground));
|
|
border-radius: 0.25rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
max-width: 120px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.history-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-size: 0.625rem;
|
|
font-weight: 500;
|
|
padding: 0.1875rem 0.5rem;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.history-status.success {
|
|
background: hsl(var(--success) / 0.12);
|
|
color: hsl(var(--success));
|
|
}
|
|
|
|
.history-status.warning {
|
|
background: hsl(var(--warning) / 0.12);
|
|
color: hsl(var(--warning));
|
|
}
|
|
|
|
.history-status.error {
|
|
background: hsl(var(--destructive) / 0.12);
|
|
color: hsl(var(--destructive));
|
|
}
|
|
|
|
.history-item-prompt {
|
|
font-size: 0.875rem;
|
|
font-weight: 450;
|
|
color: hsl(var(--foreground));
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
line-height: 1.5;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.history-item-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
font-size: 0.6875rem;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.history-item-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.history-item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease;
|
|
margin-left: 0.75rem;
|
|
}
|
|
|
|
/* History Empty State */
|
|
.history-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4rem 2rem;
|
|
text-align: center;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.history-empty-state i {
|
|
opacity: 0.3;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.history-empty-state h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.history-empty-state p {
|
|
font-size: 0.8125rem;
|
|
}
|
|
|