~netlandish/links

9c64b0a83f7c05f8b5debcc661e9dab689ac84bb — Peter Sanchez 18 days ago 2b7ada8
Small hack to center link listings
3 files changed, 7 insertions(+), 1 deletions(-)

M static/css/style.css
M templates/base.html
M templates/listing_detail.html
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}}">