gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit97110ad997110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre97110ad9/components/home.hl

2.0 KB

  1. // components/home.hl — `/`: what the theme is, and the way to its parts. Content-first, like every showcase page.
  2. parent './main.hl'
  3. import SiteHeader from './site-header.hl'
  4. import SiteSidebar from './site-sidebar.hl'
  5. import ContentFirst from '../theme/shell/content-first.hl'
  6. import { siteName, componentPages, shellPages } from '../lib/site.hl'
  7. __title = siteName
  8. Hybrid components = componentPages
  9. Hybrid shells = shellPages
  10. Style {
  11. homePage {
  12. // Class rule would lose its ancestor or has no View reference (probe v03; hybriel#243).
  13. 'ul.parts' {
  14. display = 'grid'
  15. gap = '.25rem 2rem'
  16. margin = '0 0 1.5rem'
  17. padding = '0'
  18. listStyle = 'none'
  19. li { margin = '0' }
  20. a {
  21. display = 'block'
  22. padding = '.5rem 0'
  23. fontWeight = '600'
  24. }
  25. span {
  26. display = 'block'
  27. fontWeight = '400'
  28. color = 'var(--color-text-muted)'
  29. }
  30. @media {
  31. minWidth = '40rem'
  32. gridTemplateColumns = 'repeat(2, minmax(0, 1fr))'
  33. }
  34. }
  35. }
  36. }
  37. View {
  38. homePage {
  39. SiteHeader { current = "/" }
  40. ContentFirst {
  41. SiteSidebar { current = "/" }
  42. main {
  43. h1 { "The WorldAPI theme" }
  44. p { "How WorldAPI makes the black and white components of " a { href = "https://components.hybriel.worldapi.org/" "components.hybriel.worldapi.org" } " look for itself: the palette and its named roles, plain elements without frames, the components themed without being forked, and three app shells with a header that works on a phone." }
  45. p { class = "muted" "An app copies theme/ and shared/tokens.hl, inherits the theme in its styles.hl, picks a shell and sets its accent. Try another accent in the sidebar: every page follows it." }
  46. p { a { class = "button primary" href = "/read/using-the-theme" "Use it in an app" } " " a { class = "button" href = "/elements" "See the elements" } }
  47. h2 { "Shells" }
  48. ul { class = "parts" for (s of shells) { li { a { href = s.href s.label span { s.about } } } } }
  49. h2 { "Themed components" }
  50. ul { class = "parts" for (c of components) { li { a { href = c.href c.label span { c.about } } } } }
  51. }
  52. }
  53. }
  54. }

Branches

Latest commits

  • 97110ad9WIP: nest accepted layout selectors; stopped at startup parse failuremre
  • ce4a0baeKeep caller slot styles whole so minimal shell apps startmre
  • 12cd3992Re-vendor complete Hybriel plugins and runtime to day44mre
  • b05c20feBackup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 8d9ed0b8Re-vendor complete Hybriel plugins and runtime to day39mre
  • ebd00b6cNest caller slot styles in three-panemre
  • 009991efNest caller slot styles in list-firstmre
  • 494d75d4Nest caller slot styles in app-sidebarmre
  • e5571680Align all plugin sources with Hybriel day38bmre
  • 5d204c46Re-vendor layouts to Hybriel set day38bmre
  • 17e0f03eNest html-prefixed theme component overridesmre
  • e54e735eFormat plain theme elements with nested rules and bare mediamre
  • 547f834eRecord LY7 deployment and live verificationmre
  • fa4600b1Link caller-slot style exceptions to hybriel#270mre
  • 413b11e1Record corrected LY7 nesting, exact CSS and Chrome proofmre
  • b810453etracker-demo: nest child and compound selectors in Stylemre
  • 0b5b1d61notes-demo: nest child and compound selectors in Stylemre
  • ab22bdc2mail-demo: nest child and compound selectors in Stylemre
  • fe2d8de9home: nest child and compound selectors in Stylemre
  • e631791buser-menu: nest child and compound selectors in Stylemre