feat(postcard): header, logo, footer and padding in the system and minimal layouts
- system.htm: the header partial (logo or site name) above the card and the copyright footer below it; its text wrapper ends with the footer - brand CSS: the system layout's content cell keeps WinterCMS's 35px side padding (the 35px 0 override is gone) - minimal.htm: the logo above the message when logoUrl is set - TestMailPartialsSmoke/built_in_layouts covers the three layouts and the inlined brand colour on the button in each - 35-06 Task 3 (G-35-8)
This commit is contained in:
@@ -116,9 +116,6 @@ img.logo {
|
||||
.content-cell {
|
||||
padding: 35px;
|
||||
}
|
||||
.wrapper.layout-system .content-cell {
|
||||
padding: 35px 0;
|
||||
}
|
||||
/* Subcopy */
|
||||
.subcopy {
|
||||
border-top: 1px solid {{ .TableBorderColor }};
|
||||
|
||||
@@ -9,6 +9,7 @@ name = "Minimal"
|
||||
<style type="text/css">{{ .brandCss }}{{ .css }}</style>
|
||||
</head>
|
||||
<body>
|
||||
{{ .Content }}
|
||||
{{ if .logoUrl }}<p><img src="{{ .logoUrl }}" class="logo" alt="{{ .siteName }}" /></p>
|
||||
{{ end }}{{ .Content }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,6 +5,8 @@ name = "System layout"
|
||||
|
||||
---
|
||||
This is an automatic message. Please do not reply to it.
|
||||
|
||||
{{ $copy := printf "© %v" .year }}{{ with .siteName }}{{ $copy = printf "%s %s" $copy . }}{{ end }}{{ partial "footer" "body" $copy }}
|
||||
==
|
||||
<!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">
|
||||
@@ -15,6 +17,7 @@ This is an automatic message. Please do not reply to it.
|
||||
</head>
|
||||
<body>
|
||||
<table class="wrapper layout-system" width="100%" cellpadding="0" cellspacing="0">
|
||||
{{ if or .logoUrl .siteName }}{{ partial "header" "logo" .logoUrl "body" .siteName }}{{ end }}
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="content" width="100%" cellpadding="0" cellspacing="0">
|
||||
@@ -33,6 +36,7 @@ This is an automatic message. Please do not reply to it.
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{{ $copy := printf "© %v" .year }}{{ with .siteName }}{{ $copy = printf "%s %s" $copy . }}{{ end }}{{ partial "footer" "body" $copy }}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user