Skip to content

Commit 0b684a6

Browse files
committed
Upgrade to Able Player 4.0
1 parent aa638b3 commit 0b684a6

File tree

19 files changed

+32734
-24986
lines changed

19 files changed

+32734
-24986
lines changed

build/ableplayer.dist.js

Lines changed: 15465 additions & 12425 deletions
Large diffs are not rendered by default.

build/ableplayer.js

Lines changed: 15465 additions & 12425 deletions
Large diffs are not rendered by default.

build/ableplayer.min.css

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

build/ableplayer.min.js

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

styles/ableplayer.css

Lines changed: 176 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
div.able-modal-overlay = 9500
99
1010
* Items that should always be on top (9000):
11+
#able-vts = 9400
1112
.able-alert = 9400
1213
.able-window-toolbar .able-button-handler-preferences = 9300
1314
.able-popup = 9200
@@ -39,11 +40,13 @@
3940
width: 100%;
4041
height: auto;
4142
box-sizing: content-box !important;
43+
text-align: left;
4244
}
4345
.able {
4446
position: relative;
4547
margin: 1em 0;
4648
width: 100%; /* will be changed dynamically as player is contructed */
49+
background-color: #000;
4750
box-shadow: 0px 0px 16px #262626;
4851
z-index: 5000;
4952
}
@@ -66,12 +69,12 @@
6669
background-color: #262626; /* background color of player (appears on top & bottom) */
6770
}
6871
.able-offscreen {
69-
position:absolute;
70-
left:-10000px;
71-
top:auto;
72-
width:1px;
73-
height:1px;
74-
overflow:hidden;
72+
position: absolute;
73+
left: -10000px;
74+
top: auto;
75+
width: 1px;
76+
height: 1px;
77+
overflow: hidden;
7578
}
7679
.able-media-container audio {
7780
display: none !important;
@@ -93,6 +96,11 @@
9396
position: absolute;
9497
top: 0;
9598
left: 0;
99+
width: 100% !important;
100+
height: auto !important;
101+
}
102+
.able .able-vidcap-container {
103+
overflow: hidden;
96104
}
97105

