mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
Album covers, logos and descriptions from the web
- Search online from an album's Edit dialog: covers from TheAudioDB, Deezer, Apple Music and the Cover Art Archive, logos from Wikidata, Wikimedia Commons and the artist's TheAudioDB logo, and a Wikipedia page for the description - Album pages show the logo and an About section, looked up automatically when "Find artist and album info" is on - Your own logo file and About text, kept in albums.json - Clean no longer deletes artist or album logos; backups include them - Artist pages credit the real bio source - Home shelves show exactly one row instead of peeking into a second - Window buttons use the native Windows icon font so they stay sharp at any display scale - Web requests identify Atmosphere with its repo link
This commit is contained in:
+31
-2
@@ -776,7 +776,7 @@ label.setting { cursor: pointer; }
|
||||
.tb-drag { min-width: 0; }
|
||||
.tb-controls { display: flex; }
|
||||
.tb-btn { width: 46px; height: var(--titlebar); display: grid; place-items: center; color: var(--text-2); transition: background-color 100ms var(--ease), color 100ms var(--ease); }
|
||||
.tb-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; shape-rendering: crispEdges; }
|
||||
.tb-glyph { font: 10px/1 "Segoe Fluent Icons", "Segoe MDL2 Assets"; }
|
||||
.tb-btn:hover { background: var(--hover); color: var(--text); }
|
||||
.tb-btn:active { background: var(--press); }
|
||||
.tb-btn.close:hover { background: #c42b1c; color: #fff; }
|
||||
@@ -1115,7 +1115,19 @@ body.mini-mode > *:not(#mini):not(.toasts):not(.modal-wrap):not(script) { displa
|
||||
.home-hint { margin: 0; }
|
||||
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
|
||||
.sec-row .sec { margin: 0; }
|
||||
.grid.shelf { grid-template-rows: auto; grid-auto-rows: 0; overflow: hidden; row-gap: 0; padding: var(--s2); margin: calc(var(--s2) * -1); }
|
||||
.shelf-sec { container-type: inline-size; min-width: 0; }
|
||||
.grid.shelf { padding: var(--s2); margin: calc(var(--s2) * -1); }
|
||||
@container (width < 2192px) { .grid.shelf > :nth-child(n+12) { display: none; } }
|
||||
@container (width < 2008px) { .grid.shelf > :nth-child(n+11) { display: none; } }
|
||||
@container (width < 1824px) { .grid.shelf > :nth-child(n+10) { display: none; } }
|
||||
@container (width < 1640px) { .grid.shelf > :nth-child(n+9) { display: none; } }
|
||||
@container (width < 1456px) { .grid.shelf > :nth-child(n+8) { display: none; } }
|
||||
@container (width < 1272px) { .grid.shelf > :nth-child(n+7) { display: none; } }
|
||||
@container (width < 1088px) { .grid.shelf > :nth-child(n+6) { display: none; } }
|
||||
@container (width < 904px) { .grid.shelf > :nth-child(n+5) { display: none; } }
|
||||
@container (width < 720px) { .grid.shelf > :nth-child(n+4) { display: none; } }
|
||||
@container (width < 536px) { .grid.shelf > :nth-child(n+3) { display: none; } }
|
||||
@container (width < 352px) { .grid.shelf > :nth-child(n+2) { display: none; } }
|
||||
.tile-mosaic { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
|
||||
.tile-mosaic img, .tile-mosaic .cover { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
|
||||
.tile-img.ph { display: grid; place-items: center; background: var(--surface); color: var(--text-3); }
|
||||
@@ -1239,6 +1251,23 @@ body.mini-mode > *:not(#mini):not(.toasts):not(.modal-wrap):not(script) { displa
|
||||
.pick-logo img { width: 100%; height: 56px; object-fit: contain; }
|
||||
.pick-logo.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
|
||||
|
||||
/* album cover picker, logo and about */
|
||||
.row.wrap { flex-wrap: wrap; }
|
||||
.modal:has(.pick-covers) { max-width: 760px; }
|
||||
.pick-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s2); }
|
||||
.pick-cover { display: grid; gap: 3px; padding: 6px; border-radius: 10px; border: 2px solid transparent; text-align: left; min-width: 0; }
|
||||
.pick-cover:hover { background: var(--hover); }
|
||||
.pick-cover.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
|
||||
.pick-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
|
||||
.pick-cover span { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pick-cover small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pick-logos > p { grid-column: 1 / -1; margin: 0; }
|
||||
.pick-logo { grid-template-columns: minmax(0, 1fr); min-width: 0; }
|
||||
.pick-logo span, .pick-logo small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pick-logo small { margin-top: -4px; font-size: 11px; color: var(--text-3); }
|
||||
.album-logo { max-height: 88px; }
|
||||
.album-about { margin-top: var(--s8); }
|
||||
|
||||
/* update notice */
|
||||
.update-notice { position: fixed; right: var(--s5); bottom: 100px; z-index: 95; width: min(380px, calc(100vw - 32px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: start; padding: var(--s4); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: menuIn 200ms var(--ease); }
|
||||
.update-notice.out { opacity: 0; transform: translateY(6px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
|
||||
|
||||
Reference in New Issue
Block a user