@web-atoms/web-controls 2.4.60 → 2.4.62
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/animations/Animations.d.ts +1 -0
- package/dist/animations/Animations.d.ts.map +1 -1
- package/dist/animations/Animations.global.less.css +26 -0
- package/dist/animations/Animations.global.less.css.map +1 -0
- package/dist/animations/Animations.js +4 -36
- package/dist/animations/Animations.js.map +1 -1
- package/dist/basic/Button.d.ts +1 -0
- package/dist/basic/Button.d.ts.map +1 -1
- package/dist/basic/Button.js +4 -41
- package/dist/basic/Button.js.map +1 -1
- package/dist/basic/Button.local.less.css +38 -0
- package/dist/basic/Button.local.less.css.map +1 -0
- package/dist/player/AtomVideoPlayer.d.ts +1 -0
- package/dist/player/AtomVideoPlayer.d.ts.map +1 -1
- package/dist/player/AtomVideoPlayer.global.less.css +177 -0
- package/dist/player/AtomVideoPlayer.global.less.css.map +1 -0
- package/dist/player/AtomVideoPlayer.js +3 -229
- package/dist/player/AtomVideoPlayer.js.map +1 -1
- package/dist/styles/desktop-app.global.less.css +10 -10
- package/dist/styles/desktop-app.global.less.css.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/animations/Animations.global.less +31 -0
- package/src/animations/Animations.ts +1 -32
- package/src/basic/Button.local.less +36 -0
- package/src/basic/Button.tsx +3 -37
- package/src/player/AtomVideoPlayer.global.less +222 -0
- package/src/player/AtomVideoPlayer.tsx +1 -226
- package/src/styles/desktop-app.global.less +52 -55
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./Animations.global.less";
|
|
1
2
|
export default class Animations {
|
|
2
3
|
static slideFromBottom: import("@web-atoms/core/dist/web/controls/AtomControl").PropertyRegistration;
|
|
3
4
|
static slideFromTop: import("@web-atoms/core/dist/web/controls/AtomControl").PropertyRegistration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Animations.d.ts","sourceRoot":"","sources":["../../src/animations/Animations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Animations.d.ts","sourceRoot":"","sources":["../../src/animations/Animations.ts"],"names":[],"mappings":"AAEA,OAAO,0BAA0B,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,UAAU;IAE3B,OAAc,eAAe,+EAe1B;IAEH,OAAc,YAAY,+EAevB;CAEN"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[data-animate-slide=from-bottom] {
|
|
2
|
+
transition: all 0.5s ease-out;
|
|
3
|
+
}
|
|
4
|
+
[data-animate-slide=from-bottom]:not([data-animation-state]) {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
[data-animate-slide=from-bottom][data-animation-state=down] {
|
|
8
|
+
transform: translate(0, 100%);
|
|
9
|
+
}
|
|
10
|
+
[data-animate-slide=from-bottom][data-animation-state=normal] {
|
|
11
|
+
transform: translate(0, 0);
|
|
12
|
+
}
|
|
13
|
+
[data-animate-slide=from-top] {
|
|
14
|
+
transition: all 0.5s ease-out;
|
|
15
|
+
}
|
|
16
|
+
[data-animate-slide=from-top]:not([data-animation-state]) {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
[data-animate-slide=from-top][data-animation-state=up] {
|
|
20
|
+
transform: translate(0, -100%);
|
|
21
|
+
}
|
|
22
|
+
[data-animate-slide=from-top][data-animation-state=normal] {
|
|
23
|
+
transform: translate(0, 0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/*# sourceMappingURL=Animations.global.less.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["animations/Animations.global.less"],"names":[],"mappings":"AAAA;EACI,6BAAA;;AAEA,gCAAC,IAAI;EACD,aAAA;;AAGJ,gCAAC;EACG,WAAW,kBAAX;;AAGJ,gCAAC;EACG,WAAW,eAAX;;AAIR;EACI,6BAAA;;AAEA,6BAAC,IAAI;EACD,aAAA;;AAGJ,6BAAC;EACG,WAAW,mBAAX;;AAGJ,6BAAC;EACG,WAAW,eAAX","sourcesContent":["[data-animate-slide=from-bottom] {\n transition: all 0.5s ease-out;\n\n &:not([data-animation-state]) {\n display: none;\n }\n \n &[data-animation-state=down] {\n transform: translate(0,100%);\n }\n \n &[data-animation-state=normal] {\n transform: translate(0,0); \n }\n}\n\n[data-animate-slide=from-top] {\n transition: all 0.5s ease-out;\n\n &:not([data-animation-state]) {\n display: none;\n }\n \n &[data-animation-state=up] {\n transform: translate(0,-100%);\n }\n \n &[data-animation-state=normal] {\n transform: translate(0,0);\n }\n}"],"file":"Animations.global.less.css"}
|
|
@@ -1,44 +1,12 @@
|
|
|
1
|
-
System.register(["@web-atoms/core/dist/
|
|
1
|
+
System.register(["@web-atoms/core/dist/web/controls/AtomControl", "./Animations.global.less"], function (_export, _context) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var AtomControl, Animations;
|
|
5
5
|
return {
|
|
6
|
-
setters: [function (
|
|
7
|
-
styled = _webAtomsCoreDistStyleStyled.default;
|
|
8
|
-
}, function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
6
|
+
setters: [function (_webAtomsCoreDistWebControlsAtomControl) {
|
|
9
7
|
AtomControl = _webAtomsCoreDistWebControlsAtomControl.AtomControl;
|
|
10
|
-
}],
|
|
8
|
+
}, function (_AnimationsGlobalLess) {}],
|
|
11
9
|
execute: function () {
|
|
12
|
-
styled.css`
|
|
13
|
-
transition: all 0.5s ease-out;
|
|
14
|
-
|
|
15
|
-
&:not([data-animation-state]) {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&[data-animation-state=down] {
|
|
20
|
-
transform: translate(0,100%);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&[data-animation-state=normal] {
|
|
24
|
-
transform: translate(0,0);
|
|
25
|
-
}
|
|
26
|
-
`.installGlobal("[data-animate-slide=from-bottom]");
|
|
27
|
-
styled.css`
|
|
28
|
-
transition: all 0.5s ease-out;
|
|
29
|
-
|
|
30
|
-
&:not([data-animation-state]) {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&[data-animation-state=up] {
|
|
35
|
-
transform: translate(0,-100%);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&[data-animation-state=normal] {
|
|
39
|
-
transform: translate(0,0);
|
|
40
|
-
}
|
|
41
|
-
`.installGlobal("[data-animate-slide=from-top]");
|
|
42
10
|
Animations = class Animations {};
|
|
43
11
|
Animations.slideFromBottom = AtomControl.registerProperty("animate", "bottom-slide", (ctrl, e, v) => {
|
|
44
12
|
e.dataset.animateSlide = "from-bottom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Animations","setters","
|
|
1
|
+
{"version":3,"names":["Animations","setters","_webAtomsCoreDistWebControlsAtomControl","AtomControl","_AnimationsGlobalLess","execute","slideFromBottom","registerProperty","ctrl","e","v","dataset","animateSlide","animationState","setTimeout","removeAttribute","slideFromTop","_export"],"sources":["../../src/animations/Animations.ts"],"sourcesContent":[null],"mappings":";;;mBAKqBA,UAAU;EAAA;IAAAC,OAAA,aAAAC,uCAAA;MALtBC,WAAW,GAAAD,uCAAA,CAAXC,WAAW;IAAA,aAAAC,qBAAA;IAAAC,OAAA,WAAAA,CAAA;MAKCL,UAAU,GAA/B,MAAqBA,UAAU,G;MAEbA,UAAA,CAAAM,eAAe,GAAGH,WAAW,CAACI,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,CAACC,IAAI,EAAEC,CAAC,EAAEC,CAAC,KAAI;QACnGD,CAAC,CAACE,OAAO,CAACC,YAAY,GAAG,aAAa;QACtC,IAAIF,CAAC,EAAE;UACHD,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,MAAM;UACjCC,UAAU,CAAC,MAAK;YACZL,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,QAAQ;UACvC,CAAC,EAAE,EAAE,CAAC;UACN;QACJ;QACA,IAAIJ,CAAC,CAACE,OAAO,CAACE,cAAc,KAAK,QAAQ,EAAE;UACvCJ,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,MAAM;QACrC;QACAC,UAAU,CAAC,MAAK;UACZL,CAAC,CAACM,eAAe,CAAC,sBAAsB,CAAC;QAC7C,CAAC,EAAE,GAAG,CAAC;MACX,CAAC,CAAC;MAEYf,UAAA,CAAAgB,YAAY,GAAGb,WAAW,CAACI,gBAAgB,CAAC,SAAS,EAAE,WAAW,EAAE,CAACC,IAAI,EAAEC,CAAC,EAAEC,CAAC,KAAI;QAC7FD,CAAC,CAACE,OAAO,CAACC,YAAY,GAAG,UAAU;QACnC,IAAIF,CAAC,EAAE;UACHD,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,IAAI;UAC/BC,UAAU,CAAC,MAAK;YACZL,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,QAAQ;UACvC,CAAC,EAAE,EAAE,CAAC;UACN;QACJ;QACA,IAAIJ,CAAC,CAACE,OAAO,CAACE,cAAc,KAAK,QAAQ,EAAE;UACvCJ,CAAC,CAACE,OAAO,CAACE,cAAc,GAAG,IAAI;QACnC;QACAC,UAAU,CAAC,MAAK;UACZL,CAAC,CAACM,eAAe,CAAC,sBAAsB,CAAC;QAC7C,CAAC,EAAE,GAAG,CAAC;MACX,CAAC,CAAC;MAACE,OAAA,YAlCcjB,UAAU;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/basic/Button.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/basic/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/basic/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,OAAO;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,iBAAwB,MAAM,CAAC,EAC3B,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,KAAK,EACL,YAAY,EACZ,KAAK,EAAE,SAAS,EAChB,QAAQ,EACX,EAAE,OAAO,OA+BT;kBA1CuB,MAAM;;;eAAN,MAAM"}
|
package/dist/basic/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
System.register(["@web-atoms/core/dist/core/XNode", "
|
|
1
|
+
System.register(["@web-atoms/core/dist/core/XNode", "./Button.local.less"], function (_export, _context) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var XNode,
|
|
4
|
+
var XNode, css;
|
|
5
5
|
function Button({
|
|
6
6
|
id,
|
|
7
7
|
icon,
|
|
@@ -51,46 +51,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/
|
|
|
51
51
|
return {
|
|
52
52
|
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
53
53
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
54
|
-
}, function (
|
|
55
|
-
styled = _webAtomsCoreDistStyleStyled.default;
|
|
56
|
-
}],
|
|
54
|
+
}, function (_ButtonLocalLess) {}],
|
|
57
55
|
execute: function () {
|
|
58
|
-
css =
|
|
59
|
-
padding: 8px;
|
|
60
|
-
margin-left: 3px;
|
|
61
|
-
margin-right: 3px;
|
|
62
|
-
border-radius: 9999px;
|
|
63
|
-
display: inline-block;
|
|
64
|
-
height: 40px;
|
|
65
|
-
min-width: 40px;
|
|
66
|
-
box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;
|
|
67
|
-
border: solid 1px rgba(0, 0, 0, 0.05);
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
background-color: transparent;
|
|
70
|
-
&.pressed {
|
|
71
|
-
background-color: lightsteelblue;
|
|
72
|
-
}
|
|
73
|
-
&:hover {
|
|
74
|
-
background-color: lightgreen;
|
|
75
|
-
}
|
|
76
|
-
& > label.label {
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: 5px;
|
|
80
|
-
& > .fad {
|
|
81
|
-
font-size: larger;
|
|
82
|
-
width: 100%;
|
|
83
|
-
color: purple;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
&.red {
|
|
86
|
-
color: red;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
& > span {
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
`.installLocal();
|
|
56
|
+
css = "web-atoms-button";
|
|
94
57
|
Button.className = css;
|
|
95
58
|
}
|
|
96
59
|
};
|
package/dist/basic/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Button","id","icon","text","eventClick","href","target","title","styleDisplay","class","className","subClass","console","warn","cn","css","XNode","create","_export","setters","_webAtomsCoreDistCoreXNode","default","
|
|
1
|
+
{"version":3,"names":["Button","id","icon","text","eventClick","href","target","title","styleDisplay","class","className","subClass","console","warn","cn","css","XNode","create","_export","setters","_webAtomsCoreDistCoreXNode","default","_ButtonLocalLess","execute"],"sources":["../../src/basic/Button.tsx"],"sourcesContent":[null],"mappings":";;;;EAmBc,SAAUA,MAAMA,CAAC;IAC3BC,EAAE;IACFC,IAAI;IACJC,IAAI;IACJC,UAAU;IACVC,IAAI;IACJC,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ACU,SAAS,GAAGK,GAAG;IAAC;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.web-atoms-button {
|
|
2
|
+
padding: 8px;
|
|
3
|
+
margin-left: 3px;
|
|
4
|
+
margin-right: 3px;
|
|
5
|
+
border-radius: 9999px;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
height: 40px;
|
|
8
|
+
min-width: 40px;
|
|
9
|
+
box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;
|
|
10
|
+
border: solid 1px rgba(0, 0, 0, 0.05);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
}
|
|
14
|
+
.web-atoms-button.pressed {
|
|
15
|
+
background-color: lightsteelblue;
|
|
16
|
+
}
|
|
17
|
+
.web-atoms-button:hover {
|
|
18
|
+
background-color: lightgreen;
|
|
19
|
+
}
|
|
20
|
+
.web-atoms-button > label.label {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 5px;
|
|
24
|
+
}
|
|
25
|
+
.web-atoms-button > label.label > .fad {
|
|
26
|
+
font-size: larger;
|
|
27
|
+
width: 100%;
|
|
28
|
+
color: purple;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
.web-atoms-button > label.label > .fad.red {
|
|
32
|
+
color: red;
|
|
33
|
+
}
|
|
34
|
+
.web-atoms-button > label.label > span {
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/*# sourceMappingURL=Button.local.less.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["basic/Button.local.less"],"names":[],"mappings":"AAAA;EACI,YAAA;EACA,gBAAA;EACA,iBAAA;EACA,qBAAA;EACA,qBAAA;EACA,YAAA;EACA,eAAA;EACA,wFAAA;EACA,qCAAA;EACA,eAAA;EACA,6BAAA;;AACA,iBAAC;EACG,gCAAA;;AAEJ,iBAAC;EACG,4BAAA;;AAEJ,iBAAE,QAAO;EACL,aAAA;EACA,mBAAA;EACA,QAAA;;AACA,iBAJF,QAAO,MAIH;EACE,iBAAA;EACA,WAAA;EACA,aAAA;EACA,eAAA;;AACA,iBATN,QAAO,MAIH,OAKG;EACG,UAAA;;AAGR,iBAbF,QAAO,MAaH;EACE,mBAAA","sourcesContent":[".web-atoms-button {\n padding: 8px;\n margin-left: 3px;\n margin-right: 3px;\n border-radius: 9999px;\n display: inline-block;\n height: 40px;\n min-width: 40px;\n box-shadow: rgba(50, 50, 105, 0.07) 0px 2px 5px 0px, rgba(0, 0, 0, 0.03) 0px 1px 1px 0px;\n border: solid 1px rgba(0, 0, 0, 0.05);\n cursor: pointer;\n background-color: transparent;\n &.pressed {\n background-color: lightsteelblue;\n }\n &:hover {\n background-color: lightgreen;\n }\n & > label.label {\n display: flex;\n align-items: center;\n gap: 5px;\n & > .fad {\n font-size: larger;\n width: 100%;\n color: purple;\n cursor: pointer;\n &.red {\n color: red;\n }\n }\n & > span {\n white-space: nowrap;\n }\n }\n}"],"file":"Button.local.less.css"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
2
|
+
import "./AtomVideoPlayer.global.less";
|
|
2
3
|
export type playerState = "playing" | "paused" | "ended" | "waiting" | "aborted" | "none";
|
|
3
4
|
export default class AtomVideoPlayer extends AtomControl {
|
|
4
5
|
source: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AtomVideoPlayer.d.ts","sourceRoot":"","sources":["../../src/player/AtomVideoPlayer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"AtomVideoPlayer.d.ts","sourceRoot":"","sources":["../../src/player/AtomVideoPlayer.tsx"],"names":[],"mappings":"AAIA,OAAO,E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|
|
3
|
+
grid-template-rows: auto 1fr auto auto auto;
|
|
4
|
+
grid-template-columns: auto 1fr auto;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
[data-video-player=video-player] > [data-element=banner] {
|
|
8
|
+
grid-row-start: 3;
|
|
9
|
+
grid-row-end: span 3;
|
|
10
|
+
grid-column-start: 1;
|
|
11
|
+
grid-column-end: span 3;
|
|
12
|
+
align-self: end;
|
|
13
|
+
justify-self: center;
|
|
14
|
+
height: 15%;
|
|
15
|
+
gap: 5px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
grid-template-columns: auto 1fr;
|
|
18
|
+
grid-template-rows: auto auto;
|
|
19
|
+
background-color: black;
|
|
20
|
+
color: white;
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
padding: 10px;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-items: stretch;
|
|
25
|
+
z-index: 2;
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
[data-video-player=video-player] > [data-element=banner][data-has-logo=true] {
|
|
29
|
+
display: grid;
|
|
30
|
+
}
|
|
31
|
+
[data-video-player=video-player] > [data-element=banner] > * {
|
|
32
|
+
min-height: 0;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
35
|
+
[data-video-player=video-player] > [data-element=banner] > [data-element=logo] {
|
|
36
|
+
grid-row: 1 / span 2;
|
|
37
|
+
grid-column: 1;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
[data-video-player=video-player] > [data-element=banner] > [data-element=logo-title] {
|
|
42
|
+
grid-row-start: 1;
|
|
43
|
+
grid-column-start: 2;
|
|
44
|
+
z-index: 2;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
}
|
|
50
|
+
[data-video-player=video-player] > [data-element=banner] > [data-element=logo-description] {
|
|
51
|
+
grid-row-start: 2;
|
|
52
|
+
grid-column-start: 2;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
font-size: smaller;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
}
|
|
59
|
+
[data-video-player=video-player] > [data-element=video],
|
|
60
|
+
[data-video-player=video-player] > [data-element=poster] {
|
|
61
|
+
grid-row-start: 1;
|
|
62
|
+
grid-row-end: span 5;
|
|
63
|
+
grid-column-start: 1;
|
|
64
|
+
grid-column-end: span 3;
|
|
65
|
+
align-self: stretch;
|
|
66
|
+
justify-self: stretch;
|
|
67
|
+
}
|
|
68
|
+
[data-video-player=video-player] > [data-element=play-element] {
|
|
69
|
+
z-index: 10;
|
|
70
|
+
grid-row-start: 1;
|
|
71
|
+
grid-row-end: span 5;
|
|
72
|
+
grid-column-start: 1;
|
|
73
|
+
grid-column-end: span 3;
|
|
74
|
+
align-self: center;
|
|
75
|
+
justify-self: center;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
gap: 4px;
|
|
80
|
+
display: flex;
|
|
81
|
+
}
|
|
82
|
+
[data-video-player=video-player] > [data-element=play-element] > button.play {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
color: #ffffff;
|
|
87
|
+
background-color: #0000ff;
|
|
88
|
+
border-radius: 9999px;
|
|
89
|
+
font-size: 25px;
|
|
90
|
+
padding: 10px;
|
|
91
|
+
width: 50px;
|
|
92
|
+
height: 50px;
|
|
93
|
+
text-align: center;
|
|
94
|
+
vertical-align: middle;
|
|
95
|
+
}
|
|
96
|
+
[data-video-player=video-player] > [data-element=play-element] > button.play > i {
|
|
97
|
+
margin-left: 4px;
|
|
98
|
+
}
|
|
99
|
+
[data-video-player=video-player] > [data-element=progress] {
|
|
100
|
+
z-index: 11;
|
|
101
|
+
grid-row-start: 4;
|
|
102
|
+
grid-column-start: 1;
|
|
103
|
+
grid-column-end: span 3;
|
|
104
|
+
align-self: flex-end;
|
|
105
|
+
height: 15px;
|
|
106
|
+
padding-top: 5px;
|
|
107
|
+
padding-bottom: 5px;
|
|
108
|
+
justify-self: stretch;
|
|
109
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
110
|
+
width: 100%;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
[data-video-player=video-player] > [data-element=toolbar] {
|
|
114
|
+
z-index: 10;
|
|
115
|
+
grid-row-start: 5;
|
|
116
|
+
grid-column-start: 1;
|
|
117
|
+
grid-column-end: span 3;
|
|
118
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
119
|
+
color: #ffffff;
|
|
120
|
+
flex-direction: row;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: flex-start;
|
|
123
|
+
gap: 4px;
|
|
124
|
+
display: flex;
|
|
125
|
+
}
|
|
126
|
+
[data-video-player=video-player] > [data-element=toolbar] > * {
|
|
127
|
+
min-width: 20px;
|
|
128
|
+
margin-left: 5px;
|
|
129
|
+
padding: 5px;
|
|
130
|
+
}
|
|
131
|
+
[data-video-player=video-player] > [data-element=toolbar] > [data-style=button] {
|
|
132
|
+
width: 30px;
|
|
133
|
+
height: 30px;
|
|
134
|
+
padding: 5px;
|
|
135
|
+
}
|
|
136
|
+
[data-video-player=video-player] > [data-element=toolbar] > [data-font-size=small] {
|
|
137
|
+
font-size: x-small;
|
|
138
|
+
}
|
|
139
|
+
[data-video-player=video-player] > [data-element=toolbar] > [data-element=volume-range] {
|
|
140
|
+
height: 2px;
|
|
141
|
+
color: #008000;
|
|
142
|
+
box-shadow: none;
|
|
143
|
+
border: none;
|
|
144
|
+
}
|
|
145
|
+
[data-video-player=video-player] > [data-element=toolbar] > [data-element=volume-range]:focus {
|
|
146
|
+
box-shadow: none;
|
|
147
|
+
border: none;
|
|
148
|
+
}
|
|
149
|
+
[data-video-player=video-player] > [data-element=toolbar] > [data-element=full-screen] {
|
|
150
|
+
margin-left: auto;
|
|
151
|
+
}
|
|
152
|
+
[data-video-player=video-player][data-controls=true] > [data-element=toolbar] {
|
|
153
|
+
display: flex;
|
|
154
|
+
}
|
|
155
|
+
[data-video-player=video-player][data-controls=true] > [data-element=progress] {
|
|
156
|
+
display: flex;
|
|
157
|
+
}
|
|
158
|
+
[data-video-player=video-player][data-state=playing][data-controls=false] > [data-element=play-element],
|
|
159
|
+
[data-video-player=video-player][data-state=playing][data-controls=false] > [data-element=progress],
|
|
160
|
+
[data-video-player=video-player][data-state=playing][data-controls=false] > [data-element=toolbar] {
|
|
161
|
+
display: none;
|
|
162
|
+
}
|
|
163
|
+
[data-video-player=video-player][data-state=waiting][data-controls=false] > [data-element=toolbar],
|
|
164
|
+
[data-video-player=video-player][data-state=waiting][data-controls=false] > [data-element=progress] {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
[data-video-player=video-player][data-state=waiting] > [data-element=toolbar] > [data-element=play] {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
[data-video-player=video-player][data-state=waiting] > [data-element=play-element] {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
[data-video-player=video-player][data-state=paused] > [data-element=toolbar] > [data-element-pause] {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/*# sourceMappingURL=AtomVideoPlayer.global.less.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["player/AtomVideoPlayer.global.less"],"names":[],"mappings":"AAAA;EACI,aAAA;EACA,2CAAA;EACA,oCAAA;EACA,gBAAA;;AAEA,gCAAE;EAEE,iBAAA;EACA,oBAAA;EACA,oBAAA;EACA,uBAAA;EAEA,eAAA;EACA,oBAAA;EACA,WAAA;EAEA,QAAA;EAEA,gBAAA;EAEA,+BAAA;EACA,6BAAA;EAEA,uBAAA;EACA,YAAA;EAEA,mBA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AAA;EACA,gBAAA;EACA,YAAA;;AAGJ,gCAnBF,yBAmBI;EACE,WAAA;EACA,YAAA;EACA,YAAA;;AAGJ,gCAzBF,yBAyBI;EACE,kBAAA;;AAGJ,gCA7BF,yBA6BI;EACE,WAAA;EACA,cAAA;EACA,gBAAA;EACA,YAAA;;AAGJ,gCApCF,yBAoCI,8BAA6B;EAC3B,gBAAA;EACA,YAAA;;AAGJ,gCAzCF,yBAyCI;EACE,iBAAA;;AAMJ,gCADH,oBACK;EACE,aAAA;;AAGJ,gCALH,oBAKK;EACE,aAAA;;AAMA,gCAFP,oBACI,qBACK;AAA+B,gCAFxC,oBACI,qBACsC;AAA2B,gCAFrE,oBACI,qBACmE;EAC5D,aAAA;;AAOJ,gCAFP,oBACI,qBACK;AAA0B,gCAFnC,oBACI,qBACiC;EAC1B,aAAA;;AAKJ,gCARP,oBAOK,yBACI;EACE,aAAA;;AAIR,gCAbH,oBAaK;EACE,aAAA;;AAMA,gCAFP,mBACK,yBACI;EACE,aAAA","sourcesContent":["[data-video-player=video-player] {\n display: grid;\n grid-template-rows: auto 1fr auto auto auto;\n grid-template-columns: auto 1fr auto;\n overflow: hidden;\n\n & > [data-element=banner] {\n\n grid-row-start: 3;\n grid-row-end: span 3;\n grid-column-start: 1;\n grid-column-end: span 3;\n\n align-self: end;\n justify-self: center;\n height: 15%;\n\n gap: 5px;\n\n overflow: hidden;\n\n grid-template-columns: auto 1fr;\n grid-template-rows: auto auto;\n\n background-color: black;\n color: white;\n\n border-radius: 10px;\n\n padding: 10px;\n\n align-items: center;\n justify-items: stretch;\n z-index: 2;\n\n display: none;\n\n &[data-has-logo=true] {\n display: grid;\n }\n\n & > * {\n min-height: 0;\n min-width: 0;\n }\n\n & > [data-element=logo] {\n grid-row: 1 / span 2;\n grid-column: 1;\n z-index: 2;\n height: 100%;\n }\n\n & > [data-element=logo-title] {\n grid-row-start: 1;\n grid-column-start: 2;\n z-index: 2;\n font-weight: bold;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n & > [data-element=logo-description] {\n grid-row-start: 2;\n grid-column-start: 2;\n z-index: 2;\n font-size: smaller;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n }\n\n & > [data-element=video], & > [data-element=poster] {\n grid-row-start: 1;\n grid-row-end: span 5;\n grid-column-start: 1;\n grid-column-end: span 3;\n align-self: stretch;\n justify-self: stretch; \n }\n \n & > [data-element=play-element] {\n z-index: 10;\n grid-row-start: 1;\n grid-row-end: span 5;\n grid-column-start: 1;\n grid-column-end: span 3;\n align-self: center;\n justify-self: center;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 4px;\n display: flex; \n\n & > button.play {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: #ffffff;\n background-color: #0000ff;\n border-radius: 9999px;\n font-size: 25px;\n padding: 10px;\n width: 50px;\n height: 50px;\n text-align: center;\n vertical-align: middle; \n & > i {\n margin-left: 4px; \n }\n }\n }\n\n & > [data-element=progress] {\n z-index: 11;\n grid-row-start: 4;\n grid-column-start: 1;\n grid-column-end: span 3;\n align-self: flex-end;\n height: 15px;\n padding-top: 5px;\n padding-bottom: 5px;\n justify-self: stretch;\n background-color: rgba(0,0,0,0.3);\n width: 100%;\n cursor: pointer; \n }\n \n & > [data-element=toolbar] {\n z-index: 10;\n grid-row-start: 5;\n grid-column-start: 1;\n grid-column-end: span 3;\n background-color: rgba(0,0,0,0.3);\n color: #ffffff;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 4px;\n display: flex; \n\n & > * {\n min-width: 20px;\n margin-left: 5px;\n padding: 5px; \n }\n \n & > [data-style=button] {\n width: 30px;\n height: 30px;\n padding: 5px; \n }\n \n & > [data-font-size=small] {\n font-size: x-small; \n }\n \n & > [data-element=volume-range] {\n height: 2px;\n color: #008000;\n box-shadow: none;\n border: none; \n }\n \n & > [data-element=volume-range]:focus {\n box-shadow: none;\n border: none; \n }\n \n & > [data-element=full-screen] {\n margin-left: auto; \n }\n \n }\n\n &[data-controls=true] {\n & > [data-element=toolbar] {\n display: flex; \n }\n \n & > [data-element=progress] {\n display: flex; \n }\n }\n\n &[data-state=playing] {\n &[data-controls=false] {\n & > [data-element=play-element], & > [data-element=progress], & > [data-element=toolbar] {\n display: none;\n }\n }\n }\n\n &[data-state=waiting] {\n &[data-controls=false] {\n & > [data-element=toolbar], & > [data-element=progress] {\n display: none;\n }\n }\n\n & > [data-element=toolbar] {\n & > [data-element=play] {\n display: none;\n }\n }\n\n & > [data-element=play-element] {\n display: none;\n }\n }\n \n &[data-state=paused] {\n & > [data-element=toolbar] {\n & > [data-element-pause] {\n display: none; \n }\n }\n }\n}"],"file":"AtomVideoPlayer.global.less.css"}
|