~bigbes/lethe

ref: 72508a536dd54662af89cce0002f6f3dee1ed0f8 lethe/web/src/styles/palette.css -rw-r--r-- 2.6 KiB
72508a53 — Eugene Blikh docs: refresh search and opencode plan 24 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Palette overlay styles — ported verbatim from prototype.css */

/* ─── Scrim ─── */
.scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 50;
}

/* ─── Palette box ─── */
.palette {
  width: 620px;
  max-width: calc(100vw - 32px);
  max-height: 480px;
  background: var(--paper);
  border: 1px solid var(--ink-3);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Palette input row ─── */
.palette-input-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.palette-input-row .palette-hint-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  flex: none;
}
.palette-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.palette-input::placeholder {
  color: var(--ink-4);
}

/* ─── Palette list ─── */
.palette-list {
  flex: 1;
  overflow: auto;
  padding: 4px 0;
  min-height: 0;
}

/* ─── Palette row ─── */
.palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12.5px;
  border-left: 2px solid transparent;
  color: var(--ink);
}
.palette-row:hover {
  background: var(--paper-2);
}
.palette-row.cursor {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.palette-row .kind {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  width: 70px;
  flex: none;
}
.palette-row .kind.accent-c {
  color: var(--accent-ink);
}
.palette-row .label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.palette-row .row-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  flex: none;
}

/* ─── Palette footer ─── */
.palette-hint {
  padding: 6px 14px;
  border-top: 1px solid var(--rule-2);
  background: var(--paper-3);
  font-size: 10px;
  color: var(--ink-3);
  display: flex;
  gap: 14px;
  font-family: var(--mono);
}
.palette-hint .spacer { flex: 1; }

/* ─── Group headers ─── */
.palette-group-head {
  padding: 8px 12px 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── No matches ─── */
.palette-empty {
  padding: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}