From 96098a10a9f0fe384082530ea571c6de5683d70f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Nov 2026 22:14:43 -0800 Subject: [PATCH] Web: cleaner sidebar album art tile Co-Authored-By: Claude Opus 5.5 --- web/style.css | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/web/style.css b/web/style.css index 84fc23b..c8cef9c 100644 --- a/web/style.css +++ b/web/style.css @@ -44,16 +44,20 @@ svg { width: 1em; height: 1em; fill: currentColor; display: block; } #search input { width: 100%; margin: 10px 0; padding: 7px 10px; background: var(--raised); border: 1px solid transparent; border-radius: 4px; outline: none; } #search input:focus { border-color: var(--accent); } .settings-link { margin-top: 2px; } -#sideart { display: none; position: sticky; bottom: 0; z-index: 2; margin: auto -10px 0; box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); aspect-ratio: 1; background: var(--raised); overflow: hidden; } -#app.sideart #sideart { display: block; animation: sain .26s cubic-bezier(.2, .8, .2, 1); } -@keyframes sain { from { opacity: 0; transform: translateY(24px); } } -#sideart .sa-img { display: block; width: 100%; height: 100%; padding: 0; cursor: pointer; } -#sideart img { display: block; width: 100%; height: 100%; object-fit: cover; } +#sideart { display: none; position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 10px 0 12px; background: var(--panel); } +#sideart::before { content: ""; position: absolute; left: -10px; right: -10px; bottom: 100%; height: 28px; pointer-events: none; background: linear-gradient(to top, var(--panel), transparent); } +#app.sideart #sideart { display: block; animation: sain .28s cubic-bezier(.2, .8, .2, 1); } +@keyframes sain { from { opacity: 0; transform: translateY(16px); } } +#sideart .sa-img { display: block; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--raised); + box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent), 0 8px 22px rgba(0, 0, 0, .32); } +#sideart img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .8, .2, 1); } +#sideart .sa-img:hover img { transform: scale(1.035); } #sideart img:not([src]) { visibility: hidden; } -#sideart .sa-col { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; - background: rgba(0, 0, 0, .62); color: #fff; font-size: 18px; opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; } +#sideart .sa-col { position: absolute; top: 18px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; + background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s, background-color .15s; } +#sideart .sa-col svg { width: 18px; height: 18px; fill: #fff; } #sideart:hover .sa-col, #sideart .sa-col:focus-visible { opacity: 1; transform: none; } -#sideart .sa-col:hover { background: rgba(0, 0, 0, .85); } +#sideart .sa-col:hover { background: rgba(0, 0, 0, .8); } #view { overflow-y: auto; padding: 24px 32px 48px; background: var(--bg); } h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }