mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-24 23:18:33 +00:00
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 }}
|
{{- 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">
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue