gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita69b27f9a69b27f9docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mrea69b27f9/components/styles.hl

6.9 KB

  1. // components/styles.hl — the app's own CSS, served as /__hl/app.css. It INHERITS THE WORLDAPI THEME (theme/theme.hl, copied
  2. // verbatim from layouts.worldapi.org dbe3de7 — never edited here) and adds only what the calendar needs: the ident login in the
  3. // header, the events on the days and the editor's frame. The month view carries its own layout Style (components/month-view, a
  4. // fork); the theme already tiles its day cells and removes its frames. Markup is domain tags, this file lays them out.
  5. // Layout: the theme's content-first shell (components/main.hl), the header the theme's AppHeader.
  6. // Tokens: shared/tokens.hl (layouts' file, byte-equal); the app sets only its accent (light blue). Borderless:
  7. // `node theme/check-theme.mjs .` must report 0 problems (a deploy gate).
  8. // In a styles file a bare name is a TAG (camelCase → kebab), a quoted name is a selector written verbatim; a selector the theme
  9. // already writes may not be written again (hl:web refuses it) — the theme's own elements (links, headings, fields, buttons,
  10. // `.muted`, the 44 px taps) are NOT repeated here.
  11. // MOBILE FIRST: every rule outside a block is the phone's (taps ≥ 44 px, fields 16 px); the one `@media (min-width: 60rem)` block
  12. // only ADDS the wide layout (the day's event chips go dense there, on purpose).
  13. inherit '../theme/theme.hl'
  14. import { var } from 'hl:web/css'
  15. import { blueLight, colorText, colorTextStrong, colorTextMuted, colorBackgroundSunken, colorAccentText, colorSurface, colorDanger } from '../shared/tokens.hl'
  16. colorAccent = var(blueLight) // the app's accent: the only token this app sets
  17. '.message' { color = colorDanger }
  18. '.message:empty' { display = 'none' }
  19. '#loginerror' { margin = '0' padding = '.5rem var(--layout-gutter)' background = colorBackgroundSunken }
  20. // ---- the login in the header (components/main.hl) -------------------------------------------------------------------------
  21. // SIGNED OUT: the ident icon at the far right (phone) opens the dropdown with ident's selector and the login button; from 60rem
  22. // they stand in the header. Signed in (class `in`) it is not shown: the user menu stands there (the selector stays in the page,
  23. // /login.js keeps its state).
  24. identMenu { display = 'block' flex = 'none' }
  25. 'ident-menu.in' { display = 'none' }
  26. 'ident-menu > button.ident-toggle' { width = layoutTap height = layoutTap marginRight = '-.5rem' padding = '0' color = colorText }
  27. 'ident-menu svg.ident-icon' { width = '2rem' height = '1.32rem' }
  28. 'svg.ident-icon .ident-d' { fill = colorTextStrong }
  29. 'svg.ident-icon .ident-d-side' { fill = colorTextMuted }
  30. 'svg.ident-icon .ident-i' { fill = colorAccent }
  31. '#ident-panel:popover-open' { position = 'fixed' inset = 'var(--layout-header) var(--layout-gutter) auto auto' display = 'grid' gap = '.6rem' width = 'auto' minWidth = '14rem' maxWidth = 'calc(100vw - 2 * var(--layout-gutter))' height = 'auto' margin = '.25rem 0 0' padding = '.75rem' color = colorText background = colorSurface border = '0' borderRadius = radiusLarge boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  32. '#ident-panel::backdrop' { background = 'transparent' }
  33. // ident's selector (its shadow DOM in ident's design, restyled to the accent through its custom properties and parts)
  34. identSelector { '--ident-accent' = colorAccent '--ident-accent-text' = colorAccentText '--ident-background' = colorSurface '--ident-border' = colorSurface '--ident-font' = '600 1rem/1.4 system-ui, sans-serif' minWidth = '0' }
  35. 'ident-selector::part(button)' { minHeight = layoutTap padding = '.35rem .8rem' whiteSpace = 'nowrap' }
  36. 'ident-selector::part(status)' { minHeight = layoutTap padding = '.35rem .8rem' }
  37. 'ident-selector::part(identity)' { minHeight = layoutTap }
  38. // ---- the events on the days (the month view's cells) --------------------------------------------------------------------
  39. // PHONE: a cell is 48 px wide, so a chip is the cell's width and at least layoutTap (44 px, the theme's button size) high; its
  40. // text is cut with an ellipsis. The cell has no side padding so the chip may be that wide.
  41. dayEvents { display = 'grid' gap = '.15rem' marginTop = '.2rem' textAlign = 'left' }
  42. 'button.unused' { display = 'none' }
  43. 'button.hidden' { display = 'none' }
  44. 'button.event,
  45. button.more' { display = 'block' minWidth = '0' width = '100%' padding = '.15rem .2rem' overflow = 'hidden' fontSize = '.75rem' fontWeight = '500' lineHeight = '1.3' textAlign = 'left' textOverflow = 'ellipsis' whiteSpace = 'nowrap' color = colorAccent background = colorBackgroundSunken }
  46. 'button.more' { color = colorTextMuted background = 'transparent' }
  47. '#notify-ask' { color = colorAccentText background = colorAccent }
  48. // the switches (time/all day, the event's own reminders or the calendar's): the chosen one is the accent, the other `quiet`
  49. 'kind-switch button:not(.quiet)' { color = colorAccentText background = colorAccent }
  50. // ---- the editors (event, reminder settings): a full-page scrim with one panel -----------------------------------------------
  51. eventEditor { position = 'fixed' inset = '0' zIndex = '40' display = 'grid' placeItems = 'center' padding = '1rem' background = 'color-mix(in srgb, ' + colorBackgroundSunken + ' 82%, transparent)' }
  52. 'event-editor.closed' { display = 'none' }
  53. 'event-editor form' { display = 'grid' gap = '.7rem' width = '100%' maxWidth = '28rem' maxHeight = '100%' overflowY = 'auto' padding = '1rem' background = colorSurface borderRadius = radiusLarge }
  54. 'event-editor h2' { margin = '0' }
  55. 'event-editor label' { display = 'grid' gap = '.2rem' margin = '0' fontSize = '.85rem' fontWeight = '400' color = colorTextMuted }
  56. 'event-editor input,
  57. event-editor textarea' { width = '100%' color = colorTextStrong }
  58. fieldRow { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr) minmax(0, 1fr)' gap = '.5rem' }
  59. 'form.allday label.timed' { display = 'none' }
  60. 'form.allday field-row' { gridTemplateColumns = 'minmax(0, 1fr)' }
  61. 'kind-switch,
  62. form-buttons' { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }
  63. 'form-buttons button.danger' { marginLeft = 'auto' }
  64. '@media (min-width: 60rem)' = {
  65. // the desktop's chips are small on purpose (a pointer; four of them stand in one cell): under 44 px, deliberately
  66. 'button.event,
  67. button.more' = { minHeight = '0' padding = '.05rem .3rem' borderRadius = radiusSmall }
  68. // signed out, from 60rem the selector and the login button stand in the header themselves (no icon, no dropdown)
  69. 'ident-menu > button.ident-toggle' = { display = 'none' }
  70. '#ident-panel,
  71. #ident-panel:popover-open' = { position = 'static' inset = 'auto' display = 'flex' alignItems = 'center' gap = '.5rem' width = 'auto' minWidth = '0' maxWidth = 'none' height = 'auto' margin = '0' padding = '0' overflow = 'visible' color = 'inherit' background = 'transparent' border = '0' boxShadow = 'none' }
  72. identSelector = { position = 'relative' }
  73. 'ident-selector::part(panel)' = { position = 'absolute' top = '100%' right = '0' zIndex = '30' boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }
  74. }

Branches

Latest commits

  • a69b27f9docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • 1a97edfdcalendar mission 010: reminder rows at 390 px (the 7-column month grid no longer catches the reminder lists), gate checks, settings-shots, reportmre
  • 61b21404calendar mission 009: reminder times on hl:time in the browser (lib/push-plan.hl and the Intl code removed), DST gate tests/dst.mjs, E2E script, reportmre
  • 875353c1calendar mission 009: re-vendor Hybriel master 022a3ac1 (int 6 6b396322 hl:time browser side, int 7 65e8ec21; bin sha256 6e0f77d7, plugins whole)mre
  • ce16a4efdeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • f490bc8cdeploy: Web Push gate tests/push.mjs (PUSH_GATE_PORT)mre
  • 3af29fc8calendar mission 008 (A8): report, README, LOG, push-shots.mjsmre
  • f91f3663calendar mission 008 (A8): push only asked of the browser when the app has the VAPID settings (pushAvailable); real-FCM E2E scripts (push-real-app.mjs, push-real.mjs)mre
  • bf571badcalendar mission 008 (A8): Turn off on this device (unsubscribes the browser, server drops the device, choice kept), subscribe/refresh when the app is shown again; push gate part 3mre
  • 50985708calendar mission 008 (A7): Web Push report, README, mission, LOGmre
  • ee318774calendar mission 008 (A7): push-real.mjs, push sent log linemre
  • ebda0fd1calendar mission 008 (A7): server-side reminder plan on hl:time (push-plan.hl; hl:time fromLocal in a browser static is refused: repro .scratch/hltime-client), push gate 9/9mre
  • d063dad3calendar mission 008 (A7): Web Push (WIP): lib/push.hl subscriptions + sender clock, faces calPushSave/calPushOff, button subscribes, VAPID tool, tests/push.mjs; instantOf on hl:timemre
  • cf175c80calendar mission 008 (A7): re-vendor Hybriel master 0e3c9830 (bin 9d957fed, plugins whole: hl:crypto Web Push primitives, hl:web sendPush)mre
  • 9bf3c38bcalendar mission 008: re-vendor Hybriel f9833544 (gates old = new); Web Push stopped: hl:crypto half missing on mastermre
  • 186f969bcalendar mission 007: signed-in gate for the first-pointer race (fails on 3c5604f), README theme section, reportmre
  • ba9b4955calendar mission 006: first pointer event no longer re-runs the month (stale overwrite race), gate check, e2e settings cleanup, reportmre
  • bd730759calendar mission 006: theme move (WIP): brief, report, LOG, STATUSmre
  • b117b153calendar mission 006 WIP: reminder row fields keep 44 px; e2e script flagsmre
  • 53e3b0debrowser gate: Log out through the user menu, theme colour rgb(15, 20, 25)mre