@layer components { /* merge requests: the review page. Hue only where it carries a verdict. */ .mr-h .show-kv { margin-top: 0; } .mr-h + * { margin-top: var(--lh); } .mr-state[data-state="open"]::before { content: "● "; color: var(--teal); } .mr-state[data-state="merged"]::before { content: "✓ "; color: var(--teal); } .mr-state[data-state="closed"]::before { content: "✗ "; color: var(--red); } .mr-desc { margin-top: var(--lh); max-width: var(--measure); white-space: pre-wrap; overflow-wrap: anywhere; } .mr-desc a, .c-text a { text-decoration: underline; } .since { display: flex; flex-wrap: wrap; column-gap: 3ch; margin-top: var(--lh); & a { text-decoration: none; color: var(--ink-dim); } & a:hover { color: var(--ink); text-decoration: underline; } & a[aria-current] { color: var(--ink-hi); font-weight: bold; } & a[aria-current]::before { content: "▸ "; } & .mute { font-weight: normal; } } /* merge block: first thing in the rail */ .decide { & .d-acts { margin-top: calc(var(--lh) / 2); } & select { display: block; width: 100%; font: inherit; color: inherit; background: var(--paper-alt); border: 1px solid var(--rule); border-radius: 0; padding: 0 1ch; } & .d-btns { display: flex; gap: 2ch; margin-top: 4px; flex-wrap: wrap; } & .d-btns button { color: var(--ink-dim); } & .d-btns button:hover { color: var(--ink); text-decoration: underline; } & .d-btns .d-main { background: var(--ink); color: var(--paper); font-weight: bold; padding: 0 1ch; } & .d-btns .d-main:hover { background: var(--ink-hi); text-decoration: none; } & .d-or { margin-top: calc(var(--lh) / 2); } & .clone { margin-top: 0; } & .clone code { white-space: pre-wrap; overflow-wrap: anywhere; } } .pcommits li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pcommits li[data-new] { background: var(--row); } .pcommits .s { color: var(--ink); } .rail code { border-bottom: 1px dotted var(--ink-mute); } /* a note: a ruled block, under its line in the diff and in the list of comments */ .cmt { border-left: 2px solid var(--ink); padding-left: 1ch; margin-top: calc(var(--lh) / 2); max-width: var(--measure); white-space: normal; & p { white-space: normal; } & .c-who { font-weight: bold; } & .c-state { color: var(--ink-dim); } & .c-text { white-space: pre-wrap; overflow-wrap: anywhere; } & .c-where { font-size: var(--fs-s); overflow-wrap: anywhere; } & .c-act button { color: var(--ink-dim); } & .c-act button:hover { color: var(--ink); text-decoration: underline; } &[data-resolved="true"] { border-left-color: var(--rule); } &[data-resolved="true"] .c-text { color: var(--ink-dim); } } .dt .fnote td { background: var(--paper-alt); padding: 2px 0 4px; white-space: normal; } .dt .fnote .cmt, .dt .fnote .cform { margin: 0; font-size: var(--fs); line-height: var(--lh); } .dt .fnote .cmt + .cmt, .dt .fnote .cmt + .cform { margin-top: calc(var(--lh) / 2); } .ln a { color: inherit; text-decoration: none; } .ln a:hover, .ln a:focus-visible { text-decoration: underline; color: var(--ink-hi); } /* the forms: a comment, a new merge request */ .cform { display: grid; gap: 2px; margin-top: var(--lh); max-width: var(--measure); & label { color: var(--ink-dim); } & textarea, & input[type="text"] { display: block; width: 100%; font: inherit; color: inherit; resize: vertical; background: var(--paper-alt); border: 1px solid var(--rule); border-radius: 0; padding: 0 1ch; } & textarea::placeholder { color: var(--ink-mute); opacity: 1; } & .f-btns { display: flex; gap: 2ch; align-items: baseline; margin-top: 4px; } & .f-btns a { color: var(--ink-dim); } & .f-btns button { color: var(--ink-dim); } & .f-btns button:hover { color: var(--ink); text-decoration: underline; } & .f-btns .f-main { background: var(--ink); color: var(--paper); font-weight: bold; padding: 0 1ch; } & .f-btns .f-main:hover { background: var(--ink-hi); text-decoration: none; } } .cform.create { margin-top: var(--lh); } .list.mrs { & .c-n { width: 5ch; } & .c-state { width: 9ch; } & .c-subject { overflow: hidden; text-overflow: ellipsis; } & .c-who { width: 12ch; } & .c-when { width: 11ch; } & tr[data-state="open"] .c-state { font-weight: bold; } & tr[data-state="open"] .c-state::before { content: "● "; color: var(--teal); } & tr[data-state="merged"] .c-state::before { content: "✓ "; color: var(--teal); } & tr[data-state="closed"] .c-state::before { content: "✗ "; color: var(--red); } } #mr-notice:empty { display: none; } @media (max-width: 700px) { .list.mrs .c-who { display: none; } } }