gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd0f620d6d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmred0f620d6/components/styles.hl

37.2 KB

  1. // components/styles.hl — the app's CSS, served as /__hl/app.css: it INHERITS THE WORLDAPI THEME (theme/theme.hl, vendored from
  2. // layouts.worldapi.org — never edited here; docs: layouts.worldapi.org docs/using-the-theme.md) and adds only what the tracker's
  3. // own pages need. Components carry no Style blocks: markup is domain tags, this file lays them out (the theme's shell files
  4. // theme/shell/*.hl carry their own Style).
  5. //
  6. // TOKENS (mission 031, tracker#32): colours ONLY through the theme's named tokens (shared/tokens.hl, the same file as
  7. // layouts.worldapi.org's). The app sets its accent (green-dark) and its TYPE COLOURS — slot 1 Movie yellow, 2 Series green,
  8. // 3 Show purple, 4 Genre blue, 5 Person orange, 6 Franchise light blue; titles white. Borderless: a border only where it
  9. // means something (the season foldables) — `node theme/check-theme.mjs .` must report 0 (a deploy gate).
  10. //
  11. // In a styles file a bare name is a TAG (camelCase -> kebab: `emptyState` is `empty-state`), a quoted name is a selector
  12. // written verbatim; a selector the theme already writes may not be written again (hl:web refuses it). MOBILE FIRST (mission
  13. // 047): every rule outside a block is the PHONE's (390 px wide); `@media (min-width: 40rem)` at the bottom only ADDS what a
  14. // wider screen changes (the theme's header/shell switch at 60rem). Nothing here may make a 390 px page scroll sideways.
  15. inherit '../theme/theme.hl'
  16. // mission 035 (the creator: "no different border radiuses … around 5px/10px"): every corner is the theme's radiusSmall (5px:
  17. // pills, links, fields, small thumbnails, skeleton lines) or radiusLarge (10px: posters, photos, tiles, panels, popovers), 50% round
  18. import { var } from 'hl:web/css'
  19. import { greenDark, yellow, purple, blueDark, orange, blueLight, greenLight, colorText, colorBackground, colorTextStrong, colorBackgroundSunken, colorTextMuted, colorAccentText, colorBorder, colorDanger, colorSuccess, colorWarning, colorSurface } from '../shared/tokens.hl'
  20. colorAccent = var(greenDark) // the app's accent
  21. // tracker.worldapi.org#20: every TYPE has one palette colour, wherever its word appears (page headings, list headings, the
  22. // homepage rows, the search's and the filmography's labels, genre pills, cast links); the name next to it stays white
  23. colorType1 = var(yellow) // Movie
  24. colorType2 = var(greenDark) // Series
  25. colorType3 = var(purple) // Show
  26. colorType4 = var(blueDark) // Genre
  27. colorType5 = var(orange) // Person (cast and crew links)
  28. colorType6 = var(blueLight) // Franchise
  29. colorTimeline = var(greenLight) // tracker#19's timelines
  30. // the theme's buttons are quiet; the tracker's INVERTED one (Follow while not following, "Add") is the accent's text on a
  31. // surface — borderless since tracker#32 (it had a 1px accent frame)
  32. 'button.inverted' { color = colorAccent background = colorSurface }
  33. // icon buttons draw their own icon size (the theme gives every button a 2.75rem (44 px) minimum, 2.25rem on a desktop, and 1.25rem icons)
  34. 'button.checkicon svg' { width = '22px' height = '22px' }
  35. // ---- the header (tracker#32; the theme's AppHeader, MainMenu, UserMenu, Sidebar — components/main.hl) ---------------------
  36. // the marked main-menu entry: the type the page's heading names ("Series | Reacher", "Genre | Drama", "People") — the shell
  37. // is not told the page's path, so CSS reads the page (:has); same look as the theme's `a.current`
  38. 'body:has(main h1.typed > type-word.type-series) main-menu a[href="/series"],
  39. body:has(main h1.typed > type-word.type-show) main-menu a[href="/shows"],
  40. body:has(main h1.typed > type-word.type-movie) main-menu a[href="/movies"],
  41. body:has(main h1.typed > type-word.type-genre) main-menu a[href="/genres"],
  42. body:has(main h1.typed > type-word.type-person) main-menu a[href="/people"],
  43. body:has(main h1.typed > type-word.type-franchise) main-menu a[href="/franchises"],
  44. body:has(main h1.typed > type-word.type-timeline) main-menu a[href="/franchises"]' { color = colorAccent }
  45. 'body:has(main h1.typed > type-word.type-series) app-sidebar main-menu a[href="/series"],
  46. body:has(main h1.typed > type-word.type-show) app-sidebar main-menu a[href="/shows"],
  47. body:has(main h1.typed > type-word.type-movie) app-sidebar main-menu a[href="/movies"],
  48. body:has(main h1.typed > type-word.type-genre) app-sidebar main-menu a[href="/genres"],
  49. body:has(main h1.typed > type-word.type-person) app-sidebar main-menu a[href="/people"],
  50. body:has(main h1.typed > type-word.type-franchise) app-sidebar main-menu a[href="/franchises"],
  51. body:has(main h1.typed > type-word.type-timeline) app-sidebar main-menu a[href="/franchises"]' { background = colorSurface }
  52. // SIGNED OUT: the ident icon at the far right (phone) opens the dropdown with the selector — shaped like the theme's user menu;
  53. // from 60rem the dropdown stands open in the header and shows the selector alone (its list opens under it, right-aligned)
  54. identMenu { display = 'block' flex = 'none' }
  55. 'ident-menu > button.ident-toggle' { width = '2.75rem' height = '2.75rem' minHeight = '0' marginRight = '-.5rem' padding = '0' color = colorText }
  56. 'ident-menu svg.ident-icon' { width = '2rem' height = '1.32rem' }
  57. 'svg.ident-icon .ident-d' { fill = colorTextStrong }
  58. 'svg.ident-icon .ident-d-side' { fill = colorTextMuted }
  59. 'svg.ident-icon .ident-i' { fill = colorAccent }
  60. '#ident-panel:popover-open' { position = 'fixed' inset = 'var(--layout-header) max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2)) auto auto' display = 'block' width = 'auto' minWidth = '14rem' maxWidth = 'calc(100vw - 2 * var(--layout-gutter))' height = 'auto' margin = '.25rem 0 0' padding = '.75rem' color = colorText background = colorSurface border = '0' borderRadius = radiusLarge boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  61. '#ident-panel::backdrop' { background = 'transparent' }
  62. '#ident-panel #loginbutton' { display = 'block' marginTop = '.6rem' fontSize = '.9rem' }
  63. identSelector { '--ident-accent' = colorAccent '--ident-accent-text' = colorAccentText '--ident-background' = colorSurface '--ident-border' = colorBorder '--ident-font' = '600 .9rem/1.4 system-ui, sans-serif' minWidth = '0' }
  64. 'ident-selector::part(button)' { padding = '.35rem .8rem' border = 'none' whiteSpace = 'nowrap' }
  65. 'ident-selector::part(status)' { padding = '.35rem .8rem' border = 'none' }
  66. 'ident-selector::part(identity)' { border = 'none' }
  67. 'ident-selector::part(panel)' { border = 'none' }
  68. '.message' { color = colorDanger }
  69. '.message.banner' { margin = '0' padding = '.5rem .75rem' background = colorBackgroundSunken }
  70. 'p.message:empty' { display = 'none' }
  71. // ---- offline (tracker.worldapi.org#10, components/main.hl): the note under the header, and the probe whose endless
  72. // animation is the shell's 1 s tick (it must be rendered for the animation to run — not display none — so: invisible)
  73. offlineNote { display = 'block' padding = '.5rem .75rem' color = colorTextStrong background = colorSurface }
  74. netProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-net-tick 1s linear infinite' }
  75. '@keyframes tracker-net-tick' = {
  76. 'from' = { opacity = '0' }
  77. to = { opacity = '0' }
  78. }
  79. // ---- typed headings (tracker.worldapi.org#20): "Movie | Riddick" — `h1 { class = "typed" typeWord { class = "type-word
  80. // type-movie" … } typeSep { "|" } typeName { … } }`; the word in its type's colour, a muted bar, the name white. A flex row
  81. // (the server's markup has whitespace between the parts, a client-built page none — the gap makes both look the same).
  82. // MOBILE FIRST: a long name wraps inside its own column, right of "Show |", never sideways.
  83. '.type-movie' { color = colorType1 }
  84. '.type-series' { color = colorType2 }
  85. '.type-show' { color = colorType3 }
  86. '.type-genre' { color = colorType4 }
  87. '.type-person' { color = colorType5 }
  88. '.type-franchise' { color = colorType6 }
  89. '.type-timeline' { color = colorTimeline }
  90. 'h1.typed' { display = 'flex' alignItems = 'baseline' columnGap = '.4em' }
  91. typeWord { flex = 'none' fontWeight = '600' }
  92. 'a.type-word' { display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' }
  93. typeSep { flex = 'none' fontWeight = '300' color = colorTextMuted }
  94. typeName { minWidth = '0' color = colorTextStrong overflowWrap = 'anywhere' }
  95. // ---- /shows/:slug (tracker.worldapi.org#4) --------------------------------------------------
  96. showPage { display = 'block' }
  97. // phone (mission 047, the creator): the title (+ Follow) first, then the poster at the full content width, then genres,
  98. // plot, cast — `showMeta` dissolves (display contents) so its title row can go before the poster (order -1). From 40rem
  99. // the creator's desktop layout: poster left (10rem), right of it the title and the rest.
  100. showHeader { display = 'flex' flexDirection = 'column' gap = '.6rem' marginBottom = '1.2rem' }
  101. showPoster { display = 'block' width = '100%' }
  102. 'show-poster img' { display = 'block' width = '100%' height = 'auto' borderRadius = radiusLarge aspectRatio = '2 / 3' objectFit = 'cover' background = colorSurface }
  103. // mission 060 (tracker.worldapi.org#27): the short id under the poster (and the person's photo) — small, muted, monospace; one
  104. // click selects all of it
  105. 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' }
  106. 'person-meta short-id-label' { textAlign = 'left' }
  107. showMeta { display = 'contents' overflowWrap = 'anywhere' }
  108. // tracker#35 (mission 030): the title row holds the heading and, right after it, the status pill (wraps under a long title)
  109. showTitle { order = '-1' display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.4rem .6rem' }
  110. 'show-title h1' { flex = '0 1 auto' minWidth = '0' margin = '0' }
  111. // tracker#34: Follow directly under the poster, as wide as the poster (phone: the full content width, like the poster)
  112. 'button.follow' { display = 'block' width = '100%' marginTop = '.5rem' padding = '.4rem .8rem' fontSize = '.95rem' }
  113. // tracker#35: the status pill — INVERTED (filled with the status colour, dark text, no border; the theme's `.pill`): running green,
  114. // pending (In Production, In Development, To Be Determined, Planned, Pilot) yellow, canceled red, ended / anything else muted
  115. // tracker#33: a movie's "17 September 2026 · 7 min" on its own line under the title
  116. showFacts { flexBasis = '100%' fontSize = '.95rem' color = colorTextMuted }
  117. statusPill { flex = 'none' display = 'inline-block' padding = '.1rem .55rem' borderRadius = radiusSmall font = '700 .8rem/1.5 system-ui, sans-serif' whiteSpace = 'nowrap' color = colorAccentText background = colorTextMuted }
  118. 'status-pill.status-running' { background = colorSuccess }
  119. 'status-pill.status-pending' { background = colorWarning }
  120. 'status-pill.status-canceled' { background = colorDanger }
  121. // tracker.worldapi.org#12: the show on TMDB / IMDb / TheTVDB / TVmaze — small monochrome badges (CSS only, no copied
  122. // logos), muted like the other secondary text, the accent on hover. Phone: right under the title row (order -1, after it
  123. // in the markup), above the full-width poster.
  124. showLinks { order = '-1' display = 'flex' flexWrap = 'wrap' gap = '.4rem' }
  125. 'a.extlink' { display = 'inline-flex' alignItems = 'center' height = '1.5rem' padding = '0 .45rem' borderRadius = radiusSmall font = '700 .75rem/1 system-ui, sans-serif' letterSpacing = '.02em' color = colorBackground background = colorTextMuted }
  126. 'a.extlink:hover' { textDecoration = 'none' background = colorAccent }
  127. // mission 058 (#24): a movie's watched check + its word; phone: under the title row (order -1), above the poster
  128. movieWatch { order = '-1' display = 'flex' alignItems = 'center' gap = '.4rem' }
  129. movieWatchLabel { fontSize = '.95rem' color = colorText }
  130. showGenres { display = 'flex' flexWrap = 'wrap' gap = '.4rem' margin = '.5rem 0' }
  131. // tracker#32: no frame — the genre's colour on a surface
  132. '.genre-pill' { display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' padding = '.15rem .6rem' borderRadius = radiusSmall fontSize = '.85rem' color = colorType4 background = colorSurface }
  133. showSummary { display = 'block' margin = '.5rem 0' fontSize = '.95rem' color = colorText }
  134. // tracker.worldapi.org#28: crew (one small muted label per job, the names after it) and the whole cast — "Name (Character)",
  135. // comma-separated as before; names past the first 20 (a crew job: 6) are hidden while the block is `collapsed`, the "Show all"
  136. // button (no border: not inverted) flips the block's class (client-side). The character and the comma are the link's ::after
  137. // (`data-role`): one element per name, so no SSR line break can put a space before the comma.
  138. showCrew { display = 'block' margin = '.5rem 0' }
  139. showCast { display = 'block' margin = '.5rem 0' }
  140. castHeading { display = 'block' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  141. crewLabel { display = 'block' marginTop = '.35rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  142. 'show-crew crew-label:first-child' { marginTop = '0' }
  143. castLabel { display = 'block' margin = '.4rem 0 .1rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  144. '.artist-link' { color = colorType5 }
  145. '.crew-link' { color = colorType5 }
  146. 'a.artist-link::after' { content = "attr(data-role) ', '" color = colorTextMuted }
  147. 'a.crew-link::after' { content = "', '" color = colorTextMuted }
  148. 'a.artist-link.end::after,
  149. show-cast.collapsed a.artist-link.cut::after' { content = 'attr(data-role)' }
  150. 'a.crew-link.end::after,
  151. show-crew.collapsed a.crew-link.cut::after' { content = 'none' }
  152. 'show-cast.collapsed .more,
  153. show-crew.collapsed .more' { display = 'none' }
  154. 'button.showall' { display = 'block' margin = '.3rem 0 0' padding = '.15rem 0' fontSize = '.85rem' color = colorAccent background = 'transparent' }
  155. 'button.showall:hover' { background = 'transparent' textDecoration = 'underline' }
  156. 'show-cast.collapsed when-all,
  157. show-crew.collapsed when-all,
  158. show-cast.all when-collapsed,
  159. show-crew.all when-collapsed' { display = 'none' }
  160. showSeasons { display = 'block' }
  161. seasonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.6rem 0' borderTop = '1px solid ' + colorBorder } // functional: the season foldable's line (design rules: the creator keeps it)
  162. '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' }
  163. seasonCount { fontWeight = '400' fontSize = '.85rem' color = colorTextMuted }
  164. // the caret at the header's right edge (mission 047): DOWN while closed, UP while open (tracker#17 — was right/down)
  165. seasonCaret { flex = 'none' alignSelf = 'center' display = 'grid' marginLeft = 'auto' color = colorTextMuted transition = 'transform .15s' }
  166. 'season-caret svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  167. 'season-row.expanded season-caret' { transform = 'rotate(180deg)' }
  168. // episodes are NOT indented (mission 047): an episode's check sits under its season's check
  169. episodeRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  170. episodeNumber { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  171. episodeTitle { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  172. // mission 058 (#22): the episode's air date at the row's right edge, muted like the lists' dates
  173. episodeDate { flex = 'none' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  174. // tracker#17: a season's placeholder rows while its episodes load — the episode row's shape (check disc, number, title) in
  175. // a moving gradient (the shimmer); same height as an episode row so nothing jumps when the real rows replace them
  176. skeletonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  177. 'skeleton-check, skeleton-number, skeleton-title' { display = 'block' borderRadius = radiusSmall background = 'linear-gradient(90deg, ' + colorSurface + ' 35%, ' + colorBorder + ' 50%, ' + colorSurface + ' 65%)' backgroundSize = '400% 100%' animation = 'tracker-shimmer 1.4s linear infinite' }
  178. skeletonCheck { flex = 'none' width = '2rem' height = '2rem' borderRadius = '50%' margin = '.375rem 0' }
  179. skeletonNumber { flex = 'none' width = '1.6rem' height = '1rem' }
  180. skeletonTitle { flex = '1' maxWidth = '60%' height = '1rem' }
  181. 'skeleton-row:nth-of-type(even) skeleton-title' { maxWidth = '42%' }
  182. // tracker#26: an incomplete title while its details load (components/show.hl) — the poster's place (2:3, the poster's
  183. // width), a cast line, and season-shaped rows; the same shimmer
  184. 'skeleton-poster, skeleton-cast' { display = 'block' borderRadius = radiusLarge background = 'linear-gradient(90deg, ' + colorSurface + ' 35%, ' + colorBorder + ' 50%, ' + colorSurface + ' 65%)' backgroundSize = '400% 100%' animation = 'tracker-shimmer 1.4s linear infinite' }
  185. skeletonPoster { width = '100%' aspectRatio = '2 / 3' }
  186. skeletonCast { width = '70%' height = '1rem' margin = '.5rem 0' }
  187. showLoading { display = 'block' marginTop = '1rem' }
  188. // its tick (like personProbe): rendered, invisible
  189. showProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  190. '@keyframes tracker-shimmer' = {
  191. 'from' = { backgroundPosition = '100% 0' }
  192. to = { backgroundPosition = '0% 0' }
  193. }
  194. // the check: "a disc with a check in it" (drawn in CSS/SVG, no icon font) — solid (filled accent disc, dark check)
  195. // once watched; while not, its INVERSION (mission 047, the creator): an outline circle AND an outline check. tracker#29
  196. // (the creator: "in /my/unwatched all checkboxes are active"): in the accent colour the outline read as ticked, so the
  197. // unwatched outline is MUTED grey (empty, nothing filled) and only turns accent under the pointer; watched stays solid accent
  198. 'button.checkicon' { flex = 'none' display = 'grid' placeItems = 'center' width = '2.75rem' height = '2.75rem' minHeight = '0' padding = '0' background = 'transparent' border = '0' borderRadius = '50%' cursor = 'pointer' }
  199. '.checkicon circle' { fill = 'transparent' stroke = colorTextMuted strokeWidth = '1.5' }
  200. '.checkicon path' { fill = 'none' stroke = colorTextMuted strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  201. 'button.checkicon.regular:hover circle,
  202. button.checkicon.regular:hover path' { stroke = colorAccent }
  203. '.checkicon.solid circle' { fill = colorAccent stroke = colorAccent }
  204. '.checkicon.solid path' { stroke = colorAccentText }
  205. // ---- /unwatched (tracker.worldapi.org#5) ----------------------------------------------------
  206. unwatchedPage { display = 'block' }
  207. unwatchedRows { display = 'block' }
  208. // phone: two lines next to the check — show title + date, below it the episode; one line from 40rem
  209. unwatchedRow { display = 'grid' gridTemplateColumns = '2rem minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' }
  210. 'unwatched-row button.checkicon' { gridRow = 'span 2' }
  211. '.unwatched-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  212. unwatchedEpisode { gridColumn = '2 / 4' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  213. unwatchedDate { gridRow = '1' gridColumn = '3' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  214. // ---- /schedule (tracker.worldapi.org#6) — same row layout as /unwatched, minus the check icon -----
  215. schedulePage { display = 'block' }
  216. scheduleRows { display = 'block' }
  217. scheduleRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' }
  218. '.schedule-show' { fontWeight = '600' overflowWrap = 'anywhere' }
  219. scheduleEpisode { gridColumn = '1 / 3' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  220. scheduleDate { gridRow = '1' gridColumn = '2' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  221. // ---- /my/shows (tracker.worldapi.org#7) — small poster, title, last watched episode ------------
  222. myShowsPage { display = 'block' }
  223. myShowsRows { display = 'block' }
  224. myShowRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.5rem 0' }
  225. 'img.myshow-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  226. '.myshow-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  227. myShowEpisode { flex = 'none' fontSize = '.9rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  228. // /my/movies (mission 058, #24): a watched movie's check, the episodes' solid disc, not clickable
  229. myMovieWatched { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' }
  230. // ---- franchises and timelines (tracker.worldapi.org#19, mission 066) ------------------------------------------------------
  231. // the widget on a show / movie page: the franchise above, then ONE row "‹ Prequel | Timeline | Sequel ›" — three columns that
  232. // never scroll sideways on a phone (the outer two shrink, their title cut to one line); a disabled end is muted
  233. // mission 025: inside the show header (components/show.hl) — under the poster on a phone, under the title from 40rem; none when the
  234. // title is in no timeline
  235. franchiseWidgets { display = 'block' margin = '0' }
  236. 'franchise-widgets:not(:has(franchise-widget))' { display = 'none' }
  237. franchiseWidget { display = 'block' padding = '.5rem .6rem' marginBottom = '.5rem' background = colorSurface borderRadius = radiusLarge }
  238. 'a.fw-franchise' { display = 'block' marginBottom = '.3rem' fontSize = '.8rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' textAlign = 'center' }
  239. fwRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr)' alignItems = 'center' gap = '.5rem' }
  240. '.fw-side' { display = 'flex' flexDirection = 'column' minWidth = '0' color = colorAccent }
  241. '.fw-next' { alignItems = 'flex-end' textAlign = 'right' }
  242. '.fw-side.off' { color = colorTextMuted opacity = '.5' }
  243. 'a.fw-side:hover' { textDecoration = 'none' }
  244. 'a.fw-side:hover fw-dir' { textDecoration = 'underline' }
  245. fwDir { fontWeight = '600' whiteSpace = 'nowrap' }
  246. fwTitle { fontSize = '.8rem' color = colorTextMuted whiteSpace = 'nowrap' overflow = 'hidden' textOverflow = 'ellipsis' maxWidth = '100%' }
  247. 'a.fw-timeline' { minWidth = '0' fontWeight = '600' color = colorTextStrong textAlign = 'center' overflowWrap = 'anywhere' padding = '0 .4rem' }
  248. // /franchises, /franchises/<slug>, /timelines/<slug> and the editor
  249. franchisesPage { display = 'block' }
  250. franchisePage { display = 'block' }
  251. franchisesHead { display = 'flex' alignItems = 'center' gap = '.6rem' marginBottom = '.8rem' }
  252. 'franchises-head h1' { flex = '1' minWidth = '0' margin = '0' overflowWrap = 'anywhere' }
  253. 'franchises-head a.button' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  254. 'a.franchise-up' { display = 'inline-block' marginBottom = '.3rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' }
  255. 'p.franchise-summary' { margin = '-.3rem 0 1rem' color = colorText }
  256. franchiseList { display = 'block' marginBottom = '1.2rem' }
  257. 'a.franchise-row' { display = 'flex' alignItems = 'baseline' gap = '.8rem' padding = '.6rem 0' color = colorTextStrong }
  258. franchiseName { flex = '1' minWidth = '0' fontSize = '1.05rem' fontWeight = '600' overflowWrap = 'anywhere' }
  259. franchiseCount { flex = 'none' fontSize = '.85rem' color = colorTextMuted }
  260. timelineList { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr)' gap = '0 1.2rem' }
  261. 'a.timeline-link' { display = 'flex' alignItems = 'baseline' gap = '.6rem' padding = '.35rem 0' color = colorText }
  262. timelineLinkName { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  263. timelineLinkCount { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  264. timelineBlocks { display = 'block' }
  265. timelineHead { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.4rem .8rem' padding = '.8rem 0 .4rem' marginTop = '.6rem' }
  266. // tracker#40: the name never squeezed to one letter by a longer count ("23 titles · in-universe order") — the count wraps under it
  267. timelineTitle { flex = '1 1 12rem' minWidth = '0' display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem .6rem' }
  268. 'a.timeline-name' { fontSize = '1.05rem' fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  269. timelineCount { flex = 'none' fontSize = '.85rem' color = colorTextMuted }
  270. sortToggle { flex = 'none' display = 'flex' padding = '.15rem' background = colorSurface borderRadius = radiusSmall }
  271. 'button.sortbtn' { padding = '.25rem .7rem' fontSize = '.85rem' color = colorText background = 'transparent' }
  272. 'button.sortbtn.on' { color = colorAccentText background = colorAccent }
  273. 'a.timeline-item' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText }
  274. 'a.timeline-item:hover' { textDecoration = 'none' }
  275. 'a.timeline-item:hover film-title' { color = colorAccent }
  276. franchiseEditPage { display = 'block' }
  277. timelineEditPage { display = 'block' }
  278. editSection { display = 'flex' flexDirection = 'column' gap = '.5rem' marginBottom = '1.4rem' }
  279. 'edit-section input, edit-section textarea' { display = 'block' width = '100%' padding = '.55rem .75rem' font = 'inherit' color = colorTextStrong background = colorSurface border = '0' borderRadius = radiusSmall outline = 'none' }
  280. 'edit-section input:focus, edit-section textarea:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  281. 'edit-section > button' { alignSelf = 'flex-start' }
  282. chipRow { display = 'flex' flexWrap = 'wrap' gap = '.4rem' }
  283. 'button.chip' { padding = '.3rem .8rem' fontSize = '.9rem' color = colorText background = colorSurface }
  284. 'button.chip.on' { color = colorAccentText background = colorAccent }
  285. 'a.edit-new-franchise' { fontSize = '.9rem' }
  286. editRows { display = 'block' }
  287. editRow { display = 'flex' alignItems = 'center' gap = '.5rem' padding = '.4rem 0' }
  288. editPos { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' textAlign = 'right' }
  289. 'button.mv' { flex = 'none' width = '2.75rem' height = '2.75rem' padding = '0' fontSize = '1.1rem' }
  290. 'button.mv.off' { opacity = '.3' pointerEvents = 'none' }
  291. 'button.mv.rm' { color = colorDanger }
  292. // ---- / (tracker.worldapi.org#13): signed in, four big icon tiles; then the text and two poster rows ----------------
  293. home { display = 'block' }
  294. // tracker#21: five tiles (Unwatched, Schedule, Series, Shows, Movies) — three per row on a phone, one row of five from 40rem
  295. homeNav { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.6rem' marginBottom = '1.2rem' }
  296. 'a.hometile' { display = 'flex' flexDirection = 'column' alignItems = 'center' justifyContent = 'center' gap = '.4rem' padding = '1rem .5rem' borderRadius = radiusLarge color = colorTextStrong background = colorSurface fontWeight = '600' }
  297. 'a.hometile:hover' { textDecoration = 'none' color = colorAccent }
  298. 'a.hometile svg' { display = 'block' width = '2.5rem' height = '2.5rem' fill = 'none' stroke = colorAccent strokeWidth = '1.6' strokeLinecap = 'round' strokeLinejoin = 'round' }
  299. homeIntro { display = 'block' marginBottom = '1rem' color = colorText }
  300. 'home-intro p' { margin = '0 0 .6rem' }
  301. homeSection { display = 'block' marginBottom = '1.2rem' }
  302. 'home-section h2' { margin = '0 0 .5rem' fontSize = '1.1rem' }
  303. 'home-section h2 a' { color = colorTextStrong }
  304. // tracker#20: Movies / Series / Shows in their type's colour (more specific than the rule above)
  305. 'home-section h2 a.type-movie' { color = colorType1 }
  306. 'home-section h2 a.type-series' { color = colorType2 }
  307. 'home-section h2 a.type-show' { color = colorType3 }
  308. 'home-section h2 a::after' { content = "' ›'" color = colorAccent }
  309. // phone: the row scrolls sideways INSIDE itself (the page never does); from 40rem a grid of 5
  310. tileRow { display = 'flex' gap = '.6rem' overflowX = 'auto' scrollSnapType = 'x proximity' paddingBottom = '.4rem' }
  311. 'tile-row a.tile' { flex = 'none' width = '7rem' scrollSnapAlign = 'start' }
  312. // /movies, /series and /shows: a grid of 3 on a phone, 6 from 40rem
  313. listPage { display = 'block' }
  314. '.list-count' { margin = '-.4rem 0 .8rem' fontSize = '.9rem' }
  315. tileGrid { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.8rem .6rem' marginBottom = '1rem' }
  316. pagerBox { display = 'block' margin = '1rem 0' }
  317. // the shared pagination (components/pagination.hl, its own Style): its buttons are the theme's 44 px taps, so on a phone the
  318. // row is tight (small gap and padding) and may wrap to a second line rather than shrink a tap target
  319. 'pager-box pagination ol' { gap = '.1rem' }
  320. 'pager-box pagination button' { padding = '.3rem .3rem' fontSize = '.95rem' }
  321. // a tile: the poster (2:3, the placeholder until the sync has a real one), the title (two lines at most), the year
  322. 'a.tile' { display = 'block' minWidth = '0' color = colorText }
  323. 'a.tile:hover' { textDecoration = 'none' }
  324. 'a.tile:hover tile-title' { color = colorAccent }
  325. 'img.tile-poster' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusLarge background = colorSurface }
  326. 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' }
  327. tileYear { display = 'block' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  328. // /people (tracker#37): a person's tile — the photo, the name in the person colour (the type's, like the search's people)
  329. 'a.person-tile tile-title' { color = colorType5 }
  330. 'a.person-tile tile-year' { display = 'none' }
  331. myMoviesPage { display = 'block' }
  332. // /genres (tracker#32, mission 031): the genres as quiet pills that wrap — the genre colour on a surface
  333. genreLinks { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }
  334. 'a.genre-link' { display = 'inline-flex' alignItems = 'baseline' gap = '.45rem' minHeight = '2.75rem' padding = '.35rem .85rem' borderRadius = radiusSmall fontWeight = '600' color = colorType4 background = colorSurface }
  335. 'a.genre-link:hover' { textDecoration = 'none' color = colorTextStrong }
  336. genreCount { fontSize = '.8rem' fontWeight = '400' color = colorTextMuted }
  337. settingsPage { display = 'block' }
  338. // ---- the search (tracker.worldapi.org#14) — the header's magnifier and /search ------------------------------------
  339. searchPage { display = 'block' }
  340. searchBar { display = 'block' marginBottom = '.8rem' }
  341. '#searchinput' { display = 'block' width = '100%' padding = '.55rem .75rem' font = 'inherit' color = colorTextStrong background = colorSurface border = '0' borderRadius = radiusSmall outline = 'none' }
  342. '#searchinput:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  343. searchSection { display = 'block' marginBottom = '1rem' }
  344. 'search-section h2' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  345. searchRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' }
  346. webRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' }
  347. 'img.search-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  348. '.search-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' }
  349. '.search-person' { flex = '1' minWidth = '0' fontWeight = '600' color = colorType5 overflowWrap = 'anywhere' }
  350. searchType { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  351. webText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  352. webTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  353. 'button.add' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  354. webBar { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '.6rem 0' }
  355. // ---- /person/<slug> (tracker.worldapi.org#16): photo + facts + bio, then the filmography rows ----------------------
  356. // the photo left of the name (phone 6rem, from 40rem 10rem). Rows like the search's: small poster, title, year · kind,
  357. // the role below
  358. personPage { display = 'block' }
  359. personHeader { display = 'flex' alignItems = 'flex-start' gap = '.8rem' marginBottom = '1rem' }
  360. personPhoto { flex = 'none' display = 'block' width = '6rem' }
  361. 'person-photo img' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusLarge background = colorSurface }
  362. personMeta { display = 'block' minWidth = '0' overflowWrap = 'anywhere' }
  363. personFact { display = 'block' fontSize = '.95rem' color = colorTextMuted }
  364. // the bio under photo + facts, full width; four lines until clicked (components/person.hl toggleBio)
  365. personBio { display = 'block' margin = '0 0 1rem' fontSize = '.95rem' whiteSpace = 'pre-line' cursor = 'pointer' }
  366. 'person-bio.short' { display = '-webkit-box' overflow = 'hidden' '-webkit-line-clamp' = '4' '-webkit-box-orient' = 'vertical' }
  367. 'h2.film-heading' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  368. personLoading { display = 'block' padding = '.6rem 0' color = colorTextMuted animation = 'tracker-person-pulse 1.2s ease-in-out infinite alternate' }
  369. // the fill's tick (components/person.hl): rendered (an animation needs it) but invisible, like netProbe
  370. personProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  371. '@keyframes tracker-person-tick' = {
  372. 'from' = { opacity = '0' }
  373. to = { opacity = '0' }
  374. }
  375. '@keyframes tracker-person-pulse' = {
  376. 'from' = { opacity = '1' }
  377. to = { opacity = '.45' }
  378. }
  379. filmRows { display = 'block' }
  380. 'a.film-row' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText }
  381. 'a.film-row:hover' { textDecoration = 'none' }
  382. 'a.film-row:hover film-title' { color = colorAccent }
  383. 'img.film-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  384. filmText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  385. filmTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  386. filmMeta { display = 'flex' gap = '.5rem' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  387. filmRole { fontSize = '.85rem' color = colorType5 overflowWrap = 'anywhere' }
  388. 'film-role:empty' { display = 'none' }
  389. 'film-year:empty' { display = 'none' }
  390. // ---- wider screens (≥ 40rem = 640 px): only what changes from the phone -------------------------
  391. '@media (min-width: 40rem)' = {
  392. showHeader = { flexDirection = 'row' alignItems = 'flex-start' gap = '1rem' marginBottom = '1.5rem' }
  393. showPoster = { flex = 'none' width = '10rem' }
  394. showMeta = { display = 'block' flex = '1' minWidth = '0' }
  395. showTitle = { marginBottom = '1rem' }
  396. movieWatch = { margin = '-.4rem 0 .8rem' }
  397. showSummary = { fontSize = '1rem' }
  398. episodeRow = { padding = '.4rem 0' }
  399. skeletonRow = { padding = '.4rem 0' }
  400. unwatchedRow = { display = 'flex' }
  401. '.unwatched-show' = { flex = 'none' }
  402. unwatchedEpisode = { flex = '1' }
  403. unwatchedDate = { flex = 'none' }
  404. scheduleRow = { display = 'flex' }
  405. '.schedule-show' = { flex = 'none' }
  406. scheduleEpisode = { flex = '1' }
  407. scheduleDate = { flex = 'none' }
  408. homeNav = { gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem' }
  409. 'a.hometile' = { padding = '1.4rem .5rem' }
  410. tileRow = { display = 'grid' gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem .8rem' overflowX = 'visible' }
  411. 'tile-row a.tile' = { width = 'auto' }
  412. tileGrid = { gridTemplateColumns = 'repeat(6, minmax(0, 1fr))' gap = '1rem .8rem' }
  413. 'pager-box pagination ol' = { gap = '.3rem' }
  414. 'pager-box pagination button' = { padding = '.35rem .6rem' fontSize = '1rem' }
  415. personHeader = { gap = '1rem' }
  416. personPhoto = { width = '10rem' }
  417. timelineList = { gridTemplateColumns = 'repeat(2, minmax(0, 1fr))' }
  418. fwRow = { gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr)' }
  419. franchiseWidgets = { margin = '.5rem 0' }
  420. }
  421. // ---- from 60rem (the theme's header breakpoint): the signed-out header shows the selector itself, no icon ----------------
  422. '@media (min-width: 60rem)' = {
  423. 'ident-menu > button.ident-toggle' = { display = 'none' }
  424. '#ident-panel,
  425. #ident-panel:popover-open' = { position = 'static' inset = 'auto' display = 'flex' alignItems = 'center' width = 'auto' minWidth = '0' maxWidth = 'none' height = 'auto' margin = '0' padding = '0' overflow = 'visible' color = 'inherit' background = 'transparent' border = '0' boxShadow = 'none' }
  426. '#ident-panel #loginbutton' = { display = 'none' }
  427. identSelector = { position = 'relative' }
  428. 'ident-selector::part(panel)' = { position = 'absolute' top = '100%' right = '0' zIndex = '30' boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  429. }

Branches

Latest commits

  • d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmre
  • 5bd14e12mission 040: theme 76f99f6 gates + E2E green; 44 px fixes (skeleton row, type-word, genre-link/pill); README, reportmre
  • 77cfa45cmission 040: partial report (theme/modal/pagination re-copied, tilelist onPage, 44 px taps; gates new + E2E pending)mre
  • 4b14822fe2e-theme: menu marker by colourmre
  • 09780f4emission 040 WIP: theme, modal, pagination, tokens re-copied from layouts 76f99f6; tilelist uses onPage; tap sizes 44 px for tracker's own small buttons; tests/e2e-theme.mjsmre
  • fb80bb8chotfix: open the 5 show stores without compaction (compact = false) — compact-on-open left another handle on stale offsets, every read gave a bare Number (hybriel mpackdb refresh after a shrink); live down 2026-10-20 05:11mre
  • e00d3bf7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • a8c7f234tracker#36 (mission 039): tools/tmdb-check.hl survives a dropped connection (on Error, asked again, failed lines) and resumes with --from N; tests/tmdbcheck.mjs 6/6 against a fake TMDBmre
  • 9c230516mission brief w39mre
  • 3609121dmission 038 docs + report (quota stop): README/kinds.md for #43 #42 #36, STATUS, LOG; HEAD browser gate 374/8 in the in-app daily run block (hour-boundary suspected, rerun pending), other gates green; #36 real run needs TMDB_READ_TOKENmre
  • a5d06e79tracker#36 (mission 038): tools/tmdb-check.hl + lib/tmdbcheck.hl — every live migrated title's migrated title + year against its TMDB entry (one GET /movie|tv/<id>?append_to_response=alternative_titles, 260 ms apart, passing failures asked once more): ok / ambiguous (one of title, year disagrees) / clear (both, or 404); read-only; token only from TMDB_READ_TOKEN; --stored = a title-only preview from the TMDB names already stored (no request). Tested against a fake TMDB (.scratch/w38/t36): 7 titles, 3 ok, 2 ambiguous, 2 clear, data unchangedmre
  • 982554f3tracker#42 (mission 038): series pages — an unknown slug no longer scans every title (lib/shows.hl showBySlug: the slug map only; new titles are noted by refreshTitleCaches, which both title puts already reach): 10.7–15.7 s → 0.013 s on the real copy (the one-request-at-a-time server was blocked meanwhile); cast/crew rows take name + slug from a person-link cache (personLinkOf) instead of whole person records (SNL: 303 cast with 4,761 credits, ~49k allocations per render) — allocations per series page −5…−40 %; HTML of 20 pages identical to beforemre
  • 4586b6e3docker-compose: init: true (hybriel#156)mre
  • 085c2e5ftracker#43 (mission 038): TVmaze's type makes Variety / Talk Show / Game Show / Reality / News / Panel Show / Award Show / Sports titles Shows (TMDB calls Saturday Night Live UK Scripted) — the #43 part of parked w37-wip a79c8c1 only (no re-vendor, no cache volume): tvmazeType stored by the sync and the TVmaze status backfill (asks every series with a TVmaze id once), kindOfTitle/kindWithTvmaze, tools/tvmaze-types.hl, gate fixture Variety Gate Series; start waits 150 smre
  • 4fa303b5mission brief w38mre
  • 975f6843tracker#41 (mission 037b): no request tap — an old /movies|/series slug renders the keeper's page (slug map) with og:url naming the keeper's address, /shows/ 301; no moved slug in any page's HTML. Real copy 168/168 old addresses, 0 moved slugs in 54 pages, 300x + 1000x stress without a crash; gates on 06617221 380/0, 32/0, 53/0, 229/0, 26/0, theme 0mre
  • 6decff4ftracker#41 (mission 037): moved slugs no longer listed in every page's HTML — a request tap answers their 301 by a slug-map lookup (shows.hl movedTitlePath); catalog.hl buildIndex pushes genre lists in place (the quadratic copy hung the boot > 20 min on today's data); gate: no moved slug in 19 page kinds signed out/in, immediate 301 after a merge. Gates on hybriel 06617221 green (380/0, 32/0, 53/0, 229/0, 26/0, theme 0); real copy 84/84 301, 0 moved slugs in 54 pages. NOT deployable: the tap faults after ~38 answers on 06617221 (report 037).mre
  • 35f7a872mission brief 037mre
  • 5cbcddd7tracker mission 036: recheck of the 16 review tickets — 15 WORKS, #39 PARTLY; review packages + bugs in reports/036-review-recheck.md (no code change)mre
  • 9e18c2d0mission brief (w36)mre