gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc545b642c545b642content-first: nest child and compound selectors in Stylemrec545b642/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. // No language form for the existing class or attribute compound.
  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

  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
  • 69c9f784Record LY7 slot nesting blocker and minimal repromre
  • b1d4f379app-header: nest child and compound selectors in Stylemre
  • 6385ff8eRecord LY7 style formatting proof and review statusmre
  • 0100f51etracker-demo: format Style with nested rules and bare mediamre
  • 5f82554enotes-demo: format Style with nested rules and bare mediamre
  • 3dc27d78mail-demo: format Style with nested rules and bare mediamre
  • cf9648afhome: format Style with nested rules and bare mediamre
  • 846a6242user-menu: format Style with nested rules and bare mediamre
  • 4d58708cthree-pane: format Style with nested rules and bare mediamre
  • 0bbfc553main-menu: format Style with nested rules and bare mediamre
  • 7755199dlist-first: format Style with nested rules and bare mediamre
  • 35199303content-first: format Style with nested rules and bare mediamre
  • 00f6e698app-sidebar: format Style with nested rules and bare mediamre
  • bb2f29c9app-header: format Style with nested rules and bare mediamre
  • 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
  • 87e4003dRe-vendor layouts to Hybriel set day35mre
  • d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
  • 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre