consolidate style
This commit is contained in:
23
main.go
23
main.go
@@ -109,6 +109,7 @@ var pageTmpl = template.Must(template.New("page").Parse(`
|
|||||||
<style>
|
<style>
|
||||||
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 2rem; background: #f6f7fb; }
|
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 2rem; background: #f6f7fb; }
|
||||||
h1 { margin-bottom: 0.5rem; }
|
h1 { margin-bottom: 0.5rem; }
|
||||||
|
h2 { margin-top: 0; font-size: 1.2rem; }
|
||||||
form { background: #fff; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 650px; }
|
form { background: #fff; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 650px; }
|
||||||
label { display: inline-block; width: 180px; }
|
label { display: inline-block; width: 180px; }
|
||||||
input, select { margin-bottom: 0.5rem; padding: 0.25rem 0.4rem; }
|
input, select { margin-bottom: 0.5rem; padding: 0.25rem 0.4rem; }
|
||||||
@@ -119,7 +120,10 @@ var pageTmpl = template.Must(template.New("page").Parse(`
|
|||||||
th { background: #f0f2f8; text-align: left; }
|
th { background: #f0f2f8; text-align: left; }
|
||||||
tr:last-child td { border-bottom: none; }
|
tr:last-child td { border-bottom: none; }
|
||||||
tt { font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
tt { font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
||||||
|
ul { padding-left: 1.2rem; margin: 0; }
|
||||||
|
li { margin: 0.25rem 0; }
|
||||||
.error { color: #b00020; margin-top: 0.5rem; }
|
.error { color: #b00020; margin-top: 0.5rem; }
|
||||||
|
.notes { margin-top: 2rem; background: #fff; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 750px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -181,23 +185,16 @@ var pageTmpl = template.Must(template.New("page").Parse(`
|
|||||||
<tr><td><tt>{{.}}</tt></td></tr>
|
<tr><td><tt>{{.}}</tt></td></tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</table>
|
</table>
|
||||||
<div style="
|
<div class="notes">
|
||||||
margin-top: 2rem;
|
<h2>Notes</h2>
|
||||||
background: #fff;
|
<ul>
|
||||||
padding: 1rem 1.5rem;
|
<li>
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
||||||
max-width: 750px;
|
|
||||||
">
|
|
||||||
<h2 style="margin-top: 0; font-size: 1.2rem;">Notes</h2>
|
|
||||||
<ul style="padding-left: 1.2rem; margin: 0;">
|
|
||||||
<li style="margin: 0.25rem 0;">
|
|
||||||
No data generated by this page is stored on the server at any time. Your passphrases are <strong>never logged or recorded</strong>.
|
No data generated by this page is stored on the server at any time. Your passphrases are <strong>never logged or recorded</strong>.
|
||||||
</li>
|
</li>
|
||||||
<li style="margin: 0.25rem 0;">
|
<li>
|
||||||
All randomness is generated using Go's crypto/rand package, which uses the Linux kernel's secure random generator (same source as /dev/urandom).
|
All randomness is generated using Go's crypto/rand package, which uses the Linux kernel's secure random generator (same source as /dev/urandom).
|
||||||
</li>
|
</li>
|
||||||
<li style="margin: 0.25rem 0;">
|
<li>
|
||||||
Source code for this generator is available at:<br><a href="https://git.coadcorp.com/nathan/ppgen" target="_blank" style="text-decoration:none; color:#0d6efd;">https://git.coadcorp.com/nathan/ppgen</a>
|
Source code for this generator is available at:<br><a href="https://git.coadcorp.com/nathan/ppgen" target="_blank" style="text-decoration:none; color:#0d6efd;">https://git.coadcorp.com/nathan/ppgen</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user