jukebox
All repositories: gitoria
1.6 KB
// components/styles.hl — the app's own CSS that belongs to no component: the WorldAPI theme (theme/theme.hl, copied verbatim from layouts.worldapi.org; never edited here)// and the app accent. Every component carries its own styles in a Style {} block in its own file (main.hl: the shell, the screen frame, the player bar and the overlay;// songs.hl: the toolbar and the count line; album.hl: the album and artist head; artist.hl: the tabs; search.hl: the artist and album hits). No plain page element is styled here.inherit '../theme/theme.hl'import { var } from 'hl:web/css'import { yellow } from '../shared/tokens.hl'colorAccent = var(yellow)// GAP (hl:web): a Style {} block in artist.hl or album.hl (pages with a route parameter) aborts the start, see reports/ST1 repro. Until it is fixed the artist tabs and the album / artist head stay here.'jb-tabs' { display = 'flex' gap = '.4rem' paddingBottom = '.25rem' }'jb-tabs button.on' { color = 'var(--color-accent-text)' background = 'var(--color-accent)' }// the head of an artist or an album, above the rows (it scrolls away with them)'jb-head' { display = 'block' padding = '.25rem .6rem .75rem' }'jb-head h1' { margin = '0' fontSize = '1.3rem' }'jb-head p' { margin = '.1rem 0 0' color = 'var(--color-text-muted)' }'jb-head img, jb-head .jb-nocover' { display = 'block' width = 'min(100%, 18rem)' aspectRatio = '1 / 1' margin = '0 auto .75rem' objectFit = 'cover' borderRadius = 'var(--radius-large)' background = 'var(--color-surface)' }'jb-head.jb-album' { textAlign = 'center' }'jb-head button' { minHeight = '2.25rem' padding = '.2rem .9rem' margin = '.5rem 0 0' }
Branches
Latest commits
- 63d0f2eejukebox ST1 (jukebox#2): styles of main, songs and search moved into their own Style blocks (styles.hl 81 to 8 rules, pixel-identical at 390 and 1280); artist and album wait for an hl:web fixmre
- c5b8fde9jukebox JB3b: keyboard gap repro as a reportmre
- 9daebb4bjukebox JB3b: shuffle, now-playing overlay, next and previous, play counting, media session, gates; keyboard left open (Hybriel gap)mre
- 59c1373ejukebox JB3 (work in progress): albums without folder and with disc markers folded, compilations, duplicate songs, own play counter, server-side shuffle queuemre
- 2a4cfc55jukebox: library screens (songs, artists, albums, artist, album, search, favourites), compact player bar, /stream with Range, thumbnails, virtual list vendored, ui gate and real-library checkmre
- 93a44212jukebox: report, numbers of the full scan, notes on the index key rulemre
- bf5167dajukebox: index keys without commas (mpackdb loses them after a reopen), comma fixture and gate checksmre
- 28a82fa2jukebox: README, STATUS, LOG, DECISIONSmre
- d13987dfjukebox: library scanner, ID3 reader, mpackdb database and JSON API, with fixtures and a gatemre