Skip to content

Commit 80e76dd

Browse files
nikole-duniximarler8997
authored andcommitted
feat: minor cosmetic adjustment for readability
1 parent b707429 commit 80e76dd

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

index.html

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@
1414
a { color: #eee }
1515
h1 { color:#eee }
1616
h2 { color:#eee }
17-
pre { font-family: courier new }
17+
section {
18+
display: grid;
19+
justify-items: center;
20+
align-items: center;
21+
}
22+
code {
23+
padding: 0.75em;
24+
font-family: courier new;
25+
text-align: left;
26+
word-wrap: break-word;
27+
background: #111;
28+
}
1829

1930
#InstallDiv {
2031
margin:10px;
@@ -49,6 +60,18 @@
4960
.FilterButtonEnabled:hover {
5061
background:#3277e5;
5162
}
63+
64+
.Commands {
65+
display: grid;
66+
gap: 1em;
67+
grid-auto-rows: 5em;
68+
}
69+
.Commands div {
70+
display: grid;
71+
gap: 3em;
72+
grid-template-columns: 10em 45em;
73+
}
74+
5275
</style>
5376
<script>
5477

@@ -77,7 +100,7 @@
77100
return (
78101
'<div>' +
79102
'<button class="CopyButton" onclick="copyCommand(' + id + ')">Copy</button> ' +
80-
'<pre style="display:inline-block" id="command' + id + '">' + cmd + '</pre>' +
103+
'<code style="display:inline-block" id="command' + id + '">' + cmd + '</code>' +
81104
'</div>'
82105
);
83106
}
@@ -155,13 +178,15 @@
155178
html += '<br/><h2 style="margin:15px"><a href="' + archive_url + '">' + basename + '</a></h2>';
156179

157180
html += '<br/><h2>Command Line Install:</h2>';
181+
html += "<section><div class='Commands'>";
158182
var ids = { next_id: 0 };
159183
if (include_curl) {
160184
html += generateCommandHtml(ids, 'curl -L ' + archive_url + ' | tar xz');
161185
}
162186
if (include_wget) {
163187
html += generateCommandHtml(ids, 'wget -O - ' + archive_url + ' | tar xz');
164188
}
189+
html += "</div></section>";
165190
}
166191
get('InstallDiv').innerHTML = html;
167192
}

0 commit comments

Comments
 (0)