refactor: move action button styles to shared app.css
- Extract .action-btn-circle styles to app.css for reuse - Remove duplicate button styles from ArtistDetailView and AlbumDetailView - Use theme-aware colors (--text-primary) instead of hardcoded white - Icons now use currentColor for theme compatibility
This commit is contained in:
1 parent
4b999c4561
commit
a87b8e11bb
3 files changed
+52
-81
No files matched your search
+46
@@ -346,3 +346,49 @@ select {
|
||||
.tabular-nums {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ============ Action Buttons ============ */
|
||||
/* Reusable circular action buttons for headers and toolbars */
|
||||
|
||||
.action-btn-circle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
|
||||
}
|
||||
|
||||
.action-btn-circle:hover:not(:disabled) {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
border-color: var(--text-primary);
|
||||
}
|
||||
|
||||
.action-btn-circle:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.action-btn-circle.primary {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--accent-primary);
|
||||
border: 2px solid var(--text-primary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.action-btn-circle.primary:hover {
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
.action-btn-circle.is-active {
|
||||
background: rgba(var(--accent-primary-rgb, 66, 133, 244), 0.15);
|
||||
border-color: var(--accent-primary);
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
Reference in new issue
Block a user