Skip to content

Commit

Permalink
8/UI/mejs-videoplayer keyboard focus ILIAS style 34185 (ILIAS-eLearni…
Browse files Browse the repository at this point in the history
  • Loading branch information
catenglaender authored Jul 19, 2024
1 parent e344a06 commit 6731612
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
44 changes: 44 additions & 0 deletions templates/default/delos.css
Original file line number Diff line number Diff line change
Expand Up @@ -16308,6 +16308,50 @@ span.bibl_text_inline_Emph {
width: 100px;
cursor: pointer;
}
.mejs__overlay-button:focus-visible,
.mejs__container:focus-visible,
.ilPlayerPreviewPlayButton:focus-visible,
.mejs__time-total:focus-visible {
position: relative;
outline: 2px solid #FFFFFF;
outline-offset: 4px;
}
.mejs__overlay-button:focus-visible::after,
.mejs__container:focus-visible::after,
.ilPlayerPreviewPlayButton:focus-visible::after,
.mejs__time-total:focus-visible::after {
content: " ";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border: 2px solid #FFFFFF;
outline: 3px solid #0078D7;
}
.mejs__overlay-button:active,
.mejs__container:active,
.ilPlayerPreviewPlayButton:active,
.mejs__time-total:active,
.mejs__overlay-button.engaged,
.mejs__container.engaged,
.ilPlayerPreviewPlayButton.engaged,
.mejs__time-total.engaged {
outline: none;
}
.mejs__button button:focus-visible,
.ilPageVideo button:focus-visible {
outline: none;
border: 3px solid #0078D7;
box-shadow: inset 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 2px #FFFFFF;
outline-offset: initial;
}
.mejs__button button::after,
.ilPageVideo button::after,
.mejs__button button:focus:focus-visible::after,
.ilPageVideo button:focus:focus-visible::after {
content: none;
}
.ilPlayerPreviewOverlay:hover .ilPlayerPreviewPlayButton {
background-position: 0 -100px;
}
Expand Down
11 changes: 11 additions & 0 deletions templates/default/less/Services/MediaObjects/delos.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@
cursor: pointer;
}

.mejs__overlay-button,
.mejs__container,
.ilPlayerPreviewPlayButton,
.mejs__time-total {
.il-focus();
}
.mejs__button button,
.ilPageVideo button {
.il-focus-border-only();
}

.ilPlayerPreviewOverlay:hover .ilPlayerPreviewPlayButton {
background-position: 0 -100px;
}

0 comments on commit 6731612

Please sign in to comment.