gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitebd00b6cebd00b6cNest caller slot styles in three-panemreebd00b6c/components/home.hl

1.9 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. 'ul.parts' {
  13. display = 'grid'
  14. gap = '.25rem 2rem'
  15. margin = '0 0 1.5rem'
  16. padding = '0'
  17. listStyle = 'none'
  18. li { margin = '0' }
  19. a {
  20. display = 'block'
  21. padding = '.5rem 0'
  22. fontWeight = '600'
  23. }
  24. span {
  25. display = 'block'
  26. fontWeight = '400'
  27. color = 'var(--color-text-muted)'
  28. }
  29. @media {
  30. minWidth = '40rem'
  31. gridTemplateColumns = 'repeat(2, minmax(0, 1fr))'
  32. }
  33. }
  34. }
  35. }
  36. View {
  37. homePage {
  38. SiteHeader { current = "/" }
  39. ContentFirst {
  40. SiteSidebar { current = "/" }
  41. main {
  42. h1 { "The WorldAPI theme" }
  43. 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." }
  44. 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." }
  45. p { a { class = "button primary" href = "/read/using-the-theme" "Use it in an app" } " " a { class = "button" href = "/elements" "See the elements" } }
  46. h2 { "Shells" }
  47. ul { class = "parts" for (s of shells) { li { a { href = s.href s.label span { s.about } } } } }
  48. h2 { "Themed components" }
  49. ul { class = "parts" for (c of components) { li { a { href = c.href c.label span { c.about } } } } }
  50. }
  51. }
  52. }
  53. }

Branches

Latest commits

  • 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
  • 69604944three-pane: nest child and compound selectors in Stylemre
  • 3e389b83main-menu: nest child and compound selectors in Stylemre
  • 05413975list-first: nest child and compound selectors in Stylemre
  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre