mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +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",
|
"hidden",
|
||||||
);
|
);
|
||||||
video_ended_button_visible = false;
|
video_ended_button_visible = false;
|
||||||
|
$video.removeClass("dimmed-background");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$video.on("ended", () => {
|
$video.on("ended", () => {
|
||||||
$("#navigation-tour-video-ended-button-wrapper").css("visibility", "visible");
|
$("#navigation-tour-video-ended-button-wrapper").css("visibility", "visible");
|
||||||
video_ended_button_visible = true;
|
video_ended_button_visible = true;
|
||||||
|
$video.addClass("dimmed-background");
|
||||||
$skip_video_button.css("visibility", "hidden");
|
$skip_video_button.css("visibility", "hidden");
|
||||||
$watch_later_button.css("visibility", "hidden");
|
$watch_later_button.css("visibility", "hidden");
|
||||||
// Exit fullscreen to make the 'video-ended-button-wrapper' button visible.
|
// Exit fullscreen to make the 'video-ended-button-wrapper' button visible.
|
||||||
|
|||||||
@@ -705,6 +705,10 @@
|
|||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid hsl(0deg 0% 50%);
|
border: 1px solid hsl(0deg 0% 50%);
|
||||||
|
|
||||||
|
&.dimmed-background {
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#navigation-tour-video-ended-button-wrapper {
|
#navigation-tour-video-ended-button-wrapper {
|
||||||
|
|||||||
Reference in New Issue
Block a user