gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf7936c20f7936c20Lists keep their scroll position across a reload (jukebox#20): per-list offsets in storage/ui.json, gate jb20mref7936c20/components/styles.hl

1.7 KB

  1. // 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)
  2. // 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;
  3. // 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.
  4. inherit '../theme/theme.hl'
  5. import { var } from 'hl:web/css'
  6. import { yellow } from '../shared/tokens.hl'
  7. colorAccent = var(yellow)
  8. // Route-parameter Style startup gap: retained here as documented in reports/ST1.
  9. jbTabs {
  10. display = 'flex'
  11. gap = '.4rem'
  12. paddingBottom = '.25rem'
  13. // Keep the quoted class selector and its original specificity.
  14. 'button.on' {
  15. color = 'var(--color-accent-text)'
  16. background = 'var(--color-accent)'
  17. }
  18. }
  19. jbHead {
  20. display = 'block'
  21. padding = '.25rem .6rem .75rem'
  22. h1 {
  23. margin = '0'
  24. fontSize = '1.3rem'
  25. }
  26. p {
  27. margin = '.1rem 0 0'
  28. color = 'var(--color-text-muted)'
  29. }
  30. img {
  31. display = 'block'
  32. width = 'min(100%, 18rem)'
  33. aspectRatio = '1 / 1'
  34. margin = '0 auto .75rem'
  35. objectFit = 'cover'
  36. borderRadius = 'var(--radius-large)'
  37. background = 'var(--color-surface)'
  38. }
  39. // Keep the quoted class selector and its original specificity.
  40. '.jb-nocover' {
  41. display = 'block'
  42. width = 'min(100%, 18rem)'
  43. aspectRatio = '1 / 1'
  44. margin = '0 auto .75rem'
  45. objectFit = 'cover'
  46. borderRadius = 'var(--radius-large)'
  47. background = 'var(--color-surface)'
  48. }
  49. button {
  50. minHeight = '2.25rem'
  51. padding = '.2rem .9rem'
  52. margin = '.5rem 0 0'
  53. }
  54. }
  55. // Keep the quoted class selector and its original specificity.
  56. 'jb-head.jb-album' { textAlign = 'center' }

Branches

Latest commits

  • f7936c20Lists keep their scroll position across a reload (jukebox#20): per-list offsets in storage/ui.json, gate jb20mre
  • d67906devirtual-list and icons from components.hybriel e5b98ec (centerId, scrollTop, onScroll)mre
  • df7920ceRecords: R3 startedmre
  • 0549f038Mission 010: jb20 livemre
  • 273494e2STATUS rewrittenmre
  • 227c9b96Records: jb19 livemre
  • 9f365376README: the bar's controls (jb19)mre
  • d18851fdjb19: pressed switches look different (whole selector), queue column cannot widen past the panel, gates follow the new bar (jb3, jb11, jb15)mre
  • 82b54c0ejb19: bar Shuffle · Previous · Play · Next · Repeat, no 10 s buttons; Shuffle switch (shuffle from the playing song, back to the list), Repeat off/all/one, both remembered in ui.json; Shuffle my favourites an ordinary button; gate tests/jb19.mjsmre
  • ba354710jb19: icons pinned to components.hybriel 46fefaa (shuffle, repeat, repeatOne, prevTrack, nextTrack)mre
  • d8e8d059jb19 step 2: media-player from components.hybriel c96709c (skip, repeat options; the end of a song only calls onPlay), sync-components.sh and SOURCE point to it, jb11 counts media loads and metadata writes (from jb21 d3a026e)mre
  • 7b048c1bRecords: jb19 done, L2 live stepmre
  • 665185aeMission 009: jb19 livemre
  • 47b2d3beRecords: P1 resumedmre
  • 8e326e94Records: resetKey blockedmre
  • f72dd7edRecords: icons comingmre
  • b264e5deRecords: P1 icons stopmre
  • 514d7cbeRecords: mission 008 startedmre
  • 61c40127Mission 008: #19 + #21mre
  • 6dcaeb46Records: resetKey planmre