98106
/*
@@ -245,7 +253,7 @@
245253
position: absolute;
246254
right: 0px;
247255
top: -74px;
248-
display: none;
256+
display: block;
249257
z-index: 9100;
250258
}
251259
.able-volume-track {
@@ -407,7 +415,7 @@ div.able-captions-wrapper {
407415
padding: 0;
408416
text-align: center;
409417
line-height: 1.35em;
410-
display: none;
418+
display: block;
411419
z-index: 6000;
412420
}
413421
div.able-captions {
@@ -678,9 +686,10 @@ span.able-modkey {
678686
}
679687
.able-window-toolbar .able-popup {
680688
position: absolute;
689+
cursor: default;
681690
right: 0;
682691
top: 0;
683-
display: none;
692+
display: block;
684693
}
685694
.able-drag {
686695
border: 2px dashed #F90;
@@ -818,12 +827,14 @@ div.able-chapters-div button::-moz-focus-inner {
818827
-webkit-border-radius: 5px;
819828
-moz-border-radius: 5px;
820829
border-radius: 5px;
821-
display: none;
830+
display: block;
822831
}
823832
.able-alert {
824833
background-color: #FFFFCC;
825834
box-shadow: 0px 0px 16px #262626;
826835
z-index: 9400;
836+
position: absolute;
837+
top: 1em;
827838
}
828839
.able-popup {
829840
z-index: 9200;
@@ -846,36 +857,29 @@ div.able-chapters-div button::-moz-focus-inner {
846857
-webkit-border-radius: 5px;
847858
-moz-border-radius: 5px;
848859
border-radius: 5px;
849-
display: none;
860+
display: block;
861+
cursor: default;
850862
}
851-
.able-popup ul {
863+
ul.able-popup {
852864
list-style-type: none;
853-
margin: 0;
854-
padding: 0;
855865
}
856866
.able-popup li {
857867
padding: 0.25em 1em 0.25em 0.25em;
858868
margin: 1px;
859-
}
860-
.able-popup label {
861-
padding-left: 0.25em;
862869
color: #FFF;
863870
}
864871
.able-popup li.able-focus {
865872
background-color: #CCC;
866-
}
867-
.able-popup li.able-focus label {
868873
color: #000;
869874
}
870-
871-
/*
872-
Popup Menus with hidden radio buttons
873-
e.g., chapters and preferences
874-
*/
875-
.able-popup-no-radio > ul > li > input {
876-
position: absolute !important;
877-
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
878-
clip: rect(1px, 1px, 1px, 1px);
875+
.able-popup-captions li {
876+
padding-left: 1em;
877+
}
878+
.able-popup-captions li[aria-checked="true"] {
879+
padding-left: 0;
880+
}
881+
.able-popup-captions li[aria-checked="true"]::before {
882+
content: "\2713 "; /* check mark; for heavier mark us 2714 */
879883
}
880884

881885
/*
@@ -888,6 +892,8 @@ div.able-chapters-div button::-moz-focus-inner {
888892
height: 400px;
889893
z-index: 7000;
890894
outline: none;
895+
padding-bottom: 25px; /* keep content above 16x16px drag icon */
896+
background-color: #FFF;
891897
}
892898
.able-transcript {
893899
position: relative; /* must be positioned for scrolling */
@@ -942,6 +948,8 @@ div.able-chapters-div button::-moz-focus-inner {
942948
}
943949
.able-window-toolbar input:focus,
944950
.able-window-toolbar input:hover,
951+
.able-window-toolbar select:focus,
952+
.able-window-toolbar select:hover,
945953
.able-controller input:focus,
946954
.able-controller input:hover,
947955
.able-controller button:focus,
@@ -952,12 +960,14 @@ div.able-chapters-div button::-moz-focus-inner {
952960
outline-width: 2px;
953961
}
954962
.able-window-toolbar input:focus,
963+
.able-window-toolbar select:focus,
955964
.able-controller input:focus,
956965
.able-controller button:focus,
957966
.able-seekbar-head:focus {
958967
outline-color: #ffbb37; /* yellow */
959968
}
960969
.able-window-toolbar input:hover,
970+
.able-window-toolbar select:hover,
961971
.able-controller input:hover,
962972
.able-controller button:hover,
963973
.able-seekbar-head:hover {
@@ -969,62 +979,62 @@ div.able-chapters-div button::-moz-focus-inner {
969979
}
970980

971981
/*
972-
Playlist - Embedded
982+
Playlist (both audio and video)
973983
*/
974984

975-
.able-player .able-playlist {
976-
font-size: 0.9em;
985+
.able-playlist {
977986
list-style-type: none;
978987
margin: 0;
979988
background-color: #FFFFFF;
980989
padding: 5px 0;
981990
}
982-
.able-player .able-playlist li {
991+
.able-playlist li {
983992
background-color: #DDDDDD; /* default background color of each item in playlist */
984993
margin: 5px;
985-
padding: 5px 10px;
986-
border-radius: 15px;
987-
-moz-border-radius: 15px;
988-
}
989-
.able-player .able-playlist li:hover,
990-
.able-player .able-playlist li:focus,
991-
.able-player .able-playlist li:active { /* playlist items when they have mouse or keyboard focus */
992-
color: #FFFFFF;
993-
background-color: #340449;
994-
text-decoration: none;
994+
padding: 0;
995+
border: 2px solid #AAA;
996+
border-radius: 5px;
997+
-moz-border-radius: 5px;
995998
}
996-
.able-player .able-playlist li.able-current { /* currently selected playlist item */
999+
.able-playlist li button {
1000+
border: none;
9971001
color: #000000;
1002+
background-color: transparent;
1003+
font-size: 1em;
1004+
width: 100%;
1005+
padding: 5px 10px;
1006+
text-align: left;
1007+
}
1008+
.able-playlist li button:hover,
1009+
.able-playlist li button:focus,
1010+
.able-playlist li button:active { /* playlist items when they have mouse or keyboard focus */
9981011
background-color: #FFEEB3;
999-
font-weight: bold;
1000-
outline: none;
1012+
color: #000000;
10011013
text-decoration: none;
1014+
outline: none;
10021015
}
1003-
.able-player .able-playlist li.able-current:after {
1004-
content: ' *';
1005-
}
1006-
1007-
/*
1008-
Playlist - External
1009-
*/
1010-
1011-
.able-playlist {
1012-
}
1013-
.able-playlist li {
1016+
.able-playlist li button::-moz-focus-inner {
1017+
border: 0;
10141018
}
1015-
.able-playlist li:hover,
1016-
.able-playlist li:focus,
1017-
.able-playlist li:active { /* playlist items when they have mouse or keyboard focus */
1018-
text-decoration: none;
1019-
color: white;
1020-
background-color: black;
1019+
.able-playlist li button img {
1020+
width: 100px;
1021+
float: left;
1022+
margin-right: 10px;
10211023
}
10221024
.able-playlist li.able-current { /* currently selected playlist item */
1025+
background-color: #340449;
1026+
border-color: #230330;
1027+
}
1028+
.able-playlist li.able-current button {
1029+
color: #FFFFFF;
10231030
font-weight: bold;
1024-
text-decoration: underline;
1031+
text-decoration: none;
1032+
outline: none;
10251033
}
1026-
.able-playlist li.able-current:after {
1027-
content: ' *';
1034+
.able-playlist li.able-current button:hover,
1035+
.able-playlist li.able-current button:focus,
1036+
.able-playlist li.able-current button:active {
1037+
color: #000000;
10281038
}
10291039

10301040
/*
@@ -1055,6 +1065,107 @@ div.able-chapters-div button::-moz-focus-inner {
10551065
font-weight: bold;
10561066
}
10571067

1068+
/*
1069+
Video Transcript Sorter (VTS)
1070+
*/
1071+
#able-vts-instructions {
1072+
margin-bottom: 1.5em;
1073+
padding: 1em;
1074+
border: 1px solid #999;
1075+
width: 720px;
1076+
max-width: 90%;
1077+
}
1078+
#able-vts fieldset {
1079+
margin: 1em;
1080+
border: none;
1081+
}
1082+
#able-vts fieldset legend {
1083+
color: #000;
1084+
font-weight: bold;
1085+
}
1086+
#able-vts fieldset div {
1087+
float: left;
1088+
padding-right: 1em;
1089+
}
1090+
#able-vts table {
1091+
clear: left;
1092+
}
1093+
1094+
#able-vts table,
1095+
#able-vts table th,
1096+
#able-vts table td {
1097+
border: 1px solid black;
1098+
border-collapse: collapse;
1099+
padding: 0.5em 0.75em;
1100+
}
1101+
#able-vts table th.actions {
1102+
min-width: 140px;
1103+
}
1104+
#able-vts table td button {
1105+
width: auto;
1106+
padding: 0;
1107+
margin: 2px;
1108+
}
1109+
#able-vts table td button svg {
1110+
width: 16px;
1111+
height: 16px;
1112+
}
1113+
#able-vts table button:hover,
1114+
#able-vts table button:focus {
1115+
/* border: 3px solid #66c2ff; */
1116+
}
1117+
#able-vts table button:hover svg {
1118+
fill: #C00;
1119+
}
1120+
tr.kind-chapters,
1121+
tr.kind-subtitles {
1122+
background-color: #FFF;
1123+
}
1124+
tr.kind-descriptions {
1125+
background-color: #FEE;
1126+
}
1127+
tr.kind-chapters {
1128+
background-color: #e6ffe6;
1129+
}
1130+
.able-vts-dragging {
1131+
background-color: #FFC;
1132+
}
1133+
div#able-vts-icon-credit {
1134+
margin: 1em;
1135+
}
1136+
div#able-vts-alert {
1137+
display: none;
1138+
position: fixed;
1139+
top: 5px;
1140+
left: 5px;
1141+
border: 2px solid #666;
1142+
background-color: #FFC;
1143+
padding: 1em;
1144+
font-weight: bold;
1145+
z-index: 9400;
1146+
}
1147+
button#able-vts-save {
1148+
font-size: 1em;
1149+
padding: 0.25em;
1150+
border-radius: 5px;
1151+
margin-bottom: 1em;
1152+
font-weight: bold;
1153+
}
1154+
button#able-vts-save:hover,
1155+
button#able-vts-save:focus {
1156+
color: white;
1157+
background-color: #060;
1158+
}
1159+
.able-vts-output-instructions {
1160+
width: 720px;
1161+
max-width: 90%;
1162+
}
1163+
#able-vts textarea {
1164+
height: 200px;
1165+
width: 720px;
1166+
max-width: 90%;
1167+
}
1168+
10581169
/*
10591170
Misc
10601171
*/

0 commit comments

Comments
 (0)