gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita8098271a8098271Mission 004: jukebox#21mrea8098271/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

  • a8098271Mission 004: jukebox#21mre
  • df8f5205Records: jukebox#19-21, #11 closedmre
  • b7a4e692Records: hybriel#298mre
  • 9bcbb017Records: day38b waits for day39 fixmre
  • f80504e1Records: day38b repro sentmre
  • 8048258bRecords: day38b jb3 regression, L1 Chromes stoppedmre
  • 68aace7fRecords: mission 003 day38bmre
  • d105d8a9Records: mpackdb integrity check cleanmre
  • 6e980c53Records: mpackdb rule refinementmre
  • 6d335ac4Records: storage copy rulingmre
  • 7eb2898dRecords: mpackdb second-opener rule until day38mre
  • b011f98eRecords: style form live on day35mre
  • 60d90cb2Records: L1 woken for the restartmre
  • 75ae544fRecords: restart waits for the connection to closemre
  • e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
  • f2b5db98styles: format styles with nested rules and bare queriesmre
  • f036bab4search: format styles with nested rules and bare queriesmre
  • ef9a9d4asongs: format styles with nested rules and bare queriesmre
  • f22f9aacmain: format styles with nested rules and bare queriesmre
  • f56cd7c7Sync icons from 8176eb1 and verify mixed component sourcesmre