tickets
All repositories: gitoria
19.3 KB
// styles.hl — the app's CSS, served as /__hl/app.css. It INHERITS THE WORLDAPI THEME (theme/theme.hl, copied verbatim from// layouts.worldapi.org dbe3de7 — never edited here; docs: layouts docs/using-the-theme.md) and adds only what tickets' own pages// need: the ticket list, the history, the state badges, the settings/connect pages. Components carry no Style blocks: markup is// domain tags (<ticket-board>, <ticket-state>, …), this file lays them out.//// TOKENS: colours only through the named tokens (shared/tokens.hl = layouts' file, byte-equal); the app sets only its accent// (purple). Corners: radiusSmall (5px: buttons, pills, rows) / radiusLarge (10px: panels, boxes). Borderless — `node// theme/check-theme.mjs .` must report 0 problems (a deploy gate).// In a styles file a bare name is a TAG (camelCase → kebab), a quoted name is a selector written verbatim; a selector the theme// already writes may not be written again (hl:web refuses it) — so the theme's own elements (links, headings, fields, buttons,// foldables, `.muted`, `p.empty`, the 44 px taps) are NOT repeated here.// PHONE FIRST (mission 022): every rule outside a block is the phone's (390 px): nothing makes the page wider than the screen,// every tap target is at least 44×44 px (the theme's layoutTap), every field 16 px, no text under 14 px (.875rem). The one// `@media (min-width: 60rem)` block at the bottom (the theme's breakpoint) only ADDS the wide layout.inherit '../theme/theme.hl'import { var } from 'hl:web/css'import { purple, colorText, colorBackground, colorTextStrong, colorTextMuted, colorBackgroundSunken, colorAccentText, colorSurface, colorBorder, colorDanger, colorSuccess, colorAction, colorWarning } from '../shared/tokens.hl'colorAccent = var(purple) // the app's accent: the only token this app setstime { color = colorTextMuted fontSize = '.875rem' whiteSpace = 'nowrap' }'.hint,.muted' { margin = '0' fontSize = '.875rem' }// ---- the shell (components/main.hl; the theme's shell files carry their own Style) ----------------// offline (mission 046, components/main.hl): the note, and the invisible probe whose animation ticks every secondofflineNote { display = 'block' padding = '.5rem var(--layout-gutter)' color = colorTextStrong background = colorSurface }netProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'tickets-net-tick 1s linear infinite' }'@keyframes tickets-net-tick' = {'from' = { opacity = '0' }to = { opacity = '0' }}// the signed-in name at the top of the user menu (UserMenu's own `p.who` look)'#whoami' { marginRight = '.5rem' fontWeight = '600' color = colorTextStrong fontSize = '.875rem' maxWidth = '6rem' overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' flex = '0 1 auto' minWidth = '0' display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' }'#logout' { flex = 'none' whiteSpace = 'nowrap' padding = '.25rem .5rem' }// ident's selector stands in the header, signed in and signed out, on the phone too (creator 2026-10-24). Its shadow DOM is in// ident's design, restyled to tickets' accent through its custom properties and parts. The pill is kept compact so brand, selector// and the user icon fit one row at 390 px; its dropdown opens under it, as wide as a phone allows.identSelector { '--ident-accent' = colorAccent '--ident-accent-text' = colorAccentText '--ident-background' = colorSurface '--ident-border' = colorSurface '--ident-font' = '600 .9rem/1.3 system-ui, sans-serif' position = 'relative' flex = '0 1 auto' minWidth = '0' }'ident-selector::part(button)' { minHeight = '2.75rem' padding = '.25rem .6rem' whiteSpace = 'nowrap' }'ident-selector::part(status)' { minHeight = '2.75rem' padding = '.25rem .6rem' whiteSpace = 'nowrap' overflow = 'hidden' textOverflow = 'ellipsis' }'ident-selector::part(identity)' { minHeight = '2.75rem' }'ident-selector::part(panel)' { position = 'absolute' top = '100%' right = '0' zIndex = '30' width = 'min(20rem, calc(100vw - 2 * var(--layout-gutter)))' maxWidth = 'none' boxShadow = '0 .75rem 2rem ' + colorBackgroundSunken }'#loginerror' { margin = '0' padding = '.5rem var(--layout-gutter)' background = colorBackgroundSunken }// the display-name prompt of a first login: in the content column, under the headernamePrompt { display = 'block' paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))' paddingTop = '1rem' }'#nameform' { display = 'grid' gap = '.6rem' padding = '1rem' background = colorSurface borderRadius = radiusLarge }// ---- /you: the account and the API tokens ---------------------------------------------------youView { display = 'grid' gap = '1.2rem' }'you-view section' { display = 'grid' gap = '.6rem' padding = '.8rem' background = colorSurface borderRadius = radiusLarge }'you-view dl' { display = 'grid' gap = '.2rem' margin = '0' }'you-view dt' { fontSize = '.875rem' color = colorTextMuted }'you-view dd' { margin = '0 0 .4rem' color = colorTextStrong overflowWrap = 'anywhere' }'you-view code' { overflowWrap = 'anywhere' wordBreak = 'break-all' }'#tokenform' { display = 'grid' gap = '.5rem' }tokenShown { display = 'grid' gap = '.4rem' padding = '.7rem' borderRadius = radiusSmall }'token-shown p' { margin = '0' }'#newtoken' { color = colorSuccess fontSize = '.95rem' }'#tokenlist' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.4rem' }'#tokenlist li' { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.3rem .8rem' padding = '.4rem .6rem' background = colorBackgroundSunken borderRadius = radiusSmall }'#tokenlist .label' { flex = '1 1 10rem' color = colorTextStrong overflowWrap = 'anywhere' }// ---- ticket lists (/, filters, /inbox) -----------------------------------------------------ticketBoard { display = 'grid' gap = '1rem' }// the empty message line of the board (a disconnect refusal) takes no room (it left a 3 rem hole under the filters)'ticket-board > p.message:empty' { display = 'none' }ticketFilters { display = 'grid' gap = '.5rem' }// phone: ONE row each that scrolls sideways inside itself (14 project chips + 8 state chips filled half a screen before the first ticket)'ticket-filters nav' { display = 'flex' flexWrap = 'nowrap' gap = '.35rem' overflowX = 'auto' scrollbarWidth = 'none' }'ticket-filters a' { flex = 'none' whiteSpace = 'nowrap' display = 'inline-flex' alignItems = 'center' minHeight = layoutTap padding = '.2rem .8rem' background = colorSurface fontSize = '.875rem' color = colorText borderRadius = radiusSmall }'ticket-filters a.selected' { color = colorAccentText background = colorAccent }'.tickets' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.5rem' }'.tickets li' { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr)' gap = '.3rem' padding = '.7rem .8rem' background = colorSurface borderRadius = radiusLarge }'.tickets li ticket-state' { justifySelf = 'start' }'.tickets a' { display = 'inline-flex' alignItems = 'center' minWidth = layoutTap minHeight = layoutTap }// the number stands in front of the subject on its first line and never wraps (it was a flex item that shrank: "# / 2 / 6" on the phone)'.tickets .subject' { display = 'flex' alignItems = 'baseline' paddingBlock = '.5rem' color = colorTextStrong fontWeight = '600' overflowWrap = 'anywhere' }ticketRef { flex = 'none' marginRight = '.4rem' color = colorTextMuted fontWeight = '400' whiteSpace = 'nowrap' }formerRef { marginLeft = '.2rem' fontSize = '.875rem' color = colorTextMuted }ticketMeta { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.2rem .8rem' fontSize = '.875rem' }'.notice' { margin = '0' color = colorSuccess }// a label with its field: the caption above, the field the full width (the field stood beside the caption, at its own width)'form > label' { display = 'grid' gap = '.3rem' margin = '0' }'form > label > input,form > label > select' { width = '100%' boxSizing = 'border-box' }// the new-ticket form and the new-project form stand in the theme's modal window (components/modal/)'modal-dialog form' { display = 'grid' gap = '.7rem' }// the heading row of the ticket list: the title at the left, "New project" (quiet) and "New ticket" (the accent) at the rightheadingRow { display = 'flex' flexWrap = 'wrap' alignItems = 'center' justifyContent = 'space-between' gap = '.5rem 1rem' }'heading-row h1' { margin = '0' }headingActions { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }// a phone: the windows fill the whole screen'@media (max-width: 59.99rem)' = {'html modal-dialog > dialog' = { width = '100vw' height = '100dvh' maxHeight = 'none' borderRadius = '0' }}// ---- the state badge: one colour per state -------------------------------------------------ticketState { display = 'inline-block' background = colorBackgroundSunken padding = '.05rem .55rem' fontSize = '.875rem' fontWeight = '600' whiteSpace = 'nowrap' borderRadius = radiusSmall color = colorTextMuted }'ticket-state.open' { color = colorAction }'ticket-state.progress' { color = colorWarning }'ticket-state.pending' { color = colorTextMuted }'ticket-state.review' { color = colorAccent }'ticket-state.reopened' { color = colorDanger }'ticket-state.done' { color = colorSuccess }'ticket-state.canceled' { color = colorTextMuted }'ticket-filters a.selected.open,ticket-filters a.selected.progress,ticket-filters a.selected.pending,ticket-filters a.selected.review,ticket-filters a.selected.reopened,ticket-filters a.selected.done,ticket-filters a.selected.canceled' { color = colorAccentText }// ---- ticket #20: projects, members, assignee, the inbox ------------------------------------------projectActions { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }'project-actions a.button' { background = colorSurface }// ticket #21: the apps connected to a project, and the connect page'.connections' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.4rem' }'.connections li' { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.2rem .6rem' padding = '.4rem .8rem' background = colorSurface borderRadius = radiusLarge fontSize = '.9rem' }connectPage { display = 'grid' gap = '1rem' maxWidth = '38rem' }'connect-page form' { display = 'grid' gap = '.8rem' }projectDescription { display = 'block' padding = '.8rem' overflowWrap = 'anywhere' background = colorSurface borderRadius = radiusLarge }assignee { color = colorTextMuted }'assignee::before' { content = '"→ "' }'ticket-view .people' { margin = '0' color = colorTextMuted fontSize = '.9rem' }'ticket-view .people strong' { color = colorText }'project-form,project-settings' { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr)' gap = '1rem' }'project-form form,project-settings form,project-settings section' { display = 'grid' gap = '.6rem' }'project-settings h1,project-settings h2' { margin = '0' }'project-settings h2' { fontSize = '1.1rem' }'#members' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.4rem' }'#members li' { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.4rem .8rem' padding = '.4rem .6rem' background = colorSurface borderRadius = radiusSmall }'#members strong' { flex = '1 1 100%' overflowWrap = 'anywhere' }inviteShown { display = 'block' padding = '.7rem .8rem' overflowWrap = 'anywhere' background = colorSurface borderRadius = radiusLarge }'invite-shown p' { margin = '0 0 .4rem' }'#projectlist' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.3rem' }'.role' { color = colorTextMuted fontSize = '.875rem' }'#reviewbox,#pendingbox' { display = 'grid' gap = '.5rem' }'#reviewbox h2,#pendingbox h2' { margin = '0' fontSize = '1.1rem' }// ---- one ticket ----------------------------------------------------------------------------ticketView { display = 'grid' gridTemplateColumns = 'minmax(0, 1fr)' gap = '1.2rem' }'ticket-view header' { display = 'grid' gap = '.4rem' }'ticket-view header p' { margin = '0' }'ticket-view header ticket-state,ticket-view header button' { justifySelf = 'start' }'ticket-view .dates' { color = colorTextMuted fontSize = '.875rem' }ticketSummary { display = 'block' padding = '.8rem' overflowWrap = 'anywhere' background = colorSurface borderRadius = radiusLarge }'ticket-view section' { display = 'grid' gap = '.7rem' }'#events' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.5rem' }'#events > li' { marginLeft = '.8rem' padding = '.5rem .7rem' background = colorSurface borderRadius = radiusSmall }'#events > li.state' { background = 'transparent' padding = '.2rem .7rem' }eventHead { display = 'block' fontSize = '.9rem' }'event-head strong' { color = colorTextStrong }eventText { display = 'block' marginTop = '.3rem' overflowWrap = 'anywhere' }'ticket-view form' { display = 'grid' gap = '.5rem' }// ---- ticket #8: the author's edit form; an edit in the history keeps what was before -------'#editform' { padding = '.8rem' background = colorSurface borderRadius = radiusLarge }formButtons { display = 'grid' gridTemplateColumns = 'repeat(auto-fit, minmax(9rem, 1fr))' gap = '.5rem' }'event-text.edit' { fontSize = '.9rem' color = colorTextMuted }'event-text.edit p' { margin = '0' }'event-text.edit s' { color = colorText }'event-text.edit details' { marginTop = '.3rem' background = colorBackgroundSunken }'event-text.edit summary' { padding = '.3rem .6rem' fontWeight = '400' fontSize = '.875rem' }'event-text.edit markdown-text' { padding = '0 .6rem .5rem' color = colorText }// ---- ticket #6: Markdown in text fields (components/markdown.hl). Line breaks inside a// paragraph stay visible (the page showed the texts with pre-wrap before) ----------------------markdownText { display = 'block' }'markdown-text > :first-child' { marginTop = '0' }'markdown-text > :last-child' { marginBottom = '0' }'markdown-text p,markdown-text li' { whiteSpace = 'pre-wrap' }'markdown-text p' { margin = '.5rem 0' }'markdown-text h3,markdown-text h4,markdown-text h5' { margin = '.9rem 0 .4rem' lineHeight = '1.3' color = colorTextStrong }'markdown-text h3' { fontSize = '1.15rem' }'markdown-text h4' { fontSize = '1.02rem' }'markdown-text h5' { fontSize = '.95rem' }'markdown-text ul,markdown-text ol' { margin = '.5rem 0' paddingLeft = '1.4rem' }'markdown-text li + li' { marginTop = '.15rem' }// inside the history (itself an <ol>) a list would get the nested markers (circles)'markdown-text ul' { listStyleType = 'disc' }'markdown-text ol' { listStyleType = 'decimal' }'markdown-text strong' { color = colorTextStrong }'markdown-text a' { textDecoration = 'underline' textUnderlineOffset = '.15em' overflowWrap = 'anywhere' }'markdown-text code' { font = '.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' padding = '.05em .3em' color = colorTextStrong background = colorBackgroundSunken borderRadius = radiusSmall }'markdown-text pre' { margin = '.5rem 0' padding = '.6rem .7rem' overflowX = 'auto' background = colorBackgroundSunken borderRadius = radiusSmall }'markdown-text pre code' { padding = '0' background = 'transparent' whiteSpace = 'pre' }// mission 013: pipe tables — black/white, thin grey lines; a wide table scrolls inside its own box// (the page never scrolls sideways); cells keep their words whole (no break-all) and wrap at spaces. `contain:// inline-size`: the box's width never comes from the table — the history and the sections are grids of auto columns,// which would otherwise grow to the table's min-content width and push the page sideways. The 1px padding keeps the// outer half of the collapsed border inside the clip (without it the table's right line was cut off)markdownTable { display = 'block' maxWidth = '100%' overflowX = 'auto' margin = '.5rem 0' padding = '1px' contain = 'inline-size' }'markdown-table table' { borderCollapse = 'collapse' }'markdown-table th,markdown-table td' { padding = '.3rem .6rem' textAlign = 'start' verticalAlign = 'top' minWidth = '2.5rem' overflowWrap = 'normal' wordBreak = 'normal' }'markdown-table th' { fontWeight = '700' color = colorTextStrong }'markdown-table [data-align="left"]' { textAlign = 'left' }'markdown-table [data-align="center"]' { textAlign = 'center' }'markdown-table [data-align="right"]' { textAlign = 'right' }'.message' { margin = '0' minHeight = '1.5em' color = colorDanger }// ---- ticket #12 → mission 016: the Markdown fields are the Hybriel MdEditor (components/md-editor/, its own Style off the// tokens). Not inside a <label>: a label hands its clicks to its first button — the editor's toolbar "B". `md-field` = the caption// above the editor, as a label looksmdField { display = 'grid' gap = '.25rem' }'md-field > span' { fontSize = '.9rem' color = colorTextMuted }// ---- mission 016: the comments (components/comments/, the shared block with its own Style). In the history every run of// comments is one block in place: its count line, its "no comments" line and its form are not shown there (the block has no// switch for them); the form is the last block, under "Respond", which shows only the form. A deleted comment is one quiet line.// `contain: inline-size` (as markdownTable below): the history is a grid of auto columns, which would grow to a wide table's// min-content width inside a comment and push the page sideways — the table scrolls in its own box instead'#events > li.comments' { padding = '.3rem 0' background = 'transparent' contain = 'inline-size' }'#events comments-block h2.comments-count,#events comments-block .comments-empty,#events comments-block form.comment-form' { display = 'none' }'#events comments-block ol.comment-list' { margin = '0' }'#events > li.comment.deleted' { background = 'transparent' padding = '.2rem .7rem' fontStyle = 'italic' color = colorTextMuted }'#commentform h2.comments-count,#commentform .comments-empty,#commentform ol.comment-list' { display = 'none' }commentForm { display = 'block' }// ---- ticket #4: relations (parent, children, blocked by, blocks) ---------------------------ticketRelations { display = 'grid' gap = '.8rem' padding = '.8rem' background = colorSurface borderRadius = radiusLarge }'ticket-relations h2' { margin = '0 0 .4rem' fontSize = '1rem' }'ticket-relations p' { margin = '0' }'#parent a,.refs a' { display = 'inline-flex' alignItems = 'center' minHeight = layoutTap fontWeight = '600' whiteSpace = 'nowrap' }'.refsubject' { color = colorTextStrong overflowWrap = 'anywhere' }'#childnote' { margin = '0 0 .4rem' fontSize = '.9rem' color = colorTextMuted }'#childnote.done' { fontWeight = '600' color = colorSuccess }'.refs' { listStyle = 'none' margin = '0' padding = '0' display = 'grid' gap = '.35rem' }'.refs li' { display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem .6rem' }'.refs .unblock' { padding = '.1rem .6rem' fontSize = '.875rem' marginLeft = 'auto' }'#events > li.link' { background = 'transparent' padding = '.2rem .7rem' }'@media (min-width: 60rem)' = {'.tickets li' = { gridTemplateColumns = '8.5rem minmax(0, 1fr) auto' alignItems = 'center' gap = '1rem' }'#parentform,#blockerform' = { gridTemplateColumns = 'minmax(0, 1fr) auto' alignItems = 'end' }'ticket-filters nav' = { flexWrap = 'wrap' overflowX = 'visible' }'#members strong' = { flex = '1 1 8rem' }formButtons = { display = 'flex' flexWrap = 'wrap' }}
Branches
Latest commits
- 0398145ctickets: the table grid rule is marked functional for check-thememre
- 40fddc20tickets takes components e54f83a: tables get thin grey lines from the theme, desktop toolbar stays one row with the Table button, F4 check counts 11 buttonsmre
- c1b77d61tickets#35: text typed before the editor is built is taken in once by the build (the input handler no longer writes it to the field first, which doubled the first letters); the gate failure shows the surfacemre
- 32bf1873tickets#35: the gate types right after the load with the CPU slowed, no waitingmre
- 64ea9ca2tickets#35: text typed into the reply editor before the page has finished starting is kept; the gate types right after loadmre
- ccd3a327tickets: the security gate expects frame-src to be exactly the ident address (the sign-in frame), still no wildcard or selfmre
- 4348dbabident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
- 66ef3005Merge branch 'iw-ident-widget'mre
- bc0ad663tickets: a gap between your name and Log out in the phone header (they touched); gate checks itmre
- 2f818d46UX2: report, LOG line, e2e fixes, gate pause after loadmre
- af3ef7c4gate: the legacy state line says progressmre
- 62480a00tickets#33: a state change with a note is a comment card in the feed (same framework rendering, can be liked, edited, deleted), its state line stands alone; gate checks for a new comment with and without a state change, at once and after a reloadmre
- 4ae80007UX: Respond is one composer (state in its footer, button says what happens); New ticket / New project windows in the list heading row; project form shared; theme copied from layouts; gates and a lisbeth e2emre
- f03b438atickets header: the selector alone top right plus your name and Log out as before the theme missions; the user icon is gonemre
- 81f10e4eident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
- e9f428e7tools: reown-authors (tracker#36: every author that is not Caramboleyo or Apollo becomes the project's conductor; antcolony, miserit-anthar, hybrilior, termuplex stay) and a read-only author surveymre
- f51029abMerge branch 'sy-sync'mre
- eae6e8c7sync components.hybriel 4922f9c: comments like / Edit / Delete / 'edited' are 44 px targets; gate: 'edited' hit-area padding, thread targets check (SY)mre
- 0de4750btheme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 4eeb7bfeST2 report wordingmre