Skip to content

Commit 71988ef

Browse files
committed
Improved the site layout on mobile devices
1 parent 3a91a53 commit 71988ef

File tree

2 files changed

+116
-59
lines changed

2 files changed

+116
-59
lines changed

docs/index.html

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
77
<meta name="description" content="Jsign : Pure Java implementation of Microsoft Authenticode for signing Windows executable files, Microsoft Installers (MSI), Cabinet files (CAB) and scripts (PowerShell, VBScript, JScript, WSF)" />
88
<meta name="google-site-verification" content="p912kgAnTBOzVbswrU43k3FXUbPnxLHdeW6xsVcq1uU" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
910

1011
<script src="scripts/prettify/run_prettify.js"></script>
1112
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
@@ -21,7 +22,7 @@
2122
<a id="forkme_banner" href="https://github.com/ebourg/jsign">View on GitHub</a>
2223

2324
<h1 id="project_title">Jsign</h1>
24-
<h2 id="project_tagline">Java implementation of Microsoft Authenticode<br>for signing Windows executable files, installers and scripts</h2>
25+
<h2 id="project_tagline">Java implementation of Microsoft Authenticode <br class="desktop-only">for signing Windows executable files, installers and scripts</h2>
2526

2627
<section id="downloads">
2728
<a class="zip_download_link" href="#files">Download Jsign</a>
@@ -116,46 +117,51 @@ <h3 id="ant">Ant Task</h3>
116117

117118
<br><br>
118119

