gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite631791be631791buser-menu: nest child and compound selectors in Stylemree631791b/components/showcase/code-editor.hl

1.2 KB

  1. // components/showcase/code-editor.hl — `/components/code-editor`: Code editor, themed (the component is the verbatim copy in components/code-editor/, the theme's rules in
  2. // theme/theme.hl section 3 take its decorative frames away).
  3. parent '../main.hl'
  4. import SiteHeader from '../site-header.hl'
  5. import SiteSidebar from '../site-sidebar.hl'
  6. import ContentFirst from '../../theme/shell/content-first.hl'
  7. import TheCodeEditor from '../code-editor/code-editor.hl'
  8. __title = 'Code editor · WorldAPI layouts'
  9. static NL = "
  10. "
  11. String sample = '// styles.hl of an app' + NL + 'inherit ' + "'./theme/theme.hl'" + NL + 'import { var } from ' + "'hl:web/css'" + NL + NL + 'colorAccent = var(purple)' + NL + 'colorType1 = var(yellow)' + NL
  12. View {
  13. showCodeEditor {
  14. SiteHeader { current = "/components/code-editor" }
  15. ContentFirst {
  16. SiteSidebar { current = "/components/code-editor" }
  17. main {
  18. h1 { "Code editor" }
  19. p { class = "muted" "Coloured while you type, line numbers, Tab / Shift+Tab, undo and redo. One sunken surface, the gutter beside it." }
  20. TheCodeEditor { name = "theme" value = sample language = "hybriel" }
  21. p { class = "readme links" a { href = "/read/readme-code-editor" "README of the component (how an app uses it)" } }
  22. }
  23. }
  24. }
  25. }

Branches

Latest commits

  • 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
  • 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