v0.15.0 8a6cfec

60-mr.css RawHistoryFolder

1@layer components {
2  /* merge requests: the review page. Hue only where it carries a verdict. */
3  .mr-h .show-kv { margin-top: 0; }
4
5  .mr-state[data-state="open"]::before { content: "● "; color: var(--teal); }
6  .mr-state[data-state="merged"]::before { content: "✓ "; color: var(--teal); }
7  .mr-state[data-state="closed"]::before { content: "✗ "; color: var(--red); }
8  .mr-desc { max-width: var(--measure); white-space: pre-wrap; overflow-wrap: anywhere; padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); }
9  .mr-desc a, .c-text a { text-decoration: underline; }
10
11  .since {
12    display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1);
13    background: var(--bg-raised); border-radius: var(--r-s);
14    & a { padding: var(--s1) var(--s3); border-radius: 4px; text-decoration: none; color: var(--ink-dim); font-size: var(--fs-s); }
15    & a:hover { color: var(--ink-hi); }
16    & a[aria-current] { color: var(--ink-hi); font-weight: 700; background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-strong); }
17    & .mute { font-weight: 400; font-family: var(--mono); }
18  }
19
20  /* merge block: first thing in the rail */
21  .decide {
22    border-color: var(--border-strong) !important;
23    & select {
24      display: block; width: 100%; height: 36px; padding: 0 var(--s3);
25      font: inherit; color: inherit; background: var(--bg-inset);
26      border: 1px solid var(--border-strong); border-radius: var(--r-s);
27    }
28    & .d-check { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s2); color: var(--ink-dim); font-size: var(--fs-s); cursor: pointer; }
29    & .d-check input { accent-color: var(--ink-hi); margin: 0; }
30    & .d-btns { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
31    & .d-btns .primary { flex: 1; justify-content: center; }
32    & .d-or { font-size: var(--fs-s); }
33    & .clone { margin-top: 0; }
34    & .clone code { white-space: pre-wrap; overflow-wrap: anywhere; }
35  }
36
37  .pcommits { font-size: var(--fs-s); display: grid; gap: var(--s1); }
38  .pcommits li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px var(--s2); margin: 0 calc(-1 * var(--s2)); border-radius: 4px; }
39  .pcommits li a { font-family: var(--mono); }
40  .pcommits li[data-new] { background: var(--bg-raised); }
41  .pcommits .s { color: var(--ink); }
42
43
44  /* a note: a ruled block, under its line in the diff and in the list of comments */
45  .cmt {
46    padding: var(--s3) var(--s4); margin-top: var(--s3); max-width: var(--measure);
47    background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--ink-hi); border-radius: var(--r-s);
48    white-space: normal; font-family: var(--font); font-size: var(--fs-s); line-height: 22px;
49    & p { white-space: normal; }
50    & .c-who { font-weight: bold; }
51    & .c-state { color: var(--ink-dim); }
52    & .c-text { white-space: pre-wrap; overflow-wrap: anywhere; }
53    & .c-where { font-size: var(--fs-s); overflow-wrap: anywhere; }
54    & .c-act { margin-top: var(--s2); }
55    & .c-act button { height: 26px; font-size: var(--fs-xs); }
56    &[data-resolved="true"] { border-left-color: var(--border-strong); }
57    &[data-resolved="true"] .c-text { color: var(--ink-dim); }
58  }
59  .dt .fnote td { background: var(--bg-canvas); padding: var(--s2) var(--s3); white-space: normal; }
60  .dt .fnote .cmt, .dt .fnote .cform { margin: 0; }
61  .dt .fnote .cmt + .cmt, .dt .fnote .cmt + .cform { margin-top: var(--s2); }
62  .ln a { color: inherit; text-decoration: none; }
63  .ln a:hover, .ln a:focus-visible { text-decoration: underline; color: var(--ink-hi); }
64
65  /* the forms: a comment, a new merge request */
66  .cform {
67    display: grid; gap: var(--s2); margin-top: var(--s3); max-width: var(--measure);
68    font-family: var(--font); font-size: var(--fs-s);
69    & label { color: var(--ink-dim); font-weight: 600; }
70    & textarea, & input[type="text"] {
71      display: block; width: 100%; font: inherit; font-size: var(--fs); color: inherit; resize: vertical;
72      background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s); padding: var(--s2) var(--s3);
73    }
74    & textarea::placeholder { color: var(--ink-mute); opacity: 1; }
75    & .f-btns { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s1); }
76  }
77
78  .list.mrs {
79    & .c-n { width: 64px; }
80    & .c-state { width: 110px; }
81    & .c-subject { overflow: hidden; text-overflow: ellipsis; }
82    & .c-who { width: 140px; }
83    & .c-when { width: 100px; }
84    & tr[data-state="open"] .c-state { font-weight: bold; }
85    & tr[data-state="open"] .c-state::before { content: "● "; color: var(--teal); }
86    & tr[data-state="merged"] .c-state::before { content: "✓ "; color: var(--teal); }
87    & tr[data-state="closed"] .c-state::before { content: "✗ "; color: var(--red); }
88  }
89  #mr-notice:empty { display: none; }
90
91  @media (max-width: 700px) {
92    .list.mrs .c-who { display: none; }
93  }
94}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 4

Tags 45

↑↓ moveenter openesc close