FIX: Correct the play icon position (#14295)
This commit is contained in:
parent
1205db8f84
commit
02a6b991fe
|
@ -290,7 +290,12 @@ aside.onebox {
|
|||
}
|
||||
}
|
||||
|
||||
.instagram-video-icon {
|
||||
.image-wrapper {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.video-icon {
|
||||
&:before {
|
||||
opacity: 0.8;
|
||||
// ideally, the SVG used here should be in HTML and reference the SVG sprite
|
||||
|
|
|
@ -31,9 +31,9 @@ module Onebox
|
|||
<article class="onebox-body">
|
||||
<h3><a href="#{escaped_url}" target="_blank" rel="nofollow ugc noopener">#{og.title}</a></h3>
|
||||
<div class="aspect-image-full-size">
|
||||
<a href="#{escaped_url}" target="_blank" rel="nofollow ugc noopener">
|
||||
<a href="#{escaped_url}" target="_blank" rel="nofollow ugc noopener" class="image-wrapper">
|
||||
<img src="#{og.secure_image_url}" class="scale-image"/>
|
||||
<span class="instagram-video-icon"></span>
|
||||
<span class="video-icon"></span>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
|
|
|
@ -35,9 +35,9 @@ module Onebox
|
|||
<article class="onebox-body">
|
||||
<h3><a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">#{raw[:title]}</a></h3>
|
||||
<div class="aspect-image-full-size">
|
||||
<a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">
|
||||
<a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener" class="image-wrapper">
|
||||
<img src="#{raw[:image]}" class="scale-image"/>
|
||||
<span class="instagram-video-icon"></span>
|
||||
<span class="video-icon"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="description"><p>#{raw[:description]}</p></div>
|
||||
|
|
Loading…
Reference in New Issue