gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6adbc7f06adbc7f0extlink badges: background-clip after the background shorthand (it reset the clip: the pills were 44 px tall); gates check the lookmre6adbc7f0/components/styles.hl

38.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. // mobile audit MK: the pill stays 1.5rem tall to the eye, its TAP area is 44 px (transparent .625rem borders above and below, the background stops at the
  126. // padding box, the negative margin gives the height back to the layout)
  127. 'a.extlink' { display = 'inline-flex' alignItems = 'center' boxSizing = 'content-box' height = '1.5rem' padding = '0 .45rem' border = '0 solid transparent' borderWidth = '.625rem 0' margin = '-.625rem 0' borderRadius = radiusSmall font = '700 .75rem/1 system-ui, sans-serif' letterSpacing = '.02em' color = colorBackground background = colorTextMuted backgroundClip = 'padding-box' } // functional: transparent borders make the 44 px tap area of a 24 px pill (the background stops at the padding box)
  128. 'a.extlink:hover' { textDecoration = 'none' background = colorAccent }
  129. // mission 058 (#24): a movie's watched check + its word; phone: under the title row (order -1), above the poster
  130. movieWatch { order = '-1' display = 'flex' alignItems = 'center' gap = '.4rem' }
  131. movieWatchLabel { fontSize = '.95rem' color = colorText }
  132. showGenres { display = 'flex' flexWrap = 'wrap' gap = '.4rem' margin = '.5rem 0' }
  133. // tracker#32: no frame — the genre's colour on a surface
  134. '.genre-pill' { display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' padding = '.15rem .6rem' borderRadius = radiusSmall fontSize = '.85rem' color = colorType4 background = colorSurface }
  135. showSummary { display = 'block' margin = '.5rem 0' fontSize = '.95rem' color = colorText }
  136. // tracker.worldapi.org#28: crew (one small muted label per job, the names after it) and the whole cast — "Name (Character)",
  137. // comma-separated as before; names past the first 20 (a crew job: 6) are hidden while the block is `collapsed`, the "Show all"
  138. // button (no border: not inverted) flips the block's class (client-side). The character and the comma are the link's ::after
  139. // (`data-role`): one element per name, so no SSR line break can put a space before the comma.
  140. showCrew { display = 'block' margin = '.5rem 0' }
  141. showCast { display = 'block' margin = '.5rem 0' }
  142. castHeading { display = 'block' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  143. crewLabel { display = 'block' marginTop = '.35rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  144. 'show-crew crew-label:first-child' { marginTop = '0' }
  145. castLabel { display = 'block' margin = '.4rem 0 .1rem' fontSize = '.75rem' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  146. '.artist-link' { color = colorType5 }
  147. '.crew-link' { color = colorType5 }
  148. 'a.artist-link::after' { content = "attr(data-role) ', '" color = colorTextMuted }
  149. 'a.crew-link::after' { content = "', '" color = colorTextMuted }
  150. 'a.artist-link.end::after,
  151. show-cast.collapsed a.artist-link.cut::after' { content = 'attr(data-role)' }
  152. 'a.crew-link.end::after,
  153. show-crew.collapsed a.crew-link.cut::after' { content = 'none' }
  154. 'show-cast.collapsed .more,
  155. show-crew.collapsed .more' { display = 'none' }
  156. 'button.showall' { display = 'block' margin = '.3rem 0 0' padding = '.15rem 0' fontSize = '.85rem' color = colorAccent background = 'transparent' }
  157. 'button.showall:hover' { background = 'transparent' textDecoration = 'underline' }
  158. 'show-cast.collapsed when-all,
  159. show-crew.collapsed when-all,
  160. show-cast.all when-collapsed,
  161. show-crew.all when-collapsed' { display = 'none' }
  162. showSeasons { display = 'block' }
  163. 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)
  164. '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' }
  165. seasonCount { fontWeight = '400' fontSize = '.85rem' color = colorTextMuted }
  166. // the caret at the header's right edge (mission 047): DOWN while closed, UP while open (tracker#17 — was right/down)
  167. seasonCaret { flex = 'none' alignSelf = 'center' display = 'grid' marginLeft = 'auto' color = colorTextMuted transition = 'transform .15s' }
  168. 'season-caret svg' { display = 'block' fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  169. 'season-row.expanded season-caret' { transform = 'rotate(180deg)' }
  170. // episodes are NOT indented (mission 047): an episode's check sits under its season's check
  171. episodeRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  172. episodeNumber { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  173. episodeTitle { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  174. // mission 058 (#22): the episode's air date at the row's right edge, muted like the lists' dates
  175. episodeDate { flex = 'none' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  176. // tracker#17: a season's placeholder rows while its episodes load — the episode row's shape (check disc, number, title) in
  177. // a moving gradient (the shimmer); same height as an episode row so nothing jumps when the real rows replace them
  178. skeletonRow { display = 'flex' alignItems = 'center' gap = '.6rem' padding = '.3rem 0' }
  179. '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' }
  180. skeletonCheck { flex = 'none' width = '2rem' height = '2rem' borderRadius = '50%' margin = '.375rem 0' }
  181. skeletonNumber { flex = 'none' width = '1.6rem' height = '1rem' }
  182. skeletonTitle { flex = '1' maxWidth = '60%' height = '1rem' }
  183. 'skeleton-row:nth-of-type(even) skeleton-title' { maxWidth = '42%' }
  184. // tracker#26: an incomplete title while its details load (components/show.hl) — the poster's place (2:3, the poster's
  185. // width), a cast line, and season-shaped rows; the same shimmer
  186. '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' }
  187. skeletonPoster { width = '100%' aspectRatio = '2 / 3' }
  188. skeletonCast { width = '70%' height = '1rem' margin = '.5rem 0' }
  189. showLoading { display = 'block' marginTop = '1rem' }
  190. // its tick (like personProbe): rendered, invisible
  191. showProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  192. '@keyframes tracker-shimmer' = {
  193. 'from' = { backgroundPosition = '100% 0' }
  194. to = { backgroundPosition = '0% 0' }
  195. }
  196. // the check: "a disc with a check in it" (drawn in CSS/SVG, no icon font) — solid (filled accent disc, dark check)
  197. // once watched; while not, its INVERSION (mission 047, the creator): an outline circle AND an outline check. tracker#29
  198. // (the creator: "in /my/unwatched all checkboxes are active"): in the accent colour the outline read as ticked, so the
  199. // unwatched outline is MUTED grey (empty, nothing filled) and only turns accent under the pointer; watched stays solid accent
  200. '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' }
  201. '.checkicon circle' { fill = 'transparent' stroke = colorTextMuted strokeWidth = '1.5' }
  202. '.checkicon path' { fill = 'none' stroke = colorTextMuted strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  203. 'button.checkicon.regular:hover circle,
  204. button.checkicon.regular:hover path' { stroke = colorAccent }
  205. '.checkicon.solid circle' { fill = colorAccent stroke = colorAccent }
  206. '.checkicon.solid path' { stroke = colorAccentText }
  207. // ---- /unwatched (tracker.worldapi.org#5) ----------------------------------------------------
  208. unwatchedPage { display = 'block' }
  209. unwatchedRows { display = 'block' }
  210. // phone: two lines next to the check — show title + date, below it the episode; one line from 40rem
  211. unwatchedRow { display = 'grid' gridTemplateColumns = '2rem minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' }
  212. 'unwatched-row button.checkicon' { gridRow = 'span 2' }
  213. '.unwatched-show' { fontWeight = '600' overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  214. unwatchedEpisode { gridColumn = '2 / 4' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  215. unwatchedDate { gridRow = '1' gridColumn = '3' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  216. // ---- /schedule (tracker.worldapi.org#6) — same row layout as /unwatched, minus the check icon -----
  217. schedulePage { display = 'block' }
  218. scheduleRows { display = 'block' }
  219. scheduleRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) auto' alignItems = 'center' gap = '0 .6rem' padding = '.5rem 0' }
  220. '.schedule-show' { fontWeight = '600' overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  221. scheduleEpisode { gridColumn = '1 / 3' gridRow = '2' color = colorText overflowWrap = 'anywhere' }
  222. scheduleDate { gridRow = '1' gridColumn = '2' fontSize = '.85rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  223. // ---- /my/shows (tracker.worldapi.org#7) — small poster, title, last watched episode ------------
  224. myShowsPage { display = 'block' }
  225. myShowsRows { display = 'block' }
  226. myShowRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.5rem 0' }
  227. 'img.myshow-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  228. '.myshow-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  229. myShowEpisode { flex = 'none' fontSize = '.9rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  230. // /my/movies (mission 058, #24): a watched movie's check, the episodes' solid disc, not clickable
  231. myMovieWatched { flex = 'none' display = 'grid' placeItems = 'center' width = '2rem' height = '2rem' }
  232. // ---- franchises and timelines (tracker.worldapi.org#19, mission 066) ------------------------------------------------------
  233. // the widget on a show / movie page: the franchise above, then ONE row "‹ Prequel | Timeline | Sequel ›" — three columns that
  234. // never scroll sideways on a phone (the outer two shrink, their title cut to one line); a disabled end is muted
  235. // mission 025: inside the show header (components/show.hl) — under the poster on a phone, under the title from 40rem; none when the
  236. // title is in no timeline
  237. franchiseWidgets { display = 'block' margin = '0' }
  238. 'franchise-widgets:not(:has(franchise-widget))' { display = 'none' }
  239. franchiseWidget { display = 'block' padding = '.5rem .6rem' marginBottom = '.5rem' background = colorSurface borderRadius = radiusLarge }
  240. 'a.fw-franchise' { display = 'block' padding = '.8rem 0' marginBottom = '0' fontSize = '.8rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' textAlign = 'center' }
  241. fwRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr)' alignItems = 'center' gap = '.5rem' }
  242. '.fw-side' { display = 'flex' flexDirection = 'column' justifyContent = 'center' minHeight = '2.75rem' minWidth = '0' color = colorAccent }
  243. '.fw-next' { alignItems = 'flex-end' textAlign = 'right' }
  244. '.fw-side.off' { color = colorTextMuted opacity = '.5' }
  245. 'a.fw-side:hover' { textDecoration = 'none' }
  246. 'a.fw-side:hover fw-dir' { textDecoration = 'underline' }
  247. fwDir { fontWeight = '600' whiteSpace = 'nowrap' }
  248. fwTitle { fontSize = '.8rem' color = colorTextMuted whiteSpace = 'nowrap' overflow = 'hidden' textOverflow = 'ellipsis' maxWidth = '100%' }
  249. 'a.fw-timeline' { minWidth = '0' fontWeight = '600' color = colorTextStrong textAlign = 'center' overflowWrap = 'anywhere' padding = '0 .4rem' }
  250. // /franchises, /franchises/<slug>, /timelines/<slug> and the editor
  251. franchisesPage { display = 'block' }
  252. franchisePage { display = 'block' }
  253. franchisesHead { display = 'flex' alignItems = 'center' gap = '.6rem' marginBottom = '.8rem' }
  254. 'franchises-head h1' { flex = '1' minWidth = '0' margin = '0' overflowWrap = 'anywhere' }
  255. 'franchises-head a.button' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  256. 'a.franchise-up' { display = 'inline-block' marginBottom = '.3rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' }
  257. 'p.franchise-summary' { margin = '-.3rem 0 1rem' color = colorText }
  258. franchiseList { display = 'block' marginBottom = '1.2rem' }
  259. 'a.franchise-row' { display = 'flex' alignItems = 'baseline' gap = '.8rem' padding = '.6rem 0' color = colorTextStrong }
  260. franchiseName { flex = '1' minWidth = '0' fontSize = '1.05rem' fontWeight = '600' overflowWrap = 'anywhere' }
  261. franchiseCount { flex = 'none' fontSize = '.85rem' color = colorTextMuted }
  262. timelineList { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr)' gap = '0 1.2rem' }
  263. 'a.timeline-link' { display = 'flex' alignItems = 'center' gap = '.6rem' minHeight = '2.75rem' padding = '.35rem 0' color = colorText }
  264. timelineLinkName { flex = '1' minWidth = '0' overflowWrap = 'anywhere' }
  265. timelineLinkCount { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  266. timelineBlocks { display = 'block' }
  267. timelineHead { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.4rem .8rem' padding = '.8rem 0 .4rem' marginTop = '.6rem' }
  268. // tracker#40: the name never squeezed to one letter by a longer count ("23 titles · in-universe order") — the count wraps under it
  269. timelineTitle { flex = '1 1 12rem' minWidth = '0' display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem .6rem' }
  270. 'a.timeline-name' { minWidth = '2.75rem' fontSize = '1.05rem' fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  271. timelineCount { flex = 'none' fontSize = '.85rem' color = colorTextMuted }
  272. sortToggle { flex = 'none' display = 'flex' padding = '.15rem' background = colorSurface borderRadius = radiusSmall }
  273. 'button.sortbtn' { padding = '.25rem .7rem' fontSize = '.85rem' color = colorText background = 'transparent' }
  274. 'button.sortbtn.on' { color = colorAccentText background = colorAccent }
  275. 'a.timeline-item' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText }
  276. 'a.timeline-item:hover' { textDecoration = 'none' }
  277. 'a.timeline-item:hover film-title' { color = colorAccent }
  278. franchiseEditPage { display = 'block' }
  279. timelineEditPage { display = 'block' }
  280. editSection { display = 'flex' flexDirection = 'column' gap = '.5rem' marginBottom = '1.4rem' }
  281. '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' }
  282. 'edit-section input:focus, edit-section textarea:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  283. 'edit-section > button' { alignSelf = 'flex-start' }
  284. chipRow { display = 'flex' flexWrap = 'wrap' gap = '.4rem' }
  285. 'button.chip' { padding = '.3rem .8rem' fontSize = '.9rem' color = colorText background = colorSurface }
  286. 'button.chip.on' { color = colorAccentText background = colorAccent }
  287. 'a.edit-new-franchise' { display = 'block' padding = '.8rem 0' fontSize = '.9rem' }
  288. editRows { display = 'block' }
  289. editRow { display = 'flex' alignItems = 'center' gap = '.5rem' padding = '.4rem 0' }
  290. editPos { flex = 'none' width = '1.6rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' textAlign = 'right' }
  291. 'button.mv' { flex = 'none' width = '2.75rem' height = '2.75rem' padding = '0' fontSize = '1.1rem' }
  292. 'button.mv.off' { opacity = '.3' pointerEvents = 'none' }
  293. 'button.mv.rm' { color = colorDanger }
  294. // ---- / (tracker.worldapi.org#13): signed in, four big icon tiles; then the text and two poster rows ----------------
  295. home { display = 'block' }
  296. // tracker#21: five tiles (Unwatched, Schedule, Series, Shows, Movies) — three per row on a phone, one row of five from 40rem
  297. homeNav { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.6rem' marginBottom = '1.2rem' }
  298. 'a.hometile' { display = 'flex' flexDirection = 'column' alignItems = 'center' justifyContent = 'center' gap = '.4rem' padding = '1rem .5rem' borderRadius = radiusLarge color = colorTextStrong background = colorSurface fontWeight = '600' }
  299. 'a.hometile:hover' { textDecoration = 'none' color = colorAccent }
  300. 'a.hometile svg' { display = 'block' width = '2.5rem' height = '2.5rem' fill = 'none' stroke = colorAccent strokeWidth = '1.6' strokeLinecap = 'round' strokeLinejoin = 'round' }
  301. homeIntro { display = 'block' marginBottom = '1rem' color = colorText }
  302. 'home-intro p' { margin = '0 0 .6rem' }
  303. homeSection { display = 'block' marginBottom = '1.2rem' }
  304. 'home-section h2' { margin = '0 0 .5rem' fontSize = '1.1rem' }
  305. 'home-section h2 a' { color = colorTextStrong }
  306. // tracker#20: Movies / Series / Shows in their type's colour (more specific than the rule above)
  307. 'home-section h2 a.type-movie' { color = colorType1 }
  308. 'home-section h2 a.type-series' { color = colorType2 }
  309. 'home-section h2 a.type-show' { color = colorType3 }
  310. 'home-section h2 a::after' { content = "' ›'" color = colorAccent }
  311. // phone: the row scrolls sideways INSIDE itself (the page never does); from 40rem a grid of 5
  312. tileRow { display = 'flex' gap = '.6rem' overflowX = 'auto' scrollSnapType = 'x proximity' paddingBottom = '.4rem' }
  313. 'tile-row a.tile' { flex = 'none' width = '7rem' scrollSnapAlign = 'start' }
  314. // /movies, /series and /shows: a grid of 3 on a phone, 6 from 40rem
  315. listPage { display = 'block' }
  316. '.list-count' { margin = '-.4rem 0 .8rem' fontSize = '.9rem' }
  317. tileGrid { display = 'grid' gridTemplateColumns = 'repeat(3, minmax(0, 1fr))' gap = '.8rem .6rem' marginBottom = '1rem' }
  318. pagerBox { display = 'block' margin = '1rem 0' }
  319. // the shared pagination (components/pagination.hl, its own Style): its buttons are the theme's 44 px taps, so on a phone the
  320. // row is tight (small gap and padding) and may wrap to a second line rather than shrink a tap target
  321. 'pager-box pagination ol' { gap = '.1rem' }
  322. 'pager-box pagination button' { padding = '.3rem .3rem' fontSize = '.95rem' }
  323. // a tile: the poster (2:3, the placeholder until the sync has a real one), the title (two lines at most), the year
  324. 'a.tile' { display = 'block' minWidth = '0' color = colorText }
  325. 'a.tile:hover' { textDecoration = 'none' }
  326. 'a.tile:hover tile-title' { color = colorAccent }
  327. 'img.tile-poster' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusLarge background = colorSurface }
  328. 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' }
  329. tileYear { display = 'block' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  330. // /people (tracker#37): a person's tile — the photo, the name in the person colour (the type's, like the search's people)
  331. 'a.person-tile tile-title' { color = colorType5 }
  332. 'a.person-tile tile-year' { display = 'none' }
  333. myMoviesPage { display = 'block' }
  334. // /genres (tracker#32, mission 031): the genres as quiet pills that wrap — the genre colour on a surface
  335. genreLinks { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }
  336. 'a.genre-link' { display = 'inline-flex' alignItems = 'baseline' gap = '.45rem' minHeight = '2.75rem' padding = '.35rem .85rem' borderRadius = radiusSmall fontWeight = '600' color = colorType4 background = colorSurface }
  337. 'a.genre-link:hover' { textDecoration = 'none' color = colorTextStrong }
  338. genreCount { fontSize = '.8rem' fontWeight = '400' color = colorTextMuted }
  339. settingsPage { display = 'block' }
  340. // /login/failed: the way back is a 44 px tap target
  341. 'a#home' { display = 'inline-block' padding = '.7rem 0' margin = '-.7rem 0' }
  342. // ---- the search (tracker.worldapi.org#14) — the header's magnifier and /search ------------------------------------
  343. searchPage { display = 'block' }
  344. searchBar { display = 'block' marginBottom = '.8rem' }
  345. '#searchinput' { display = 'block' width = '100%' padding = '.55rem .75rem' font = 'inherit' color = colorTextStrong background = colorSurface border = '0' borderRadius = radiusSmall outline = 'none' }
  346. '#searchinput:focus' { boxShadow = '0 0 0 2px ' + colorAccent }
  347. searchSection { display = 'block' marginBottom = '1rem' }
  348. 'search-section h2' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  349. searchRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' }
  350. webRow { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.4rem 0' }
  351. 'img.search-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  352. '.search-title' { flex = '1' minWidth = '0' fontWeight = '600' overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  353. '.search-person' { flex = '1' minWidth = '0' fontWeight = '600' color = colorType5 overflowWrap = 'anywhere' padding = '.7rem 0' margin = '-.7rem 0' }
  354. searchType { flex = 'none' fontSize = '.8rem' color = colorTextMuted }
  355. webText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  356. webTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  357. 'button.add' { flex = 'none' padding = '.3rem .8rem' fontSize = '.9rem' }
  358. webBar { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '.6rem 0' }
  359. // ---- /person/<slug> (tracker.worldapi.org#16): photo + facts + bio, then the filmography rows ----------------------
  360. // the photo left of the name (phone 6rem, from 40rem 10rem). Rows like the search's: small poster, title, year · kind,
  361. // the role below
  362. personPage { display = 'block' }
  363. personHeader { display = 'flex' alignItems = 'flex-start' gap = '.8rem' marginBottom = '1rem' }
  364. personPhoto { flex = 'none' display = 'block' width = '6rem' }
  365. 'person-photo img' { display = 'block' width = '100%' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusLarge background = colorSurface }
  366. personMeta { display = 'block' minWidth = '0' overflowWrap = 'anywhere' }
  367. personFact { display = 'block' fontSize = '.95rem' color = colorTextMuted }
  368. // the bio under photo + facts, full width; four lines until clicked (components/person.hl toggleBio)
  369. personBio { display = 'block' margin = '0 0 1rem' fontSize = '.95rem' whiteSpace = 'pre-line' cursor = 'pointer' }
  370. 'person-bio.short' { display = '-webkit-box' overflow = 'hidden' '-webkit-line-clamp' = '4' '-webkit-box-orient' = 'vertical' }
  371. 'h2.film-heading' { margin = '.4rem 0 .2rem' fontSize = '.85rem' fontWeight = '600' letterSpacing = '.04em' textTransform = 'uppercase' color = colorTextMuted }
  372. personLoading { display = 'block' padding = '.6rem 0' color = colorTextMuted animation = 'tracker-person-pulse 1.2s ease-in-out infinite alternate' }
  373. // the fill's tick (components/person.hl): rendered (an animation needs it) but invisible, like netProbe
  374. personProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tracker-person-tick .1s linear infinite' }
  375. '@keyframes tracker-person-tick' = {
  376. 'from' = { opacity = '0' }
  377. to = { opacity = '0' }
  378. }
  379. '@keyframes tracker-person-pulse' = {
  380. 'from' = { opacity = '1' }
  381. to = { opacity = '.45' }
  382. }
  383. filmRows { display = 'block' }
  384. 'a.film-row' { display = 'flex' alignItems = 'center' gap = '.8rem' padding = '.45rem 0' color = colorText }
  385. 'a.film-row:hover' { textDecoration = 'none' }
  386. 'a.film-row:hover film-title' { color = colorAccent }
  387. 'img.film-poster' { flex = 'none' display = 'block' width = '2.5rem' height = 'auto' aspectRatio = '2 / 3' objectFit = 'cover' borderRadius = radiusSmall background = colorSurface }
  388. filmText { flex = '1' minWidth = '0' display = 'flex' flexDirection = 'column' }
  389. filmTitle { fontWeight = '600' color = colorTextStrong overflowWrap = 'anywhere' }
  390. filmMeta { display = 'flex' gap = '.5rem' fontSize = '.8rem' color = colorTextMuted fontVariantNumeric = 'tabular-nums' }
  391. filmRole { fontSize = '.85rem' color = colorType5 overflowWrap = 'anywhere' }
  392. 'film-role:empty' { display = 'none' }
  393. 'film-year:empty' { display = 'none' }
  394. // ---- wider screens (≥ 40rem = 640 px): only what changes from the phone -------------------------
  395. '@media (min-width: 40rem)' = {
  396. showHeader = { flexDirection = 'row' alignItems = 'flex-start' gap = '1rem' marginBottom = '1.5rem' }
  397. showPoster = { flex = 'none' width = '10rem' }
  398. showMeta = { display = 'block' flex = '1' minWidth = '0' }
  399. showTitle = { marginBottom = '1rem' }
  400. movieWatch = { margin = '-.4rem 0 .8rem' }
  401. showSummary = { fontSize = '1rem' }
  402. episodeRow = { padding = '.4rem 0' }
  403. skeletonRow = { padding = '.4rem 0' }
  404. unwatchedRow = { display = 'flex' }
  405. '.unwatched-show' = { flex = 'none' }
  406. unwatchedEpisode = { flex = '1' }
  407. unwatchedDate = { flex = 'none' }
  408. scheduleRow = { display = 'flex' }
  409. '.schedule-show' = { flex = 'none' }
  410. scheduleEpisode = { flex = '1' }
  411. scheduleDate = { flex = 'none' }
  412. homeNav = { gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem' }
  413. 'a.hometile' = { padding = '1.4rem .5rem' }
  414. tileRow = { display = 'grid' gridTemplateColumns = 'repeat(5, minmax(0, 1fr))' gap = '1rem .8rem' overflowX = 'visible' }
  415. 'tile-row a.tile' = { width = 'auto' }
  416. tileGrid = { gridTemplateColumns = 'repeat(6, minmax(0, 1fr))' gap = '1rem .8rem' }
  417. 'pager-box pagination ol' = { gap = '.3rem' }
  418. 'pager-box pagination button' = { padding = '.35rem .6rem' fontSize = '1rem' }
  419. personHeader = { gap = '1rem' }
  420. personPhoto = { width = '10rem' }
  421. timelineList = { gridTemplateColumns = 'repeat(2, minmax(0, 1fr))' }
  422. fwRow = { gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr)' }
  423. franchiseWidgets = { margin = '.5rem 0' }
  424. }
  425. // ---- from 60rem (the theme's header breakpoint): the signed-out header shows the selector itself, no icon ----------------
  426. '@media (min-width: 60rem)' = {
  427. 'ident-menu > button.ident-toggle' = { display = 'none' }
  428. '#ident-panel,
  429. #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' }
  430. '#ident-panel #loginbutton' = { display = 'none' }
  431. identSelector = { position = 'relative' }
  432. 'ident-selector::part(panel)' = { position = 'absolute' top = '100%' right = '0' zIndex = '30' boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  433. }

Branches

Latest commits

  • 6adbc7f0extlink badges: background-clip after the background shorthand (it reset the clip: the pills were 44 px tall); gates check the lookmre
  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre
  • 2f9e29ffreports/MK-mobile.md, deploy.sh GATES: tests/mobile.mjs, theme check markermre
  • 7cfc8ab5a season of more than 150 episodes starts closed on its title page; the phone gate checks itmre
  • 59095c59tests/mobile.mjs: the phone gate (390 px touch, tap targets, /franchises paging)mre
  • 105309detap targets: every row link, the TMDB/IMDb badges, the widget links, the franchise names and the login-failed link are 44 px high on a phonemre
  • f0b86c8efranchises: 40 loose timelines per page (/franchises/page/N) and a merge sort for the names (1,546 timelines: 20 s and 54,000 px before)mre
  • b9e841a7Merge branch 'sy-sync'mre
  • d1ae2701sync components.hybriel 4922f9c: modal and pagination 44 px targets (vendored copies, verbatim) (SY)mre
  • 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 05d89fd0deploy: security gate (tests/security.mjs)mre
  • 2ae8a47bMerge branch 'sk-sec'mre
  • 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 944ad51eSK: report reports/SK-sec.md, LOGsk
  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre