Style video play overlay: red tint, add click-to-play text
This commit is contained in:
parent
f95daf02a8
commit
3bf65966c5
3 changed files with 10 additions and 14 deletions
|
|
@ -440,7 +440,7 @@ a.video-thumbnail-container img.product-main {
|
|||
z-index: 10;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
background-color: rgba(255, 0, 0, 0.4); /* red at 66/255 ~= 0.26, try 0.4 for 66% visibility */
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
|
@ -457,20 +457,14 @@ a.video-thumbnail-container img.product-main {
|
|||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.video-click-to-play {
|
||||
text-align: center;
|
||||
margin-top: 8px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a.video-thumbnail-container:hover .video-play-overlay {
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .video-play-overlay {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .video-play-overlay::after {
|
||||
border-color: transparent transparent transparent #ffffff;
|
||||
}
|
||||
|
||||
[data-theme="dark"] a.video-thumbnail-container:hover .video-play-overlay {
|
||||
background-color: rgba(255, 255, 255, 0.35);
|
||||
background-color: rgba(255, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
/* Prevent content sections from overflowing */
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
<img src="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" class="product-main" />
|
||||
<div class="video-play-overlay"></div>
|
||||
</a>
|
||||
<div class="video-click-to-play">click ▶ to play</div>
|
||||
{% else %}
|
||||
<img src="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" class="product-main" />
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
<img src="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" class="product-main" />
|
||||
<div class="video-play-overlay"></div>
|
||||
</a>
|
||||
<div class="video-click-to-play">click ▶ to play</div>
|
||||
{% else %}
|
||||
<img src="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" class="product-main" />
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue