- wrapper, header (logo or site name), 570px card and copyright footer inline, mirroring postcard's default layout - built-in copy of the default brand CSS before the brandCss and css slots, so saved Branding and mail.css still win - no template function calls; the header and footer sit behind if/with, so the layout renders without them on framework v0.6.x - header and text sections unchanged
257 lines
4.6 KiB
HTML
257 lines
4.6 KiB
HTML
name = "User"
|
|
==
|
|
-- {{ .Content }} --
|
|
==
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<style type="text/css">
|
|
/* Base */
|
|
body, body *:not(html):not(style):not(br):not(tr):not(code) {
|
|
font-family: Avenir, Helvetica, sans-serif;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
background-color: #f5f8fa;
|
|
color: #74787e;
|
|
height: 100%;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
width: 100% !important;
|
|
word-break: break-word;
|
|
-webkit-text-size-adjust: none;
|
|
}
|
|
p, ul, ol, blockquote {
|
|
line-height: 1.4;
|
|
text-align: left;
|
|
}
|
|
a {
|
|
color: #2da7c7;
|
|
}
|
|
a img {
|
|
border: none;
|
|
}
|
|
/* Typography */
|
|
h1 {
|
|
color: #2f3133;
|
|
font-size: 19px;
|
|
font-weight: bold;
|
|
margin-top: 0;
|
|
text-align: left;
|
|
}
|
|
h2 {
|
|
color: #2f3133;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
margin-top: 0;
|
|
text-align: left;
|
|
}
|
|
h3 {
|
|
color: #2f3133;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
margin-top: 0;
|
|
text-align: left;
|
|
}
|
|
p {
|
|
color: #74787e;
|
|
font-size: 16px;
|
|
line-height: 1.5em;
|
|
margin-top: 0;
|
|
text-align: left;
|
|
}
|
|
code {
|
|
color: #74787e;
|
|
font-size: 16px;
|
|
line-height: 1.5em;
|
|
word-break: break-all;
|
|
}
|
|
p.sub {
|
|
font-size: 12px;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
.break-all, .break-all * {
|
|
word-break: break-all;
|
|
}
|
|
/* Layout */
|
|
.wrapper {
|
|
background-color: #f5f8fa;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
.content {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
/* Header */
|
|
.header {
|
|
padding: 25px 0;
|
|
text-align: center;
|
|
}
|
|
.header a, .header span {
|
|
color: #bbbfc3;
|
|
font-size: 19px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
}
|
|
img.logo {
|
|
border: 0;
|
|
display: inline-block;
|
|
height: auto;
|
|
max-height: 60px;
|
|
max-width: 200px;
|
|
vertical-align: middle;
|
|
}
|
|
/* Body */
|
|
.body {
|
|
background-color: #ffffff;
|
|
border-bottom: 1px solid #edeff2;
|
|
border-top: 1px solid #edeff2;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
.inner-body {
|
|
background-color: #ffffff;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
width: 570px;
|
|
}
|
|
.content-cell {
|
|
padding: 35px;
|
|
}
|
|
/* Subcopy */
|
|
.subcopy {
|
|
border-top: 1px solid #edeff2;
|
|
margin-top: 25px;
|
|
padding-top: 25px;
|
|
}
|
|
.subcopy p {
|
|
font-size: 12px;
|
|
}
|
|
/* Footer */
|
|
.footer {
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
text-align: center;
|
|
width: 570px;
|
|
}
|
|
.footer p {
|
|
color: #aeaeae;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
/* Tables */
|
|
.table table {
|
|
border-collapse: collapse;
|
|
margin: 30px auto;
|
|
width: 100%;
|
|
}
|
|
.table th {
|
|
border-bottom: 1px solid #edeff2;
|
|
padding-bottom: 8px;
|
|
}
|
|
.table td {
|
|
color: #74787e;
|
|
font-size: 15px;
|
|
line-height: 18px;
|
|
padding: 10px 0;
|
|
}
|
|
/* Buttons */
|
|
.action {
|
|
margin: 30px auto;
|
|
padding: 0;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.button {
|
|
border-radius: 3px;
|
|
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
|
|
color: #ffffff;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-text-size-adjust: none;
|
|
}
|
|
.button-primary {
|
|
background-color: #d66829;
|
|
border-top: 10px solid #d66829;
|
|
border-right: 18px solid #d66829;
|
|
border-bottom: 10px solid #d66829;
|
|
border-left: 18px solid #d66829;
|
|
}
|
|
.button-positive {
|
|
background-color: #52a838;
|
|
border-top: 10px solid #52a838;
|
|
border-right: 18px solid #52a838;
|
|
border-bottom: 10px solid #52a838;
|
|
border-left: 18px solid #52a838;
|
|
}
|
|
.button-negative {
|
|
background-color: #e01346;
|
|
border-top: 10px solid #e01346;
|
|
border-right: 18px solid #e01346;
|
|
border-bottom: 10px solid #e01346;
|
|
border-left: 18px solid #e01346;
|
|
}
|
|
/* Panels */
|
|
.panel {
|
|
margin: 0 0 21px;
|
|
}
|
|
.panel-content {
|
|
background-color: #edeff2;
|
|
padding: 16px;
|
|
}
|
|
.panel-item {
|
|
padding: 0;
|
|
}
|
|
.panel-item p:last-of-type {
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
{{ .brandCss }}{{ .css }}</style>
|
|
</head>
|
|
<body>
|
|
<table class="wrapper layout-user" width="100%" cellpadding="0" cellspacing="0">
|
|
{{ if or .logoUrl .siteName }}<tr>
|
|
<td class="header">
|
|
{{ if .logoUrl }}<img src="{{ .logoUrl }}" class="logo" alt="{{ .siteName }}" />{{ else }}<span>{{ .siteName }}</span>{{ end }}
|
|
</td>
|
|
</tr>{{ end }}
|
|
<tr>
|
|
<td align="center">
|
|
<table class="content" width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="body" width="100%" cellpadding="0" cellspacing="0">
|
|
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="content-cell">
|
|
{{ .Content }}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{{ with .year }}<tr>
|
|
<td>
|
|
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="content-cell" align="center">
|
|
<p>© {{ . }}{{ with $.siteName }} {{ . }}{{ end }}</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>{{ end }}
|
|
</table>
|
|
</body>
|
|
</html>
|