gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd7232e86d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmred7232e86/components/styles.hl

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

Branches

Latest commits

  • d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
  • 079f376dMove seven components' styles into Style blocksmre
  • 17d66feelog: #58 mergedmre
  • 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
  • a85f7900Move route logic out of the project mapmre
  • 13dea5belog: #56 live, HM49 and HM58 startedmre
  • a31c8f2fdocs: tracker#36 remaining listmre
  • 975d06d1log: #36 live, DP66 startedmre
  • d6d03fa3mission: T36Bmre
  • e7512d00status: #36 rolled back, retry askedmre
  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • 6da612fclog: T36A tool defectmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre