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

uci-hugo-doc
Robert Kaussow 2022-02-07 13:52:12 +01:00 committed by GitHub
parent e97cddfd2a
commit cd9ab9e48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 7 deletions

View File

@ -26,7 +26,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

@ -467,7 +467,7 @@ img {
} }
&__readmore { &__readmore {
margin: $padding-16 0; margin: $padding-32 0;
a, a,
a:hover, a:hover,
@ -478,12 +478,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 {
@ -491,11 +494,11 @@ img {
} }
.gdoc-button { .gdoc-button {
margin-left: $padding-4; margin: 0 $padding-2 0 0;
} }
&--head { &--head {
padding-bottom: $padding-16; margin-bottom: $padding-32;
} }
} }