tencent.jquery.pix.component 1.0.74 → 1.0.76
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.
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
$jqpix-video-progress-bold-scale: 2 !default;
|
|
2
|
+
$jqpix-video-primary-color: #ff6429 !default;
|
|
3
|
+
|
|
1
4
|
.myplayer-shrink1 {
|
|
2
5
|
flex-shrink: 1;
|
|
3
6
|
}
|
|
@@ -239,6 +242,10 @@
|
|
|
239
242
|
flex-grow: 1;
|
|
240
243
|
border-radius: 0.06rem;
|
|
241
244
|
margin-top: 0.03rem;
|
|
245
|
+
|
|
246
|
+
&.myplayer-progress-bold {
|
|
247
|
+
transform: scaleY($jqpix-video-progress-bold-scale);
|
|
248
|
+
}
|
|
242
249
|
}
|
|
243
250
|
|
|
244
251
|
.myplayer-container .myplayer-progress-bg,
|
|
@@ -258,7 +265,7 @@
|
|
|
258
265
|
|
|
259
266
|
.myplayer-container .myplayer-subprogress {
|
|
260
267
|
width: 0;
|
|
261
|
-
background-color:
|
|
268
|
+
background-color: $jqpix-video-primary-color;
|
|
262
269
|
/*transition: width 1s linear;*/
|
|
263
270
|
max-width: 100%;
|
|
264
271
|
}
|
|
@@ -396,7 +403,7 @@
|
|
|
396
403
|
}
|
|
397
404
|
|
|
398
405
|
.myplayer-container .myplayer-volume-subline {
|
|
399
|
-
background-color:
|
|
406
|
+
background-color: $jqpix-video-primary-color;
|
|
400
407
|
}
|
|
401
408
|
|
|
402
409
|
.myplayer-container .myplayer-volume-subline div {
|
|
@@ -407,7 +414,7 @@
|
|
|
407
414
|
left: 50%;
|
|
408
415
|
top: -0.25rem;
|
|
409
416
|
margin-left: -0.25rem;
|
|
410
|
-
background-color:
|
|
417
|
+
background-color: $jqpix-video-primary-color;
|
|
411
418
|
border-radius: 0.25rem;
|
|
412
419
|
}
|
|
413
420
|
|
|
@@ -227,7 +227,7 @@ VideoPlayer.prototype.play = function () {
|
|
|
227
227
|
this.$container.find('.myplayer-btn-play').hide();
|
|
228
228
|
this.$container.find('.myplayer-btn-big-play').addClass('myplayer-transparent');
|
|
229
229
|
this.$container.find('.myplayer-btn-pause').show();
|
|
230
|
-
this.$container.find('.myplayer-progress').
|
|
230
|
+
this.$container.find('.myplayer-progress').removeClass('myplayer-progress-bold');
|
|
231
231
|
this.startUpdatingProgress();
|
|
232
232
|
this.hideControlsWithDelay();
|
|
233
233
|
this.options.stateChanged.call(this, 'play');
|
|
@@ -241,7 +241,7 @@ VideoPlayer.prototype.pause = function () {
|
|
|
241
241
|
this.$container.find('.myplayer-btn-play').show();
|
|
242
242
|
this.$container.find('.myplayer-btn-big-play').removeClass('myplayer-transparent');
|
|
243
243
|
this.$container.find('.myplayer-btn-pause').hide();
|
|
244
|
-
this.$container.find('.myplayer-progress').
|
|
244
|
+
this.$container.find('.myplayer-progress').addClass('myplayer-progress-bold');
|
|
245
245
|
this.state.controlsDelayStart = Date.now();
|
|
246
246
|
this.options.stateChanged.call(this, 'pause');
|
|
247
247
|
}
|
|
@@ -255,7 +255,7 @@ VideoPlayer.prototype.stop = function () {
|
|
|
255
255
|
this.$container.find('.myplayer-btn-play').show();
|
|
256
256
|
this.$container.find('.myplayer-btn-big-play').removeClass('myplayer-transparent');
|
|
257
257
|
this.$container.find('.myplayer-btn-pause').hide();
|
|
258
|
-
this.$container.find('.myplayer-progress').
|
|
258
|
+
this.$container.find('.myplayer-progress').addClass('myplayer-progress-bold');
|
|
259
259
|
this.state.controlsDelayStart = Date.now();
|
|
260
260
|
this.$container.find('.myplayer-video-cover,.myplayer-video-preview').show();
|
|
261
261
|
this.state.firstPlay = true;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencent.jquery.pix.component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"components",
|
|
8
|
-
"utils"
|
|
8
|
+
"utils",
|
|
9
|
+
"style"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@mixin define-fade-in-animation(
|
|
2
|
+
$name: 'fadeIn',
|
|
3
|
+
$start-x: 0px,
|
|
4
|
+
$start-y: 0px,
|
|
5
|
+
$mid-x: 0px,
|
|
6
|
+
$mid-y: 0px,
|
|
7
|
+
$end-x: 0px,
|
|
8
|
+
$end-y: 0px
|
|
9
|
+
) {
|
|
10
|
+
@keyframes #{$name} {
|
|
11
|
+
0% {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: translate($start-x, $start-y);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
25% {
|
|
17
|
+
transform: translate($mid-x, $mid-y);
|
|
18
|
+
opacity: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
100% {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transform: translate($end-x, $end-y);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin apply-fade-in-animation(
|
|
29
|
+
$name: 'fadeIn',
|
|
30
|
+
$duration: 0.7s,
|
|
31
|
+
$timing-function: ease,
|
|
32
|
+
$fill-mode: both,
|
|
33
|
+
$delay: 0s
|
|
34
|
+
) {
|
|
35
|
+
animation-name: #{$name};
|
|
36
|
+
animation-duration: $duration;
|
|
37
|
+
animation-timing-function: $timing-function;
|
|
38
|
+
animation-fill-mode: $fill-mode;
|
|
39
|
+
animation-delay: $delay;
|
|
40
|
+
}
|