gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit096ce0d4096ce0d4log: DP69 live on day48mre096ce0d4/components/styles.hl

6.7 KB

  1. // Site-wide tokens and vocabulary shared by independent components.
  2. inherit '../theme/theme.hl'
  3. import { var } from 'hl:web/css'
  4. import { greenDark, yellow, purple, blueDark, orange, blueLight, greenLight, colorText, colorBackground, colorTextStrong, colorBackgroundSunken, colorTextMuted, colorAccentText, colorBorder, colorDanger, colorSuccess, colorWarning, colorSurface } from '../shared/tokens.hl'
  5. colorAccent = var(greenDark) // the app's accent
  6. colorType1 = var(yellow) // Movie
  7. colorType2 = var(greenDark) // Series
  8. colorType3 = var(purple) // Show
  9. colorType4 = var(blueDark) // Genre
  10. colorType5 = var(orange) // Person (cast and crew links)
  11. colorType6 = var(blueLight) // Franchise
  12. colorTimeline = var(greenLight) // tracker#19's timelines
  13. 'button.inverted' {
  14. color = colorAccent
  15. background = colorSurface
  16. }
  17. 'button.checkicon' {
  18. flex = 'none'
  19. display = 'grid'
  20. placeItems = 'center'
  21. width = '2.75rem'
  22. height = '2.75rem'
  23. minHeight = '0'
  24. padding = '0'
  25. background = 'transparent'
  26. border = '0'
  27. borderRadius = '50%'
  28. cursor = 'pointer'
  29. svg {
  30. width = '22px'
  31. height = '22px'
  32. }
  33. }
  34. '.message' {
  35. color = colorDanger
  36. }
  37. '.message.banner' {
  38. margin = '0'
  39. padding = '.5rem .75rem'
  40. background = colorBackgroundSunken
  41. }
  42. 'p.message' {
  43. empty {
  44. display = 'none'
  45. }
  46. }
  47. '.type-movie' {
  48. color = colorType1
  49. }
  50. '.type-series' {
  51. color = colorType2
  52. }
  53. '.type-show' {
  54. color = colorType3
  55. }
  56. '.type-genre' {
  57. color = colorType4
  58. }
  59. '.type-person' {
  60. color = colorType5
  61. }
  62. '.type-franchise' {
  63. color = colorType6
  64. }
  65. '.type-timeline' {
  66. color = colorTimeline
  67. }
  68. 'h1.typed' {
  69. display = 'flex'
  70. alignItems = 'baseline'
  71. columnGap = '.4em'
  72. }
  73. typeWord {
  74. flex = 'none'
  75. fontWeight = '600'
  76. }
  77. 'a.type-word' {
  78. display = 'inline-flex'
  79. alignItems = 'center'
  80. minHeight = '2.75rem'
  81. }
  82. typeSep {
  83. flex = 'none'
  84. fontWeight = '300'
  85. color = colorTextMuted
  86. }
  87. typeName {
  88. minWidth = '0'
  89. color = colorTextStrong
  90. overflowWrap = 'anywhere'
  91. }
  92. shortIdLabel {
  93. display = 'block'
  94. marginTop = '.3rem'
  95. font = '400 .8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
  96. letterSpacing = '.05em'
  97. color = colorTextMuted
  98. textAlign = 'center'
  99. userSelect = 'all'
  100. }
  101. 'a.pill[href]' {
  102. boxSizing = 'content-box'
  103. border = '0 solid transparent' // functional: the pill's 44 px tap area
  104. borderWidth = '.6875rem 0' // functional: enlarge the pill's tap area
  105. margin = '-.6875rem 0'
  106. backgroundClip = 'padding-box'
  107. hover {
  108. textDecoration = 'none'
  109. }
  110. }
  111. 'a.pill.extlink[href]' {
  112. hover {
  113. color = colorAccentText
  114. background = colorAccent
  115. backgroundClip = 'padding-box'
  116. }
  117. }
  118. '.checkicon' {
  119. circle {
  120. fill = 'transparent'
  121. stroke = colorTextMuted
  122. strokeWidth = '1.5'
  123. }
  124. path {
  125. fill = 'none'
  126. stroke = colorTextMuted
  127. strokeWidth = '2'
  128. strokeLinecap = 'round'
  129. strokeLinejoin = 'round'
  130. }
  131. }
  132. 'button.checkicon.regular' {
  133. hover {
  134. circle {
  135. stroke = colorAccent
  136. }
  137. path {
  138. stroke = colorAccent
  139. }
  140. }
  141. }
  142. '.checkicon.solid' {
  143. circle {
  144. fill = colorAccent
  145. stroke = colorAccent
  146. }
  147. path {
  148. stroke = colorAccentText
  149. }
  150. }
  151. myShowsRows {
  152. display = 'block'
  153. }
  154. myShowRow {
  155. display = 'flex'
  156. alignItems = 'center'
  157. gap = '.8rem'
  158. padding = '.5rem 0'
  159. }
  160. 'img.myshow-poster' {
  161. flex = 'none'
  162. display = 'block'
  163. width = '2.5rem'
  164. height = 'auto'
  165. aspectRatio = '2 / 3'
  166. objectFit = 'cover'
  167. borderRadius = radiusSmall
  168. background = colorSurface
  169. }
  170. '.myshow-title' {
  171. flex = '1'
  172. minWidth = '0'
  173. fontWeight = '600'
  174. overflowWrap = 'anywhere'
  175. padding = '.7rem 0'
  176. margin = '-.7rem 0'
  177. }
  178. franchisesHead {
  179. display = 'flex'
  180. alignItems = 'center'
  181. gap = '.6rem'
  182. marginBottom = '.8rem'
  183. h1 {
  184. flex = '1'
  185. minWidth = '0'
  186. margin = '0'
  187. overflowWrap = 'anywhere'
  188. }
  189. 'a.button' {
  190. flex = 'none'
  191. padding = '.3rem .8rem'
  192. fontSize = '.9rem'
  193. }
  194. }
  195. timelineList {
  196. display = 'grid'
  197. gridTemplateColumns = 'minmax(0, 1fr)'
  198. gap = '0 1.2rem'
  199. @media {
  200. minWidth = '40rem'
  201. gridTemplateColumns = 'repeat(2, minmax(0, 1fr))'
  202. }
  203. }
  204. 'a.timeline-link' {
  205. display = 'flex'
  206. alignItems = 'center'
  207. gap = '.6rem'
  208. minHeight = '2.75rem'
  209. padding = '.35rem 0'
  210. color = colorText
  211. }
  212. timelineLinkName {
  213. flex = '1'
  214. minWidth = '0'
  215. overflowWrap = 'anywhere'
  216. }
  217. timelineLinkCount {
  218. flex = 'none'
  219. fontSize = '.8rem'
  220. color = colorTextMuted
  221. }
  222. editSection {
  223. display = 'flex'
  224. flexDirection = 'column'
  225. gap = '.5rem'
  226. marginBottom = '1.4rem'
  227. input {
  228. display = 'block'
  229. width = '100%'
  230. padding = '.55rem .75rem'
  231. font = 'inherit'
  232. color = colorTextStrong
  233. background = colorSurface
  234. border = '0'
  235. borderRadius = radiusSmall
  236. outline = 'none'
  237. focus {
  238. boxShadow = '0 0 0 2px ' + colorAccent
  239. }
  240. }
  241. textarea {
  242. display = 'block'
  243. width = '100%'
  244. padding = '.55rem .75rem'
  245. font = 'inherit'
  246. color = colorTextStrong
  247. background = colorSurface
  248. border = '0'
  249. borderRadius = radiusSmall
  250. outline = 'none'
  251. focus {
  252. boxShadow = '0 0 0 2px ' + colorAccent
  253. }
  254. }
  255. '>' {
  256. button {
  257. alignSelf = 'flex-start'
  258. }
  259. }
  260. }
  261. listPage {
  262. display = 'block'
  263. }
  264. '.list-count' {
  265. margin = '-.4rem 0 .8rem'
  266. fontSize = '.9rem'
  267. }
  268. pagerBox {
  269. display = 'block'
  270. margin = '1rem 0'
  271. pagination {
  272. ol {
  273. gap = '.1rem'
  274. @media {
  275. minWidth = '40rem'
  276. gap = '.3rem'
  277. }
  278. }
  279. button {
  280. padding = '.3rem .3rem'
  281. fontSize = '.95rem'
  282. @media {
  283. minWidth = '40rem'
  284. padding = '.35rem .6rem'
  285. fontSize = '1rem'
  286. }
  287. }
  288. }
  289. }
  290. 'a.tile' {
  291. display = 'block'
  292. minWidth = '0'
  293. color = colorText
  294. hover {
  295. textDecoration = 'none'
  296. tileTitle {
  297. color = colorAccent
  298. }
  299. }
  300. }
  301. 'img.tile-poster' {
  302. display = 'block'
  303. width = '100%'
  304. height = 'auto'
  305. aspectRatio = '2 / 3'
  306. objectFit = 'cover'
  307. borderRadius = radiusLarge
  308. background = colorSurface
  309. }
  310. tileTitle {
  311. display = '-webkit-box'
  312. marginTop = '.3rem'
  313. fontSize = '.85rem'
  314. fontWeight = '600'
  315. lineHeight = '1.25'
  316. overflow = 'hidden'
  317. overflowWrap = 'anywhere'
  318. '-webkit-line-clamp' = '2'
  319. '-webkit-box-orient' = 'vertical'
  320. }
  321. tileYear {
  322. display = 'block'
  323. fontSize = '.8rem'
  324. color = colorTextMuted
  325. fontVariantNumeric = 'tabular-nums'
  326. }
  327. 'button.add' {
  328. flex = 'none'
  329. padding = '.3rem .8rem'
  330. fontSize = '.9rem'
  331. }
  332. 'h2.film-heading' {
  333. margin = '.4rem 0 .2rem'
  334. fontSize = '.85rem'
  335. fontWeight = '600'
  336. letterSpacing = '.04em'
  337. textTransform = 'uppercase'
  338. color = colorTextMuted
  339. }
  340. '@keyframes tracker-person-tick' {
  341. 'from' {
  342. opacity = '0'
  343. }
  344. to {
  345. opacity = '0'
  346. }
  347. }
  348. 'img.film-poster' {
  349. flex = 'none'
  350. display = 'block'
  351. width = '2.5rem'
  352. height = 'auto'
  353. aspectRatio = '2 / 3'
  354. objectFit = 'cover'
  355. borderRadius = radiusSmall
  356. background = colorSurface
  357. }
  358. filmText {
  359. flex = '1'
  360. minWidth = '0'
  361. display = 'flex'
  362. flexDirection = 'column'
  363. }
  364. filmTitle {
  365. fontWeight = '600'
  366. color = colorTextStrong
  367. overflowWrap = 'anywhere'
  368. }
  369. filmMeta {
  370. display = 'flex'
  371. alignItems = 'center'
  372. gap = '.5rem'
  373. fontSize = '.8rem'
  374. color = colorTextMuted
  375. fontVariantNumeric = 'tabular-nums'
  376. }

Branches

Latest commits

  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre
  • 5827eba9log: HM57 merged, HM59 startedmre