@realsee/vreo 1.0.0-alpha.3 → 1.0.0-alpha.31
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/CHANGELOG.md +9 -1
- package/README.md +46 -36
- package/lib/PlayController/createHTMLAudioElement.js +6 -11
- package/lib/PlayController/index.js +16 -81
- package/lib/Player/App.js +0 -24
- package/lib/Player/Controller.d.ts +3 -3
- package/lib/Player/Controller.js +47 -105
- package/lib/Player/custom/SpatialScenePanel/index.js +42 -68
- package/lib/Player/hooks.js +0 -10
- package/lib/Player/index.js +40 -87
- package/lib/Player/modules/Drawer/index.js +0 -17
- package/lib/Player/modules/PopUp/index.js +0 -10
- package/lib/Player/modules/ResizeObserver/index.js +0 -8
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +2 -2
- package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +20 -114
- package/lib/Player/modules/VideoAgent/VideoAgentScene.js +2 -24
- package/lib/Player/modules/VideoAgent/index.js +1 -18
- package/lib/Player/modules/Wave/index.js +160 -36
- package/lib/Player/modules/keyframes/BgMusic/index.js +50 -51
- package/lib/Player/modules/keyframes/CameraMovement/index.js +3 -27
- package/lib/Player/modules/keyframes/InfoPanel/index.js +8 -25
- package/lib/Player/modules/keyframes/ModelVideo/index.js +3 -29
- package/lib/Player/modules/keyframes/PanoEffect/index.js +15 -43
- package/lib/Player/modules/keyframes/PanoEffect/lineAnime.js +0 -7
- package/lib/Player/modules/keyframes/PanoTag/index.js +7 -23
- package/lib/Player/modules/keyframes/PanoTextLabel/index.js +22 -47
- package/lib/Player/modules/keyframes/Prompter/index.js +10 -32
- package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +18 -25
- package/lib/Player/modules/keyframes/VideoEffect/index.js +12 -47
- package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.js +0 -2
- package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.js +0 -1
- package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.js +0 -1
- package/lib/fivePlugins/CSS3DRenderPlugin/index.js +19 -60
- package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.js +2 -5
- package/lib/fivePlugins/CameraMovementPlugin/index.js +28 -75
- package/lib/fivePlugins/CameraMovementPlugin/typings.js +0 -4
- package/lib/fivePlugins/ModelTVVideoPlugin/index.js +11 -60
- package/lib/index.js +0 -1
- package/lib/react/index.js +7 -34
- package/lib/shared-utils/Audio.d.ts +14 -0
- package/lib/shared-utils/Audio.js +159 -0
- package/lib/shared-utils/{AduioLike.d.ts → AudioLike.d.ts} +0 -0
- package/lib/shared-utils/{AduioLike.js → AudioLike.js} +9 -45
- package/lib/shared-utils/Preloader.js +0 -7
- package/lib/shared-utils/addResizeListener.js +0 -5
- package/lib/shared-utils/animationFrame/BetterTween.js +2 -38
- package/lib/shared-utils/animationFrame/index.js +2 -10
- package/lib/shared-utils/animationFrame/tween.js +2 -15
- package/lib/shared-utils/createTransMatrix.js +2 -17
- package/lib/shared-utils/getFileExpandedName.js +0 -1
- package/lib/shared-utils/getMediaInfo.js +0 -9
- package/lib/shared-utils/setElementDataset.js +0 -2
- package/lib/typings/VreoUnit.d.ts +5 -5
- package/lib/typings/VreoUnit.js +0 -15
- package/package.json +5 -5
- package/stylesheets/default.css +11 -4
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -78
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +0 -52
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1414
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/Player.AudioLike.html +0 -52
- package/docs/classes/Player.Controller.html +0 -54
- package/docs/classes/Player.Player-1.html +0 -50
- package/docs/classes/Player.VideoAgentMesh.html +0 -142
- package/docs/classes/Player.VideoAgentScene.html +0 -1
- package/docs/demo/assets/AppReact.39bef668.js +0 -1
- package/docs/demo/assets/default.9bbb3329.js +0 -3984
- package/docs/demo/assets/default.f3f3ca8c.css +0 -1
- package/docs/demo/assets/dynamic.5e9275ce.js +0 -1
- package/docs/demo/assets/examples.2ac45f33.js +0 -25
- package/docs/demo/assets/examples.dac4a6fe.css +0 -1
- package/docs/demo/assets/index.6699bd11.js +0 -1
- package/docs/demo/assets/index.9331038f.css +0 -1
- package/docs/demo/assets/main.a0741cbc.js +0 -1
- package/docs/demo/assets/react.2ee8565f.css +0 -1
- package/docs/demo/assets/react.a3f20ea9.js +0 -25
- package/docs/demo/assets/znRoyv06SZQeqA7m.0057e8ae.js +0 -1
- package/docs/demo/examples.html +0 -17
- package/docs/demo/index-react-dynamic.html +0 -20
- package/docs/demo/index-react.html +0 -20
- package/docs/demo/index.html +0 -19
- package/docs/enums/Player.InfoPanelStyleEnum.html +0 -1
- package/docs/enums/Player.InfoPanelTypeEnum.html +0 -3
- package/docs/enums/Player.PanoEffectEnum.html +0 -5
- package/docs/enums/Player.PanoTagEnum.html +0 -3
- package/docs/enums/Player.PanoTagStyleEnum.html +0 -7
- package/docs/enums/Player.VreoKeyframeEnum.html +0 -25
- package/docs/enums/fivePlugins.CameraMovementEffect.html +0 -1
- package/docs/enums/fivePlugins.Rotation.html +0 -1
- package/docs/index.html +0 -245
- package/docs/interfaces/Player.CustomVreoKeyframeProps.html +0 -1
- package/docs/interfaces/Player.PlayerConfigs.html +0 -7
- package/docs/interfaces/Player.Vertex.html +0 -3
- package/docs/interfaces/Player.VideoAgentMeshOptions.html +0 -8
- package/docs/interfaces/Player.VreoKeyframe.html +0 -3
- package/docs/interfaces/Player.VreoUnit.html +0 -3
- package/docs/interfaces/Player.VreoVideo.html +0 -3
- package/docs/interfaces/fivePlugins.CSS3DRenderPluginExportType.html +0 -4
- package/docs/interfaces/fivePlugins.CameraMovementOptsCallback.html +0 -1
- package/docs/interfaces/fivePlugins.CameraMovementPluginExportType.html +0 -7
- package/docs/interfaces/fivePlugins.CameraMovementPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginData.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginExportType.html +0 -1
- package/docs/interfaces/fivePlugins.ModelTVVideoPluginParameterType.html +0 -1
- package/docs/interfaces/fivePlugins.Vector3Position.html +0 -3
- package/docs/interfaces/react.VreoActionCallbacks.html +0 -23
- package/docs/interfaces/react.VreoProviderProps.html +0 -1
- package/docs/modules/Player.html +0 -37
- package/docs/modules/custom.html +0 -3
- package/docs/modules/fivePlugins.html +0 -6
- package/docs/modules/react.html +0 -1
- package/docs/modules.html +0 -1
- package/resources/PlayController/createHTMLAudioElement.ts +0 -53
- package/resources/PlayController/index.ts +0 -154
- package/resources/Player/App.tsx +0 -66
- package/resources/Player/Controller.ts +0 -297
- package/resources/Player/custom/SpatialScenePanel/index.tsx +0 -264
- package/resources/Player/hooks.ts +0 -26
- package/resources/Player/index.tsx +0 -225
- package/resources/Player/modules/Drawer/index.tsx +0 -40
- package/resources/Player/modules/PopUp/index.tsx +0 -26
- package/resources/Player/modules/ResizeObserver/index.tsx +0 -23
- package/resources/Player/modules/VideoAgent/VideoAgentMesh.ts +0 -302
- package/resources/Player/modules/VideoAgent/VideoAgentScene.ts +0 -56
- package/resources/Player/modules/VideoAgent/index.tsx +0 -53
- package/resources/Player/modules/Wave/index.tsx +0 -18
- package/resources/Player/modules/keyframes/BgMusic/index.tsx +0 -66
- package/resources/Player/modules/keyframes/CameraMovement/index.tsx +0 -37
- package/resources/Player/modules/keyframes/InfoPanel/index.tsx +0 -165
- package/resources/Player/modules/keyframes/ModelVideo/index.tsx +0 -77
- package/resources/Player/modules/keyframes/PanoEffect/index.tsx +0 -99
- package/resources/Player/modules/keyframes/PanoEffect/lineAnime.ts +0 -31
- package/resources/Player/modules/keyframes/PanoTag/index.tsx +0 -83
- package/resources/Player/modules/keyframes/PanoTextLabel/index.tsx +0 -117
- package/resources/Player/modules/keyframes/Prompter/index.tsx +0 -56
- package/resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx +0 -99
- package/resources/Player/modules/keyframes/VideoEffect/index.tsx +0 -115
- package/resources/Player/typings.ts +0 -49
- package/resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts +0 -5
- package/resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts +0 -17
- package/resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts +0 -4
- package/resources/fivePlugins/CSS3DRenderPlugin/index.ts +0 -254
- package/resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts +0 -5
- package/resources/fivePlugins/CameraMovementPlugin/index.ts +0 -226
- package/resources/fivePlugins/CameraMovementPlugin/typings.ts +0 -59
- package/resources/fivePlugins/ModelTVVideoPlugin/index.ts +0 -278
- package/resources/index.ts +0 -1
- package/resources/react/index.tsx +0 -121
- package/resources/shared-utils/AduioLike.ts +0 -109
- package/resources/shared-utils/Preloader.ts +0 -35
- package/resources/shared-utils/addResizeListener.ts +0 -46
- package/resources/shared-utils/animationFrame/BetterTween.ts +0 -33
- package/resources/shared-utils/animationFrame/index.ts +0 -48
- package/resources/shared-utils/animationFrame/tween.ts +0 -51
- package/resources/shared-utils/createTransMatrix.ts +0 -12
- package/resources/shared-utils/getFileExpandedName.ts +0 -6
- package/resources/shared-utils/getMediaInfo.ts +0 -52
- package/resources/shared-utils/setElementDataset.ts +0 -18
- package/resources/typings/VreoUnit.ts +0 -314
package/lib/typings/VreoUnit.js
CHANGED
|
@@ -8,9 +8,7 @@ var VreoKeyframeEnum;
|
|
|
8
8
|
/**
|
|
9
9
|
* 支持自定义剧本关键帧配置项
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
exports.VreoKeyframeEnum = VreoKeyframeEnum;
|
|
13
|
-
|
|
14
12
|
(function (VreoKeyframeEnum) {
|
|
15
13
|
VreoKeyframeEnum["CameraMovement"] = "CameraMovement";
|
|
16
14
|
VreoKeyframeEnum["PanoTag"] = "PanoTag";
|
|
@@ -25,7 +23,6 @@ exports.VreoKeyframeEnum = VreoKeyframeEnum;
|
|
|
25
23
|
VreoKeyframeEnum["Exit"] = "Exit";
|
|
26
24
|
VreoKeyframeEnum["Custom"] = "Custom";
|
|
27
25
|
})(VreoKeyframeEnum || (exports.VreoKeyframeEnum = VreoKeyframeEnum = {}));
|
|
28
|
-
|
|
29
26
|
/**
|
|
30
27
|
* 全景标签枚举
|
|
31
28
|
*/
|
|
@@ -33,22 +30,17 @@ var PanoTagEnum;
|
|
|
33
30
|
/**
|
|
34
31
|
* 标签样式种类
|
|
35
32
|
*/
|
|
36
|
-
|
|
37
33
|
exports.PanoTagEnum = PanoTagEnum;
|
|
38
|
-
|
|
39
34
|
(function (PanoTagEnum) {
|
|
40
35
|
PanoTagEnum["Text"] = "Text";
|
|
41
36
|
PanoTagEnum["Image"] = "Image";
|
|
42
37
|
})(PanoTagEnum || (exports.PanoTagEnum = PanoTagEnum = {}));
|
|
43
|
-
|
|
44
38
|
var PanoTagStyleEnum;
|
|
45
39
|
exports.PanoTagStyleEnum = PanoTagStyleEnum;
|
|
46
|
-
|
|
47
40
|
(function (PanoTagStyleEnum) {
|
|
48
41
|
PanoTagStyleEnum["Growth"] = "Growth";
|
|
49
42
|
PanoTagStyleEnum["Expand"] = "Expand";
|
|
50
43
|
})(PanoTagStyleEnum || (exports.PanoTagStyleEnum = PanoTagStyleEnum = {}));
|
|
51
|
-
|
|
52
44
|
/**
|
|
53
45
|
* 全景特效枚举
|
|
54
46
|
*/
|
|
@@ -56,31 +48,24 @@ var PanoEffectEnum;
|
|
|
56
48
|
/**
|
|
57
49
|
* 全景特效
|
|
58
50
|
*/
|
|
59
|
-
|
|
60
51
|
exports.PanoEffectEnum = PanoEffectEnum;
|
|
61
|
-
|
|
62
52
|
(function (PanoEffectEnum) {
|
|
63
53
|
PanoEffectEnum["Distance"] = "Distance";
|
|
64
54
|
})(PanoEffectEnum || (exports.PanoEffectEnum = PanoEffectEnum = {}));
|
|
65
|
-
|
|
66
55
|
/**
|
|
67
56
|
* 信息面板类型枚举
|
|
68
57
|
*/
|
|
69
58
|
var InfoPanelTypeEnum;
|
|
70
59
|
exports.InfoPanelTypeEnum = InfoPanelTypeEnum;
|
|
71
|
-
|
|
72
60
|
(function (InfoPanelTypeEnum) {
|
|
73
61
|
InfoPanelTypeEnum["Image"] = "Image";
|
|
74
62
|
InfoPanelTypeEnum["Video"] = "Video";
|
|
75
63
|
})(InfoPanelTypeEnum || (exports.InfoPanelTypeEnum = InfoPanelTypeEnum = {}));
|
|
76
|
-
|
|
77
64
|
var InfoPanelStyleEnum;
|
|
78
65
|
/**
|
|
79
66
|
* 信息面板
|
|
80
67
|
*/
|
|
81
|
-
|
|
82
68
|
exports.InfoPanelStyleEnum = InfoPanelStyleEnum;
|
|
83
|
-
|
|
84
69
|
(function (InfoPanelStyleEnum) {
|
|
85
70
|
InfoPanelStyleEnum["Drawer"] = "Drawer";
|
|
86
71
|
InfoPanelStyleEnum["PopUp"] = "PopUp";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/vreo",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.31",
|
|
4
4
|
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"realsee",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"private": false,
|
|
13
13
|
"files": [
|
|
14
14
|
"lib",
|
|
15
|
-
"resources",
|
|
16
|
-
"docs",
|
|
17
15
|
"stylesheets",
|
|
18
16
|
"LICENSE",
|
|
19
17
|
"CHANGELOG.md"
|
|
@@ -26,7 +24,8 @@
|
|
|
26
24
|
"packages": "node ./dev-tools/build-packages.js"
|
|
27
25
|
},
|
|
28
26
|
"peerDependencies": {
|
|
29
|
-
"@realsee/five": "^5.0.0
|
|
27
|
+
"@realsee/five": "^5.0.0",
|
|
28
|
+
"@realsee/dnalogel": "^2.3.3",
|
|
30
29
|
"react": "^17.0.0",
|
|
31
30
|
"react-dom": "^17.0.0"
|
|
32
31
|
},
|
|
@@ -36,8 +35,9 @@
|
|
|
36
35
|
"@babel/preset-env": "^7.16.4",
|
|
37
36
|
"@babel/preset-react": "^7.16.0",
|
|
38
37
|
"@babel/preset-typescript": "^7.16.0",
|
|
39
|
-
"@realsee/dnalogel": "^2.
|
|
38
|
+
"@realsee/dnalogel": "^2.3.3",
|
|
40
39
|
"@realsee/five": "5.0.0-alpha.149",
|
|
40
|
+
"@types/node": "^18.11.17",
|
|
41
41
|
"@types/offscreencanvas": "^2019.6.4",
|
|
42
42
|
"@types/react": "^17.0.37",
|
|
43
43
|
"@types/react-dom": "^17.0.11",
|
package/stylesheets/default.css
CHANGED
|
@@ -106,10 +106,18 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.vreo-wave {
|
|
109
|
+
width: 100%;
|
|
109
110
|
position: absolute;
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
border: none;
|
|
110
113
|
bottom: 0;
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
@keyframes vreo-wave-keyframes {
|
|
117
|
+
0% { background-position: 0 0; }
|
|
118
|
+
100% { background-position: 0 100%; }
|
|
119
|
+
}
|
|
120
|
+
|
|
113
121
|
/* @keyframes panel-sprites-animation {
|
|
114
122
|
0% {
|
|
115
123
|
background-position: 0 0;
|
|
@@ -304,7 +312,7 @@
|
|
|
304
312
|
|
|
305
313
|
.vreo-prompter-text {
|
|
306
314
|
position: absolute;
|
|
307
|
-
height:
|
|
315
|
+
height: 0px;
|
|
308
316
|
display: flex;
|
|
309
317
|
align-items: center;
|
|
310
318
|
justify-content: center;
|
|
@@ -327,7 +335,6 @@
|
|
|
327
335
|
}
|
|
328
336
|
|
|
329
337
|
.vreo-prompter-innerText {
|
|
330
|
-
position: absolute;
|
|
331
338
|
font-weight: bold;
|
|
332
339
|
font-size: 14px;
|
|
333
340
|
word-break: break-all;
|
|
@@ -855,8 +862,8 @@
|
|
|
855
862
|
|
|
856
863
|
.vreo-app .vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1,
|
|
857
864
|
.vreo-app[data-size="S"] .vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1 {
|
|
858
|
-
font-size:
|
|
859
|
-
line-height:
|
|
865
|
+
font-size: 16px;
|
|
866
|
+
line-height: 22px;
|
|
860
867
|
}
|
|
861
868
|
.vreo-app[data-size="M"][data-orientation="landscape"] .vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1 {
|
|
862
869
|
font-size: 14px;
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/custom.css
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
|
3
|
-
font-size: 16px;
|
|
4
|
-
color: #2e2e2e;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
blockquote {
|
|
8
|
-
color: #7f8fa4;
|
|
9
|
-
padding: 8px 12px;
|
|
10
|
-
margin: 16px 0;
|
|
11
|
-
border-left: 3px solid #eaeaea;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
blockquote p {
|
|
15
|
-
color: #7f8fa4 !important;
|
|
16
|
-
font-size: inherit;
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
margin: 0 !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tsd-typography {
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tsd-typography h4 {
|
|
26
|
-
line-height: 2;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.hljs {
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
font-family: monospace;
|
|
32
|
-
font-size: 0.85rem;
|
|
33
|
-
}
|
|
34
|
-
code {
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
background-color: rgb(96 125 139 / 10%);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
pre {
|
|
40
|
-
background-color: rgb(205 220 57 / 8%);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
p {
|
|
44
|
-
line-height: 1.5;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a {
|
|
48
|
-
color: #3832cf;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
a:hover {
|
|
52
|
-
color: darkred;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
body.dark {
|
|
56
|
-
color: #e9e9e9;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dark a {
|
|
60
|
-
color: var(--color-link);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.dark a:hover {
|
|
64
|
-
color: #ed8e9f;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (prefers-color-scheme: dark) {
|
|
68
|
-
body {
|
|
69
|
-
color: #e9e9e9;
|
|
70
|
-
}
|
|
71
|
-
a {
|
|
72
|
-
color: var(--color-link);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
a:hover {
|
|
76
|
-
color: #ed8e9f;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #000000;
|
|
3
|
-
--dark-hl-0: #D4D4D4;
|
|
4
|
-
--light-hl-1: #008000;
|
|
5
|
-
--dark-hl-1: #6A9955;
|
|
6
|
-
--light-hl-2: #AF00DB;
|
|
7
|
-
--dark-hl-2: #C586C0;
|
|
8
|
-
--light-hl-3: #0000FF;
|
|
9
|
-
--dark-hl-3: #569CD6;
|
|
10
|
-
--light-hl-4: #001080;
|
|
11
|
-
--dark-hl-4: #9CDCFE;
|
|
12
|
-
--light-hl-5: #A31515;
|
|
13
|
-
--dark-hl-5: #CE9178;
|
|
14
|
-
--light-hl-6: #0070C1;
|
|
15
|
-
--dark-hl-6: #4FC1FF;
|
|
16
|
-
--light-hl-7: #795E26;
|
|
17
|
-
--dark-hl-7: #DCDCAA;
|
|
18
|
-
--light-hl-8: #267F99;
|
|
19
|
-
--dark-hl-8: #4EC9B0;
|
|
20
|
-
--light-hl-9: #800000;
|
|
21
|
-
--dark-hl-9: #808080;
|
|
22
|
-
--light-hl-10: #800000;
|
|
23
|
-
--dark-hl-10: #569CD6;
|
|
24
|
-
--light-hl-11: #FF0000;
|
|
25
|
-
--dark-hl-11: #9CDCFE;
|
|
26
|
-
--light-hl-12: #000000FF;
|
|
27
|
-
--dark-hl-12: #D4D4D4;
|
|
28
|
-
--light-hl-13: #0451A5;
|
|
29
|
-
--dark-hl-13: #9CDCFE;
|
|
30
|
-
--light-hl-14: #098658;
|
|
31
|
-
--dark-hl-14: #B5CEA8;
|
|
32
|
-
--light-code-background: #F5F5F5;
|
|
33
|
-
--dark-code-background: #1E1E1E;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (prefers-color-scheme: light) { :root {
|
|
37
|
-
--hl-0: var(--light-hl-0);
|
|
38
|
-
--hl-1: var(--light-hl-1);
|
|
39
|
-
--hl-2: var(--light-hl-2);
|
|
40
|
-
--hl-3: var(--light-hl-3);
|
|
41
|
-
--hl-4: var(--light-hl-4);
|
|
42
|
-
--hl-5: var(--light-hl-5);
|
|
43
|
-
--hl-6: var(--light-hl-6);
|
|
44
|
-
--hl-7: var(--light-hl-7);
|
|
45
|
-
--hl-8: var(--light-hl-8);
|
|
46
|
-
--hl-9: var(--light-hl-9);
|
|
47
|
-
--hl-10: var(--light-hl-10);
|
|
48
|
-
--hl-11: var(--light-hl-11);
|
|
49
|
-
--hl-12: var(--light-hl-12);
|
|
50
|
-
--hl-13: var(--light-hl-13);
|
|
51
|
-
--hl-14: var(--light-hl-14);
|
|
52
|
-
--code-background: var(--light-code-background);
|
|
53
|
-
} }
|
|
54
|
-
|
|
55
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
56
|
-
--hl-0: var(--dark-hl-0);
|
|
57
|
-
--hl-1: var(--dark-hl-1);
|
|
58
|
-
--hl-2: var(--dark-hl-2);
|
|
59
|
-
--hl-3: var(--dark-hl-3);
|
|
60
|
-
--hl-4: var(--dark-hl-4);
|
|
61
|
-
--hl-5: var(--dark-hl-5);
|
|
62
|
-
--hl-6: var(--dark-hl-6);
|
|
63
|
-
--hl-7: var(--dark-hl-7);
|
|
64
|
-
--hl-8: var(--dark-hl-8);
|
|
65
|
-
--hl-9: var(--dark-hl-9);
|
|
66
|
-
--hl-10: var(--dark-hl-10);
|
|
67
|
-
--hl-11: var(--dark-hl-11);
|
|
68
|
-
--hl-12: var(--dark-hl-12);
|
|
69
|
-
--hl-13: var(--dark-hl-13);
|
|
70
|
-
--hl-14: var(--dark-hl-14);
|
|
71
|
-
--code-background: var(--dark-code-background);
|
|
72
|
-
} }
|
|
73
|
-
|
|
74
|
-
body.light {
|
|
75
|
-
--hl-0: var(--light-hl-0);
|
|
76
|
-
--hl-1: var(--light-hl-1);
|
|
77
|
-
--hl-2: var(--light-hl-2);
|
|
78
|
-
--hl-3: var(--light-hl-3);
|
|
79
|
-
--hl-4: var(--light-hl-4);
|
|
80
|
-
--hl-5: var(--light-hl-5);
|
|
81
|
-
--hl-6: var(--light-hl-6);
|
|
82
|
-
--hl-7: var(--light-hl-7);
|
|
83
|
-
--hl-8: var(--light-hl-8);
|
|
84
|
-
--hl-9: var(--light-hl-9);
|
|
85
|
-
--hl-10: var(--light-hl-10);
|
|
86
|
-
--hl-11: var(--light-hl-11);
|
|
87
|
-
--hl-12: var(--light-hl-12);
|
|
88
|
-
--hl-13: var(--light-hl-13);
|
|
89
|
-
--hl-14: var(--light-hl-14);
|
|
90
|
-
--code-background: var(--light-code-background);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
body.dark {
|
|
94
|
-
--hl-0: var(--dark-hl-0);
|
|
95
|
-
--hl-1: var(--dark-hl-1);
|
|
96
|
-
--hl-2: var(--dark-hl-2);
|
|
97
|
-
--hl-3: var(--dark-hl-3);
|
|
98
|
-
--hl-4: var(--dark-hl-4);
|
|
99
|
-
--hl-5: var(--dark-hl-5);
|
|
100
|
-
--hl-6: var(--dark-hl-6);
|
|
101
|
-
--hl-7: var(--dark-hl-7);
|
|
102
|
-
--hl-8: var(--dark-hl-8);
|
|
103
|
-
--hl-9: var(--dark-hl-9);
|
|
104
|
-
--hl-10: var(--dark-hl-10);
|
|
105
|
-
--hl-11: var(--dark-hl-11);
|
|
106
|
-
--hl-12: var(--dark-hl-12);
|
|
107
|
-
--hl-13: var(--dark-hl-13);
|
|
108
|
-
--hl-14: var(--dark-hl-14);
|
|
109
|
-
--code-background: var(--dark-code-background);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.hl-0 { color: var(--hl-0); }
|
|
113
|
-
.hl-1 { color: var(--hl-1); }
|
|
114
|
-
.hl-2 { color: var(--hl-2); }
|
|
115
|
-
.hl-3 { color: var(--hl-3); }
|
|
116
|
-
.hl-4 { color: var(--hl-4); }
|
|
117
|
-
.hl-5 { color: var(--hl-5); }
|
|
118
|
-
.hl-6 { color: var(--hl-6); }
|
|
119
|
-
.hl-7 { color: var(--hl-7); }
|
|
120
|
-
.hl-8 { color: var(--hl-8); }
|
|
121
|
-
.hl-9 { color: var(--hl-9); }
|
|
122
|
-
.hl-10 { color: var(--hl-10); }
|
|
123
|
-
.hl-11 { color: var(--hl-11); }
|
|
124
|
-
.hl-12 { color: var(--hl-12); }
|
|
125
|
-
.hl-13 { color: var(--hl-13); }
|
|
126
|
-
.hl-14 { color: var(--hl-14); }
|
|
127
|
-
pre, code { background: var(--code-background); }
|