Repository navigation
Expand file tree
/
Copy pathupdate.html
More file actions
198 lines (198 loc) · 5.43 KB
/
Copy pathupdate.html
File metadata and controls
198 lines (198 loc) · 5.43 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'unsafe-inline'" />
<title>Update archamp</title>
<style>
/* The same components as the player's menus and the skin browser, which
are Omarchy's own: a pinned title, PanelSeparator between sections,
the shell's popup row height and control inset, its state fills. This
window is not zoomed, so the shell's 12px base is used directly. */
:root {
--rem: 12px;
--bg: #14151a;
--fg: #e2e2e6;
--dim: #a1a1a4;
--rule: rgba(226, 226, 230, 0.12);
--fill: rgba(226, 226, 230, 0.04);
--hover: rgba(226, 226, 230, 0.08);
--accent: #7aa2f7;
--error: #d05c5c;
--inset: calc(var(--rem) * 0.833);
--row: calc(var(--rem) * 2.333);
--caption: calc(var(--rem) * 0.833);
--title: calc(var(--rem) * 1.167);
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
height: 100%;
background: var(--bg);
color: var(--fg);
font-family: "JetBrainsMono Nerd Font", "JetBrains Mono", monospace;
font-size: var(--rem);
}
body {
display: grid;
grid-template-rows: auto auto 1fr auto auto auto;
overflow: hidden;
}
hr {
height: 1px;
margin: 0;
border: none;
background: var(--rule);
}
header {
padding: calc(var(--rem) * 0.833) var(--inset) calc(var(--rem) * 0.667);
}
h1 {
margin: 0;
font-size: var(--title);
font-weight: bold;
}
.meta {
margin: calc(var(--rem) * 0.25) 0 0;
font-size: var(--caption);
font-weight: bold;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--dim);
}
/* The notes, as written. A section per heading, each with its own header
and dividing line, as the rest of the window has. */
main {
overflow-y: auto;
padding: var(--inset);
scrollbar-width: thin;
scrollbar-color: var(--rule) transparent;
}
.section + .section {
margin-top: calc(var(--rem) * 1.333);
}
.section h2 {
margin: 0 0 calc(var(--rem) * 0.5);
font-size: var(--caption);
font-weight: bold;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--dim);
}
.section h2 + hr {
margin-bottom: calc(var(--rem) * 0.667);
}
.section p {
margin: 0 0 calc(var(--rem) * 0.5);
white-space: pre-wrap;
line-height: 1.5;
}
.section p:last-child {
margin-bottom: 0;
}
.section strong {
font-weight: bold;
}
.section .bullet {
padding-left: calc(var(--rem) * 1.167);
text-indent: calc(var(--rem) * -1.167);
}
.command {
padding: calc(var(--rem) * 0.667) var(--inset);
}
.command .lead {
margin: 0 0 calc(var(--rem) * 0.5);
font-size: var(--caption);
color: var(--dim);
}
.box {
display: flex;
align-items: flex-start;
gap: calc(var(--rem) * 0.5);
padding: calc(var(--rem) * 0.667);
background: var(--fill);
border: 1px solid var(--rule);
}
#command {
flex: 1;
min-width: 0;
margin: 0;
font: inherit;
font-size: var(--caption);
line-height: 1.5;
white-space: pre-wrap;
overflow-wrap: anywhere;
user-select: text;
cursor: text;
}
#result {
margin: calc(var(--rem) * 0.5) 0 0;
font-size: var(--caption);
color: var(--dim);
white-space: pre-wrap;
}
#result.failed {
color: var(--error);
}
#result[hidden] {
display: none;
}
footer {
display: flex;
gap: calc(var(--rem) * 0.5);
padding: calc(var(--rem) * 0.667) var(--inset);
}
button {
height: var(--row);
padding: 0 calc(var(--rem) * 1.333);
background: var(--fill);
border: 1px solid var(--rule);
color: var(--fg);
font: inherit;
cursor: pointer;
}
button:hover {
background: var(--hover);
}
button.primary {
border-color: var(--accent);
color: var(--accent);
}
button:disabled {
color: var(--dim);
border-color: var(--rule);
cursor: default;
}
button.copy {
height: auto;
padding: calc(var(--rem) * 0.25) calc(var(--rem) * 0.667);
font-size: var(--caption);
}
</style>
</head>
<body>
<header>
<h1 id="title">Update archamp</h1>
<p class="meta" id="versions"></p>
</header>
<hr />
<main id="notes"></main>
<hr />
<div class="command">
<p class="lead">Update runs this command. You can also copy it into a terminal.</p>
<div class="box">
<pre id="command"></pre>
<button id="copy" class="copy" type="button">Copy</button>
</div>
<p id="result" hidden></p>
</div>
<hr />
<footer>
<button id="update" class="primary" type="button">Update</button>
<button id="cancel" type="button">Cancel</button>
</footer>
<script src="update.js"></script>
</body>
</html>