File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 1414a { color : # eee }
1515h1 { color : # eee }
1616h2 { 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 ;
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
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 }
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 }
You can’t perform that action at this time.
0 commit comments