-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
88 lines (88 loc) · 2.76 KB
/
popup.html
File metadata and controls
88 lines (88 loc) · 2.76 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ACP Notifications</title>
<link rel="stylesheet" href="styles.css">
<style>
body { width: 320px; min-height: 100px; max-height: 400px; overflow-y: auto; padding: 0; }
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
border-bottom: 1px solid var(--border);
background: var(--sidebar);
position: sticky;
top: 0;
}
.popup-header h3 { font-size: 13px; font-weight: 600; color: var(--foreground); }
.mark-read-btn {
background: none;
border: none;
color: var(--primary);
cursor: pointer;
font-size: 11px;
font-weight: 500;
}
.mark-read-btn:hover { text-decoration: underline; }
.notif-list { padding: 4px 0; }
.notif-item {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: background 0.1s;
}
.notif-item:hover { background: var(--accent); }
.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-item .notif-title {
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
color: var(--foreground);
}
.notif-item .notif-body { font-size: 11px; color: var(--muted-foreground); margin-top: 2px; }
.notif-item .notif-time { font-size: 10px; color: var(--muted-foreground); margin-top: 4px; opacity: 0.7; }
.notif-icon {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
.notif-icon.input_needed { background: var(--status-warning-fg); }
.notif-icon.run_finished { background: var(--status-success-fg); }
.notif-icon.error { background: var(--destructive); }
.open-panel-btn {
display: block;
width: 100%;
padding: 10px;
text-align: center;
font-size: 12px;
color: var(--primary);
background: var(--sidebar);
border: none;
border-top: 1px solid var(--border);
cursor: pointer;
font-family: var(--font-sans);
}
.open-panel-btn:hover { background: var(--accent); }
</style>
<script src="theme-init.js"></script>
</head>
<body>
<div class="popup-header">
<h3>Notifications</h3>
<button class="mark-read-btn" id="mark-read-btn">Mark all read</button>
</div>
<div class="notif-list" id="notif-list"></div>
<div id="empty-notifs" class="empty-state" style="display:none; padding: 24px 16px;">
<div class="title">All clear</div>
<div class="subtitle">No recent notifications.</div>
</div>
<button class="open-panel-btn" id="open-panel-btn">Open Side Panel</button>
<script src="utils.js"></script>
<script src="popup.js"></script>
</body>
</html>