ddplayer 1.0.0 → 25.12.1
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/README.md +31 -9
- package/dist/plyr.css +1 -1
- package/dist/plyr.js +5093 -5779
- package/dist/plyr.min.js +1 -3
- package/dist/plyr.min.js.map +1 -1
- package/dist/plyr.mjs +5093 -5779
- package/dist/plyr.polyfilled.js +8164 -14812
- package/dist/plyr.polyfilled.min.js +1 -3
- package/dist/plyr.polyfilled.min.js.map +1 -1
- package/dist/plyr.polyfilled.min.mjs +1 -3
- package/dist/plyr.polyfilled.min.mjs.map +1 -1
- package/dist/plyr.polyfilled.mjs +8163 -14811
- package/package.json +12 -8
- package/src/js/config/defaults.js +4 -4
- package/src/js/plugins/vimeo.js +5 -11
- package/src/js/plyr.d.ts +2 -2
- package/src/js/plyr.js +1 -1
- package/src/js/plyr.polyfilled.js +1 -1
- package/src/sass/base.scss +10 -6
- package/src/sass/components/badges.scss +7 -4
- package/src/sass/components/captions.scss +14 -10
- package/src/sass/components/control.scss +8 -5
- package/src/sass/components/controls.scss +5 -3
- package/src/sass/components/menus.scss +39 -34
- package/src/sass/components/progress.scss +16 -12
- package/src/sass/components/sliders.scss +22 -18
- package/src/sass/components/times.scss +7 -3
- package/src/sass/components/tooltips.scss +18 -14
- package/src/sass/components/volume.scss +4 -2
- package/src/sass/lib/animation.scss +3 -1
- package/src/sass/lib/css-vars.scss +15 -11
- package/src/sass/lib/mixins.scss +15 -10
- package/src/sass/plugins/ads.scss +9 -5
- package/src/sass/plugins/preview-thumbnails/index.scss +17 -17
- package/src/sass/plugins/preview-thumbnails/settings.scss +11 -7
- package/src/sass/plyr.scss +44 -45
- package/src/sass/settings/badges.scss +6 -3
- package/src/sass/settings/captions.scss +9 -6
- package/src/sass/settings/colors.scss +3 -1
- package/src/sass/settings/controls.scss +19 -16
- package/src/sass/settings/cosmetics.scss +4 -1
- package/src/sass/settings/menus.scss +12 -9
- package/src/sass/settings/progress.scss +8 -5
- package/src/sass/settings/sliders.scss +19 -15
- package/src/sass/settings/tooltips.scss +11 -7
- package/src/sass/settings/type.scss +13 -11
- package/src/sass/states/fullscreen.scss +7 -5
- package/src/sass/types/audio.scss +17 -12
- package/src/sass/types/video.scss +30 -23
- package/src/sass/utils/hidden.scss +3 -1
- package/src/sass/youtube.scss +16 -11
- package/tasks/build.js +4 -4
- package/.travis.yml +0 -12
- package/dist/plyr.min.mjs +0 -3
- package/dist/plyr.min.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddplayer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.12.1",
|
|
4
4
|
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
|
|
5
|
-
"homepage": "https://
|
|
6
|
-
"author": "
|
|
5
|
+
"homepage": "https://github.com/leduong/ddplayer",
|
|
6
|
+
"author": "Duong Le <me@leduong.com>",
|
|
7
7
|
"main": "dist/plyr.js",
|
|
8
8
|
"types": "src/js/plyr.d.ts",
|
|
9
9
|
"module": "dist/plyr.min.mjs",
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
"HLS"
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
24
27
|
"repository": {
|
|
25
28
|
"type": "git",
|
|
26
|
-
"url": "git://github.com/
|
|
29
|
+
"url": "git://github.com/leduong/ddplayer.git"
|
|
27
30
|
},
|
|
28
31
|
"bugs": {
|
|
29
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "https://github.com/leduong/ddplayer/issues"
|
|
30
33
|
},
|
|
31
34
|
"browserslist": "> 1%",
|
|
32
35
|
"scripts": {
|
|
@@ -38,11 +41,11 @@
|
|
|
38
41
|
"format": "prettier --write \"./{src,demo/src}/**/*.{js,scss}\""
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
44
|
+
"@babel/core": "^7.9.6",
|
|
45
|
+
"@babel/preset-env": "^7.9.6",
|
|
41
46
|
"ansi-colors": "^4.1.1",
|
|
42
47
|
"autoprefixer": "^9.7.6",
|
|
43
48
|
"aws-sdk": "^2.668.0",
|
|
44
|
-
"@babel/core": "^7.9.6",
|
|
45
|
-
"@babel/preset-env": "^7.9.6",
|
|
46
49
|
"babel-eslint": "^10.1.0",
|
|
47
50
|
"browser-sync": "^2.26.7",
|
|
48
51
|
"del": "^5.1.0",
|
|
@@ -66,7 +69,7 @@
|
|
|
66
69
|
"gulp-postcss": "^8.0.0",
|
|
67
70
|
"gulp-rename": "^2.0.0",
|
|
68
71
|
"gulp-replace": "^1.0.0",
|
|
69
|
-
"gulp-sass": "
|
|
72
|
+
"gulp-sass": "latest",
|
|
70
73
|
"gulp-size": "^3.0.0",
|
|
71
74
|
"gulp-sourcemaps": "^2.6.5",
|
|
72
75
|
"gulp-svgstore": "^7.0.1",
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
"rollup-plugin-babel": "^4.4.0",
|
|
82
85
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
83
86
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
87
|
+
"sass": "^1.94.2",
|
|
84
88
|
"stylelint": "^13.3.3",
|
|
85
89
|
"stylelint-config-prettier": "^8.0.1",
|
|
86
90
|
"stylelint-config-recommended": "^3.0.0",
|
|
@@ -61,7 +61,7 @@ const defaults = {
|
|
|
61
61
|
// Sprite (for icons)
|
|
62
62
|
loadSprite: true,
|
|
63
63
|
iconPrefix: 'plyr',
|
|
64
|
-
iconUrl: 'https://cdn.plyr.io/3.6.
|
|
64
|
+
iconUrl: 'https://cdn.plyr.io/3.6.2/plyr.svg',
|
|
65
65
|
|
|
66
66
|
// Blank video (used to prevent errors on source change)
|
|
67
67
|
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
|
@@ -204,16 +204,16 @@ const defaults = {
|
|
|
204
204
|
// URLs
|
|
205
205
|
urls: {
|
|
206
206
|
hlsjs: {
|
|
207
|
-
sdk: 'https://cdn.jsdelivr.net/npm/hls.js@
|
|
207
|
+
sdk: 'https://cdn.jsdelivr.net/npm/hls.js@1.6.15/dist/hls.min.js',
|
|
208
208
|
},
|
|
209
209
|
dashjs: {
|
|
210
|
-
sdk: 'https://cdn.jsdelivr.net/npm/dashjs@
|
|
210
|
+
sdk: 'https://cdn.jsdelivr.net/npm/dashjs@5.1.0/dist/legacy/umd/dash.all.min.js',
|
|
211
211
|
},
|
|
212
212
|
download: null,
|
|
213
213
|
vimeo: {
|
|
214
214
|
sdk: 'https://player.vimeo.com/api/player.js',
|
|
215
215
|
iframe: 'https://player.vimeo.com/video/{0}?{1}',
|
|
216
|
-
api: 'https://vimeo.com/api/
|
|
216
|
+
api: 'https://vimeo.com/api/oembed.json?url={0}',
|
|
217
217
|
},
|
|
218
218
|
youtube: {
|
|
219
219
|
sdk: 'https://www.youtube.com/iframe_api',
|
package/src/js/plugins/vimeo.js
CHANGED
|
@@ -121,21 +121,15 @@ const vimeo = {
|
|
|
121
121
|
wrapper.appendChild(iframe);
|
|
122
122
|
player.media = replaceElement(wrapper, player.media);
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
// Get poster image
|
|
126
|
-
fetch(format(player.config.urls.vimeo.api,
|
|
127
|
-
if (is.empty(response)) {
|
|
126
|
+
fetch(format(player.config.urls.vimeo.api, src)).then(response => {
|
|
127
|
+
if (is.empty(response) || !response.thumbnail_url) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
// Get the URL for thumbnail
|
|
132
|
-
const url = new URL(response[0].thumbnail_large);
|
|
133
|
-
|
|
134
|
-
// Get original image
|
|
135
|
-
url.pathname = `${url.pathname.split('_')[0]}.jpg`;
|
|
136
|
-
|
|
130
|
+
|
|
137
131
|
// Set and show poster
|
|
138
|
-
ui.setPoster.call(player,
|
|
132
|
+
ui.setPoster.call(player, response.thumbnail_url).catch(() => { });
|
|
139
133
|
});
|
|
140
134
|
|
|
141
135
|
// Setup instance
|
package/src/js/plyr.d.ts
CHANGED
|
@@ -357,7 +357,7 @@ declare namespace Plyr {
|
|
|
357
357
|
/**
|
|
358
358
|
* Specify a URL or path to a blank video file used to properly cancel network requests.
|
|
359
359
|
*/
|
|
360
|
-
|
|
360
|
+
blankVideo?: string;
|
|
361
361
|
|
|
362
362
|
/**
|
|
363
363
|
* Autoplay the media on load. This is generally advised against on UX grounds. It is also disabled by default in some browsers.
|
|
@@ -534,7 +534,7 @@ declare namespace Plyr {
|
|
|
534
534
|
|
|
535
535
|
interface FullScreenOptions {
|
|
536
536
|
enabled?: boolean;
|
|
537
|
-
fallback?: boolean;
|
|
537
|
+
fallback?: boolean | 'force';
|
|
538
538
|
allowAudio?: boolean;
|
|
539
539
|
iosNative?: boolean;
|
|
540
540
|
}
|
package/src/js/plyr.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ==========================================================================
|
|
2
2
|
// Plyr
|
|
3
|
-
// plyr.js v3.6.
|
|
3
|
+
// plyr.js v3.6.2
|
|
4
4
|
// https://github.com/sampotts/plyr
|
|
5
5
|
// License: The MIT License (MIT)
|
|
6
6
|
// ==========================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ==========================================================================
|
|
2
2
|
// Plyr Polyfilled Build
|
|
3
|
-
// plyr.js v3.6.
|
|
3
|
+
// plyr.js v3.6.2
|
|
4
4
|
// https://github.com/sampotts/plyr
|
|
5
5
|
// License: The MIT License (MIT)
|
|
6
6
|
// ==========================================================================
|
package/src/sass/base.scss
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
@use "lib/mixins";
|
|
2
|
+
@use "settings/helpers";
|
|
3
|
+
@use "settings/type";
|
|
4
|
+
|
|
1
5
|
// --------------------------------------------------------------
|
|
2
6
|
// Base styling
|
|
3
7
|
// --------------------------------------------------------------
|
|
4
8
|
|
|
5
9
|
// Base
|
|
6
10
|
.plyr {
|
|
7
|
-
@include plyr-font-smoothing(
|
|
11
|
+
@include mixins.plyr-font-smoothing(type.$plyr-font-smoothing);
|
|
8
12
|
align-items: center;
|
|
9
13
|
direction: ltr;
|
|
10
14
|
display: flex;
|
|
11
15
|
flex-direction: column;
|
|
12
|
-
font-family:
|
|
16
|
+
font-family: type.$plyr-font-family;
|
|
13
17
|
font-variant-numeric: tabular-nums; // Force monosace-esque number widths
|
|
14
|
-
font-weight:
|
|
18
|
+
font-weight: type.$plyr-font-weight-regular;
|
|
15
19
|
height: 100%;
|
|
16
|
-
line-height:
|
|
20
|
+
line-height: type.$plyr-line-height;
|
|
17
21
|
max-width: 100%;
|
|
18
22
|
min-width: 200px;
|
|
19
23
|
position: relative;
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
|
|
45
49
|
// border-box everything
|
|
46
50
|
// http://paulirish.com/2012/box-sizing-border-box-ftw/
|
|
47
|
-
@if
|
|
51
|
+
@if helpers.$plyr-border-box {
|
|
48
52
|
.plyr--full-ui {
|
|
49
53
|
box-sizing: border-box;
|
|
50
54
|
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
// Fix 300ms delay
|
|
60
|
-
@if
|
|
64
|
+
@if helpers.$plyr-touch-action {
|
|
61
65
|
.plyr--full-ui {
|
|
62
66
|
a,
|
|
63
67
|
button,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
@use "settings/badges";
|
|
2
|
+
@use "settings/type";
|
|
3
|
+
|
|
1
4
|
// --------------------------------------------------------------
|
|
2
5
|
// Badges
|
|
3
6
|
// --------------------------------------------------------------
|
|
4
7
|
|
|
5
8
|
.plyr__badge {
|
|
6
|
-
background:
|
|
7
|
-
border-radius:
|
|
8
|
-
color:
|
|
9
|
-
font-size:
|
|
9
|
+
background: badges.$plyr-badge-background;
|
|
10
|
+
border-radius: badges.$plyr-badge-border-radius;
|
|
11
|
+
color: badges.$plyr-badge-text-color;
|
|
12
|
+
font-size: type.$plyr-font-size-badge;
|
|
10
13
|
line-height: 1;
|
|
11
14
|
padding: 3px 4px;
|
|
12
15
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "settings/breakpoints";
|
|
2
|
+
@use "settings/captions";
|
|
3
|
+
@use "settings/controls";
|
|
4
|
+
|
|
1
5
|
// --------------------------------------------------------------
|
|
2
6
|
// Captions
|
|
3
7
|
// --------------------------------------------------------------
|
|
@@ -11,9 +15,9 @@
|
|
|
11
15
|
animation: plyr-fade-in 0.3s ease;
|
|
12
16
|
bottom: 0;
|
|
13
17
|
display: none;
|
|
14
|
-
font-size:
|
|
18
|
+
font-size: captions.$plyr-font-size-captions-small;
|
|
15
19
|
left: 0;
|
|
16
|
-
padding:
|
|
20
|
+
padding: controls.$plyr-control-spacing;
|
|
17
21
|
position: absolute;
|
|
18
22
|
text-align: center;
|
|
19
23
|
transition: transform 0.4s ease-in-out;
|
|
@@ -23,13 +27,13 @@
|
|
|
23
27
|
display: none;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
|
-
@media (min-width:
|
|
27
|
-
font-size:
|
|
28
|
-
padding: calc(#{
|
|
30
|
+
@media (min-width: breakpoints.$plyr-bp-sm) {
|
|
31
|
+
font-size: captions.$plyr-font-size-captions-base;
|
|
32
|
+
padding: calc(#{controls.$plyr-control-spacing} * 2);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
@media (min-width:
|
|
32
|
-
font-size:
|
|
35
|
+
@media (min-width: breakpoints.$plyr-bp-md) {
|
|
36
|
+
font-size: captions.$plyr-font-size-captions-medium;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
|
|
@@ -39,14 +43,14 @@
|
|
|
39
43
|
|
|
40
44
|
// If the lower controls are shown and not empty
|
|
41
45
|
.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty) ~ .plyr__captions {
|
|
42
|
-
transform: translateY(calc(#{
|
|
46
|
+
transform: translateY(calc(#{controls.$plyr-control-spacing} * -4));
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
.plyr__caption {
|
|
46
|
-
background:
|
|
50
|
+
background: captions.$plyr-captions-background;
|
|
47
51
|
border-radius: 2px;
|
|
48
52
|
box-decoration-break: clone;
|
|
49
|
-
color:
|
|
53
|
+
color: captions.$plyr-captions-text-color;
|
|
50
54
|
line-height: 185%;
|
|
51
55
|
padding: 0.2em 0.5em;
|
|
52
56
|
white-space: pre-wrap;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "lib/mixins";
|
|
2
|
+
@use "settings/controls";
|
|
3
|
+
|
|
1
4
|
// --------------------------------------------------------------
|
|
2
5
|
// Control buttons
|
|
3
6
|
// --------------------------------------------------------------
|
|
@@ -5,21 +8,21 @@
|
|
|
5
8
|
.plyr__control {
|
|
6
9
|
background: transparent;
|
|
7
10
|
border: 0;
|
|
8
|
-
border-radius:
|
|
11
|
+
border-radius: controls.$plyr-control-radius;
|
|
9
12
|
color: inherit;
|
|
10
13
|
cursor: pointer;
|
|
11
14
|
flex-shrink: 0;
|
|
12
15
|
overflow: visible; // IE11
|
|
13
|
-
padding:
|
|
16
|
+
padding: controls.$plyr-control-padding;
|
|
14
17
|
position: relative;
|
|
15
18
|
transition: all 0.3s ease;
|
|
16
19
|
|
|
17
20
|
svg {
|
|
18
21
|
display: block;
|
|
19
22
|
fill: currentColor;
|
|
20
|
-
height:
|
|
23
|
+
height: controls.$plyr-control-icon-size;
|
|
21
24
|
pointer-events: none;
|
|
22
|
-
width:
|
|
25
|
+
width: controls.$plyr-control-icon-size;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
// Default focus
|
|
@@ -29,7 +32,7 @@
|
|
|
29
32
|
|
|
30
33
|
// Tab focus
|
|
31
34
|
&.plyr__tab-focus {
|
|
32
|
-
@include plyr-tab-focus();
|
|
35
|
+
@include mixins.plyr-tab-focus();
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "settings/controls";
|
|
2
|
+
|
|
1
3
|
// --------------------------------------------------------------
|
|
2
4
|
// Controls
|
|
3
5
|
// --------------------------------------------------------------
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
|
|
22
24
|
// Spacing
|
|
23
25
|
.plyr__controls__item {
|
|
24
|
-
margin-left: calc(#{
|
|
26
|
+
margin-left: calc(#{controls.$plyr-control-spacing} / 4);
|
|
25
27
|
|
|
26
28
|
&:first-child {
|
|
27
29
|
margin-left: 0;
|
|
@@ -29,11 +31,11 @@
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
&.plyr__progress__container {
|
|
32
|
-
padding-left: calc(#{
|
|
34
|
+
padding-left: calc(#{controls.$plyr-control-spacing} / 4);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
&.plyr__time {
|
|
36
|
-
padding: 0 calc(#{
|
|
38
|
+
padding: 0 calc(#{controls.$plyr-control-spacing} / 2);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&.plyr__progress__container:first-child,
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
@use "settings/colors";
|
|
2
|
+
@use "settings/controls";
|
|
3
|
+
@use "settings/menus";
|
|
4
|
+
@use "settings/type";
|
|
5
|
+
|
|
1
6
|
// --------------------------------------------------------------
|
|
2
7
|
// Menus
|
|
3
8
|
// --------------------------------------------------------------
|
|
@@ -24,12 +29,12 @@
|
|
|
24
29
|
// The actual menu container
|
|
25
30
|
&__container {
|
|
26
31
|
animation: plyr-popup 0.2s ease;
|
|
27
|
-
background:
|
|
32
|
+
background: menus.$plyr-menu-background;
|
|
28
33
|
border-radius: 4px;
|
|
29
34
|
bottom: 100%;
|
|
30
|
-
box-shadow:
|
|
31
|
-
color:
|
|
32
|
-
font-size:
|
|
35
|
+
box-shadow: menus.$plyr-menu-shadow;
|
|
36
|
+
color: menus.$plyr-menu-color;
|
|
37
|
+
font-size: type.$plyr-font-size-base;
|
|
33
38
|
margin-bottom: 10px;
|
|
34
39
|
position: absolute;
|
|
35
40
|
right: -3px;
|
|
@@ -44,18 +49,18 @@
|
|
|
44
49
|
|
|
45
50
|
// Arrow
|
|
46
51
|
&::after {
|
|
47
|
-
border:
|
|
48
|
-
border-top-color:
|
|
52
|
+
border: menus.$plyr-menu-arrow-size solid transparent;
|
|
53
|
+
border-top-color: menus.$plyr-menu-background;
|
|
49
54
|
content: '';
|
|
50
55
|
height: 0;
|
|
51
56
|
position: absolute;
|
|
52
|
-
right: calc(((#{
|
|
57
|
+
right: calc(((#{controls.$plyr-control-icon-size} / 2) + #{controls.$plyr-control-padding}) - (#{menus.$plyr-menu-arrow-size} / 2));
|
|
53
58
|
top: 100%;
|
|
54
59
|
width: 0;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
[role='menu'] {
|
|
58
|
-
padding:
|
|
63
|
+
padding: controls.$plyr-control-padding;
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
[role='menuitem'],
|
|
@@ -70,13 +75,13 @@
|
|
|
70
75
|
// Options
|
|
71
76
|
.plyr__control {
|
|
72
77
|
align-items: center;
|
|
73
|
-
color:
|
|
78
|
+
color: menus.$plyr-menu-color;
|
|
74
79
|
display: flex;
|
|
75
|
-
font-size:
|
|
76
|
-
padding-bottom: calc(#{
|
|
77
|
-
padding-left: calc(#{
|
|
78
|
-
padding-right: calc(#{
|
|
79
|
-
padding-top: calc(#{
|
|
80
|
+
font-size: type.$plyr-font-size-menu;
|
|
81
|
+
padding-bottom: calc(#{controls.$plyr-control-padding} / 1.5);
|
|
82
|
+
padding-left: calc(#{controls.$plyr-control-padding} * 1.5);
|
|
83
|
+
padding-right: calc(#{controls.$plyr-control-padding} * 1.5);
|
|
84
|
+
padding-top: calc(#{controls.$plyr-control-padding} / 1.5);
|
|
80
85
|
user-select: none;
|
|
81
86
|
width: 100%;
|
|
82
87
|
|
|
@@ -87,7 +92,7 @@
|
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
&::after {
|
|
90
|
-
border:
|
|
95
|
+
border: menus.$plyr-menu-item-arrow-size solid transparent;
|
|
91
96
|
content: '';
|
|
92
97
|
position: absolute;
|
|
93
98
|
top: 50%;
|
|
@@ -95,11 +100,11 @@
|
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
&--forward {
|
|
98
|
-
padding-right: calc(#{
|
|
103
|
+
padding-right: calc(#{controls.$plyr-control-padding} * 4);
|
|
99
104
|
|
|
100
105
|
&::after {
|
|
101
|
-
border-left-color:
|
|
102
|
-
right: calc((#{
|
|
106
|
+
border-left-color: menus.$plyr-menu-item-arrow-color;
|
|
107
|
+
right: calc((#{controls.$plyr-control-padding} * 1.5) - #{menus.$plyr-menu-item-arrow-size});
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
&.plyr__tab-focus::after,
|
|
@@ -109,25 +114,25 @@
|
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
&--back {
|
|
112
|
-
font-weight:
|
|
113
|
-
margin:
|
|
114
|
-
margin-bottom: calc(#{
|
|
115
|
-
padding-left: calc(#{
|
|
117
|
+
font-weight: type.$plyr-font-weight-regular;
|
|
118
|
+
margin: controls.$plyr-control-padding;
|
|
119
|
+
margin-bottom: calc(#{controls.$plyr-control-padding} / 2);
|
|
120
|
+
padding-left: calc(#{controls.$plyr-control-padding} * 4);
|
|
116
121
|
position: relative;
|
|
117
|
-
width: calc(100% - (#{
|
|
122
|
+
width: calc(100% - (#{controls.$plyr-control-padding} * 2));
|
|
118
123
|
|
|
119
124
|
&::after {
|
|
120
|
-
border-right-color:
|
|
121
|
-
left: calc((#{
|
|
125
|
+
border-right-color: menus.$plyr-menu-item-arrow-color;
|
|
126
|
+
left: calc((#{controls.$plyr-control-padding} * 1.5) - #{menus.$plyr-menu-item-arrow-size});
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
&::before {
|
|
125
|
-
background:
|
|
126
|
-
box-shadow: 0 1px 0
|
|
130
|
+
background: menus.$plyr-menu-back-border-color;
|
|
131
|
+
box-shadow: 0 1px 0 menus.$plyr-menu-back-border-shadow-color;
|
|
127
132
|
content: '';
|
|
128
133
|
height: 1px;
|
|
129
134
|
left: 0;
|
|
130
|
-
margin-top: calc(#{
|
|
135
|
+
margin-top: calc(#{controls.$plyr-control-padding} / 2);
|
|
131
136
|
overflow: hidden;
|
|
132
137
|
position: absolute;
|
|
133
138
|
right: 0;
|
|
@@ -142,7 +147,7 @@
|
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
.plyr__control[role='menuitemradio'] {
|
|
145
|
-
padding-left:
|
|
150
|
+
padding-left: controls.$plyr-control-padding;
|
|
146
151
|
|
|
147
152
|
&::before,
|
|
148
153
|
&::after {
|
|
@@ -155,7 +160,7 @@
|
|
|
155
160
|
display: block;
|
|
156
161
|
flex-shrink: 0;
|
|
157
162
|
height: 16px;
|
|
158
|
-
margin-right:
|
|
163
|
+
margin-right: controls.$plyr-control-spacing;
|
|
159
164
|
transition: all 0.3s ease;
|
|
160
165
|
width: 16px;
|
|
161
166
|
}
|
|
@@ -174,7 +179,7 @@
|
|
|
174
179
|
|
|
175
180
|
&[aria-checked='true'] {
|
|
176
181
|
&::before {
|
|
177
|
-
background:
|
|
182
|
+
background: controls.$plyr-control-toggle-checked-background;
|
|
178
183
|
}
|
|
179
184
|
&::after {
|
|
180
185
|
opacity: 1;
|
|
@@ -184,7 +189,7 @@
|
|
|
184
189
|
|
|
185
190
|
&.plyr__tab-focus::before,
|
|
186
191
|
&:hover::before {
|
|
187
|
-
background: rgba(
|
|
192
|
+
background: rgba(colors.$plyr-color-gray-900, 0.1);
|
|
188
193
|
}
|
|
189
194
|
}
|
|
190
195
|
|
|
@@ -193,9 +198,9 @@
|
|
|
193
198
|
align-items: center;
|
|
194
199
|
display: flex;
|
|
195
200
|
margin-left: auto;
|
|
196
|
-
margin-right: calc((#{
|
|
201
|
+
margin-right: calc((#{controls.$plyr-control-padding} - 2) * -1);
|
|
197
202
|
overflow: hidden;
|
|
198
|
-
padding-left: calc(#{
|
|
203
|
+
padding-left: calc(#{controls.$plyr-control-padding} * 3.5);
|
|
199
204
|
pointer-events: none;
|
|
200
205
|
}
|
|
201
206
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
@use "settings/progress";
|
|
2
|
+
@use "settings/sliders";
|
|
3
|
+
@use "settings/type";
|
|
4
|
+
|
|
1
5
|
// --------------------------------------------------------------
|
|
2
6
|
// Playback progress
|
|
3
7
|
// --------------------------------------------------------------
|
|
4
8
|
|
|
5
9
|
// Offset the range thumb in order to be able to calculate the relative progress (#954)
|
|
6
|
-
$plyr-progress-offset:
|
|
10
|
+
$plyr-progress-offset: sliders.$plyr-range-thumb-height;
|
|
7
11
|
|
|
8
12
|
.plyr__progress {
|
|
9
13
|
left: calc(#{$plyr-progress-offset} * 0.5);
|
|
@@ -24,7 +28,7 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|
|
24
28
|
|
|
25
29
|
// Seek tooltip to show time
|
|
26
30
|
.plyr__tooltip {
|
|
27
|
-
font-size:
|
|
31
|
+
font-size: type.$plyr-font-size-time;
|
|
28
32
|
left: 0;
|
|
29
33
|
}
|
|
30
34
|
}
|
|
@@ -34,9 +38,9 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|
|
34
38
|
background: transparent;
|
|
35
39
|
border: 0;
|
|
36
40
|
border-radius: 100px;
|
|
37
|
-
height:
|
|
41
|
+
height: sliders.$plyr-range-track-height;
|
|
38
42
|
left: 0;
|
|
39
|
-
margin-top: calc((#{
|
|
43
|
+
margin-top: calc((#{sliders.$plyr-range-track-height} / 2) * -1);
|
|
40
44
|
padding: 0;
|
|
41
45
|
position: absolute;
|
|
42
46
|
top: 50%;
|
|
@@ -48,7 +52,7 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|
|
48
52
|
&::-webkit-progress-value {
|
|
49
53
|
background: currentColor;
|
|
50
54
|
border-radius: 100px;
|
|
51
|
-
min-width:
|
|
55
|
+
min-width: sliders.$plyr-range-track-height;
|
|
52
56
|
transition: width 0.2s ease;
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -56,7 +60,7 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|
|
56
60
|
&::-moz-progress-bar {
|
|
57
61
|
background: currentColor;
|
|
58
62
|
border-radius: 100px;
|
|
59
|
-
min-width:
|
|
63
|
+
min-width: sliders.$plyr-range-track-height;
|
|
60
64
|
transition: width 0.2s ease;
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -72,23 +76,23 @@ $plyr-progress-offset: $plyr-range-thumb-height;
|
|
|
72
76
|
animation: plyr-progress 1s linear infinite;
|
|
73
77
|
background-image: linear-gradient(
|
|
74
78
|
-45deg,
|
|
75
|
-
|
|
79
|
+
progress.$plyr-progress-loading-background 25%,
|
|
76
80
|
transparent 25%,
|
|
77
81
|
transparent 50%,
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
progress.$plyr-progress-loading-background 50%,
|
|
83
|
+
progress.$plyr-progress-loading-background 75%,
|
|
80
84
|
transparent 75%,
|
|
81
85
|
transparent
|
|
82
86
|
);
|
|
83
87
|
background-repeat: repeat-x;
|
|
84
|
-
background-size:
|
|
88
|
+
background-size: progress.$plyr-progress-loading-size progress.$plyr-progress-loading-size;
|
|
85
89
|
color: transparent;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
.plyr--video.plyr--loading .plyr__progress__buffer {
|
|
89
|
-
background-color:
|
|
93
|
+
background-color: progress.$plyr-video-progress-buffered-background;
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
.plyr--audio.plyr--loading .plyr__progress__buffer {
|
|
93
|
-
background-color:
|
|
97
|
+
background-color: progress.$plyr-audio-progress-buffered-background;
|
|
94
98
|
}
|