Fix margins for page block
This commit is contained in:
parent
a2f0d83b61
commit
0386c67cc9
2 changed files with 9 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
{{- if or .Title .Content }}
|
||||
<div class="page block">
|
||||
{{ 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>
|
||||
{{ end }}
|
||||
<div class="cards">
|
||||
|
|
|
@ -595,6 +595,14 @@ mark {
|
|||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.page__content--notitle {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page__content p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Cards UI*/
|
||||
.cards {
|
||||
display: flex;
|
||||
|
|
Loading…
Reference in a new issue