@outbook/webcomponents-player 1.4.2 → 1.4.4
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outbook/webcomponents-player",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"main": "player.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"playlist"
|
|
13
13
|
],
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://gitlab.com/arr2019/
|
|
15
|
+
"url": "https://gitlab.com/arr2019/outbook-toolkit/issues"
|
|
16
16
|
},
|
|
17
|
-
"homepage": "https://gitlab.com/arr2019/
|
|
17
|
+
"homepage": "https://gitlab.com/arr2019/outbook-toolkit/pkg/web-components/player#readme",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "git+https://gitlab.com/arr2019/
|
|
20
|
+
"url": "git+https://gitlab.com/arr2019/outbook-toolkit.git",
|
|
21
21
|
"folder": "pkg/web-components/player"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"color.js": "1.2.0",
|
|
32
32
|
"custom-event-conjurer": "1.0.0",
|
|
33
33
|
"mystic-format-time": "1.0.2",
|
|
34
|
-
"@outbook/webcomponents-scrollable": ">=1.0.
|
|
35
|
-
"@outbook/webcomponents-type-icon": ">=1.1.
|
|
36
|
-
"@outbook/webcomponents-badge-file-extension": ">=1.2.
|
|
37
|
-
"@outbook/webcomponents-player-artwork": ">=1.
|
|
38
|
-
"@outbook/webcomponents-player-timeline": ">=1.0.
|
|
39
|
-
"@outbook/icons": ">=1.3.
|
|
34
|
+
"@outbook/webcomponents-scrollable": ">=1.0.1",
|
|
35
|
+
"@outbook/webcomponents-type-icon": ">=1.1.3",
|
|
36
|
+
"@outbook/webcomponents-badge-file-extension": ">=1.2.2",
|
|
37
|
+
"@outbook/webcomponents-player-artwork": ">=1.1.2",
|
|
38
|
+
"@outbook/webcomponents-player-timeline": ">=1.0.2",
|
|
39
|
+
"@outbook/icons": ">=1.3.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@outbook/colorful": ">=1.1.
|
|
43
|
-
"@outbook/design-decisions": ">=1.1.
|
|
42
|
+
"@outbook/colorful": ">=1.1.4",
|
|
43
|
+
"@outbook/design-decisions": ">=1.1.7",
|
|
44
44
|
"@outbook/webcomponents-player-artwork": ">=1.0.0",
|
|
45
45
|
"@outbook/webcomponents-player-timeline": ">=1.0.0"
|
|
46
46
|
},
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@use '@outbook/design-decisions/measures';
|
|
2
|
-
@use '@outbook/design-decisions/outline';
|
|
3
|
-
@use '../_lib/variables';
|
|
4
|
-
|
|
5
|
-
@mixin style() {
|
|
6
|
-
.player-controls {
|
|
7
|
-
--_controls-color: light-dark(
|
|
8
|
-
var(--_accent-950),
|
|
9
|
-
var(--_accent-100)
|
|
10
|
-
);
|
|
11
|
-
--_controls-size: #{measures.$baseline * 6};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@container player (width >= #{variables.$player-widht-m}) {
|
|
15
|
-
.player-controls {
|
|
16
|
-
--_controls-size: #{measures.$baseline * 7};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@container player (width >= #{variables.$player-widht-l}) {
|
|
21
|
-
.player-controls {
|
|
22
|
-
--_controls-size: #{measures.$baseline * 8};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.player-controls,
|
|
27
|
-
.player-controls__items {
|
|
28
|
-
width: auto;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.player-controls__items {
|
|
32
|
-
display: flex;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.player-controls__button {
|
|
36
|
-
background: transparent;
|
|
37
|
-
border: 0;
|
|
38
|
-
color: var(--_controls-color);
|
|
39
|
-
&:focus-visible {
|
|
40
|
-
@include outline.inside();
|
|
41
|
-
}
|
|
42
|
-
&.is-disabled {
|
|
43
|
-
opacity: 0.4;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.player-controls__icon {
|
|
47
|
-
width: var(--_controls-size);
|
|
48
|
-
height: var(--_controls-size);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
@use '@outbook/design-decisions/measures';
|
|
2
|
-
@use '@outbook/design-decisions/animation-pulse';
|
|
3
|
-
@use '@outbook/design-decisions/outline';
|
|
4
|
-
@use '../_lib/variables';
|
|
5
|
-
|
|
6
|
-
@mixin style() {
|
|
7
|
-
.player-playlist {
|
|
8
|
-
--_playlist-font-weight: normal;
|
|
9
|
-
--_playlist-font-size: #{measures.$baseline * 1.5};
|
|
10
|
-
--_playlist-font-size-small: #{measures.$baseline * 1.25};
|
|
11
|
-
--_playlist-item-background-color: transparent;
|
|
12
|
-
--_playlist-item-image-size: #{measures.$baseline * 6};
|
|
13
|
-
.is-playing {
|
|
14
|
-
--_playlist-font-weight: 600;
|
|
15
|
-
--_playlist-item-background-color: var(--_accent-200);
|
|
16
|
-
.ambient-dark & {
|
|
17
|
-
--_playlist-item-background-color: var(--_accent-700);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@container player (width >= #{variables.$player-widht-m}) {
|
|
23
|
-
.player-playlist {
|
|
24
|
-
--_playlist-font-size: #{measures.$baseline * 1.75};
|
|
25
|
-
--_playlist-font-size-small: #{measures.$baseline * 1.5};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
@container player (width >= #{variables.$player-widht-l}) {
|
|
29
|
-
.player-playlist {
|
|
30
|
-
--_playlist-font-size: #{measures.$baseline * 2};
|
|
31
|
-
--_playlist-font-size-small: #{measures.$baseline * 1.75};
|
|
32
|
-
--_playlist-item-image-size: #{measures.$baseline * 8};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.player-playlist {
|
|
37
|
-
.track-text__item {
|
|
38
|
-
font-weight: var(--_playlist-font-weight);
|
|
39
|
-
font-size: var(--_playlist-font-size);
|
|
40
|
-
line-height: 150%;
|
|
41
|
-
&.size-small {
|
|
42
|
-
font-size: var(--_playlist-font-size-small);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.player-playlist__items {
|
|
48
|
-
padding: 0;
|
|
49
|
-
position: relative;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.player-playlist__item {
|
|
53
|
-
position: relative;
|
|
54
|
-
border-bottom: 1px solid var(--_separator-color);
|
|
55
|
-
&.is-playing {
|
|
56
|
-
&:before {
|
|
57
|
-
content: "";
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 0;
|
|
60
|
-
left: 0;
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 100%;
|
|
63
|
-
opacity: 0.45;
|
|
64
|
-
@include animation-pulse.background();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&:last-child {
|
|
68
|
-
border-bottom: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.player-playlist__item-button {
|
|
73
|
-
display: flex;
|
|
74
|
-
padding: #{measures.$baseline};
|
|
75
|
-
position: relative;
|
|
76
|
-
align-items: center;
|
|
77
|
-
&:focus-visible {
|
|
78
|
-
@include outline.inside();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.player-playlist__item-group,
|
|
83
|
-
.player-playlist__item-block {
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
margin-left: #{measures.$baseline * 2};
|
|
87
|
-
height: var(--_playlist-item-image-size);
|
|
88
|
-
&:first-child {
|
|
89
|
-
margin-left: 0;
|
|
90
|
-
}
|
|
91
|
-
&.is-last-right {
|
|
92
|
-
margin-left: auto;
|
|
93
|
-
padding-left: #{measures.$baseline};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.player-playlist__item-image {
|
|
98
|
-
width: var(--_playlist-item-image-size);
|
|
99
|
-
height: var(--_playlist-item-image-size);
|
|
100
|
-
flex-shrink: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.player-playlist__item-playing-icon {
|
|
104
|
-
width: #{measures.$baseline * 2};
|
|
105
|
-
height: #{measures.$baseline * 2};
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.player-playlist__item-playing-icon-inner {
|
|
111
|
-
width: 100%;
|
|
112
|
-
aspect-ratio: 1 / 1;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
@use '@outbook/design-decisions/measures';
|
|
2
|
-
@use '../_lib/variables';
|
|
3
|
-
|
|
4
|
-
@mixin style() {
|
|
5
|
-
$height-xs: measures.$baseline * 8;
|
|
6
|
-
|
|
7
|
-
.track-info {
|
|
8
|
-
--track-info--flex-direction: row;
|
|
9
|
-
--track-info--image-width: #{measures.$baseline * 8};
|
|
10
|
-
--track-info--image-separation-horizontal: #{measures.$baseline * 2};
|
|
11
|
-
--track-info--image-separation-vertical: 0;
|
|
12
|
-
--track-info--height: #{$height-xs};
|
|
13
|
-
}
|
|
14
|
-
@container player (width >= #{variables.$player-widht-m}) {
|
|
15
|
-
.track-info {
|
|
16
|
-
--track-info--flex-direction: column;
|
|
17
|
-
--track-info--image-width: 100%;
|
|
18
|
-
--track-info--image-separation-horizontal: 0;
|
|
19
|
-
--track-info--image-separation-vertical: #{measures.$baseline * 2};
|
|
20
|
-
--track-info--height: auto;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.track-info__inner {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: var(--track-info--flex-direction);
|
|
28
|
-
height: var(--track-info--height);
|
|
29
|
-
.track-text__item {
|
|
30
|
-
font-size: #{measures.$baseline * 2};
|
|
31
|
-
line-height: 150%;
|
|
32
|
-
&.size-small {
|
|
33
|
-
font-size: #{measures.$baseline * 1.5}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.track-info__image {
|
|
39
|
-
width: var(--track-info--image-width);
|
|
40
|
-
flex-shrink: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
margin-right: var(--track-info--image-separation-horizontal);
|
|
44
|
-
margin-bottom: var(--track-info--image-separation-vertical);
|
|
45
|
-
& > * {
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.track-info__data {
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
}
|
|
54
|
-
}
|