@latest-thinking/lt-player 1.0.7-g → 1.0.7-i
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/abstracts/_mixins.scss +6 -0
- package/src/assets/sass/app.scss +17 -1
- package/src/assets/sass/components/_modal.scss +14 -8
- package/src/services/ResizeService.ts +30 -27
package/package.json
CHANGED
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
transform: translate(-#{$top}, -#{$top});
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
@mixin flex-position($flex, $content, $align) {
|
|
9
|
+
display: $flex;
|
|
10
|
+
justify-content: $content;
|
|
11
|
+
align-items: $align;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
@mixin yellow-btn {
|
|
9
15
|
color: $default-lt-button-color;
|
|
10
16
|
background-color: $default_color_player;
|
package/src/assets/sass/app.scss
CHANGED
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
// 1. Basics
|
|
15
15
|
//---------------------------------------------
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
*,
|
|
18
|
+
*::before,
|
|
19
|
+
*::after {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
//---------------------------------------------
|
|
20
24
|
// 2. Resetting properties
|
|
@@ -24,6 +28,18 @@ body {
|
|
|
24
28
|
margin: 0;
|
|
25
29
|
}
|
|
26
30
|
|
|
31
|
+
.container-text-portrait-player {
|
|
32
|
+
display: flex;
|
|
33
|
+
max-width: 800px;
|
|
34
|
+
max-height: 800px;
|
|
35
|
+
margin-bottom: 3rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.container-text-landscape-player {
|
|
39
|
+
display: flex;
|
|
40
|
+
max-width: 1000px;
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
//---------------------------------------------
|
|
28
44
|
// 3. General
|
|
29
45
|
//---------------------------------------------
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
color: $default-lt-button-color;
|
|
121
121
|
text-align: left;
|
|
122
122
|
overflow: auto;
|
|
123
|
+
padding: 20px;
|
|
123
124
|
font-family: $lt-font-family-base;
|
|
124
125
|
|
|
125
126
|
button,
|
|
@@ -169,10 +170,10 @@
|
|
|
169
170
|
width: 100%;
|
|
170
171
|
height: 100%;
|
|
171
172
|
background-color: rgba(0, 0, 0, 0.5);
|
|
172
|
-
opacity: 0;
|
|
173
|
-
visibility: hidden;
|
|
174
|
-
transform: scale(1.1);
|
|
175
|
-
transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
|
173
|
+
//opacity: 0;
|
|
174
|
+
//visibility: hidden;
|
|
175
|
+
//transform: scale(1.1);
|
|
176
|
+
//transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
|
|
176
177
|
|
|
177
178
|
&__mobile {
|
|
178
179
|
position: absolute;
|
|
@@ -217,7 +218,12 @@
|
|
|
217
218
|
|
|
218
219
|
@media screen and (max-width: 620px) {
|
|
219
220
|
max-height: unset;
|
|
221
|
+
width: auto;
|
|
220
222
|
height: 100%;
|
|
223
|
+
position: unset;
|
|
224
|
+
transform: unset;
|
|
225
|
+
border: 1px solid $default-lt-span-color;
|
|
226
|
+
border-radius: 0 0 0 30px;
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
.modal-flex {
|
|
@@ -339,9 +345,9 @@
|
|
|
339
345
|
}
|
|
340
346
|
|
|
341
347
|
&__show-modal {
|
|
342
|
-
opacity: 1;
|
|
343
|
-
visibility: visible;
|
|
344
|
-
transform: scale(1.0);
|
|
345
|
-
transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
|
|
348
|
+
//opacity: 1;
|
|
349
|
+
//visibility: visible;
|
|
350
|
+
//transform: scale(1.0);
|
|
351
|
+
//transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
|
|
346
352
|
}
|
|
347
353
|
}
|
|
@@ -212,34 +212,37 @@ export class ResizeService {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
if (containerWidth >= 380) {
|
|
215
|
+
// if (containerWidth >= 380) {
|
|
216
|
+
//
|
|
217
|
+
// if (this.addInfoInSide && (containerWidth + 70 <= 380)) {
|
|
218
|
+
// return;
|
|
219
|
+
// }
|
|
220
|
+
//
|
|
221
|
+
// if (this.addInfoOutSide) {
|
|
222
|
+
// return;
|
|
223
|
+
// }
|
|
224
|
+
//
|
|
225
|
+
// this.addInfoOutSide = true;
|
|
226
|
+
// this.addInfoInSide = false;
|
|
227
|
+
//
|
|
228
|
+
// createAddInfoButtonsOutSide();
|
|
229
|
+
// } else {
|
|
230
|
+
//
|
|
231
|
+
// if (this.addInfoOutSide && (containerWidth + 70 >= 380)) {
|
|
232
|
+
// return;
|
|
233
|
+
// }
|
|
234
|
+
//
|
|
235
|
+
// if (this.addInfoInSide) {
|
|
236
|
+
// return;
|
|
237
|
+
// }
|
|
238
|
+
//
|
|
239
|
+
// this.addInfoInSide = true;
|
|
240
|
+
// this.addInfoOutSide = false;
|
|
241
|
+
// createAddInfoButtonsInSide();
|
|
242
|
+
// }
|
|
243
|
+
|
|
244
|
+
createAddInfoButtonsInSide();
|
|
216
245
|
|
|
217
|
-
if (this.addInfoInSide && (containerWidth + 70 <= 380)) {
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (this.addInfoOutSide) {
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
this.addInfoOutSide = true;
|
|
226
|
-
this.addInfoInSide = false;
|
|
227
|
-
|
|
228
|
-
createAddInfoButtonsOutSide();
|
|
229
|
-
} else {
|
|
230
|
-
|
|
231
|
-
if (this.addInfoOutSide && (containerWidth + 70 >= 380)) {
|
|
232
|
-
return;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (this.addInfoInSide) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
this.addInfoInSide = true;
|
|
240
|
-
this.addInfoOutSide = false;
|
|
241
|
-
createAddInfoButtonsInSide();
|
|
242
|
-
}
|
|
243
246
|
}
|
|
244
247
|
|
|
245
248
|
protected setDimensions(containerWidth: number, containerHeight: number, defaultData: defaultType) {
|