Don't center file links in snippets.
This commit is contained in:
parent
b62954ba37
commit
822a489c09
|
@ -9393,7 +9393,7 @@ span.icon-rss::before {
|
||||||
.timeline-item .avatar-icon.big {
|
.timeline-item .avatar-icon.big {
|
||||||
width: 3.875rem;
|
width: 3.875rem;
|
||||||
height: 3.875rem; } }
|
height: 3.875rem; } }
|
||||||
.timeline-item .timeline-content-box {
|
.timeline-item .timeline-content-box.timeline-item-bg {
|
||||||
background-color: rgba(0, 0, 0, 0.2);
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
background-color: var(--timeline-content-background); }
|
background-color: var(--timeline-content-background); }
|
||||||
.timeline-item .timeline-content-box > * {
|
.timeline-item .timeline-content-box > * {
|
||||||
|
|
|
@ -19,7 +19,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-content-box {
|
.timeline-content-box {
|
||||||
|
&.timeline-item-bg {
|
||||||
@include usevar(background-color, timeline-content-background);
|
@include usevar(background-color, timeline-content-background);
|
||||||
|
}
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .EmbedMedia }}
|
{{ range .EmbedMedia }}
|
||||||
<div class="timeline-content-box mt3 {{ if eq .Type mediaembed }}embed{{ end }} br2 overflow-hidden flex justify-center">
|
<div class="timeline-content-box mt3 {{ if eq .Type mediaembed }}embed{{ end }} br2 overflow-hidden flex {{ if not (eq .Type mediaunknown) }}timeline-item-bg justify-center{{ end }}">
|
||||||
{{ if eq .Type mediaimage }}
|
{{ if eq .Type mediaimage }}
|
||||||
<img src="{{ .AssetUrl }}">
|
<img src="{{ .AssetUrl }}">
|
||||||
{{ else if eq .Type mediavideo }}
|
{{ else if eq .Type mediavideo }}
|
||||||
|
|
|
@ -250,4 +250,5 @@ var HMNTemplateFuncs = template.FuncMap{
|
||||||
"mediavideo": func() TimelineItemMediaType { return TimelineItemMediaTypeVideo },
|
"mediavideo": func() TimelineItemMediaType { return TimelineItemMediaTypeVideo },
|
||||||
"mediaaudio": func() TimelineItemMediaType { return TimelineItemMediaTypeAudio },
|
"mediaaudio": func() TimelineItemMediaType { return TimelineItemMediaTypeAudio },
|
||||||
"mediaembed": func() TimelineItemMediaType { return TimelineItemMediaTypeEmbed },
|
"mediaembed": func() TimelineItemMediaType { return TimelineItemMediaTypeEmbed },
|
||||||
|
"mediaunknown": func() TimelineItemMediaType { return TimelineItemMediaTypeUnknown },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue