Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fix CSS z-index for audio enrichment slide to keep them over the sound wave element #1013

Merged
merged 8 commits into from
Jan 9, 2024
5 changes: 5 additions & 0 deletions pod/enrichment/static/css/videojs-slides.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
z-index: 2;
}

.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {
z-index:0;
}

.vjs-slides {
display: block;
}
Expand All @@ -18,6 +22,7 @@
height: 100%;
bottom: 0;
padding: 0;
z-index:1;
}

.video-slides > li {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

{% block more_script %}
{{block.super}}
<script>
var enrichmentIsOn = true;
</script>

<script id="enrichment_script_id" src="{% static 'js/videojs-slides.js' %}?ver={{VERSION}}"></script>
{% include 'enrichment/video_enrichment-script.html' %}
{% endblock more_script %}
4 changes: 4 additions & 0 deletions pod/video/templates/videos/video-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

<link rel="stylesheet" href="{% static 'css/video-iframe.css' %}?ver={{VERSION}}">

{% if CSS_OVERRIDE %}
<link rel="stylesheet" href="{% static CSS_OVERRIDE %}?ver={{VERSION}}" media="screen">
{% endif %}

<meta itemprop="duration" content="{{ video.duration }}">
<meta itemprop="thumbnailUrl" content="{{ video.get_thumbnail_url }}">
<meta itemprop="contentURL" content="{% if request.is_secure %}https{% else %}http{% endif %}: //{{ request.META.HTTP_HOST }}{% url 'video:video' slug=video.slug %}">
Expand Down