// threads: page parts in the one page language (docs/ui-language.md). Tokens only. // Lists with a rail: the sheet is as tall as its rows, as every list is; the tools row and every row // stay on one line. .work:has(> .sheet > .issue-row) { align-items: start; > .sheet { display: flex; flex-direction: column; } > .sheet > .sheet-tools { flex-wrap: nowrap; height: 48px; padding: 0 10px 0 18px; gap: 6px; > strong { white-space: nowrap; } input[type="search"], select { margin: 0; } select { flex: none; } > a { flex: none; } } > .sheet > .issue-row { flex: none; min-height: 46px; padding: 0 18px; align-items: center; flex-wrap: nowrap; white-space: nowrap; .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .val { flex: none; white-space: nowrap; } } } // Issue view: one conversation sheet. Entries carry their body, reactions and quiet actions; events are small dim lines. .work:has(> .sheet > .issue-timeline) { > .sheet > .issue-timeline { gap: 0; } > .sheet > .issue-comment { padding: 16px 18px 14px; border-top: 1px solid var(--border); } > .sheet > .issue-timeline > .thread-event { padding: 5px 18px; border-bottom: 0; font-size: 13.5px; line-height: 20px; } .thread-entry { padding: 16px 18px; } .thread-head { font-size: 14px; } .issue-item-body { max-width: 760px; } .reactions { margin: 4px 0 0 -10px; padding: 0; gap: 4px; } .reaction-picker > summary { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 12px; font-size: 14px; } } // Forms in a fit sheet: no box around the label list, and the quiet cancel stays with the submit. .sheet.fit > form.fields > fieldset.field { border: 0; padding: 0; margin-top: 0; min-width: 0; > legend { padding: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 22px; } } // Issue history: the diff sits in the entry, flat, with no ring of its own. .work:has(> .sheet > .issue-timeline .diff-file) .diff-file { border: 0; border-radius: 0; box-shadow: none; } .sheet:has(#create-label) input[type="color"] { width: 38px; height: var(--control-h); padding: 4px; border: 0; border-radius: 12px; background: var(--surface-2); } // Phone: the filters become one row to scroll, the tools wrap, and each row keeps its name on the first line. @media (max-width: 760px) { .work:has(> .sheet > .issue-row) { display: flex; flex-direction: column; align-items: stretch; gap: 8px; > .rail { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; } > .rail .rail-list { flex-direction: row; gap: 6px; } > .rail .rail-item { flex: none; } > .sheet { flex: none; } > .sheet > .sheet-tools { flex-wrap: wrap; height: auto; padding: 10px 12px; row-gap: 8px; } > .sheet > .sheet-tools input[type="search"] { flex: 1 1 100%; width: 100%; } } .work:has(> .sheet > .issue-row) > .sheet > .issue-row { flex-wrap: wrap; white-space: normal; row-gap: 4px; column-gap: 10px; // A hanging indent: the tick sits beside the title, and every wrapped line starts on the title's edge. padding: 10px 14px 10px 40px; > .tick { align-self: flex-start; margin: 3px 0 0 -26px; } .name { flex: 1 1 0; min-width: calc(100% - 10px); overflow: visible; white-space: normal; } } } // What an issue or pull request is filed under: one line a topic, its name where a field's label // goes, its value right after, and Edit right after the value. An opened edit takes the full width. .sheet > .sec.meta { display: grid; grid-template-columns: var(--label-w, 130px) max-content minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; padding-top: 8px; padding-bottom: 8px; > h2 { grid-column: 1; grid-row: 1; align-self: start; margin: 0; padding-top: 8px; } > :not(h2, .acts) { grid-column: 2; margin: 0; } > p.hint { font-size: 14px; } > .acts { grid-column: 3; grid-row: 1; margin: 0 0 0 -6px; } > .acts:has(details[open]) { grid-column: 2 / -1; grid-row: auto; margin-left: -10px; } > .line { min-height: 34px; margin: 0; padding: 0; border: 0; } } @media (max-width: 700px) { .sheet > .sec.meta { grid-template-columns: minmax(0, 1fr) max-content; > h2 { grid-column: 1 / -1; grid-row: auto; padding-top: 0; } > :not(h2, .acts) { grid-column: 1; } > .acts { grid-column: 2; grid-row: 2; } > .acts:has(details[open]) { grid-column: 1 / -1; grid-row: auto; } } } // A comment's own actions are one row under it: its reactions, then Edit and Delete. article.thread-entry:has(> .reactions + .acts) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 4px; > * { grid-column: 1 / -1; min-width: 0; } > .reactions { grid-column: 1; } > .reactions + .acts { grid-column: 2; } }