html.ftl 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<!DOCTYPE html>
<html>
	<head>
		<title>${title}</title>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
		<meta name="author" content="${author!'Genesys <helpdesk@genesys-pgr.org>'}" />
    <style>
html {
  font-size: 10pt;
  font-family: Arial;
}
.disclaimer {
	text-align: center;
	color: Red;
	font-size: 1.5rem;
	margin: 0 0 2rem 0;
}

.documenttitle {
	text-align: center;
	font-size: 2rem;
}
.documenttitle small {
	font-size: 1rem;
	font-weight: bold;
}
28
a, a:visited { color: blue }
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
h1 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem;  }
h4 { font-size: 1rem; margin: 0.8rem 0 0.4rem;  }
pre { font-size: 0.8rem; }

body {
  counter-reset: h1counter;
}
footer {
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: #a0a0a0;
}
blockquote {
  border-left: .3rem solid gray;
  margin: .2rem;
  padding: .1rem 1rem;
}

table {
}
table th, table td {
  text-align: left;
  font-size: 0.9rem;
  padding: .2rem .5rem;
}

h1:before {
  content: counter(h1counter) ".\0000a0\0000a0";
  counter-increment: h1counter;
  counter-reset: h2counter;
}
h2:before {
  content: counter(h1counter) "." counter(h2counter) ".\0000a0\0000a0";
  counter-increment: h2counter;
  counter-reset: h3counter;
}
h3:before {
  content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
  counter-increment: h3counter;
}

div.alert.not-published {
  color: Red;
  margin: .3rem 0;
  padding: .2rem 0;
}
    </style>
	</head>

	<body>
		<div class="disclaimer">
83
			For internal use only. Do not distribute.<br />Sourced from <a href="https://www.genesys-pgr.org">Genesys</a> data
84 85 86 87 88
		</div>

${html}

		<footer>
89
			Generated ${.now} by <a href="https://www.genesys-pgr.org">https://www.genesys-pgr.org</a>.
90 91 92
		</footer>
	</body>
</html>