gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit08561d7308561d73ident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre08561d73/components/styles.hl

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

Branches

Latest commits

  • 08561d73ident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • 59ef1e4atests/browser: repair 'done' check counts the 404 titles the first run already finished (race: failed=1 when Bulk Film 79 ran before the restart)mre
  • 5925fc4dreports/MK-mobile.md: rebase update, gate countsmre
  • 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