@total_onion/onion-library 1.1.14 → 1.1.16
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,9 +1,120 @@
|
|
|
1
|
+
@use '../fields-core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use '../fields-core-functions-v3/core-functions-v3';
|
|
3
|
+
@use '../../breakpoints';
|
|
1
4
|
// @use 'NodeModules/@pernod-ricard-global-cms/cblvideocontroller/vc-styles';
|
|
2
5
|
// @use 'Assets/scss/blocks/video-content-v3/video-content-v3-extra';
|
|
3
6
|
.video-content-v3 {
|
|
4
7
|
display: grid;
|
|
5
8
|
grid-template: 'main' / 1fr;
|
|
6
9
|
// @include vc-styles.basic();
|
|
10
|
+
&__video-container {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template: 'video' / 1fr;
|
|
13
|
+
grid-area: main;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
background-color: black;
|
|
19
|
+
transition: opacity 0.5s, background-color 1s;
|
|
20
|
+
z-index: -1;
|
|
21
|
+
|
|
22
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
23
|
+
object-fit: cover;
|
|
24
|
+
grid-area: main;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.video-playing {
|
|
28
|
+
pointer-events: all;
|
|
29
|
+
opacity: 1;
|
|
30
|
+
z-index: 10;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.lock-video-aspect-to-image {
|
|
34
|
+
iframe,
|
|
35
|
+
video {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 0;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.set-video-to-cover {
|
|
44
|
+
iframe,
|
|
45
|
+
video {
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
object-position: center;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.loading-wrapper {
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 50%;
|
|
54
|
+
top: 50%;
|
|
55
|
+
transform: translate(-50%, -50%);
|
|
56
|
+
width: core-functions-v3.fluidSize(84, 'static');
|
|
57
|
+
height: core-functions-v3.fluidSize(84, 'static');
|
|
58
|
+
|
|
59
|
+
--spinner-bg-colour: #ffffff54;
|
|
60
|
+
--spinner-colour: white;
|
|
61
|
+
|
|
62
|
+
&:before {
|
|
63
|
+
content: '';
|
|
64
|
+
top: 0;
|
|
65
|
+
left: 0;
|
|
66
|
+
width: core-functions-v3.fluidSize(84, 'static');
|
|
67
|
+
height: core-functions-v3.fluidSize(84, 'static');
|
|
68
|
+
position: absolute;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
border-right: solid core-functions-v3.fluidSize(5, 'static')
|
|
71
|
+
var(--spinner-bg-colour);
|
|
72
|
+
border-left: solid core-functions-v3.fluidSize(5, 'static')
|
|
73
|
+
var(--spinner-bg-colour);
|
|
74
|
+
border-top: solid core-functions-v3.fluidSize(5, 'static')
|
|
75
|
+
var(--spinner-bg-colour);
|
|
76
|
+
border-bottom: solid core-functions-v3.fluidSize(5, 'static')
|
|
77
|
+
var(--spinner-colour);
|
|
78
|
+
animation: rotate 1s linear infinite;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&__video-play-button {
|
|
84
|
+
grid-area: main;
|
|
85
|
+
place-self: center;
|
|
86
|
+
// @include playButtonDefault();
|
|
87
|
+
transform: scale(1);
|
|
88
|
+
transition: transform 0.3s 0.5s;
|
|
89
|
+
|
|
90
|
+
&.video-playing {
|
|
91
|
+
transform: scale(0);
|
|
92
|
+
transition: transform 0.5s;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
max-height: 0px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__video-inner-container {
|
|
100
|
+
grid-area: video;
|
|
101
|
+
display: flex;
|
|
102
|
+
width: 100%;
|
|
103
|
+
position: relative;
|
|
104
|
+
|
|
105
|
+
iframe {
|
|
106
|
+
left: 0;
|
|
107
|
+
top: 0;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&__video-player {
|
|
114
|
+
height: auto;
|
|
115
|
+
object-fit: contain;
|
|
116
|
+
width: 100%;
|
|
117
|
+
}
|
|
7
118
|
&:has(.video-playing) {
|
|
8
119
|
z-index: 99;
|
|
9
120
|
}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
2
|
+
"name": "@total_onion/onion-library",
|
|
3
|
+
"version": "1.1.16",
|
|
4
|
+
"description": "Component library",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "esbuild",
|
|
8
|
+
"test": "jest"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/TotalOnion/onion-library.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "Ciaran",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/TotalOnion/onion-library/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/TotalOnion/onion-library#readme",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"autoprefixer": "^10.4.21",
|
|
22
|
+
"compressing": "^2.0.0",
|
|
23
|
+
"cpy": "^9.0.1",
|
|
24
|
+
"esbuild-sass-plugin": "^3.3.1",
|
|
25
|
+
"fs": "^0.0.1-security",
|
|
26
|
+
"fs-extra": "^11.1.0",
|
|
27
|
+
"glob": "^11.0.0",
|
|
28
|
+
"lottie-web": "^5.13.0",
|
|
29
|
+
"postcss": "^8.5.6",
|
|
30
|
+
"postcss-preset-env": "^10.3.1",
|
|
31
|
+
"prettier": "^2.6.2",
|
|
32
|
+
"yargs": "^17.4.1"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@total_onion/onion-modalcontroller": "^1.0.5",
|
|
36
|
+
"@total_onion/onion-utils": "^1.0.10",
|
|
37
|
+
"@total_onion/onion-videocontroller": "^1.0.2",
|
|
38
|
+
"dotenv": "^16.0.3",
|
|
39
|
+
"esbuild": "0.25.5",
|
|
40
|
+
"flatpickr": "^4.6.13",
|
|
41
|
+
"swiper": "^11.2.10"
|
|
42
|
+
}
|
|
43
|
+
}
|