mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
onboarding_steps: Dim background of navigation tour video.
This commit is contained in:
@@ -135,12 +135,14 @@ function show_navigation_tour_video(navigation_tour_video_url: string | null): v
|
||||
"hidden",
|
||||
);
|
||||
video_ended_button_visible = false;
|
||||
$video.removeClass("dimmed-background");
|
||||
}
|
||||
});
|
||||
|
||||
$video.on("ended", () => {
|
||||
$("#navigation-tour-video-ended-button-wrapper").css("visibility", "visible");
|
||||
video_ended_button_visible = true;
|
||||
$video.addClass("dimmed-background");
|
||||
$skip_video_button.css("visibility", "hidden");
|
||||
$watch_later_button.css("visibility", "hidden");
|
||||
// Exit fullscreen to make the 'video-ended-button-wrapper' button visible.
|
||||
|
@@ -705,6 +705,10 @@
|
||||
aspect-ratio: 16 / 9;
|
||||
cursor: pointer;
|
||||
border: 1px solid hsl(0deg 0% 50%);
|
||||
|
||||
&.dimmed-background {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
#navigation-tour-video-ended-button-wrapper {
|
||||
|
Reference in New Issue
Block a user