30-list.css RawHistoryFolder
1@layer components {
2 /* tables in a card, with a row cursor (j/k) */
3 .list {
4 width: 100%; table-layout: fixed;
5 background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
6 border-collapse: separate; overflow: hidden;
7 & th {
8 height: 40px; padding: 0 var(--s3); white-space: nowrap;
9 font: 600 var(--fs-xs) / 1 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute);
10 background: var(--bg-raised); border-bottom: 1px solid var(--border);
11 }
12 & th a { text-decoration: none; }
13 & th a:hover { color: var(--ink-hi); }
14 & th[aria-sort="ascending"], & th[aria-sort="descending"] { color: var(--ink-hi); }
15 & td { height: 40px; padding: 0 var(--s3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid var(--border); }
16 & tbody tr:first-child td { border-top: 0; }
17 & th.cur, & td.cur { width: 3px; padding: 0; }
18 & tbody tr:hover { background: var(--bg-raised); }
19 & tbody tr[data-cursor] { background: var(--bg-raised); }
20 & tbody tr[data-cursor] .cur { background: var(--ink-hi); }
21 & tbody tr[hidden] { display: none; }
22 & td > a { text-decoration: none; }
23 & td > a:first-child { color: var(--ink-hi); }
24 & tr:hover td > a:first-child, & tr[data-cursor] td > a:first-child { text-decoration: underline; }
25 & .c-sha, & .c-ref, & .c-kind, & .c-size, & .c-n { font-family: var(--mono); font-size: var(--fs-s); }
26 & .c-sha a { color: var(--ink-dim); }
27 & .c-when, & .c-who { font-size: var(--fs-s); }
28 & .c-sub { color: var(--ink-dim); }
29 }
30
31 .home {
32 & .c-name { width: 26%; font-family: var(--mono); font-weight: 700; }
33 & th.c-name { font-family: var(--font); }
34 & .c-desc { width: auto; }
35 & .c-when { width: 130px; }
36 & .c-ref { width: 120px; }
37 & .c-lang { width: 120px; }
38 }
39 .list.tree {
40 & .c-kind { width: 36px; color: var(--ink-mute); padding-right: 0; text-align: center; }
41 & .c-name { width: 32%; font-family: var(--mono); font-size: var(--fs-s); }
42 & .c-size { width: 90px; text-align: right; }
43 & .c-when { width: 100px; }
44 & .c-sub { width: auto; }
45 & .c-who { width: 130px; }
46 }
47 .list.commits, .list.refs {
48 & .c-sha { width: 96px; }
49 & .c-who { width: 140px; }
50 & .c-when { width: 100px; }
51 }
52
53 /* filter: a search field above a list */
54 .filter {
55 position: relative; display: flex; max-width: 420px;
56 &::before {
57 content: ""; position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; pointer-events: none;
58 background: var(--ink-mute); mask: url(icons/search.svg) center / contain no-repeat;
59 }
60 &::after {
61 content: "/"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
62 font: 600 var(--fs-xs) / 18px var(--mono); color: var(--ink-mute); padding: 0 6px;
63 border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; pointer-events: none;
64 }
65 & input {
66 flex: 1; min-width: 0; height: 36px; padding: 0 36px 0 34px;
67 background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-s);
68 }
69 & input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
70 & input::placeholder { color: var(--ink-mute); opacity: 1; }
71 &:focus-within::after { display: none; }
72 }
73
74 /* section headings inside a page */
75 .rule-h {
76 display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5);
77 font-size: var(--fs);
78 & > :first-child { color: var(--ink-hi); }
79 }
80 main > .rule-h:first-child { margin-top: 0; }
81
82 /* empty / 404 / error / sign in: one card in the middle */
83 .state {
84 max-width: 560px; margin: var(--s7) auto 0 !important; padding: var(--s6);
85 background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r);
86 & .eyebrow { font: 700 var(--fs-s) / 1 var(--mono); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s2); }
87 & h1 { margin-bottom: var(--s3); }
88 & p.dim { color: var(--ink-dim); }
89 & .state-act { margin-top: var(--s5); }
90 & .state-back { margin-top: var(--s5); display: flex; gap: var(--s4); font-size: var(--fs-s); }
91 & .clone { margin-top: var(--s4); }
92 }
93
94 /* copyable shell lines */
95 .clone {
96 display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); min-width: 0;
97 & .clone-line {
98 min-width: 0;
99 display: flex; gap: var(--s2); align-items: center; padding: var(--s1) var(--s1) var(--s1) var(--s3);
100 background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-s);
101 font-size: var(--fs-code);
102 }
103 & .clone-line > .mute { user-select: none; font-family: var(--mono); }
104 & code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; scrollbar-width: none; }
105 & .copy { height: 26px; padding: 0 var(--s2); font-size: var(--fs-xs); }
106 }
107}