gitoriaLog in with ident

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit10bb3f9310bb3f93tracker#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 + STATUSmre10bb3f93/styles.hl

25.0 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. showMeta { display = 'contents' overflowWrap = 'anywhere' }
  75. showTitle { order = '-1' display = 'flex' alignItems = 'center' gap = '.6rem' }
  76. 'show-title h1' { flex = '1' minWidth = '0' margin = '0' }
  77. 'button.follow' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  78. 'button.follow.inverted' { padding = 'calc(.3rem - 1px) calc(.8rem - 1px)' }
  79. // tracker.worldapi.org#12: the show on TMDB / IMDb / TheTVDB / TVmaze — small monochrome badges (CSS only, no copied
  80. // logos), muted like the other secondary text, the accent on hover. Phone: right under the title row (order -1, after it
  81. // in the markup), above the full-width poster.
  82. showLinks { order = '-1' display = 'flex' flexWrap = 'wrap' gap = '.4rem' }
  83. '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 }
  84. 'a.extlink:hover' { textDecoration = 'none' background = colorAccent }
  85. showGenres { display = 'flex' flexWrap = 'wrap' gap = '.4rem' margin = '.5rem 0' }
  86. '.genre-pill' { display = 'inline-block' padding = '.15rem .6rem' borderRadius = '1rem' fontSize = '.85rem' color = colorGenre border = '1px solid ' + colorGenre }
  87. showSummary { display = 'block' margin = '.5rem 0' fontSize = '.95rem' color = colorText }
  88. // tracker.worldapi.org#28: crew (one small muted label per job, the names after it) and the whole cast — "Name (Character)",
  89. // comma-separated as before; names past the first 20 (a crew job: 6) are hidden while the block is `collapsed`, the "Show all"
  90. // button (no border: not inverted) flips the block's class (client-side). The character and the comma are the link's ::after
  91. // (`data-role`): one element per name, so no SSR line break can put a space before the comma.
  92. showCrew { display = 'block' margin = '.5rem 0' }
  93. showCast { display = 'block' margin = '.5rem 0' }
  94. castHeading { display = 'block' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  95. crewLabel { display = 'block' marginTop = '.35rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  96. 'show-crew crew-label:first-child' { marginTop = '0' }
  97. castLabel { display = 'block' margin = '.4rem 0 .1rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  98. '.artist-link' { color = colorArtist }
  99. '.crew-link' { color = colorArtist }
  100. 'a.artist-link::after' { content = "attr(data-role) ', '" color = colorTextMuted }
  101. 'a.crew-link::after' { content = "', '" color = colorTextMuted }
  102. 'a.artist-link.end::after,
  103. show-cast.collapsed a.artist-link.cut::after' { content = 'attr(data-role)' }
  104. 'a.crew-link.end::after,
  105. show-crew.collapsed a.crew-link.cut::after' { content = 'none' }
  106. 'show-cast.collapsed .more,
  107. show-crew.collapsed .more' { display = 'none' }
  108. 'button.showall' { display = 'block' margin = '.3rem 0 0' padding = '.15rem 0' fontSize = '.85rem' color = colorAccent background = 'transparent' }
  109. 'button.showall:hover' { background = 'transparent' textDecoration = 'underline' }
  110. 'show-cast.collapsed when-all,
  111. show-crew.collapsed when-all,
  112. show-cast.all when-collapsed,
  113. show-crew.all when-collapsed' { display = 'none' }
  114. showSeasons { display = 'block' }
  115. seasonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.6rem 0' borderTop = '1px solid ' + colorBorder }
  116. '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' }
  117. seasonCount { fontWeight = '400' fontSize = '.85rem' color = colorTextMuted }
  118. // the caret at the header's right edge (mission 047): DOWN while closed, UP while open (tracker#17 — was right/down)
  119. seasonCaret { flex = 'none' alignSelf = 'center' display = 'grid' marginLeft = 'auto' color = colorTextMuted transition = 'transform .15s' }
  120. 'season-caret svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  121. 'season-row.expanded season-caret' { transform = 'rotate(180deg)' }
  122. // episodes are NOT indented (mission 047): an episode's check sits under its season's check
  123. episodeRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  124. episodeNumber { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  125. episodeTitle { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  126. // tracker#17: a season's placeholder rows while its episodes load — the episode row's shape (check disc, number, title) in
  127. // a moving gradient (the shimmer); same height as an episode row so nothing jumps when the real rows replace them
  128. skeletonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  129. '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' }
  130. skeletonCheck { flex = 'none' width = '2rem' height = '2rem' borderRadius = '50%' }
  131. skeletonNumber { flex = 'none' width = '1.6rem' height = '1rem' }
  132. skeletonTitle { flex = '1' maxWidth = '60%' height = '1rem' }
  133. 'skeleton-row:nth-of-type(even) skeleton-title' { maxWidth = '42%' }
  134. // tracker#26: an incomplete title while its details load (components/show.hl) — the poster's place (2:3, the poster's
  135. // width), a cast line, and season-shaped rows; the same shimmer
  136. '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' }
  137. skeletonPoster { width = '100%' aspectRatio = '2 / 3' }
  138. skeletonCast { width = '70%' height = '1rem' margin = '.5rem 0' }
  139. showLoading { display = 'block' marginTop = '1rem' }
  140. // its tick (like personProbe): rendered, invisible
  141. showProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  142. '@keyframes tracker-shimmer' = {
  143. 'from' = { backgroundPosition = '100% 0' }
  144. to = { backgroundPosition = '0% 0' }
  145. }
  146. // the check: "a disc with a check in it" (drawn in CSS/SVG, no icon font) — solid (filled accent disc, dark check)
  147. // once watched; while not, its INVERSION (mission 047, the creator): an accent outline circle AND an accent outline check
  148. 'button.checkicon' { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' padding = '0' background = 'transparent' border = '0' borderRadius = '50%' cursor = 'pointer' }
  149. '.checkicon circle' { fill = 'transparent' stroke = colorAccent strokeWidth = '1.5' }
  150. '.checkicon path' { fill = 'none' stroke = colorAccent strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  151. '.checkicon.solid circle' { fill = colorAccent stroke = colorAccent }
  152. '.checkicon.solid path' { stroke = colorAccentText }
  153. // ---- /unwatched (tracker.worldapi.org#5) ----------------------------------------------------
  154. unwatchedPage { display = 'block' }
  155. unwatchedRows { display = 'block' }
  156. // phone: two lines next to the check — show title + date, below it the episode; one line from 40rem
  157. unwatchedRow { display = 'grid' gridTemplateColumns = '2rem minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  158. 'unwatched-row button.checkicon' { gridRow = 'span 2' }
  159. '.unwatched-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  160. unwatchedEpisode { gridColumn = '2 / 4' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  161. unwatchedDate { gridRow = '1' gridColumn = '3' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  162. // ---- /schedule (tracker.worldapi.org#6) — same row layout as /unwatched, minus the check icon -----
  163. schedulePage { display = 'block' }
  164. scheduleRows { display = 'block' }
  165. scheduleRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  166. '.schedule-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  167. scheduleEpisode { gridColumn = '1 / 3' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  168. scheduleDate { gridRow = '1' gridColumn = '2' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  169. // ---- /my/shows (tracker.worldapi.org#7) — small poster, title, last watched episode ------------
  170. myShowsPage { display = 'block' }
  171. myShowsRows { display = 'block' }
  172. myShowRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.5rem 0' borderTop = '1px solid ' + colorBorder }
  173. 'img.myshow-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  174. '.myshow-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  175. myShowEpisode { flex = 'none' fontSize = '.9rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  176. // ---- / (tracker.worldapi.org#13): signed in, four big icon tiles; then the text and two poster rows ----------------
  177. home { display = 'block' }
  178. homeNav { display = 'grid' gridTemplateColumns = 'repeat(2, minmax(0, 1fr))' gap = '.6rem' marginBottom = '1.2rem' }
  179. 'a.hometile' { display = 'flex' flexDirection = 'column' alignItems = 'center' justifyContent = 'center' gap = '.4rem' padding = '1rem .5rem' borderRadius = '.6rem' color = colorTextStrong background = colorSurface fontWeight = '600' }
  180. 'a.hometile:hover' { textDecoration = 'none' color = colorAccent }
  181. 'a.hometile svg' { display = 'block' width = '2.5rem' height = '2.5rem' fill = 'none' stroke = colorAccent strokeWidth = '1.6' strokeLinecap = 'round' strokeLinejoin = 'round' }
  182. homeIntro { display = 'block' marginBottom = '1rem' color = colorText }
  183. 'home-intro p' { margin = '0 0 .6rem' }
  184. homeSection { display = 'block' marginBottom = '1.2rem' }
  185. 'home-section h2' { margin = '0 0 .5rem' fontSize = '1.1rem' }
  186. 'home-section h2 a' { color = colorTextStrong }
  187. 'home-section h2 a::after' { content = "' ›'" color = colorAccent }
  188. // phone: the row scrolls sideways INSIDE itself (the page never does); from 40rem a grid of 5
  189. tileRow { display = 'flex' gap = '.6rem' overflowX = 'auto' scrollSnapType = 'x proximity' paddingBottom = '.4rem' }
  190. 'tile-row a.tile' { flex = 'none' width = '7rem' scrollSnapAlign = 'start' }
  191. // /movies and /shows: a grid of 3 on a phone, 6 from 40rem
  192. listPage { display = 'block' }
  193. '.list-count' { margin = '-.4rem 0 .8rem' fontSize = '.9rem' }
  194. tileGrid { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.8rem .6rem' marginBottom = '1rem' }
  195. pagerBox { display = 'block' margin = '1rem 0' }
  196. // the copied pagination (components/pagination.hl, its own Style) a bit tighter on a phone, so "Previous 1 … 4 5 6 … 326
  197. // Next" stays one row at 390 px; from 40rem its own sizes
  198. 'pager-box pagination ol' { gap = '.1rem' }
  199. 'pager-box pagination button' { minWidth = '1.8rem' padding = '.3rem .3rem' fontSize = '.95rem' }
  200. // a tile: the poster (2:3, the placeholder until the sync has a real one), the title (two lines at most), the year
  201. 'a.tile' { display = 'block' minWidth = '0' color = colorText }
  202. 'a.tile:hover' { textDecoration = 'none' }
  203. 'a.tile:hover tile-title' { color = colorAccent }
  204. 'img.tile-poster' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.35rem' background = colorSurface }
  205. 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' }
  206. tileYear { display = 'block' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  207. myMoviesPage { display = 'block' }
  208. // ---- the search (tracker.worldapi.org#14) — the header's magnifier and /search ------------------------------------
  209. 'a.searchlink' { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' color = colorText borderRadius = '.4rem' }
  210. 'a.searchlink:hover' { color = colorAccent background = colorSurface }
  211. 'a.searchlink svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' }
  212. searchPage { display = 'block' }
  213. searchBar { display = 'block' marginBottom = '.8rem' }
  214. '#searchinput' { display = 'block' width = '100%' padding = '.55rem .75rem' font = 'inherit' color = colorTextStrong background = colorSurface border = '0' borderRadius = '.4rem' outline = 'none' }
  215. '#searchinput:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  216. searchSection { display = 'block' marginBottom = '1rem' }
  217. 'search-section h2' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  218. searchRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' borderTop = '1px solid ' + colorBorder }
  219. webRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' borderTop = '1px solid ' + colorBorder }
  220. 'img.search-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  221. '.search-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  222. '.search-person' { flex = '1' minWidth = '0' color = colorArtist overflowWrap = 'anywhere' }
  223. searchType { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  224. webText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  225. webTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  226. 'button.add' { flex = 'none' padding = 'calc(.3rem - 1px) calc(.8rem - 1px)' fontSize = '.9rem' }
  227. webBar { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '.6rem 0' }
  228. // ---- /person/<slug> (tracker.worldapi.org#16): photo + facts + bio, then the filmography rows ----------------------
  229. // the photo left of the name (phone 6rem, from 40rem 10rem). Rows like the search's: small poster, title, year · kind,
  230. // the role below
  231. personPage { display = 'block' }
  232. personHeader { display = 'flex' alignItems = 'flex-start' gap = '.8rem' marginBottom = '1rem' }
  233. personPhoto { flex = 'none' display = 'block' width = '6rem' }
  234. 'person-photo img' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.4rem' background = colorSurface }
  235. personMeta { display = 'block' minWidth = '0' overflowWrap = 'anywhere' }
  236. personFact { display = 'block' fontSize = '.95rem' color = colorTextMuted }
  237. // the bio under photo + facts, full width; four lines until clicked (components/person.hl toggleBio)
  238. personBio { display = 'block' margin = '0 0 1rem' fontSize = '.95rem' whiteSpace = 'pre-line' cursor = 'pointer' }
  239. 'person-bio.short' { display = '-webkit-box' overflow = 'hidden' '-webkit-line-clamp' = '4' '-webkit-box-orient' = 'vertical' }
  240. 'h2.film-heading' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  241. personLoading { display = 'block' padding = '.6rem 0' color = colorTextMuted animation = 'tracker-person-pulse 1.2s ease-in-out infinite alternate' }
  242. // the fill's tick (components/person.hl): rendered (an animation needs it) but invisible, like netProbe
  243. personProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  244. '@keyframes tracker-person-tick' = {
  245. 'from' = { opacity = '0' }
  246. to = { opacity = '0' }
  247. }
  248. '@keyframes tracker-person-pulse' = {
  249. 'from' = { opacity = '1' }
  250. to = { opacity = '.45' }
  251. }
  252. filmRows { display = 'block' }
  253. 'a.film-row' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText borderTop = '1px solid ' + colorBorder }
  254. 'a.film-row:hover' { textDecoration = 'none' }
  255. 'a.film-row:hover film-title' { color = colorAccent }
  256. 'img.film-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = '.25rem' background = colorSurface }
  257. filmText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  258. filmTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  259. filmMeta { display = 'flex' gap = '.5rem' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  260. filmRole { fontSize = '.85rem' color = colorArtist overflowWrap = 'anywhere' }
  261. 'film-role:empty' { display = 'none' }
  262. 'film-year:empty' { display = 'none' }
  263. // ---- wider screens (≥ 40rem = 640 px): only what changes from the phone -------------------------
  264. '@media (min-width: 40rem)' = {
  265. applicationHeader = { gap = '1rem' padding = '.6rem 1rem' }
  266. userBox = { gap = '.5rem' }
  267. '#logout' = { padding = '.4rem .9rem' fontSize = '1rem' }
  268. identSelector = { '--ident-font' = '600 .9rem/1.4 system-ui, sans-serif' }
  269. 'ident-selector::part(button)' = { padding = '.35rem .8rem' }
  270. 'ident-selector::part(status)' = { padding = '.35rem .8rem' }
  271. '#loginbutton' = { padding = '.35rem .8rem' fontSize = '1rem' }
  272. '#loginbutton .wide' = { display = 'inline' }
  273. main = { padding = '1rem' }
  274. h1 = { margin = '0 0 1rem' fontSize = '1.3rem' }
  275. showHeader = { flexDirection = 'row' alignItems = 'flex-start' gap = '1rem' marginBottom = '1.5rem' }
  276. showPoster = { flex = 'none' width = '10rem' }
  277. showMeta = { display = 'block' flex = '1' minWidth = '0' }
  278. showTitle = { marginBottom = '1rem' }
  279. showSummary = { fontSize = '1rem' }
  280. episodeRow = { padding = '.4rem 0' }
  281. skeletonRow = { padding = '.4rem 0' }
  282. unwatchedRow = { display = 'flex' }
  283. '.unwatched-show' = { flex = 'none' }
  284. unwatchedEpisode = { flex = '1' }
  285. unwatchedDate = { flex = 'none' }
  286. scheduleRow = { display = 'flex' }
  287. '.schedule-show' = { flex = 'none' }
  288. scheduleEpisode = { flex = '1' }
  289. scheduleDate = { flex = 'none' }
  290. homeNav = { gridTemplateColumns = 'repeat(4, minmax(0, 1fr))' gap = '1rem' }
  291. 'a.hometile' = { padding = '1.4rem .5rem' }
  292. tileRow = { display = 'grid' gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem .8rem' overflowX = 'visible' }
  293. 'tile-row a.tile' = { width = 'auto' }
  294. tileGrid = { gridTemplateColumns = 'repeat(6, minmax(0, 1fr))' gap = '1rem .8rem' }
  295. 'pager-box pagination ol' = { gap = '.3rem' }
  296. 'pager-box pagination button' = { minWidth = '2.2rem' padding = '.35rem .6rem' fontSize = '1rem' }
  297. personHeader = { gap = '1rem' }
  298. personPhoto = { width = '10rem' }
  299. }

Branches

Latest commits

  • 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
  • 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
  • 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
  • 65c694a8tracker#14: search — header magnifier, /search/<text> (in-memory word-prefix index over titles + people), Fetch from web (TMDB search/multi, ours left out), Add = import via syncShow; gate +25 checks, real-data scriptmre
  • 34f2c15btracker#15: TVmaze merge in the sync (gaps only: new episodes/seasons, empty titles/air dates; numbering check), fake TVmaze episodes + gatemre
  • cbdc4ea7tracker#12: link icons TMDB/IMDb/TVDB/TVmaze; sync fills missing ids (TVmaze lookup); movies fetched via /movie/mre
  • b105bcd8tracker#11: Hybriel master ff51cf46 (checks no longer vanish), mobile-first styles, carets, follow button, sign-in modal, inverted check, orange castmre