M static/css/style.css => static/css/style.css +5 -0
@@ 552,6 552,11 @@ a.bullet-link:before {
margin-left: 21px;
}
+.center-content {
+ margin-left: auto;
+ margin-right: auto;
+}
+
.full-content {
margin-top: 40px;
}
M templates/base.html => templates/base.html +1 -1
@@ 260,7 260,7 @@
{{end}}
</ul>
</div>
- <main class="app-content{{if .hideNav}} full-content{{end}}">
+ <main class="app-content{{if .hideNav}} full-content{{end}}{{ block "main-class" . }}{{ end }}">
{{if .messages }}
<section>
{{range .messages}}
M templates/listing_detail.html => templates/listing_detail.html +1 -0
@@ 1,5 1,6 @@
{{template "base" .}}
{{ define "title" }}{{ .pd.Title }}{{ end }}
+{{ define "main-class" }} center-content{{ end }}
{{if .listing.Image}}
<section class="app-header app-header--centered">
<img class="mb-2" width="100" src="{{mediaURL .listing.Image}}">