Skip to content

Commit 1548254

Browse files
committed
Update Able Player scripts and styles to 4.8 beta.
1 parent b215caa commit 1548254

File tree

9 files changed

+3676
-3218
lines changed

9 files changed

+3676
-3218
lines changed

src/build/ableplayer.dist.js

Lines changed: 864 additions & 710 deletions
Large diffs are not rendered by default.

src/build/ableplayer.js

Lines changed: 938 additions & 846 deletions
Large diffs are not rendered by default.

src/build/ableplayer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/separate-dompurify/ableplayer.dist.js

Lines changed: 873 additions & 821 deletions
Large diffs are not rendered by default.

src/build/separate-dompurify/ableplayer.js

Lines changed: 874 additions & 822 deletions
Large diffs are not rendered by default.

src/build/separate-dompurify/ableplayer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/separate-dompurify/purify.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/ableplayer.css

Lines changed: 121 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204

205205
/* Screen reader hidden text classes */
206206
.able-transcript .able-hidden,
207-
.able-clipped, .able-screenreader-alert, .able-offscreen {
207+
.able-screenreader-alert, .able-offscreen {
208208
border: 0;
209209
clip-path: inset(50%);
210210
height: 1px;
@@ -263,6 +263,7 @@
263263
position: absolute;
264264
color: var(--able-control-color);
265265
background-color: var(--able-big-play-background);
266+
background: var(--able-big-play-background);
266267
border: none;
267268
outline: none;
268269
left: 0;
@@ -273,11 +274,26 @@
273274
display: flex;
274275
align-items: center;
275276
justify-content: center;
276-
border-radius: 5px;
277277
width: 100%;
278278
height: 100%;
279279
}
280280

281+
.able-audio-wrapper {
282+
display: flex;
283+
gap: 4px;
284+
align-items: center;
285+
padding: 4px;
286+
background: var(--able-control-background);
287+
}
288+
289+
.able-audio-wrapper img {
290+
max-width: 120px;
291+
}
292+
293+
.able-audio-wrapper .able-audio {
294+
flex: 1;
295+
}
296+
281297
.able-wrapper .able button.able-big-play-button:hover,
282298
.able-wrapper .able button.able-big-play-button:focus {
283299
opacity: 100;
@@ -483,7 +499,7 @@ div.able-captions-wrapper {
483499
}
484500

485501
div.able-captions-wrapper:not(.able-captions-overlay) {
486-
padding: 0 0 8px;
502+
padding: 0;
487503
}
488504

489505
div.able-captions {
@@ -506,6 +522,9 @@ div.able-vidcap-container div.able-captions-overlay {
506522
div.able-vidcap-container div.able-captions-below {
507523
position: relative;
508524
min-height: 4rem;
525+
display: flex;
526+
justify-content: center;
527+
align-items: center;
509528
}
510529

511530
div.able-audcap-container.captions-off {
@@ -555,12 +574,18 @@ div.able-modal-dialog {
555574
color: var(--able-modal-color);
556575
background-color: var(--able-modal-background);
557576
border: var(--able-modal-border);
558-
width: 50rem;
577+
width: fit-content;
559578
max-width: 95%;
560579
padding: 1rem;
561580
box-sizing: border-box;
562581
}
563582

583+
@media screen and ( width < 800px ) {
584+
div.able-modal-dialog {
585+
min-width: 95%;
586+
}
587+
}
588+
564589
body.able-modal-active {
565590
overflow: hidden;
566591
}
@@ -592,9 +617,14 @@ div.able-modal-overlay {
592617
margin-top: 1rem;
593618
}
594619

620+
.able-modkey-item.hidden {
621+
display: none;
622+
}
623+
595624
.able-modal-header {
596625
display: flex;
597626
justify-content: space-between;
627+
gap: 8px;
598628
}
599629

600630
.able-modal-dialog .modalCloseButton {
@@ -731,6 +761,40 @@ span.able-modkey {
731761
gap: 12px;
732762
}
733763

764+
.able-window-toolbar button {
765+
order: 1;
766+
}
767+
768+
.able-window-toolbar .autoscroll-transcript {
769+
order: 3;
770+
width: fit-content;
771+
text-wrap: nowrap;
772+
}
773+
774+
.able-window-toolbar .transcript-language-select-wrapper {
775+
order: 4;
776+
}
777+
778+
.able-window-toolbar .able-drag-handle {
779+
order: 2;
780+
width: 100%;
781+
height: 100%;
782+
}
783+
784+
.able-window-toolbar .able-drag-handle svg {
785+
height: 12px;
786+
width: auto;
787+
margin: 0 auto;
788+
}
789+
790+
.able-window-toolbar .able-drag-handle path {
791+
fill: var(--able-medium-light-gray);
792+
}
793+
794+
.able-draggable:hover .able-drag-handle path {
795+
fill: var(--able-very-light-gray);
796+
}
797+
734798
.able-window-toolbar > div {
735799
display: flex;
736800
}
@@ -746,7 +810,7 @@ span.able-modkey {
746810
width: 1rem;
747811
}
748812

749-
.able-draggable:hover {
813+
.able-draggable .able-drag-handle:hover {
750814
cursor: move;
751815
}
752816

@@ -780,8 +844,8 @@ span.able-modkey {
780844

781845
.able-resizable {
782846
position: absolute;
783-
width: 20px;
784-
height: 20px;
847+
width: 24px;
848+
height: 24px;
785849
bottom: 0;
786850
right: 0;
787851
padding: 1px;
@@ -801,9 +865,48 @@ span.able-modkey {
801865
border: 1px solid var(--able-sign-border);
802866
}
803867

868+
.fade-out {
869+
visibility: hidden;
870+
opacity: 0;
871+
transition: visibility 0s 2s, opacity 2s linear;
872+
}
873+
874+
.fade-in {
875+
visibility: visible;
876+
opacity: 1;
877+
transition: opacity 1s linear;
878+
}
879+
880+
@keyframes fadeIn {
881+
from {
882+
opacity: 0;
883+
}
884+
885+
to {
886+
opacity: 1;
887+
}
888+
}
889+
804890
.able-sign-window video {
805891
width: 100%;
806-
margin-bottom: 1rem;
892+
display: block;
893+
}
894+
895+
.able-sign-window .able-resizable {
896+
background: #00000033;
897+
background: linear-gradient(to bottom right, transparent 0%, transparent 51%, #fff3 51%, #fff3 100%);
898+
border-top-left-radius: 20px;
899+
}
900+
901+
.able-sign-window:hover .able-resizable {
902+
background: var(--able-very-light-gray);
903+
background: linear-gradient(to bottom right, transparent 0%, transparent 51%, #fffe 51%, #fffe 100%);
904+
905+
}
906+
907+
.able-sign-window.able-fixed video {
908+
margin: 0;
909+
display: block;
807910
}
808911

809912
.able-sign-window:focus {
@@ -839,6 +942,7 @@ div.able-chapters-div button {
839942
font-size: 1rem;
840943
text-align: start;
841944
padding: 8px;
945+
box-sizing: border-box;
842946
}
843947

844948
div.able-chapters-div li.able-current-chapter button {
@@ -870,7 +974,7 @@ div.able-wrapper.fullscreen {
870974
padding: 4px 8px;
871975
border: 1px solid var(--able-tooltip-border);
872976
color: var(--able-tooltip-color) !important;
873-
background-color: var(--able-tooltip-background) !important;
977+
background-color: var(--able-tooltip-background);
874978
border-radius: 3px;
875979
display: block;
876980
font-size: .875rem;
@@ -1031,6 +1135,10 @@ ul.able-popup li.able-focus,
10311135
color: var(--able-control-label-color);
10321136
}
10331137

1138+
.able-window-toolbar .autoscroll-transcript label {
1139+
margin-right: 0;
1140+
}
1141+
10341142
div.able-modal-dialog input,
10351143
div.able-modal-dialog button,
10361144
.able-window-toolbar .able-button-handler-preferences,
@@ -1299,12 +1407,12 @@ div#able-vts-icon-credit {
12991407
div#able-vts-alert {
13001408
display: none;
13011409
position: fixed;
1302-
top: 5px;
1303-
left: 5px;
1410+
top: 16px;
1411+
left: 16px;
13041412
border: 2px solid #666;
1305-
background-color: #ffc;
1413+
background-color: var(--able-alert-background);
1414+
color: var(--able-black);
13061415
padding: 1rem;
1307-
font-weight: bold;
13081416
z-index: 9400;
13091417
}
13101418

0 commit comments

Comments
 (0)