119-
<table border="1" style="border-collapse: collapse; width: 100%">
120+
<h4 class="mobile-only">Attributes</h4>
121+
122+
<table style="border-collapse: collapse; width: 100%">
123+
<thead>
120124
<tr>
121-
<th valign="top">Attribute</th>
122-
<th valign="top">Description</th>
123-
<th align="center" valign="top" width="25%">Required</th>
125+
<th>Attribute</th>
126+
<th>Description</th>
127+
<th align="center" width="25%">Required</th>
124128
</tr>
129+
</thead>
130+
<tbody>
125131
<tr>
126-
<td valign="top">file</td>
127-
<td valign="top">
132+
<td class="attribute">file</td>
133+
<td class="description">
128134
The file to be signed. The supported files are Windows executables (EXE), DLLs, Microsoft Installers (MSI),
129135
Cabinet files (CAB) and scripts (PowerShell, VBScript, JScript, WSF)</td>
130-
<td valign="top" align="center">Yes, unless a fileset is specified.</td>
136+
<td class="required">Yes, unless a fileset is specified.</td>
131137
</tr>
132138
<tr>
133-
<td valign="top">name</td>
134-
<td valign="top">The name of the application</td>
135-
<td valign="top" align="center">No</td>
139+
<td class="attribute">name</td>
140+
<td class="description">The name of the application</td>
141+
<td class="required">No</td>
136142
</tr>
137143
<tr>
138-
<td valign="top">url</td>
139-
<td valign="top">The URL of the application</td>
140-
<td valign="top" align="center">No</td>
144+
<td class="attribute">url</td>
145+
<td class="description">The URL of the application</td>
146+
<td class="required">No</td>
141147
</tr>
142148
<tr>
143-
<td valign="top">keystore</td>
144-
<td valign="top">The keystore file, or the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/p11guide.html#Config">SunPKCS11 configuration file</a></td>
145-
<td valign="top" align="center">Yes, unless <code>certfile</code> and <code>keyfile</code> are specified.</td>
149+
<td class="attribute">keystore</td>
150+
<td class="description">The keystore file, or the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/p11guide.html#Config">SunPKCS11 configuration file</a></td>
151+
<td class="required">Yes, unless <code>certfile</code> and <code>keyfile</code> are specified.</td>
146152
</tr>
147153
<tr>
148-
<td valign="top">storepass</td>
149-
<td valign="top">
154+
<td class="attribute">storepass</td>
155+
<td class="description">
150156
The password to open the keystore. The password can be loaded from a file by using the <code>file:</code> prefix
151157
followed by the path of the file, or from an enviroment variable by using the <code>env:</code> prefix followed
152158
by the name of the variable.
153159
</td>
154-
<td valign="top" align="center">No</td>
160+
<td class="required">No</td>
155161
</tr>
156162
<tr>
157-
<td valign="top">storetype</td>
158-
<td valign="top">
163+
<td class="attribute">storetype</td>
164+
<td class="description">
159165
The type of the keystore:
160166
<ul>
161167
<li><code>JKS</code>: Java keystore (<code>.jks</code> files)</li>
@@ -169,77 +175,77 @@ <h3 id="ant">Ant Task</h3>
169175
<li><code>GOOGLECLOUD</code>: Google Cloud KMS</li>
170176
</ul>
171177
</td>
172-
<td valign="top" align="center">No, automatically detected for file based keystores.</td>
178+
<td class="required">No, automatically detected for file based keystores.</td>
173179
</tr>
174180
<tr>
175-
<td valign="top">alias</td>
176-
<td valign="top">The alias of the certificate used for signing in the keystore.</td>
177-
<td valign="top" align="center">Yes, if <code>keystore</code> is specified and more than one alias exist</td>
181+
<td class="attribute">alias</td>
182+
<td class="description">The alias of the certificate used for signing in the keystore.</td>
183+
<td class="required">Yes, if <code>keystore</code> is specified and more than one alias exist</td>
178184
</tr>
179185
<tr>
180-
<td valign="top">certfile</td>
181-
<td valign="top">The file containing the PKCS#7 certificate chain (<code>.p7b</code> or <code>.spc</code> files).</td>
182-
<td valign="top" align="center" rowspan="2">Yes, unless <code>keystore</code> is specified.</td>
186+
<td class="attribute">certfile</td>
187+
<td class="description">The file containing the PKCS#7 certificate chain (<code>.p7b</code> or <code>.spc</code> files).</td>
188+
<td class="required" rowspan="2">Yes, unless <code>keystore</code> is specified.</td>
183189
</tr>
184190
<tr>
185-
<td valign="top">keyfile</td>
186-
<td valign="top">
191+
<td class="attribute">keyfile</td>
192+
<td class="description">
187193
The file containing the private key. <code>PEM</code> and <code>PVK</code> files are supported.
188194
</td>
189195
</tr>
190196
<tr>
191-
<td valign="top">keypass</td>
192-
<td valign="top">
197+
<td class="attribute">keypass</td>
198+
<td class="description">
193199
The password of the private key. When using a keystore, this parameter can be omitted if the keystore shares
194200
the same password. The password can be loaded from a file by using the <code>file:</code> prefix followed by
195201
the path of the file, or from an enviroment variable by using the <code>env:</code> prefix followed by the
196202
name of the variable.
197203
</td>
198-
<td valign="top" align="center">No</td>
204+
<td class="required">No</td>
199205
</tr>
200206
<tr>
201-
<td valign="top">alg</td>
202-
<td valign="top">The digest algorithm (SHA-1, SHA-256, SHA-384 or SHA-512)</td>
203-
<td valign="top" align="center">No; defaults to SHA-256</td>
207+
<td class="attribute">alg</td>
208+
<td class="description">The digest algorithm (SHA-1, SHA-256, SHA-384 or SHA-512)</td>
209+
<td class="required">No; defaults to SHA-256</td>
204210
</tr>
205211
<tr>
206-
<td valign="top">tsaurl</td>
207-
<td valign="top">
212+
<td class="attribute">tsaurl</td>
213+
<td class="description">
208214
The URL of the timestamping authority, either RFC 3161 or Authenticode services.
209215
You can use for example the Sectigo (http://timestamp.sectigo.com)
210216
or the DigiCert (http://timestamp.digicert.com) services.<br>
211217
Several URLs separated by a comma can be specified to fallback on alternative servers.
212218
</td>
213-
<td valign="top" align="center">No</td>
219+
<td class="required">No</td>
214220
</tr>
215221
<tr>
216-
<td valign="top">tsmode</td>
217-
<td valign="top">The timestamping mode (RFC3161 or Authenticode)</td>
218-
<td valign="top" align="center">No; defaults to Authenticode</td>
222+
<td class="attribute">tsmode</td>
223+
<td class="description">The timestamping mode (RFC3161 or Authenticode)</td>
224+
<td class="required">No; defaults to Authenticode</td>
219225
</tr>
220226
<tr>
221-
<td valign="top">tsretries</td>
222-
<td valign="top">The number of retries for timestamping</td>
223-
<td valign="top" align="center">No; defaults to 3</td>
227+
<td class="attribute">tsretries</td>
228+
<td class="description">The number of retries for timestamping</td>
229+
<td class="required">No; defaults to 3</td>
224230
</tr>
225231
<tr>
226-
<td valign="top">tsretrywait</td>
227-
<td valign="top">The number of seconds to wait between timestamping retries</td>
228-
<td valign="top" align="center">No; defaults to 10 seconds</td>
232+
<td class="attribute">tsretrywait</td>
233+
<td class="description">The number of seconds to wait between timestamping retries</td>
234+
<td class="required">No; defaults to 10 seconds</td>
229235
</tr>
230236
<tr>
231-
<td valign="top">replace</td>
232-
<td valign="top">Tells if previous signatures should be replaced.</td>
233-
<td valign="top" align="center">No; defaults to "false"</td>
237+
<td class="attribute">replace</td>
238+
<td class="description">Tells if previous signatures should be replaced.</td>
239+
<td class="required">No; defaults to "false"</td>
234240
</tr>
235241
<tr>
236-
<td valign="top">encoding</td>
237-
<td valign="top">The encoding of the script to be signed (if it doesn't contain a byte order mark).</td>
238-
<td valign="top" align="center">No; defaults to "UTF-8"</td>
242+
<td class="attribute">encoding</td>
243+
<td class="description">The encoding of the script to be signed (if it doesn't contain a byte order mark).</td>
244+
<td class="required">No; defaults to "UTF-8"</td>
239245
</tr>
240246
<tr>
241-
<td valign="top">detached</td>
242-
<td valign="top">
247+
<td class="attribute">detached</td>
248+
<td class="description">
243249
Tells if a detached signature should be generated or reused. The detached signature
244250
is a file in the same directory using the name of the file signed with the <code>.sig</code>
245251
suffix added (for example <code>application.exe.sig</code>).
@@ -249,9 +255,10 @@ <h3 id="ant">Ant Task</h3>
249255
the private key isn't used for signing and no timestamping is performed).</li>
250256
</ul>
251257
</td>
252-
<td valign="top" align="center">No; defaults to "false"</td>
258+
<td class="required">No; defaults to "false"</td>
253259
</tr>
254-
</table>
260+
</tbody>
261+
</table>
255262

256263

257264
<h3 id="maven">Maven plugin</h3>

docs/stylesheets/stylesheet.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ footer, header, hgroup, menu, nav, section {
3737

3838
ol, ul {
3939
/*list-style: none;*/
40+
padding-left: 20px;
4041
}
4142

4243
blockquote, q {
@@ -366,7 +367,13 @@ Full-Width Styles
366367
background: #212121;
367368
}
368369

370+
.mobile-only {
371+
display: none;
372+
}
369373

374+
td.required {
375+
text-align: center;
376+
}
370377

371378
/*******************************************************************************
372379
Small Device Styles
@@ -420,4 +427,47 @@ Small Device Styles
420427
font-size: 11px;
421428
}
422429

430+
.desktop-only {
431+
display: none;
432+
}
433+
434+
.mobile-only {
435+
display: initial
436+
}
437+
438+
table {
439+
border-width: 0;
440+
}
441+
442+
thead {
443+
display: none;
444+
}
445+
446+
tr {
447+
display: block;
448+
margin-bottom: 0.5em;
449+
}
450+
451+
td {
452+
display: block;
453+
border-width: 0;
454+
}
455+
456+
td.attribute {
457+
padding: 0;
458+
font-weight: bold;
459+
}
460+
461+
td.description {
462+
padding-left: 2em;
463+
}
464+
465+
td.required {
466+
padding-left: 2em;
467+
text-align: left;
468+
}
469+
470+
td.required::before {
471+
content: "Required: ";
472+
}
423473
}

0 commit comments

Comments
 (0)