gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf2b00674f2b00674Merge t26 (tracker#26 + #28) into main (mission 062): short ids for every new person (castPersonId, guest route), guest stars stored on the title and created as people only when opened (/person/tmdb/<id>?show=<id> → 302), lean watch/follow clicks (showRow a small object, cast/crew from the slug, watches cached per user, face rows only after a season toggle); gate 311, tests/realdata-062.mjs, README + STATUSmref2b00674/styles.hl

26.4 KB

  1. // styles.hl — all of the app's CSS, served as /__hl/app.css. Components carry no Style
  2. // blocks: markup is domain tags, this file lays them out.
  3. //
  4. // TOKENS: the WorldAPI palette + semantic tokens are declared in `shared/tokens.hl` as
  5. // hl:web css variables, vendored verbatim from ident.worldapi.org (see that project's
  6. // README "Design tokens"). This file imports the tokens it uses and writes them as members;
  7. // the app sets only its accent (greenDark, per CONCEPT.md / antcolony README "look and style").
  8. //
  9. // In a styles file a bare name is a TAG (camelCase -> kebab: `emptyState` is `empty-state`),
  10. // a quoted name is a selector written verbatim. MOBILE FIRST (mission 047, the creator: "style is
  11. // supposed to be mobile first"): every rule outside a block is the PHONE's (390 px wide); the
  12. // `@media (min-width: 40rem)` block at the bottom only ADDS what a wider screen changes. Nothing
  13. // here may make a 390 px page scroll sideways, and the header stays ONE row (the gate checks both).
  14. import { var } from 'hl:web/css'
  15. import { greenDark, colorText, colorBackground, colorTextStrong, colorBackgroundSunken, colorTextMuted, colorAccentText, colorBorder, colorDanger, colorSurface, orange, blueDark } from './shared/tokens.hl'
  16. colorAccent = var(greenDark) // the app's accent: the only token this app sets
  17. // tracker.worldapi.org#4: genre pills in blue; artists orange (mission 047, the creator: "orange, not red") — the raw
  18. // palette tokens (like the accent above), not the semantic `colorDanger`/`colorAction` (this isn't a
  19. // warning or an action, just the creator's chosen colour for these two kinds of link/pill)
  20. colorArtist = var(orange)
  21. colorGenre = var(blueDark)
  22. '*,
  23. *::before,
  24. *::after' { boxSizing = 'border-box' }
  25. html { colorScheme = 'dark' }
  26. body { margin = '0' font = '16px/1.5 system-ui, sans-serif' color = colorText background = colorBackground }
  27. a { color = colorAccent textDecoration = 'none' }
  28. 'a:hover' { textDecoration = 'underline' }
  29. h1 { margin = '0 0 .8rem' fontSize = '1.2rem' lineHeight = '1.3' color = colorTextStrong }
  30. button { font = 'inherit' fontWeight = '600' padding = '.4rem .9rem' color = colorAccentText background = colorAccent border = '0' borderRadius = '.4rem' cursor = 'pointer' }
  31. 'button:hover' { filter = 'brightness(1.1)' }
  32. 'button.quiet' { color = colorText background = 'transparent' border = '0' }
  33. // the ONLY buttons with a border are inverted ones (creator: "no borders for the buttons unless they are inverted")
  34. 'button.inverted' { color = colorAccent background = 'transparent' border = '1px solid ' + colorAccent }
  35. 'button.quiet:hover' { background = colorSurface filter = 'none' }
  36. // the header is ONE row on a phone: brand left, ident selector + "Log out" right, never wrapping — the
  37. // user box may shrink (minWidth 0), the brand may not
  38. applicationHeader { position = 'sticky' top = '0' zIndex = '5' display = 'flex' flexWrap = 'nowrap' alignItems = 'center' gap = '.5rem' padding = '.45rem .75rem' background = colorBackgroundSunken }
  39. 'application-header .brand' { flex = 'none' fontWeight = '100' fontSize = '1.15rem' lineHeight = '1.2' color = colorAccent }
  40. main { display = 'block' maxWidth = '60rem' margin = '0 auto' padding = '.8rem .75rem' }
  41. // ---- login (top right of the header), copied from calendar.worldapi.org's styles.hl -------------
  42. userBox { display = 'flex' alignItems = 'center' gap = '.25rem' marginLeft = 'auto' minWidth = '0' }
  43. '#logout' { flex = 'none' padding = '.3rem .5rem' fontSize = '.9rem' }
  44. 'a.button' { display = 'inline-block' padding = '.35rem .8rem' fontWeight = '600' color = colorAccentText background = colorAccent borderRadius = '.4rem' }
  45. 'a.button:hover' { textDecoration = 'none' filter = 'brightness(1.1)' }
  46. identSelector { '--ident-accent' = colorAccent '--ident-accent-text' = colorAccentText '--ident-background' = colorSurface '--ident-border' = colorBorder '--ident-font' = '600 .85rem/1.4 system-ui, sans-serif' minWidth = '0' }
  47. 'ident-selector::part(button)' { padding = '.3rem .6rem' border = 'none' whiteSpace = 'nowrap' }
  48. 'ident-selector::part(status)' { padding = '.3rem .6rem' border = 'none' }
  49. 'ident-selector::part(identity)' { border = 'none' }
  50. // signed out on a phone (mission 056): the selector (nowrap above) and "Log in" never wrap their text — one header row down
  51. // to 320 px (a selector key may appear only ONCE per block: a second one replaces the first)
  52. '#loginbutton' { flex = 'none' whiteSpace = 'nowrap' padding = '.3rem .6rem' fontSize = '.85rem' }
  53. '#loginbutton .wide' { display = 'none' }
  54. '.message' { color = colorDanger }
  55. '.muted' { color = colorTextMuted }
  56. '.message.banner' { margin = '0' padding = '.5rem .75rem' background = colorBackgroundSunken }
  57. 'p.message:empty' { display = 'none' }
  58. // ---- offline (tracker.worldapi.org#10, components/main.hl): the note under the header, and the probe whose endless
  59. // animation is the shell's 1 s tick (it must be rendered for the animation to run — not display none — so: invisible)
  60. offlineNote { display = 'block' padding = '.5rem .75rem' color = colorTextStrong background = colorSurface }
  61. netProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-net-tick 1s linear infinite' }
  62. '@keyframes tracker-net-tick' = {
  63. 'from' = { opacity = '0' }
  64. to = { opacity = '0' }
  65. }
  66. // ---- /shows/:slug (tracker.worldapi.org#4) --------------------------------------------------
  67. showPage { display = 'block' }
  68. // phone (mission 047, the creator): the title (+ Follow) first, then the poster at the full content width, then genres,
  69. // plot, cast — `showMeta` dissolves (display contents) so its title row can go before the poster (order -1). From 40rem
  70. // the creator's desktop layout: poster left (10rem), right of it the title and the rest.
  71. showHeader { display = 'flex' flexDirection = 'column' gap = '.6rem' marginBottom = '1.2rem' }
  72. showPoster { display = 'block' width = '100%' }
  73. 'show-poster img' { display = 'block' width = '100%' height = 'auto' borderRadius = '.4rem' aspectRatio = '2 / 3' objectFit = 'cover' background = colorSurface }
  74. // mission 060 (tracker.worldapi.org#27): the short id under the poster (and the person's photo) — small, muted, monospace; one
  75. // click selects all of it
  76. shortIdLabel { display = 'block' marginTop = '.3rem' font = '400 .8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' letterSpacing = '.05em' color = colorTextMuted textAlign = 'center' userSelect = 'all' }
  77. 'person-meta short-id-label' { textAlign = 'left' }
  78. showMeta { display = 'contents' overflowWrap = 'anywhere' }
  79. showTitle { order = '-1' display = 'flex' alignItems = 'center' gap = '.6rem' }
  80. 'show-title h1' { flex = '1' minWidth = '0' margin = '0' }
  81. 'button.follow' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  82. 'button.follow.inverted' { padding = 'calc(.3rem - 1px) calc(.8rem - 1px)' }
  83. // tracker.worldapi.org#12: the show on TMDB / IMDb / TheTVDB / TVmaze — small monochrome badges (CSS only, no copied
  84. // logos), muted like the other secondary text, the accent on hover. Phone: right under the title row (order -1, after it
  85. // in the markup), above the full-width poster.
  86. showLinks { order = '-1' display = 'flex' flexWrap = 'wrap' gap = '.4rem' }
  87. 'a.extlink' { display = 'inline-flex' alignItems = 'center' height = '1.5rem' padding = '0 .45rem' borderRadius = '.3rem' font = '700 .75rem/1 system-ui, sans-serif' letterSpacing = '.02em' color = colorBackground background = colorTextMuted }
  88. 'a.extlink:hover' { textDecoration = 'none' background = colorAccent }
  89. // mission 058 (#24): a movie's watched check + its word; phone: under the title row (order -1), above the poster
  90. movieWatch { order = '-1' display = 'flex' alignItems = 'center' gap = '.4rem' }
  91. movieWatchLabel { fontSize = '.95rem' color = colorText }
  92. showGenres { display = 'flex' flexWrap = 'wrap' gap = '.4rem' margin = '.5rem 0' }
  93. '.genre-pill' { display = 'inline-block' padding = '.15rem .6rem' borderRadius = '1rem' fontSize = '.85rem' color = colorGenre border = '1px solid ' + colorGenre }
  94. showSummary { display = 'block' margin = '.5rem 0' fontSize = '.95rem' color = colorText }
  95. // tracker.worldapi.org#28: crew (one small muted label per job, the names after it) and the whole cast — "Name (Character)",
  96. // comma-separated as before; names past the first 20 (a crew job: 6) are hidden while the block is `collapsed`, the "Show all"
  97. // button (no border: not inverted) flips the block's class (client-side). The character and the comma are the link's ::after
  98. // (`data-role`): one element per name, so no SSR line break can put a space before the comma.
  99. showCrew { display = 'block' margin = '.5rem 0' }
  100. showCast { display = 'block' margin = '.5rem 0' }
  101. castHeading { display = 'block' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  102. crewLabel { display = 'block' marginTop = '.35rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  103. 'show-crew crew-label:first-child' { marginTop = '0' }
  104. castLabel { display = 'block' margin = '.4rem 0 .1rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  105. '.artist-link' { color = colorArtist }
  106. '.crew-link' { color = colorArtist }
  107. 'a.artist-link::after' { content = "attr(data-role) ', '" color = colorTextMuted }
  108. 'a.crew-link::after' { content = "', '" color = colorTextMuted }
  109. 'a.artist-link.end::after,
  110. show-cast.collapsed a.artist-link.cut::after' { content = 'attr(data-role)' }
  111. 'a.crew-link.end::after,
  112. show-crew.collapsed a.crew-link.cut::after' { content = 'none' }
  113. 'show-cast.collapsed .more,
  114. show-crew.collapsed .more' { display = 'none' }
  115. 'button.showall' { display = 'block' margin = '.3rem 0 0' padding = '.15rem 0' fontSize = '.85rem' color = colorAccent background = 'transparent' }
  116. 'button.showall:hover' { background = 'transparent' textDecoration = 'underline' }
  117. 'show-cast.collapsed when-all,
  118. show-crew.collapsed when-all,
  119. show-cast.all when-collapsed,
  120. show-crew.all when-collapsed' { display = 'none' }
  121. showSeasons { display = 'block' }
  122. seasonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.6rem 0' borderTop = '1px solid ' + colorBorder }
  123. 'button.season-toggle' { flex = '1' minWidth = '0' display = 'flex' alignItems = 'baseline' gap = '.6rem' justifyContent = 'flex-start' padding = '0' color = colorText background = 'transparent' border = '0' fontWeight = '600' cursor = 'pointer' textAlign = 'left' }
  124. seasonCount { fontWeight = '400' fontSize = '.85rem' color = colorTextMuted }
  125. // the caret at the header's right edge (mission 047): DOWN while closed, UP while open (tracker#17 — was right/down)
  126. seasonCaret { flex = 'none' alignSelf = 'center' display = 'grid' marginLeft = 'auto' color = colorTextMuted transition = 'transform .15s' }
  127. 'season-caret svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  128. 'season-row.expanded season-caret' { transform = 'rotate(180deg)' }
  129. // episodes are NOT indented (mission 047): an episode's check sits under its season's check
  130. episodeRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  131. episodeNumber { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  132. episodeTitle { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  133. // mission 058 (#22): the episode's air date at the row's right edge, muted like the lists' dates
  134. episodeDate { flex = 'none' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  135. // tracker#17: a season's placeholder rows while its episodes load — the episode row's shape (check disc, number, title) in
  136. // a moving gradient (the shimmer); same height as an episode row so nothing jumps when the real rows replace them
  137. skeletonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  138. 'skeleton-check, skeleton-number, skeleton-title' { display = 'block' borderRadius = '.3rem' background = 'linear-gradient(90deg, ' + colorSurface + ' 35%, ' + colorBorder + ' 50%, ' + colorSurface + ' 65%)' backgroundSize = '400% 100%' animation = 'tracker-shimmer 1.4s linear infinite' }
  139. skeletonCheck { flex = 'none' width = '2rem' height = '2rem' borderRadius = '50%' }
  140. skeletonNumber { flex = 'none' width = '1.6rem' height = '1rem' }
  141. skeletonTitle { flex = '1' maxWidth = '60%' height = '1rem' }
  142. 'skeleton-row:nth-of-type(even) skeleton-title' { maxWidth = '42%' }
  143. // tracker#26: an incomplete title while its details load (components/show.hl) — the poster's place (2:3, the poster's
  144. // width), a cast line, and season-shaped rows; the same shimmer
  145. 'skeleton-poster, skeleton-cast' { display = 'block' borderRadius = '.3rem' background = 'linear-gradient(90deg, ' + colorSurface + ' 35%, ' + colorBorder + ' 50%, ' + colorSurface + ' 65%)' backgroundSize = '400% 100%' animation = 'tracker-shimmer 1.4s linear infinite' }
  146. skeletonPoster { width = '100%' aspectRatio = '2 / 3' }
  147. skeletonCast { width = '70%' height = '1rem' margin = '.5rem 0' }
  148. showLoading { display = 'block' marginTop = '1rem' }
  149. // its tick (like personProbe): rendered, invisible
  150. showProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  151. '@keyframes tracker-shimmer' = {
  152. 'from' = { backgroundPosition = '100% 0' }
  153. to = { backgroundPosition = '0% 0' }
  154. }
  155. // the check: "a disc with a check in it" (drawn in CSS/SVG, no icon font) — solid (filled accent disc, dark check)
  156. // once watched; while not, its INVERSION (mission 047, the creator): an outline circle AND an outline check. tracker#29
  157. // (the creator: "in /my/unwatched all checkboxes are active"): in the accent colour the outline read as ticked, so the
  158. // unwatched outline is MUTED grey (empty, nothing filled) and only turns accent under the pointer; watched stays solid accent
  159. 'button.checkicon' { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' padding = '0' background = 'transparent' border = '0' borderRadius = '50%' cursor = 'pointer' }
  160. '.checkicon circle' { fill = 'transparent' stroke = colorTextMuted strokeWidth = '1.5' }
  161. '.checkicon path' { fill = 'none' stroke = colorTextMuted strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  162. 'button.checkicon.regular:hover circle,
  163. button.checkicon.regular:hover path' { stroke = colorAccent }
  164. '.checkicon.solid circle' { fill = colorAccent stroke = colorAccent }
  165. '.checkicon.solid path' { stroke = colorAccentText }
  166. // ---- /unwatched (tracker.worldapi.org#5) ----------------------------------------------------
  167. unwatchedPage { display = 'block' }
  168. unwatchedRows { display = 'block' }
  169. // phone: two lines next to the check — show title + date, below it the episode; one line from 40rem
  170. unwatchedRow { display = 'grid' gridTemplateColumns = '2rem minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  171. 'unwatched-row button.checkicon' { gridRow = 'span 2' }
  172. '.unwatched-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  173. unwatchedEpisode { gridColumn = '2 / 4' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  174. unwatchedDate { gridRow = '1' gridColumn = '3' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  175. // ---- /schedule (tracker.worldapi.org#6) — same row layout as /unwatched, minus the check icon -----
  176. schedulePage { display = 'block' }
  177. scheduleRows { display = 'block' }
  178. scheduleRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  179. '.schedule-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  180. scheduleEpisode { gridColumn = '1 / 3' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  181. scheduleDate { gridRow = '1' gridColumn = '2' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  182. // ---- /my/shows (tracker.worldapi.org#7) — small poster, title, last watched episode ------------
  183. myShowsPage { display = 'block' }
  184. myShowsRows { display = 'block' }
  185. myShowRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  186. 'img.myshow-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  187. '.myshow-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  188. myShowEpisode { flex = 'none' fontSize = '.9rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  189. // /my/movies (mission 058, #24): a watched movie's check, the episodes' solid disc, not clickable
  190. myMovieWatched { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' }
  191. // ---- / (tracker.worldapi.org#13): signed in, four big icon tiles; then the text and two poster rows ----------------
  192. home { display = 'block' }
  193. homeNav { display = 'grid' gridTemplateColumns = 'repeat(2, minmax(0, 1fr))' gap = '.6rem' marginBottom = '1.2rem' }
  194. 'a.hometile' { display = 'flex' flexDirection = 'column' alignItems = 'center' justifyContent = 'center' gap = '.4rem' padding = '1rem .5rem' borderRadius = '.6rem' color = colorTextStrong background = colorSurface fontWeight = '600' }
  195. 'a.hometile:hover' { textDecoration = 'none' color = colorAccent }
  196. 'a.hometile svg' { display = 'block' width = '2.5rem' height = '2.5rem' fill = 'none' stroke = colorAccent strokeWidth = '1.6' strokeLinecap = 'round' strokeLinejoin = 'round' }
  197. homeIntro { display = 'block' marginBottom = '1rem' color = colorText }
  198. 'home-intro p' { margin = '0 0 .6rem' }
  199. homeSection { display = 'block' marginBottom = '1.2rem' }
  200. 'home-section h2' { margin = '0 0 .5rem' fontSize = '1.1rem' }
  201. 'home-section h2 a' { color = colorTextStrong }
  202. 'home-section h2 a::after' { content = "' ›'" color = colorAccent }
  203. // phone: the row scrolls sideways INSIDE itself (the page never does); from 40rem a grid of 5
  204. tileRow { display = 'flex' gap = '.6rem' overflowX = 'auto' scrollSnapType = 'x proximity' paddingBottom = '.4rem' }
  205. 'tile-row a.tile' { flex = 'none' width = '7rem' scrollSnapAlign = 'start' }
  206. // /movies and /shows: a grid of 3 on a phone, 6 from 40rem
  207. listPage { display = 'block' }
  208. '.list-count' { margin = '-.4rem 0 .8rem' fontSize = '.9rem' }
  209. tileGrid { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.8rem .6rem' marginBottom = '1rem' }
  210. pagerBox { display = 'block' margin = '1rem 0' }
  211. // the copied pagination (components/pagination.hl, its own Style) a bit tighter on a phone, so "Previous 1 … 4 5 6 … 326
  212. // Next" stays one row at 390 px; from 40rem its own sizes
  213. 'pager-box pagination ol' { gap = '.1rem' }
  214. 'pager-box pagination button' { minWidth = '1.8rem' padding = '.3rem .3rem' fontSize = '.95rem' }
  215. // a tile: the poster (2:3, the placeholder until the sync has a real one), the title (two lines at most), the year
  216. 'a.tile' { display = 'block' minWidth = '0' color = colorText }
  217. 'a.tile:hover' { textDecoration = 'none' }
  218. 'a.tile:hover tile-title' { color = colorAccent }
  219. 'img.tile-poster' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.35rem' background = colorSurface }
  220. tileTitle { display = '-webkit-box' marginTop = '.3rem' fontSize = '.85rem' fontWeight = '600' lineHeight = '1.25' overflow = 'hidden' overflowWrap = 'anywhere' '-webkit-line-clamp' = '2' '-webkit-box-orient' = 'vertical' }
  221. tileYear { display = 'block' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  222. myMoviesPage { display = 'block' }
  223. // ---- the search (tracker.worldapi.org#14) — the header's magnifier and /search ------------------------------------
  224. 'a.searchlink' { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' color = colorText borderRadius = '.4rem' }
  225. 'a.searchlink:hover' { color = colorAccent background = colorSurface }
  226. 'a.searchlink svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' }
  227. searchPage { display = 'block' }
  228. searchBar { display = 'block' marginBottom = '.8rem' }
  229. '#searchinput' { display = 'block' width = '100%' padding = '.55rem .75rem' font = 'inherit' color = colorTextStrong background = colorSurface border = '0' borderRadius = '.4rem' outline = 'none' }
  230. '#searchinput:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  231. searchSection { display = 'block' marginBottom = '1rem' }
  232. 'search-section h2' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  233. searchRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' borderTop = '1px solid ' + colorBorder }
  234. webRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' borderTop = '1px solid ' + colorBorder }
  235. 'img.search-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  236. '.search-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  237. '.search-person' { flex = '1' minWidth = '0' color = colorArtist overflowWrap = 'anywhere' }
  238. searchType { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  239. webText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  240. webTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  241. 'button.add' { flex = 'none' padding = 'calc(.3rem - 1px) calc(.8rem - 1px)' fontSize = '.9rem' }
  242. webBar { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '.6rem 0' }
  243. // ---- /person/<slug> (tracker.worldapi.org#16): photo + facts + bio, then the filmography rows ----------------------
  244. // the photo left of the name (phone 6rem, from 40rem 10rem). Rows like the search's: small poster, title, year · kind,
  245. // the role below
  246. personPage { display = 'block' }
  247. personHeader { display = 'flex' alignItems = 'flex-start' gap = '.8rem' marginBottom = '1rem' }
  248. personPhoto { flex = 'none' display = 'block' width = '6rem' }
  249. 'person-photo img' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.4rem' background = colorSurface }
  250. personMeta { display = 'block' minWidth = '0' overflowWrap = 'anywhere' }
  251. personFact { display = 'block' fontSize = '.95rem' color = colorTextMuted }
  252. // the bio under photo + facts, full width; four lines until clicked (components/person.hl toggleBio)
  253. personBio { display = 'block' margin = '0 0 1rem' fontSize = '.95rem' whiteSpace = 'pre-line' cursor = 'pointer' }
  254. 'person-bio.short' { display = '-webkit-box' overflow = 'hidden' '-webkit-line-clamp' = '4' '-webkit-box-orient' = 'vertical' }
  255. 'h2.film-heading' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  256. personLoading { display = 'block' padding = '.6rem 0' color = colorTextMuted animation = 'tracker-person-pulse 1.2s ease-in-out infinite alternate' }
  257. // the fill's tick (components/person.hl): rendered (an animation needs it) but invisible, like netProbe
  258. personProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  259. '@keyframes tracker-person-tick' = {
  260. 'from' = { opacity = '0' }
  261. to = { opacity = '0' }
  262. }
  263. '@keyframes tracker-person-pulse' = {
  264. 'from' = { opacity = '1' }
  265. to = { opacity = '.45' }
  266. }
  267. filmRows { display = 'block' }
  268. 'a.film-row' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText borderTop = '1px solid ' + colorBorder }
  269. 'a.film-row:hover' { textDecoration = 'none' }
  270. 'a.film-row:hover film-title' { color = colorAccent }
  271. 'img.film-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  272. filmText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  273. filmTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  274. filmMeta { display = 'flex' gap = '.5rem' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  275. filmRole { fontSize = '.85rem' color = colorArtist overflowWrap = 'anywhere' }
  276. 'film-role:empty' { display = 'none' }
  277. 'film-year:empty' { display = 'none' }
  278. // ---- wider screens (≥ 40rem = 640 px): only what changes from the phone -------------------------
  279. '@media (min-width: 40rem)' = {
  280. applicationHeader = { gap = '1rem' padding = '.6rem 1rem' }
  281. userBox = { gap = '.5rem' }
  282. '#logout' = { padding = '.4rem .9rem' fontSize = '1rem' }
  283. identSelector = { '--ident-font' = '600 .9rem/1.4 system-ui, sans-serif' }
  284. 'ident-selector::part(button)' = { padding = '.35rem .8rem' }
  285. 'ident-selector::part(status)' = { padding = '.35rem .8rem' }
  286. '#loginbutton' = { padding = '.35rem .8rem' fontSize = '1rem' }
  287. '#loginbutton .wide' = { display = 'inline' }
  288. main = { padding = '1rem' }
  289. h1 = { margin = '0 0 1rem' fontSize = '1.3rem' }
  290. showHeader = { flexDirection = 'row' alignItems = 'flex-start' gap = '1rem' marginBottom = '1.5rem' }
  291. showPoster = { flex = 'none' width = '10rem' }
  292. showMeta = { display = 'block' flex = '1' minWidth = '0' }
  293. showTitle = { marginBottom = '1rem' }
  294. movieWatch = { margin = '-.4rem 0 .8rem' }
  295. showSummary = { fontSize = '1rem' }
  296. episodeRow = { padding = '.4rem 0' }
  297. skeletonRow = { padding = '.4rem 0' }
  298. unwatchedRow = { display = 'flex' }
  299. '.unwatched-show' = { flex = 'none' }
  300. unwatchedEpisode = { flex = '1' }
  301. unwatchedDate = { flex = 'none' }
  302. scheduleRow = { display = 'flex' }
  303. '.schedule-show' = { flex = 'none' }
  304. scheduleEpisode = { flex = '1' }
  305. scheduleDate = { flex = 'none' }
  306. homeNav = { gridTemplateColumns = 'repeat(4, minmax(0, 1fr))' gap = '1rem' }
  307. 'a.hometile' = { padding = '1.4rem .5rem' }
  308. tileRow = { display = 'grid' gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem .8rem' overflowX = 'visible' }
  309. 'tile-row a.tile' = { width = 'auto' }
  310. tileGrid = { gridTemplateColumns = 'repeat(6, minmax(0, 1fr))' gap = '1rem .8rem' }
  311. 'pager-box pagination ol' = { gap = '.3rem' }
  312. 'pager-box pagination button' = { minWidth = '2.2rem' padding = '.35rem .6rem' fontSize = '1rem' }
  313. personHeader = { gap = '1rem' }
  314. personPhoto = { width = '10rem' }
  315. }

Branches

Latest commits

  • f2b00674Merge t26 (tracker#26 + #28) into main (mission 062): short ids for every new person (castPersonId, guest route), guest stars stored on the title and created as people only when opened (/person/tmdb/<id>?show=<id> → 302), lean watch/follow clicks (showRow a small object, cast/crew from the slug, watches cached per user, face rows only after a season toggle); gate 311, tests/realdata-062.mjs, README + STATUSmre
  • fa1f9dfatracker#29 (mission 063): unwatched check muted grey outline + check (accent only on hover), watched stays solid — no code regression, the accent outline read as ticked; gate checks real checks visibly (computed style + screenshot pixel) on /my/unwatched, show, movie, /my/movies; gate 266, tests/realdata-063.mjs, README + STATUSmre
  • 10bb3f93tracker#28 (mission 061): full cast (all seasons, main cast by episodes, guest stars) + crew (created by, directed by, written by, screenplay, story, music) — stored by the details completion, the daily sync, the search import (one details request) and a background credits job (resumes, RSS limit); show page collapsed after 20 with client-side Show all; showBySlug via a slug map; gate 249, tests/realdata-028.mjs, README + STATUSmre
  • d8b12d67tracker#27 (mission 060): short ids for movies, series and persons — old 702 kept (data/old-short-ids.json), new random [a-z0-9]{5} unique across both, claimed at creation, background backfill (resumes), shown under poster/photo, /<shortId> → 301; gate 259, tests/realdata-060*, README + STATUSmre
  • 25a50bc4tracker#26 (mission 059): titles from a filmography are completed — on open (skeleton, step-wise face showComplete, no reload) and by the in-app details repair (resumes, TMDB-paced, series in parts); cast from TMDB credits; gate 231, tests/realdata-026.mjs, README + STATUSmre
  • f14db671tracker#22-#25 (mission 058): episode air dates, season check = all episodes watched, movie watched check (+ /my/movies count), /genres/<genre> pages (movies + series, newest first, paginated); gate 238, tests/realdata-058.mjs, README + STATUSmre
  • 1704ec45tracker#17 (mission 057): season caret down/up, skeleton rows while a season loads, sessionless showSeasonEpisodes face (no page re-mount), client-only close; gate 214, tests/realdata-057.mjs, README + STATUSmre
  • f2fe3e36mission 056: README + STATUS (merge, fixes, Hybriel 8590df63, real-data check), tests/realdata-056.mjs, tools/check-public-slugs.hlmre
  • f40c250emission 056: re-vendor hybriel master 8590df63 (#121, #122); an adult title's page is Not found for non-followers; gate: leave the page before stopping the servermre
  • 2b7fdd6cmission 056: signed-out header one row on phones ("Log in", nowrap), backfill skips adult titles' posters, gate checksmre
  • 2c53d5efMerge branch 't16-person' (tracker#16 person pages) into main; filmography shows only public titles (054 adult flag), gate race fix (backfill start line)mre
  • c171227emission 054: hide adult/unknown titles from the public lists and the search; in-app adult-flag backfill (TMDB details + poster per title, resumes), gate + real-data proofmre
  • 139fafd8tracker#16: short bio (4 lines, click = all), real-data check script, README + STATUSmre
  • 93be9476tracker#16: person pages /person/<slug> with the filmography fetched from TMDB on the first visit (step by step), gatemre
  • 47a3cae6STATUS: mission 053 merge commit idsmre
  • dcc5eecaMerge branch 't14-search'mre
  • 03edc783Merge branch 't15-tvmaze'mre
  • 71b46345tracker#15: numbering check by date or title, placeholder titles in other languages, docs + real-data proofmre
  • 6bb2daf1tracker#13: homepage (tiles, intro, latest movies/shows), /shows, /movies/page/N, /my/movies; lists cached in memorymre
  • b8bd1157tracker#14: README + STATUS (search, real-data numbers, gate, merge notes)mre