-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
84 lines (84 loc) · 2.01 KB
/
Copy pathpopup.html
File metadata and controls
84 lines (84 loc) · 2.01 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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>PR Reverse Comments</title>
<style>
/* GitHub-ish palette; follows the browser's light/dark preference
instead of forcing dark on light-mode users. */
:root {
color-scheme: light dark;
--bg: #ffffff;
--fg: #1f2328;
--fg-muted: #59636e;
--btn-bg: #f6f8fa;
--btn-border: #d1d9e0;
--btn-hover: #eef1f4;
--accent: #1f6feb;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0d1117;
--fg: #c9d1d9;
--fg-muted: #8b949e;
--btn-bg: #21262d;
--btn-border: #30363d;
--btn-hover: #30363d;
}
}
body {
font:
13px -apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
width: 220px;
margin: 0;
padding: 12px;
background: var(--bg);
color: var(--fg);
}
h1 {
font-size: 13px;
margin: 0 0 8px 0;
}
p {
margin: 0 0 10px 0;
color: var(--fg-muted);
font-size: 11px;
}
.row {
display: flex;
gap: 6px;
}
button {
flex: 1;
padding: 6px 8px;
background: var(--btn-bg);
color: var(--fg);
border: 1px solid var(--btn-border);
border-radius: 6px;
cursor: pointer;
font-size: 12px;
}
button.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
button:hover:not(.active) {
background: var(--btn-hover);
}
</style>
</head>
<body>
<h1>PR comment order</h1>
<p>Choose the order for GitHub PR conversation comments and commits.</p>
<div class="row">
<button id="newest">Newest first</button>
<button id="oldest">Oldest first</button>
</div>
<script src="constants.js"></script>
<script src="popup.js"></script>
</body>
</html>