@latest-thinking/lt-player 1.0.7-e → 1.0.7-g
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/dist/css/lt-player-main.css +1 -1
- package/dist/css/lt-player-main.css.map +1 -1
- package/dist/js/lt-player-main.js +1 -1
- package/dist/js/lt-player-main.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/sass/app.scss +4 -0
- package/src/assets/sass/components/_modal.scss +15 -12
- package/src/assets/sass/core/_player.scss +10 -0
- package/src/assets/sass/sections/_poster.scss +1 -0
- package/src/components/addInfo/LTPlayerAddInfoDesktop.ts +2 -0
- package/src/components/addInfo/LTPlayerAddInfoMobile.ts +2 -6
- package/src/views/additionalInfo.handlebars +11 -1
package/package.json
CHANGED
package/src/assets/sass/app.scss
CHANGED
|
@@ -119,7 +119,6 @@
|
|
|
119
119
|
&__modal-content {
|
|
120
120
|
color: $default-lt-button-color;
|
|
121
121
|
text-align: left;
|
|
122
|
-
padding: 16px;
|
|
123
122
|
overflow: auto;
|
|
124
123
|
font-family: $lt-font-family-base;
|
|
125
124
|
|
|
@@ -212,13 +211,13 @@
|
|
|
212
211
|
border-radius: 0;
|
|
213
212
|
font-family: $lt-font-family-base;
|
|
214
213
|
width: 100%;
|
|
215
|
-
max-height:
|
|
214
|
+
max-height: calc(100% - 50px);
|
|
216
215
|
overflow: auto;
|
|
217
216
|
max-width: 620px;
|
|
218
|
-
padding: 40px 0;
|
|
219
217
|
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
@media screen and (max-width: 620px) {
|
|
219
|
+
max-height: unset;
|
|
220
|
+
height: 100%;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
.modal-flex {
|
|
@@ -305,12 +304,15 @@
|
|
|
305
304
|
}
|
|
306
305
|
|
|
307
306
|
&__modal-body {
|
|
308
|
-
padding:
|
|
307
|
+
padding: 40px;
|
|
308
|
+
|
|
309
|
+
@media screen and (max-width: 620px) {
|
|
310
|
+
padding: 20px;
|
|
311
|
+
}
|
|
309
312
|
}
|
|
310
313
|
|
|
311
314
|
&__close-button {
|
|
312
315
|
z-index: 20;
|
|
313
|
-
float: right;
|
|
314
316
|
width: 24px;
|
|
315
317
|
font-size: $lt-player-font-size-xxxl2 !important;
|
|
316
318
|
line-height: 1;
|
|
@@ -321,13 +323,14 @@
|
|
|
321
323
|
background-color: transparent;
|
|
322
324
|
color: $default-lt-button-color;
|
|
323
325
|
transition: color 0.12s ease-in-out;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
326
|
+
position: absolute;
|
|
327
|
+
top: 40px;
|
|
328
|
+
right: 40px;
|
|
327
329
|
margin-top: 0 !important;
|
|
328
330
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
+
@media screen and (max-width: 620px) {
|
|
332
|
+
top: 20px;
|
|
333
|
+
right: 20px;
|
|
331
334
|
}
|
|
332
335
|
}
|
|
333
336
|
|
|
@@ -11,9 +11,19 @@
|
|
|
11
11
|
border-radius: 0 0 0 32px !important;
|
|
12
12
|
background: $default-lt-player-black !important;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
video {
|
|
16
|
+
background: transparent !important;
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
// THIS MUST STAY - DO NOT DELETE
|
|
22
|
+
.poster-lt-player-share,
|
|
23
|
+
.mini-player-control {
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
.plyr--video {
|
|
18
28
|
background: transparent !important;
|
|
19
29
|
}
|
|
@@ -76,6 +76,7 @@ export class LTPlayerAddInfoDesktop {
|
|
|
76
76
|
|
|
77
77
|
if (modal) {
|
|
78
78
|
modal.classList.add('player-lt__show-modal');
|
|
79
|
+
document.body.classList.add('overflow-hidden-body-important');
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
window.Player.players.forEach(item => {
|
|
@@ -97,6 +98,7 @@ export class LTPlayerAddInfoDesktop {
|
|
|
97
98
|
let target = event.target as HTMLElement;
|
|
98
99
|
if (target.classList.contains('player-lt__show-modal') || target.classList.contains('player-lt__close-button')) {
|
|
99
100
|
modal.classList.remove('player-lt__show-modal');
|
|
101
|
+
document.body.classList.remove('overflow-hidden-body-important');
|
|
100
102
|
document.querySelectorAll(".player-lt__modal").forEach(el => el.remove());
|
|
101
103
|
|
|
102
104
|
window.Player.players.forEach(item => {
|
|
@@ -20,9 +20,8 @@ export class LTPlayerAddInfoMobile {
|
|
|
20
20
|
|
|
21
21
|
if (typeof info === 'object') {
|
|
22
22
|
modalTemplate = controller.templateService.getAdditionalInfo({
|
|
23
|
-
mobile : true,
|
|
24
23
|
modal : true,
|
|
25
|
-
|
|
24
|
+
mobile : true,
|
|
26
25
|
object_data : true,
|
|
27
26
|
[key] : info
|
|
28
27
|
})
|
|
@@ -31,12 +30,10 @@ export class LTPlayerAddInfoMobile {
|
|
|
31
30
|
mobile : true,
|
|
32
31
|
modal : true,
|
|
33
32
|
data : info,
|
|
34
|
-
[controller.device] : true
|
|
35
33
|
})
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
const modal = document.createElement('div');
|
|
39
|
-
modal.classList.add('lt-player-mobile-add-info-modal')
|
|
36
|
+
modal.classList.add('lt-player-mobile-add-info-modal');
|
|
40
37
|
modal.innerHTML = modalTemplate;
|
|
41
38
|
|
|
42
39
|
const body = document.querySelector('body');
|
|
@@ -57,7 +54,6 @@ export class LTPlayerAddInfoMobile {
|
|
|
57
54
|
let targetModal = button.dataset.ltTarget;
|
|
58
55
|
let data = instance.additionalData;
|
|
59
56
|
|
|
60
|
-
|
|
61
57
|
if (data[targetModal] !== undefined) {
|
|
62
58
|
createInformationModal(data[targetModal], targetModal)
|
|
63
59
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
{{#modal}}
|
|
2
2
|
{{#mobile}}
|
|
3
|
+
{{#data}}
|
|
4
|
+
<div class="player-lt__modal__mobile__background"></div>
|
|
5
|
+
<div class="player-lt__modal__mobile">
|
|
6
|
+
<div class="player-lt__mobile__modal-header">
|
|
7
|
+
<span class="line-button"></span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="player-lt__mobile__modal-content">
|
|
10
|
+
{{{data}}}
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
{{/data}}
|
|
3
14
|
{{#object_data}}
|
|
4
15
|
<div class="player-lt__modal__mobile__background"></div>
|
|
5
16
|
<div class="player-lt__modal__mobile">
|
|
@@ -28,7 +39,6 @@
|
|
|
28
39
|
</div>
|
|
29
40
|
</div>
|
|
30
41
|
{{/object_data}}
|
|
31
|
-
|
|
32
42
|
{{/mobile}}
|
|
33
43
|
{{#desktop}}
|
|
34
44
|
{{#object_data}}
|