buner 0.0.2 → 1.0.0
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/.env +15 -0
- package/.env.development +6 -0
- package/.env.eshn +5 -0
- package/README.md +141 -5
- package/bin/buner.js +566 -0
- package/cli/README.md +1 -0
- package/cli/buner.ts +234 -0
- package/cli/cli.ts +125 -0
- package/cli/create-app.ts +59 -0
- package/cli/helpers/copy.ts +62 -0
- package/cli/helpers/format-files.ts +189 -0
- package/cli/helpers/git.ts +77 -0
- package/cli/helpers/install.ts +26 -0
- package/cli/helpers/is-folder-empty.ts +40 -0
- package/cli/helpers/is-writeable.ts +14 -0
- package/cli/helpers/make-dir.ts +7 -0
- package/cli/helpers/validate-pkg.ts +17 -0
- package/cli/install-template.ts +77 -0
- package/eslint.config.mjs +187 -0
- package/index.html +44 -0
- package/integration.ts +179 -0
- package/migrate-scss.ts +42 -0
- package/package.json +135 -7
- package/prerender.ts +229 -0
- package/public/.nojekyll +1 -0
- package/public/400.html +1 -0
- package/public/401.html +21 -0
- package/public/403.html +252 -0
- package/public/404.css +51 -0
- package/public/404.html +29 -0
- package/public/__images__/awww.jpeg +0 -0
- package/public/__images__/bat-body.png +0 -0
- package/public/__images__/bat-wing.png +0 -0
- package/public/__images__/haunted-house-background.png +0 -0
- package/public/__images__/haunted-house-foreground.png +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-Bold.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-BoldItalic.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-Italic.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-Regular.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-SemiBold.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText-SemiBoldItalic.ttf +0 -0
- package/public/assets/fonts/crimson-text/CrimsonText.woff2 +0 -0
- package/public/assets/fonts/crimson-text/OFL.txt +93 -0
- package/public/assets/fonts/work-sans/OFL.txt +93 -0
- package/public/assets/fonts/work-sans/README.txt +81 -0
- package/public/assets/fonts/work-sans/WorkSans-Italic-VariableFont_wght.ttf +0 -0
- package/public/assets/fonts/work-sans/WorkSans-VariableFont_wght.ttf +0 -0
- package/public/assets/fonts/work-sans/WorkSans.woff2 +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Black.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-BlackItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Bold.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-BoldItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-ExtraBold.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-ExtraBoldItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-ExtraLight.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-ExtraLightItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Italic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Light.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-LightItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Medium.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-MediumItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Regular.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-SemiBold.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-SemiBoldItalic.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-Thin.ttf +0 -0
- package/public/assets/fonts/work-sans/static/WorkSans-ThinItalic.ttf +0 -0
- package/public/assets/images/icons.svg +67 -0
- package/public/assets/images/logo.svg +14 -0
- package/public/assets/images/root.svg +49 -0
- package/public/assets/vendors/axios@0.24.0/axios.js +2275 -0
- package/public/assets/vendors/axios@0.24.0/axios.map +1 -0
- package/public/assets/vendors/axios@0.24.0/axios.min.js +2 -0
- package/public/assets/vendors/axios@0.24.0/axios.min.map +1 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +3 -0
- package/public/icon-128.png +0 -0
- package/public/icon-16.png +0 -0
- package/public/icon-192.png +0 -0
- package/public/icon-48.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/json/avatar.json +42 -0
- package/public/manifest.webmanifest +29 -0
- package/public/mockServiceWorker.js +349 -0
- package/public/pl-states.svg +4 -0
- package/public/samples/01.svg +1 -0
- package/public/samples/Airbnb.svg +3 -0
- package/public/samples/Facebook.svg +3 -0
- package/public/samples/Google.svg +8 -0
- package/public/samples/Microsoft.svg +7 -0
- package/public/samples/Spotify.svg +3 -0
- package/public/samples/alexandra-stolz.svg +35 -0
- package/public/samples/browserconfig.xml +9 -0
- package/public/samples/cliff-curtis.jpg +0 -0
- package/public/samples/emilia-clarke.jpg +0 -0
- package/public/samples/favicon.ico +0 -0
- package/public/samples/icons/android-chrome-192x192.png +0 -0
- package/public/samples/icons/apple-touch-icon.png +0 -0
- package/public/samples/icons/favicon-144x144.png +0 -0
- package/public/samples/icons/favicon-150x150.png +0 -0
- package/public/samples/icons/favicon-16x16.png +0 -0
- package/public/samples/icons/favicon-32x32.png +0 -0
- package/public/samples/icons/favicon-48x48.png +0 -0
- package/public/samples/icons/favicon-70x70.png +0 -0
- package/public/samples/icons/favicon.ico +0 -0
- package/public/samples/image-1.svg +166 -0
- package/public/samples/image-2.svg +110 -0
- package/public/samples/image-3.svg +113 -0
- package/public/samples/janet-bray.svg +36 -0
- package/public/samples/kate-winslet.jpg +0 -0
- package/public/samples/manifest.json +19 -0
- package/public/samples/michelle-yeoh.jpg +0 -0
- package/public/samples/peg-legge.svg +37 -0
- package/public/samples/richard-guerra.svg +42 -0
- package/public/samples/rose-leslie.jpg +0 -0
- package/public/samples/sample-1.svg +365 -0
- package/public/samples/sample-2.svg +129 -0
- package/public/samples/sample-3.svg +93 -0
- package/public/samples/sample-4.svg +168 -0
- package/public/samples/sample-5.svg +155 -0
- package/public/samples/sample-6.svg +445 -0
- package/public/samples/sample-7.svg +404 -0
- package/public/samples/sample-8.png +0 -0
- package/public/staticwebapp.config.json +138 -0
- package/scripts.ts +56 -0
- package/server.ts +29 -0
- package/states.ts +63 -0
- package/styles.ts +232 -0
- package/tsconfig.json +71 -25
- package/types.d.ts +54 -0
- package/vite.config.ts +3 -0
- package/xpack/alias.ts +21 -0
- package/xpack/config.ts +59 -0
- package/xpack/create-server.ts +68 -0
- package/xpack/create-vite-dev-server.ts +33 -0
- package/xpack/deploy/deploy-inte.ts +3 -0
- package/xpack/filename.ts +43 -0
- package/xpack/hooks/build-start.ts +17 -0
- package/xpack/hooks/close-bundle.ts +19 -0
- package/xpack/hooks/handle-hot-update.ts +22 -0
- package/xpack/hooks/options.ts +55 -0
- package/xpack/hooks/resolve-dynamic-import.ts +18 -0
- package/xpack/hooks/transform-index-html.ts +18 -0
- package/xpack/hooks/transform.ts +72 -0
- package/xpack/hooks/write-bundle.ts +16 -0
- package/xpack/manual-chunk.ts +56 -0
- package/xpack/paths.ts +30 -0
- package/xpack/renderer.ts +141 -0
- package/xpack/root/active-item-options.tsx +98 -0
- package/xpack/root/frame-controls.tsx +139 -0
- package/xpack/root/index.tsx +107 -0
- package/xpack/root/rendered-item.tsx +25 -0
- package/xpack/root/root-context.ts +22 -0
- package/xpack/root/root-nav.tsx +162 -0
- package/xpack/root/state-animation-html.tsx +18 -0
- package/xpack/root/template.tsx +23 -0
- package/xpack/root/use-click-outside.ts +37 -0
- package/xpack/scripts/color-mode.entry.ts +28 -0
- package/xpack/scripts/mock-api.entry.ts +11 -0
- package/xpack/scripts/pl-states.entry.ts +321 -0
- package/xpack/scripts/root.entry.ts +135 -0
- package/xpack/scripts/theme-critical.entry.ts +20 -0
- package/xpack/states.schema.json +61 -0
- package/xpack/styles/_border.scss +22 -0
- package/xpack/styles/_breakpoint.scss +117 -0
- package/xpack/styles/_form.scss +23 -0
- package/xpack/styles/_px2rem.scss +5 -0
- package/xpack/styles/_reset.scss +134 -0
- package/xpack/styles/_state-toggle.scss +121 -0
- package/xpack/styles/_theme.scss +68 -0
- package/xpack/styles/_top-panel.scss +87 -0
- package/xpack/styles/_xpack-root.scss +322 -0
- package/xpack/styles/pl-states.scss +308 -0
- package/xpack/styles/root.scss +129 -0
- package/.github/workflows/deploy.yaml +0 -32
- package/index.ts +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
$xxs: 0;
|
|
2
|
+
$xs: 360px;
|
|
3
|
+
$xs2: 480px;
|
|
4
|
+
$xs3: 500px;
|
|
5
|
+
$sm: 576px;
|
|
6
|
+
$md: 768px;
|
|
7
|
+
$lg: 992px;
|
|
8
|
+
$xl: 1200px;
|
|
9
|
+
$xxl: 1400px;
|
|
10
|
+
|
|
11
|
+
@mixin xs {
|
|
12
|
+
@media (min-width: $xs) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin xs-down {
|
|
18
|
+
@media (max-width: #{$xs - 0.01px}) {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin xs2 {
|
|
24
|
+
@media (min-width: $xs2) {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin xs2-down {
|
|
30
|
+
@media (max-width: #{$xs2 - 0.01px}) {
|
|
31
|
+
@content;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin xs3 {
|
|
36
|
+
@media (min-width: $xs3) {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin xs3-down {
|
|
42
|
+
@media (max-width: #{$xs3 - 0.01px}) {
|
|
43
|
+
@content;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin sm {
|
|
48
|
+
@media (min-width: $sm) {
|
|
49
|
+
@content;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin sm-down {
|
|
54
|
+
@media (max-width: #{$sm - 0.01px}) {
|
|
55
|
+
@content;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@mixin md {
|
|
60
|
+
@media (min-width: $md) {
|
|
61
|
+
@content;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin md-down {
|
|
66
|
+
@media (max-width: #{$md - 0.01px}) {
|
|
67
|
+
@content;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin lg {
|
|
72
|
+
@media (min-width: $lg) {
|
|
73
|
+
@content;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin lg-down {
|
|
78
|
+
@media (max-width: #{$lg - 0.01px}) {
|
|
79
|
+
@content;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin xl {
|
|
84
|
+
@media (min-width: $xl) {
|
|
85
|
+
@content;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin xl-down {
|
|
90
|
+
@media (max-width: #{$xl - 0.01px}) {
|
|
91
|
+
@content;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@mixin xxl {
|
|
96
|
+
@media (min-width: $xxl) {
|
|
97
|
+
@content;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@mixin xxl-down {
|
|
102
|
+
@media (max-width: #{$xxl - 0.01px}) {
|
|
103
|
+
@content;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin breakpoint($min, $max) {
|
|
108
|
+
@media (min-width: $min) and (max-width: #{$max - 0.1px}) {
|
|
109
|
+
@content;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@mixin print {
|
|
114
|
+
@media print {
|
|
115
|
+
@content;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'px2rem' as *;
|
|
2
|
+
@use 'theme' as *;
|
|
3
|
+
|
|
4
|
+
@mixin input {
|
|
5
|
+
border: px2rem(1px) solid #bbb;
|
|
6
|
+
background-color: #eee;
|
|
7
|
+
color: $body-color;
|
|
8
|
+
border-radius: px2rem(4px);
|
|
9
|
+
|
|
10
|
+
&:focus-visible {
|
|
11
|
+
border-color: $black;
|
|
12
|
+
background-color: $body-bg;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include dark {
|
|
16
|
+
background-color: #1b1f22;
|
|
17
|
+
border-color: #555;
|
|
18
|
+
|
|
19
|
+
&:focus-visible {
|
|
20
|
+
border-color: $body-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
+
v2.0 | 20110126
|
|
3
|
+
License: none (public domain)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html,
|
|
13
|
+
body,
|
|
14
|
+
div,
|
|
15
|
+
span,
|
|
16
|
+
// applet,
|
|
17
|
+
// object,
|
|
18
|
+
iframe,
|
|
19
|
+
h1,
|
|
20
|
+
h2,
|
|
21
|
+
h3,
|
|
22
|
+
h4,
|
|
23
|
+
h5,
|
|
24
|
+
h6,
|
|
25
|
+
p,
|
|
26
|
+
blockquote,
|
|
27
|
+
// pre,
|
|
28
|
+
a,
|
|
29
|
+
abbr,
|
|
30
|
+
acronym,
|
|
31
|
+
// address,
|
|
32
|
+
big,
|
|
33
|
+
// cite,
|
|
34
|
+
// code,
|
|
35
|
+
del,
|
|
36
|
+
// dfn,
|
|
37
|
+
em,
|
|
38
|
+
img,
|
|
39
|
+
// ins,
|
|
40
|
+
// kbd,
|
|
41
|
+
// q,
|
|
42
|
+
// s,
|
|
43
|
+
// samp,
|
|
44
|
+
small,
|
|
45
|
+
strike,
|
|
46
|
+
strong,
|
|
47
|
+
sub,
|
|
48
|
+
sup,
|
|
49
|
+
// tt,
|
|
50
|
+
// var,
|
|
51
|
+
b,
|
|
52
|
+
u,
|
|
53
|
+
i,
|
|
54
|
+
center,
|
|
55
|
+
dl,
|
|
56
|
+
dt,
|
|
57
|
+
dd,
|
|
58
|
+
// ol,
|
|
59
|
+
// ul,
|
|
60
|
+
// li,
|
|
61
|
+
fieldset,
|
|
62
|
+
form,
|
|
63
|
+
label,
|
|
64
|
+
legend,
|
|
65
|
+
table,
|
|
66
|
+
caption,
|
|
67
|
+
tbody,
|
|
68
|
+
tfoot,
|
|
69
|
+
thead,
|
|
70
|
+
tr,
|
|
71
|
+
th,
|
|
72
|
+
td,
|
|
73
|
+
article,
|
|
74
|
+
// aside,
|
|
75
|
+
// canvas,
|
|
76
|
+
// details,
|
|
77
|
+
// embed,
|
|
78
|
+
figure,
|
|
79
|
+
figcaption,
|
|
80
|
+
footer,
|
|
81
|
+
header,
|
|
82
|
+
// hgroup,
|
|
83
|
+
menu,
|
|
84
|
+
nav,
|
|
85
|
+
// output,
|
|
86
|
+
// ruby,
|
|
87
|
+
section,
|
|
88
|
+
// summary,
|
|
89
|
+
// time,
|
|
90
|
+
// mark,
|
|
91
|
+
audio,
|
|
92
|
+
video {
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0;
|
|
95
|
+
border: 0;
|
|
96
|
+
// vertical-align: baseline;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* HTML5 display-role reset for older browsers */
|
|
100
|
+
article,
|
|
101
|
+
// aside,
|
|
102
|
+
details,
|
|
103
|
+
figcaption,
|
|
104
|
+
figure,
|
|
105
|
+
footer,
|
|
106
|
+
header,
|
|
107
|
+
// hgroup,
|
|
108
|
+
menu,
|
|
109
|
+
nav,
|
|
110
|
+
section {
|
|
111
|
+
display: block;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
body {
|
|
115
|
+
line-height: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
blockquote,
|
|
119
|
+
q {
|
|
120
|
+
quotes: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
blockquote:before,
|
|
124
|
+
blockquote:after,
|
|
125
|
+
q:before,
|
|
126
|
+
q:after {
|
|
127
|
+
content: '';
|
|
128
|
+
content: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
table {
|
|
132
|
+
border-collapse: collapse;
|
|
133
|
+
border-spacing: 0;
|
|
134
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
$-time-ratio: 0.5;
|
|
2
|
+
$-size-ratio: 0.5;
|
|
3
|
+
$-begin-offset: -200px;
|
|
4
|
+
$-end-offset: -500px;
|
|
5
|
+
$-pl-state-bubble-bg: #f30;
|
|
6
|
+
|
|
7
|
+
.pl-state-toggle {
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&__circles {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__circle {
|
|
20
|
+
position: absolute;
|
|
21
|
+
display: block;
|
|
22
|
+
width: calc(20px * #{$-size-ratio});
|
|
23
|
+
height: calc(20px * #{$-size-ratio});
|
|
24
|
+
background: $-pl-state-bubble-bg;
|
|
25
|
+
animation: bubbleAnimate calc(25s * #{$-time-ratio}) linear infinite;
|
|
26
|
+
bottom: $-begin-offset;
|
|
27
|
+
|
|
28
|
+
&.no-animation {
|
|
29
|
+
animation-play-state: paused;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:nth-child(1) {
|
|
33
|
+
left: 25%;
|
|
34
|
+
width: calc(80px * #{$-size-ratio});
|
|
35
|
+
height: calc(80px * #{$-size-ratio});
|
|
36
|
+
animation-delay: calc(0s * #{$-time-ratio});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:nth-child(2) {
|
|
40
|
+
left: 10%;
|
|
41
|
+
width: calc(20px * #{$-size-ratio});
|
|
42
|
+
height: calc(20px * #{$-size-ratio});
|
|
43
|
+
animation-delay: calc(2s * #{$-time-ratio});
|
|
44
|
+
animation-duration: calc(12s * #{$-time-ratio});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:nth-child(3) {
|
|
48
|
+
left: 70%;
|
|
49
|
+
width: calc(20px * #{$-size-ratio});
|
|
50
|
+
height: calc(20px * #{$-size-ratio});
|
|
51
|
+
animation-delay: calc(4s * #{$-time-ratio});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:nth-child(4) {
|
|
55
|
+
left: 40%;
|
|
56
|
+
width: calc(60px * #{$-size-ratio});
|
|
57
|
+
height: calc(60px * #{$-size-ratio});
|
|
58
|
+
animation-delay: calc(0s * #{$-time-ratio});
|
|
59
|
+
animation-duration: calc(18s * #{$-time-ratio});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:nth-child(5) {
|
|
63
|
+
left: 65%;
|
|
64
|
+
width: calc(20px * #{$-size-ratio});
|
|
65
|
+
height: calc(20px * #{$-size-ratio});
|
|
66
|
+
animation-delay: calc(0s * #{$-time-ratio});
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:nth-child(6) {
|
|
70
|
+
left: 75%;
|
|
71
|
+
width: calc(110px * #{$-size-ratio});
|
|
72
|
+
height: calc(110px * #{$-size-ratio});
|
|
73
|
+
animation-delay: calc(3s * #{$-time-ratio});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:nth-child(7) {
|
|
77
|
+
left: 35%;
|
|
78
|
+
width: calc(150px * #{$-size-ratio});
|
|
79
|
+
height: calc(150px * #{$-size-ratio});
|
|
80
|
+
animation-delay: calc(7s * #{$-time-ratio});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:nth-child(8) {
|
|
84
|
+
left: 50%;
|
|
85
|
+
width: calc(25px * #{$-size-ratio});
|
|
86
|
+
height: calc(25px * #{$-size-ratio});
|
|
87
|
+
animation-delay: calc(15s * #{$-time-ratio});
|
|
88
|
+
animation-duration: calc(45s * #{$-time-ratio});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:nth-child(9) {
|
|
92
|
+
left: 20%;
|
|
93
|
+
width: calc(15px * #{$-size-ratio});
|
|
94
|
+
height: calc(15px * #{$-size-ratio});
|
|
95
|
+
animation-delay: calc(2s * #{$-time-ratio});
|
|
96
|
+
animation-duration: calc(35s * #{$-time-ratio});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:nth-child(10) {
|
|
100
|
+
left: 85%;
|
|
101
|
+
width: calc(150px * #{$-size-ratio});
|
|
102
|
+
height: calc(150px * #{$-size-ratio});
|
|
103
|
+
animation-delay: calc(0s * #{$-time-ratio});
|
|
104
|
+
animation-duration: calc(11s * #{$-time-ratio});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes bubbleAnimate {
|
|
110
|
+
0% {
|
|
111
|
+
transform: translateY(0) rotate(0deg);
|
|
112
|
+
opacity: 1;
|
|
113
|
+
border-radius: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
100% {
|
|
117
|
+
transform: translateY($-end-offset) rotate(720deg);
|
|
118
|
+
opacity: 0;
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
$body-color: var(--body-color);
|
|
2
|
+
$body-strong-color: var(--body-strong-color);
|
|
3
|
+
$body-color-rgb: var(--body-color-rgb);
|
|
4
|
+
$body-bg: var(--body-bg);
|
|
5
|
+
$body-bg-rgb: var(--body-bg-rgb);
|
|
6
|
+
$link-color: var(--link-color);
|
|
7
|
+
$link-hover-color: var(--link-hover-color);
|
|
8
|
+
$border-color: var(--border-color);
|
|
9
|
+
$black: var(--black);
|
|
10
|
+
|
|
11
|
+
// scrollbar
|
|
12
|
+
$scrollbar-track-bg: var(--scrollbar-track-bg);
|
|
13
|
+
$scrollbar-thumb-bg: var(--scrollbar-thumb-bg);
|
|
14
|
+
$scrollbar-thumb-hover-bg: var(--scrollbar-thumb-hover-bg);
|
|
15
|
+
|
|
16
|
+
@mixin light {
|
|
17
|
+
[data-theme='dark'] & {
|
|
18
|
+
@content;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin dark {
|
|
23
|
+
[data-theme='dark'] & {
|
|
24
|
+
@content;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:root,
|
|
29
|
+
[data-theme='dark'] {
|
|
30
|
+
--body-color: #212529;
|
|
31
|
+
--body-strong-color: #121416;
|
|
32
|
+
--body-color-rgb: 33, 37, 41;
|
|
33
|
+
--body-bg: #fff;
|
|
34
|
+
--body-bg-rgb: 255, 255, 255;
|
|
35
|
+
--link-color: #0d6efd;
|
|
36
|
+
--link-color-rgb: 13, 110, 253;
|
|
37
|
+
--link-decoration: none;
|
|
38
|
+
--link-hover-color: #0a58ca;
|
|
39
|
+
--link-hover-color-rgb: 10, 88, 202;
|
|
40
|
+
--border-color: #dee2e6;
|
|
41
|
+
--black: #000;
|
|
42
|
+
|
|
43
|
+
// scrollbar
|
|
44
|
+
--scrollbar-track-bg: #e8e8e8;
|
|
45
|
+
--scrollbar-thumb-bg: #b9b9b9;
|
|
46
|
+
--scrollbar-thumb-hover-bg: #8b8b8b;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-theme='dark'] {
|
|
50
|
+
@media not print {
|
|
51
|
+
--body-color: #adb5bd;
|
|
52
|
+
--body-strong-color: #d1d5da;
|
|
53
|
+
--body-color-rgb: 173, 181, 189;
|
|
54
|
+
--body-bg: #212529;
|
|
55
|
+
--body-bg-rgb: 33, 37, 41;
|
|
56
|
+
--link-color: #6ea8fe;
|
|
57
|
+
--link-hover-color: #8bb9fe;
|
|
58
|
+
--link-color-rgb: 110, 168, 254;
|
|
59
|
+
--link-hover-color-rgb: 139, 185, 254;
|
|
60
|
+
--border-color: #495057;
|
|
61
|
+
--black: #000;
|
|
62
|
+
|
|
63
|
+
// scrollbar
|
|
64
|
+
--scrollbar-track-bg: #35393c;
|
|
65
|
+
--scrollbar-thumb-bg: #5e6063;
|
|
66
|
+
--scrollbar-thumb-hover-bg: #86888a;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@use 'border' as *;
|
|
2
|
+
@use 'breakpoint' as *;
|
|
3
|
+
@use 'px2rem' as *;
|
|
4
|
+
|
|
5
|
+
.top-panel {
|
|
6
|
+
&.xpack-o-root {
|
|
7
|
+
border: none;
|
|
8
|
+
@include border-bottom;
|
|
9
|
+
|
|
10
|
+
@include lg {
|
|
11
|
+
--navbar-max-width: px2rem(240px);
|
|
12
|
+
width: 100%;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
height: min-content;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.xpack-o-root {
|
|
20
|
+
&__nav-items {
|
|
21
|
+
height: calc(100vh - px2rem(35px));
|
|
22
|
+
|
|
23
|
+
@include lg {
|
|
24
|
+
position: fixed;
|
|
25
|
+
top: px2rem(35px);
|
|
26
|
+
display: block;
|
|
27
|
+
padding-bottom: px2rem(8px);
|
|
28
|
+
transform: translateX(-100%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.show {
|
|
32
|
+
display: block;
|
|
33
|
+
box-shadow: 0 px2rem(2px) px2rem(4px) #a6a6a6;
|
|
34
|
+
transform: translateX(0);
|
|
35
|
+
transition: transform 0.2s ease-out;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__title {
|
|
40
|
+
display: flex;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__button-close,
|
|
44
|
+
&__button-setting {
|
|
45
|
+
@include lg {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__frame-control {
|
|
51
|
+
@include lg {
|
|
52
|
+
margin-left: auto;
|
|
53
|
+
margin-right: auto;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__active-item-options {
|
|
60
|
+
@include lg {
|
|
61
|
+
display: block;
|
|
62
|
+
position: fixed;
|
|
63
|
+
transform: translateX(100%);
|
|
64
|
+
top: px2rem(31px);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.show {
|
|
68
|
+
display: block;
|
|
69
|
+
box-shadow: 0 px2rem(2px) px2rem(4px) #a6a6a6;
|
|
70
|
+
transform: translateX(0);
|
|
71
|
+
transition: transform 0.2s ease-out;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__actual-width {
|
|
76
|
+
@include lg {
|
|
77
|
+
margin-top: px2rem(4px);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__controls {
|
|
82
|
+
@include lg {
|
|
83
|
+
display: block;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|