fix(css): use box-shadow for action button anti-aliasing
Apply same anti-aliasing technique to .action-btn-circle classes used in AlbumView and ArtistView headers. Replace border with inset box-shadow for smoother circular edges.
This commit is contained in:
1 parent
83732131ad
commit
af61610f89
1 file changed
+10
-7
+10
-7
@@ -400,6 +400,7 @@ select {
|
||||
|
||||
/* ============ Action Buttons ============ */
|
||||
/* Reusable circular action buttons for headers and toolbars */
|
||||
/* Uses box-shadow inset instead of border for smoother anti-aliasing */
|
||||
|
||||
.action-btn-circle {
|
||||
display: flex;
|
||||
@@ -408,17 +409,18 @@ select {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-strong);
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
|
||||
box-shadow: inset 0 0 0 1px var(--border-strong);
|
||||
transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
|
||||
}
|
||||
|
||||
.action-btn-circle:hover:not(:disabled) {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text-primary);
|
||||
border-color: var(--text-primary);
|
||||
box-shadow: inset 0 0 0 1px var(--text-primary);
|
||||
}
|
||||
|
||||
.action-btn-circle:disabled {
|
||||
@@ -430,18 +432,19 @@ select {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--accent-primary);
|
||||
border: 2px solid var(--border-subtle);
|
||||
border: none;
|
||||
color: var(--text-primary);
|
||||
transition: background 150ms ease, border-color 200ms ease;
|
||||
box-shadow: inset 0 0 0 2px var(--border-subtle);
|
||||
transition: background 150ms ease, box-shadow 200ms ease;
|
||||
}
|
||||
|
||||
.action-btn-circle.primary:hover {
|
||||
background: var(--accent-hover);
|
||||
border-color: var(--text-primary);
|
||||
box-shadow: inset 0 0 0 2px var(--text-primary);
|
||||
}
|
||||
|
||||
.action-btn-circle.is-active {
|
||||
background: rgba(var(--accent-primary-rgb, 66, 133, 244), 0.15);
|
||||
border-color: var(--accent-primary);
|
||||
box-shadow: inset 0 0 0 1px var(--accent-primary);
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
Reference in new issue
Block a user