Skip to content
Snippets Groups Projects
Commit 13cd7576 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Improve image oembed

parent 8403a1c3
No related branches found
No related tags found
No related merge requests found
<template name="oembedImageWidget">
{{#if showImage}}
<a href="{{url}}" class="swipebox" target="_blank">
{{#if parsedUrl}}
<div class="inline-image" style="background-image: url({{url}});"></div>
{{/if}}
</a>
{{#if parsedUrl}}
<div>
<a href="{{url}}" class="swipebox" target="_blank">
<div class="inline-image" style="background-image: url({{url}});">
<img src="{{url}}">
</div>
</a>
</div>
{{/if}}
{{else}}
{{#if parsedUrl}}
<div class="image-to-download" data-url="{{url}}">
......
......@@ -2520,7 +2520,16 @@ a.github-fork {
background-size: contain;
background-repeat: no-repeat;
background-position: center left;
height: 200px;
display: inline-flex;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
border-radius: 3px;
overflow: hidden;
img {
max-height: 200px;
max-width: 100%;
opacity: 0;
}
}
}
&.temp .body {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment