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}