gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit95f5faae95f5faae|||PR jukebox#7 Drop needless let declarationsmre95f5faae/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

  • 95f5faae|||PR jukebox#7 Drop needless let declarationsmre
  • 33072bb5|||PR Record day72 gates and Chrome proofmre
  • 95f2cd73|||PR Use typed parent methods for screen playback and local server facesmre
  • 6422a020Sync media-player at 51c3818mre
  • b582ba1cVendor complete Hybriel day72 plugin setmre
  • 02dccbc9Merge branch 'records-1119' into mainJukebox
  • a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
  • fc7db075Merge branch 'reconnect-retry' into mainJukebox
  • ac6f4c6fL2: plain declaration for a in pickedNextmre
  • 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
  • 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
  • 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
  • 1f0cd77bMerge branch 'records-day41' into mainJukebox
  • 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
  • 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
  • 04f5d9d5Merge branch 'day41' into mainJukebox
  • 8ed6da45|||PR README: media-player pin df9e7dfmre
  • d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre
  • 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
  • 1fecd6a7Merge branch 'records-day39' into mainJukebox