Fix margins for page block

This commit is contained in:
vimux 2018-06-20 12:54:12 +03:00
parent a2f0d83b61
commit 0386c67cc9
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
2 changed files with 9 additions and 1 deletions

View file

@ -3,7 +3,7 @@
{{- if or .Title .Content }} {{- if or .Title .Content }}
<div class="page block"> <div class="page block">
{{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }} {{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }}
{{ with .Content }}<div class="page__content">{{ . }}</div>{{ end }} {{ with .Content }}<div class="page__content{{ if not $.Title }} page__content--notitle{{ end }}">{{ . }}</div>{{ end }}
</div> </div>
{{ end }} {{ end }}
<div class="cards"> <div class="cards">

View file

@ -595,6 +595,14 @@ mark {
margin-top: 1rem; margin-top: 1rem;
} }
.page__content--notitle {
margin: 0;
}
.page__content p:last-child {
margin-bottom: 0;
}
/* Cards UI*/ /* Cards UI*/
.cards { .cards {
display: flex; display: flex;