fix: fix formatting of multiline post metadata (#197)

This commit is contained in:
Robert Kaussow 2022-02-07 00:10:30 +01:00 committed by GitHub
parent eb17b172ed
commit d5e0ed0857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 8 deletions

View File

@ -33,7 +33,9 @@
{{ template "post-author" dict "name" $author.name "page" . }} {{ template "post-author" dict "name" $author.name "page" . }}
</span> </span>
{{ else }} {{ else }}
{{ template "post-author" dict "name" $author.name "page" . }} <span class="flex align-center">
{{ template "post-author" dict "name" $author.name "page" . }}
</span>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ $ac = (add $ac 1) }} {{ $ac = (add $ac 1) }}
@ -51,7 +53,9 @@
{{ template "post-tag" dict "name" $name "page" . }} {{ template "post-tag" dict "name" $name "page" . }}
</span> </span>
{{ else }} {{ else }}
{{ template "post-tag" dict "name" $name "page" . }} <span class="flex align-center">
{{ template "post-tag" dict "name" $name "page" . }}
</span>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ $tc = (add $tc 1) }} {{ $tc = (add $tc 1) }}

View File

@ -312,7 +312,7 @@ img {
} }
&__readmore { &__readmore {
margin: $padding-16 0; margin: $padding-32 0;
a:visited { a:visited {
color: var(--link-color); color: var(--link-color);
@ -396,12 +396,15 @@ img {
} }
&__meta { &__meta {
span:first-child .icon { span .icon {
margin-left: -5px; margin-left: -5px;
} }
:not(:first-child).no-wrap { > span {
margin-left: $padding-8; margin: $padding-4 0;
&:not(:last-child) {
margin-right: $padding-8;
}
} }
.icon { .icon {
@ -409,11 +412,11 @@ img {
} }
.gblog-button { .gblog-button {
margin-left: $padding-4; margin: 0 $padding-2 0 0;
} }
&--head { &--head {
padding-bottom: $padding-16; margin-bottom: $padding-32;
} }
} }