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.
Files changed (175) hide show
  1. package/.env +15 -0
  2. package/.env.development +6 -0
  3. package/.env.eshn +5 -0
  4. package/README.md +141 -5
  5. package/bin/buner.js +566 -0
  6. package/cli/README.md +1 -0
  7. package/cli/buner.ts +234 -0
  8. package/cli/cli.ts +125 -0
  9. package/cli/create-app.ts +59 -0
  10. package/cli/helpers/copy.ts +62 -0
  11. package/cli/helpers/format-files.ts +189 -0
  12. package/cli/helpers/git.ts +77 -0
  13. package/cli/helpers/install.ts +26 -0
  14. package/cli/helpers/is-folder-empty.ts +40 -0
  15. package/cli/helpers/is-writeable.ts +14 -0
  16. package/cli/helpers/make-dir.ts +7 -0
  17. package/cli/helpers/validate-pkg.ts +17 -0
  18. package/cli/install-template.ts +77 -0
  19. package/eslint.config.mjs +187 -0
  20. package/index.html +44 -0
  21. package/integration.ts +179 -0
  22. package/migrate-scss.ts +42 -0
  23. package/package.json +135 -7
  24. package/prerender.ts +229 -0
  25. package/public/.nojekyll +1 -0
  26. package/public/400.html +1 -0
  27. package/public/401.html +21 -0
  28. package/public/403.html +252 -0
  29. package/public/404.css +51 -0
  30. package/public/404.html +29 -0
  31. package/public/__images__/awww.jpeg +0 -0
  32. package/public/__images__/bat-body.png +0 -0
  33. package/public/__images__/bat-wing.png +0 -0
  34. package/public/__images__/haunted-house-background.png +0 -0
  35. package/public/__images__/haunted-house-foreground.png +0 -0
  36. package/public/assets/fonts/crimson-text/CrimsonText-Bold.ttf +0 -0
  37. package/public/assets/fonts/crimson-text/CrimsonText-BoldItalic.ttf +0 -0
  38. package/public/assets/fonts/crimson-text/CrimsonText-Italic.ttf +0 -0
  39. package/public/assets/fonts/crimson-text/CrimsonText-Regular.ttf +0 -0
  40. package/public/assets/fonts/crimson-text/CrimsonText-SemiBold.ttf +0 -0
  41. package/public/assets/fonts/crimson-text/CrimsonText-SemiBoldItalic.ttf +0 -0
  42. package/public/assets/fonts/crimson-text/CrimsonText.woff2 +0 -0
  43. package/public/assets/fonts/crimson-text/OFL.txt +93 -0
  44. package/public/assets/fonts/work-sans/OFL.txt +93 -0
  45. package/public/assets/fonts/work-sans/README.txt +81 -0
  46. package/public/assets/fonts/work-sans/WorkSans-Italic-VariableFont_wght.ttf +0 -0
  47. package/public/assets/fonts/work-sans/WorkSans-VariableFont_wght.ttf +0 -0
  48. package/public/assets/fonts/work-sans/WorkSans.woff2 +0 -0
  49. package/public/assets/fonts/work-sans/static/WorkSans-Black.ttf +0 -0
  50. package/public/assets/fonts/work-sans/static/WorkSans-BlackItalic.ttf +0 -0
  51. package/public/assets/fonts/work-sans/static/WorkSans-Bold.ttf +0 -0
  52. package/public/assets/fonts/work-sans/static/WorkSans-BoldItalic.ttf +0 -0
  53. package/public/assets/fonts/work-sans/static/WorkSans-ExtraBold.ttf +0 -0
  54. package/public/assets/fonts/work-sans/static/WorkSans-ExtraBoldItalic.ttf +0 -0
  55. package/public/assets/fonts/work-sans/static/WorkSans-ExtraLight.ttf +0 -0
  56. package/public/assets/fonts/work-sans/static/WorkSans-ExtraLightItalic.ttf +0 -0
  57. package/public/assets/fonts/work-sans/static/WorkSans-Italic.ttf +0 -0
  58. package/public/assets/fonts/work-sans/static/WorkSans-Light.ttf +0 -0
  59. package/public/assets/fonts/work-sans/static/WorkSans-LightItalic.ttf +0 -0
  60. package/public/assets/fonts/work-sans/static/WorkSans-Medium.ttf +0 -0
  61. package/public/assets/fonts/work-sans/static/WorkSans-MediumItalic.ttf +0 -0
  62. package/public/assets/fonts/work-sans/static/WorkSans-Regular.ttf +0 -0
  63. package/public/assets/fonts/work-sans/static/WorkSans-SemiBold.ttf +0 -0
  64. package/public/assets/fonts/work-sans/static/WorkSans-SemiBoldItalic.ttf +0 -0
  65. package/public/assets/fonts/work-sans/static/WorkSans-Thin.ttf +0 -0
  66. package/public/assets/fonts/work-sans/static/WorkSans-ThinItalic.ttf +0 -0
  67. package/public/assets/images/icons.svg +67 -0
  68. package/public/assets/images/logo.svg +14 -0
  69. package/public/assets/images/root.svg +49 -0
  70. package/public/assets/vendors/axios@0.24.0/axios.js +2275 -0
  71. package/public/assets/vendors/axios@0.24.0/axios.map +1 -0
  72. package/public/assets/vendors/axios@0.24.0/axios.min.js +2 -0
  73. package/public/assets/vendors/axios@0.24.0/axios.min.map +1 -0
  74. package/public/favicon.ico +0 -0
  75. package/public/favicon.svg +3 -0
  76. package/public/icon-128.png +0 -0
  77. package/public/icon-16.png +0 -0
  78. package/public/icon-192.png +0 -0
  79. package/public/icon-48.png +0 -0
  80. package/public/icon-512.png +0 -0
  81. package/public/json/avatar.json +42 -0
  82. package/public/manifest.webmanifest +29 -0
  83. package/public/mockServiceWorker.js +349 -0
  84. package/public/pl-states.svg +4 -0
  85. package/public/samples/01.svg +1 -0
  86. package/public/samples/Airbnb.svg +3 -0
  87. package/public/samples/Facebook.svg +3 -0
  88. package/public/samples/Google.svg +8 -0
  89. package/public/samples/Microsoft.svg +7 -0
  90. package/public/samples/Spotify.svg +3 -0
  91. package/public/samples/alexandra-stolz.svg +35 -0
  92. package/public/samples/browserconfig.xml +9 -0
  93. package/public/samples/cliff-curtis.jpg +0 -0
  94. package/public/samples/emilia-clarke.jpg +0 -0
  95. package/public/samples/favicon.ico +0 -0
  96. package/public/samples/icons/android-chrome-192x192.png +0 -0
  97. package/public/samples/icons/apple-touch-icon.png +0 -0
  98. package/public/samples/icons/favicon-144x144.png +0 -0
  99. package/public/samples/icons/favicon-150x150.png +0 -0
  100. package/public/samples/icons/favicon-16x16.png +0 -0
  101. package/public/samples/icons/favicon-32x32.png +0 -0
  102. package/public/samples/icons/favicon-48x48.png +0 -0
  103. package/public/samples/icons/favicon-70x70.png +0 -0
  104. package/public/samples/icons/favicon.ico +0 -0
  105. package/public/samples/image-1.svg +166 -0
  106. package/public/samples/image-2.svg +110 -0
  107. package/public/samples/image-3.svg +113 -0
  108. package/public/samples/janet-bray.svg +36 -0
  109. package/public/samples/kate-winslet.jpg +0 -0
  110. package/public/samples/manifest.json +19 -0
  111. package/public/samples/michelle-yeoh.jpg +0 -0
  112. package/public/samples/peg-legge.svg +37 -0
  113. package/public/samples/richard-guerra.svg +42 -0
  114. package/public/samples/rose-leslie.jpg +0 -0
  115. package/public/samples/sample-1.svg +365 -0
  116. package/public/samples/sample-2.svg +129 -0
  117. package/public/samples/sample-3.svg +93 -0
  118. package/public/samples/sample-4.svg +168 -0
  119. package/public/samples/sample-5.svg +155 -0
  120. package/public/samples/sample-6.svg +445 -0
  121. package/public/samples/sample-7.svg +404 -0
  122. package/public/samples/sample-8.png +0 -0
  123. package/public/staticwebapp.config.json +138 -0
  124. package/scripts.ts +56 -0
  125. package/server.ts +29 -0
  126. package/states.ts +63 -0
  127. package/styles.ts +232 -0
  128. package/tsconfig.json +71 -25
  129. package/types.d.ts +54 -0
  130. package/vite.config.ts +3 -0
  131. package/xpack/alias.ts +21 -0
  132. package/xpack/config.ts +59 -0
  133. package/xpack/create-server.ts +68 -0
  134. package/xpack/create-vite-dev-server.ts +33 -0
  135. package/xpack/deploy/deploy-inte.ts +3 -0
  136. package/xpack/filename.ts +43 -0
  137. package/xpack/hooks/build-start.ts +17 -0
  138. package/xpack/hooks/close-bundle.ts +19 -0
  139. package/xpack/hooks/handle-hot-update.ts +22 -0
  140. package/xpack/hooks/options.ts +55 -0
  141. package/xpack/hooks/resolve-dynamic-import.ts +18 -0
  142. package/xpack/hooks/transform-index-html.ts +18 -0
  143. package/xpack/hooks/transform.ts +72 -0
  144. package/xpack/hooks/write-bundle.ts +16 -0
  145. package/xpack/manual-chunk.ts +56 -0
  146. package/xpack/paths.ts +30 -0
  147. package/xpack/renderer.ts +141 -0
  148. package/xpack/root/active-item-options.tsx +98 -0
  149. package/xpack/root/frame-controls.tsx +139 -0
  150. package/xpack/root/index.tsx +107 -0
  151. package/xpack/root/rendered-item.tsx +25 -0
  152. package/xpack/root/root-context.ts +22 -0
  153. package/xpack/root/root-nav.tsx +162 -0
  154. package/xpack/root/state-animation-html.tsx +18 -0
  155. package/xpack/root/template.tsx +23 -0
  156. package/xpack/root/use-click-outside.ts +37 -0
  157. package/xpack/scripts/color-mode.entry.ts +28 -0
  158. package/xpack/scripts/mock-api.entry.ts +11 -0
  159. package/xpack/scripts/pl-states.entry.ts +321 -0
  160. package/xpack/scripts/root.entry.ts +135 -0
  161. package/xpack/scripts/theme-critical.entry.ts +20 -0
  162. package/xpack/states.schema.json +61 -0
  163. package/xpack/styles/_border.scss +22 -0
  164. package/xpack/styles/_breakpoint.scss +117 -0
  165. package/xpack/styles/_form.scss +23 -0
  166. package/xpack/styles/_px2rem.scss +5 -0
  167. package/xpack/styles/_reset.scss +134 -0
  168. package/xpack/styles/_state-toggle.scss +121 -0
  169. package/xpack/styles/_theme.scss +68 -0
  170. package/xpack/styles/_top-panel.scss +87 -0
  171. package/xpack/styles/_xpack-root.scss +322 -0
  172. package/xpack/styles/pl-states.scss +308 -0
  173. package/xpack/styles/root.scss +129 -0
  174. package/.github/workflows/deploy.yaml +0 -32
  175. 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,5 @@
1
+ @use 'sass:math';
2
+
3
+ @function px2rem($pxValue: 16px) {
4
+ @return math.div($pxValue, 16px) * 1rem;
5
+ }
@@ -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
+ }