Skip to content
Code-Schnipsel Gruppen Projekte
Commit faa3f103 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

feat: Use images in timeline.

#1
Übergeordneter 6b55f6a8
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -33,7 +33,6 @@
justify-content: center;
align-items: center;
border-radius: 50%;
padding: 20px;
position: relative;
margin-top: 12px;
}
......@@ -45,13 +44,31 @@
top: calc(50% - 20px);
background: none;
width: 0;
height: 0px;
height: 0;
border-right: none;
border-bottom: 20px solid transparent;
border-top: 20px solid transparent;
border-left: 30px solid #aaa;
}
/* image */
.timeline-entry-icon-wrapper picture {
overflow: hidden;
border-radius: 50%;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.timeline-entry-icon-wrapper picture img.fill-image {
object-fit: cover;
width: 100%;
height: 100%;
}
/* line - middle */
.timeline-entry-line {
width: 60px;
......
......@@ -31,8 +31,9 @@
<div class="timeline-entry-icon">
{if $Child->getAttribute('image_site')}
<div class="timeline-entry-icon-wrapper">
{image src=$Child->getAttribute('image_site') width="500" type="resize"
title="{$Child->getAttribute('title')}"}
{image src=$Child->getAttribute('image_site') max-width="500" max-height="500" type="resize"
title="{$Child->getAttribute('title')}"
class="fill-image"}
</div>
{/if}
</div>
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren