gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitbf676d9ebf676d9elog: GC1 startedmrebf676d9e/components/styles.hl

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

Branches

Latest commits

  • bf676d9elog: GC1 startedmre
  • c7828541mission GC1mre
  • ef949994conductor: neutral ticket rulemre
  • 89e91ef3log: RV39 livemre
  • ee2b677alog: RV39 deployingmre
  • c1c4178cMerge branch 'rv39'mre
  • a016e9abReapply "Merge branch 'rv39'"mre
  • f29e2502log: RV39 gate fixmre
  • d9fce111browser gate #26: exact frame count incl. SL1 people step (hybriel#308)mre
  • ad529ac1log: m572 verdictmre
  • 1b37d404RV39 on hold: hybriel#308mre
  • f9127c68Revert "Merge branch 'rv39'"mre
  • cd39f3d3log: hybriel#308mre
  • 51341d6elog: RV39 deploy startedmre
  • c9e29e06Merge branch 'rv39'mre
  • 0f8d1fdclog: RV39 report, browser 387/2mre
  • 50249b0bRV39: reportmre
  • 10ed9581compose: HL_GC_STATS=1mre
  • 955da19bRV39: re-vendor Hybriel set day39 (source 51e921d7, bin 6b481aa7)mre
  • 64b8d1dclog: RV39 startedmre