Skip to content

Commit

Permalink
Merge pull request #737 from samvera-labs/align-controlbar
Browse files Browse the repository at this point in the history
Remove space between control-bar pseudo elements, to mouse display on hover
  • Loading branch information
Dananji authored Nov 13, 2024
2 parents 0f5f4ce + 1d69c10 commit a90b278
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
}
}

.video-js .vjs-progress-control:hover .vjs-mouse-display {
width: 0;
}

.vjs-custom-progress-bar {
.vjs-play-progress span svg {
height: 1em;
Expand Down
10 changes: 4 additions & 6 deletions src/components/MediaPlayer/VideoJS/videojs-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,23 @@
// Set faded effect background before and after control bar
&::before {
content: '';
width: 1em;
width: 12px;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)),
linear-gradient(to left, transparent, rgba(0, 0, 0, 0));
position: absolute;
left: 0.215em;
left: -12px;
top: 0em;
transform: translateX(-120%);
}
&::after {
content: '';
width: 1em;
width: 12px;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)),
linear-gradient(to left, transparent, rgba(0, 0, 0, 0));
position: absolute;
right: -2.215em;
right: -12px;
top: 0em;
transform: translateX(-121%);
}
}

Expand Down

0 comments on commit a90b278

Please sign in to comment.