Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
feat: captions fade when hovered
Browse files Browse the repository at this point in the history
Lets you see behind the captions block if necessary
  • Loading branch information
adil192 committed May 27, 2024
1 parent fe6c98e commit 73616f4
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions src/styles/video.manchester.ac.uk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,26 @@ video,

/* captions */
.vjs-text-track-display > div > div > div {
background: $video-elem-background !important;
color: white !important;
color: $video-elem-color !important;
border-radius: 0.2em !important;
font-size: 75% !important;
font-size: min(75%, 2rem) !important;
display: inline-block !important;
max-width: 20em !important;
padding: 0 1em !important;
text-align: start;
text-wrap: balance;
text-wrap: pretty;

@include fonts-body;
background: $video-elem-background !important;
color: white !important;
color: $video-elem-color !important;
border-radius: 0.2em !important;
font-size: 75% !important;
font-size: min(75%, 2rem) !important;
display: inline-block !important;
max-width: 20em !important;
padding: 0 1em !important;
text-align: start;
text-wrap: balance;
text-wrap: pretty;

@include fonts-body;

pointer-events: auto;
transition: opacity 0.2s ease-in-out;
&:hover {
opacity: 0.5;
}
}

.vjs-new-tab-control {
Expand Down

0 comments on commit 73616f4

Please sign in to comment.