forked from buzzert/smartbar
cleanup/namespacing
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
</head>
|
||||
<body {{ .PageSizeAttr }}>
|
||||
<div id="page">{{ .Content }}</div>
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>All Pages</title>
|
||||
<link rel="stylesheet" href="/css/style.css" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; height: 100%; }
|
||||
body { background: #eeeeee; }
|
||||
.main { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; box-sizing: border-box; }
|
||||
.thumb { display: flex; flex-direction: column; align-items: center; }
|
||||
.label { font: 12px/1.2 -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #555; margin: 0.25rem 0; }
|
||||
.thumb iframe { width: 5.5in; height: 8.5in; border: 0; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.18); }
|
||||
.label { font: 12px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #555; margin: 0.25rem 0; }
|
||||
.thumb iframe { width: var(--page-w, 5.5in); height: var(--page-h, 8.5in); border: 0; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.18); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<body style="--page-w: 5.5in; --page-h: 8.5in;">
|
||||
<div class="main">
|
||||
{{ range .Pages }}
|
||||
<div class="thumb">
|
||||
<div class="label">{{ .Name }}</div>
|
||||
<iframe src="/{{ .Href }}" loading="lazy"></iframe>
|
||||
<iframe src="{{ .Href }}" loading="lazy"></iframe>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Print</title>
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
<style>
|
||||
/* Ensure a clean print with no gaps between pages */
|
||||
@media screen { body { background: #eeeeee; } }
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Print 2-Up</title>
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
<style>
|
||||
/* Letter page with two half-letter pages laid out horizontally */
|
||||
/* Do NOT constrain the whole document to a single sheet */
|
||||
|
||||
Reference in New Issue
Block a user