-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathstyle.css
More file actions
51 lines (44 loc) · 2.86 KB
/
style.css
File metadata and controls
51 lines (44 loc) · 2.86 KB
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
:root {
--bg: #fff;
--bg-muted: #f7f7f8;
--border: #e4e4e7;
--text: #18181b;
--text-muted: #71717a;
--accent: #2563eb;
--accent-soft: #eff6ff;
--insert: #16a34a;
--insert-soft: #dcfce7;
--delete: #dc2626;
--delete-soft: #fee2e2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--text); background: var(--bg-muted); }
button { font: inherit; cursor: pointer; }
.app { display: grid; grid-template-columns: 1fr 340px; height: 100vh; }
.editor-area { overflow: auto; padding: 8px 12px; }
.sidebar { background: var(--bg); border-left: 1px solid var(--border); overflow-y: auto; padding: 12px 16px; }
.mode { display: flex; gap: 4px; margin-bottom: 8px; }
.mode button { padding: 5px 12px; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.mode button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.mode button:disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.5; }
.sidebar-head { margin-bottom: 12px; }
.sidebar-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 8px; }
.bulk { display: flex; flex-wrap: wrap; gap: 4px; }
.bulk button { padding: 4px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.bulk button.primary { border-color: var(--accent); color: var(--accent); }
.bulk button:disabled { opacity: 0.5; cursor: not-allowed; }
.changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.changes .empty { color: var(--text-muted); font-size: 12px; }
.card { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; background: var(--bg); cursor: pointer; }
.card:hover { border-color: var(--accent); }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kind { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 3px; text-transform: capitalize; margin-bottom: 4px; }
.kind.insertion { background: var(--insert-soft); color: var(--insert); }
.kind.deletion { background: var(--delete-soft); color: var(--delete); }
.kind.format { background: var(--bg-muted); color: var(--text-muted); }
.author { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.excerpt { border-left: 2px solid var(--accent); padding-left: 8px; font-style: italic; color: var(--text-muted); font-size: 12px; margin: 4px 0; }
.actions { display: flex; gap: 6px; margin-top: 8px; }
.actions button { padding: 4px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; background: transparent; }
.actions button.primary { border-color: var(--insert); color: var(--insert); }
.actions button.danger { border-color: var(--delete); color: var(--delete); }