@eluvio/elv-player-js 1.0.126 → 1.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/PlayerControls.js
CHANGED
|
@@ -63,8 +63,11 @@ export const CreateElement = ({parent, type="div", label, options={}, classes=[]
|
|
|
63
63
|
return element;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
const CreateImageButton = ({parent, svg, label, options={}, classes=[], prepend=false}) => {
|
|
67
|
-
|
|
66
|
+
const CreateImageButton = ({parent, svg, label, options={}, classes=[], noDefaultClass, prepend=false}) => {
|
|
67
|
+
if(!noDefaultClass) {
|
|
68
|
+
classes.unshift("eluvio-player__controls__button");
|
|
69
|
+
}
|
|
70
|
+
|
|
68
71
|
const button = CreateElement({parent, type: "button", label, options, classes, prepend});
|
|
69
72
|
button.innerHTML = svg;
|
|
70
73
|
|
|
@@ -938,7 +941,8 @@ class PlayerControls {
|
|
|
938
941
|
parent: this.settingsMenu,
|
|
939
942
|
svg: CloseIcon,
|
|
940
943
|
type: "button",
|
|
941
|
-
classes: ["eluvio-player__controls__settings-menu__close"]
|
|
944
|
+
classes: ["eluvio-player__controls__settings-menu__close"],
|
|
945
|
+
noDefaultClass: true
|
|
942
946
|
});
|
|
943
947
|
|
|
944
948
|
closeButton.addEventListener("click", () => this.HideSettingsMenu());
|
|
@@ -448,10 +448,14 @@ $button-height: 35px;
|
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
&__close {
|
|
451
|
+
align-items: center;
|
|
451
452
|
display: none;
|
|
453
|
+
height: 20px;
|
|
454
|
+
justify-content: center;
|
|
452
455
|
position: absolute;
|
|
453
456
|
right: 20px;
|
|
454
457
|
top: 20px;
|
|
458
|
+
width: 20px;
|
|
455
459
|
|
|
456
460
|
* {
|
|
457
461
|
color: $button-color;
|
|
@@ -889,13 +893,12 @@ $button-height: 35px;
|
|
|
889
893
|
text-align: center;
|
|
890
894
|
|
|
891
895
|
&-back {
|
|
892
|
-
font-size: 24px;
|
|
893
896
|
margin-bottom: 20px;
|
|
894
897
|
}
|
|
895
898
|
}
|
|
896
899
|
|
|
897
900
|
&__close {
|
|
898
|
-
display:
|
|
901
|
+
display: flex;
|
|
899
902
|
z-index: 100;
|
|
900
903
|
}
|
|
901
904
|
}
|
|
@@ -911,17 +914,35 @@ $button-height: 35px;
|
|
|
911
914
|
text-align: center;
|
|
912
915
|
|
|
913
916
|
&-back {
|
|
914
|
-
font-size: 24px;
|
|
915
917
|
margin-bottom: 20px;
|
|
916
918
|
}
|
|
917
919
|
}
|
|
918
920
|
|
|
919
921
|
&__close {
|
|
920
|
-
display:
|
|
922
|
+
display: flex;
|
|
921
923
|
}
|
|
922
924
|
}
|
|
923
925
|
}
|
|
924
926
|
|
|
927
|
+
.eluvio-player__hls-options-form {
|
|
928
|
+
padding: 10px;
|
|
929
|
+
|
|
930
|
+
&__title {
|
|
931
|
+
font-size: 12px;
|
|
932
|
+
margin-bottom: 5px;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
&__input {
|
|
936
|
+
font-size: 12px;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
&__action {
|
|
940
|
+
font-size: 12px;
|
|
941
|
+
height: 20px;
|
|
942
|
+
width: 60px;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
925
946
|
.eluvio-player__hotspot-overlay {
|
|
926
947
|
.eluvio-player__hotspot-overlay__target {
|
|
927
948
|
.eluvio-player__hotspot-overlay__target__title {
|