stage-browser 0.0.0-stage → 0.1.1
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/README.md +136 -2
- package/build/icon.icns +0 -0
- package/build/icon.png +0 -0
- package/dist/bin/stage.js +111 -0
- package/dist/main/cli-args.js +28 -0
- package/dist/main/context-menu.js +68 -0
- package/dist/main/context.js +2 -0
- package/dist/main/extensions.js +78 -0
- package/dist/main/ipc.js +90 -0
- package/dist/main/main.js +279 -0
- package/dist/main/menu.js +140 -0
- package/dist/main/reveal.js +155 -0
- package/dist/main/selftest.js +490 -0
- package/dist/main/store.js +85 -0
- package/dist/main/suggest.js +43 -0
- package/dist/main/tabs.js +324 -0
- package/dist/main/url.js +38 -0
- package/dist/main/window.js +68 -0
- package/dist/preload/extension-compat.js +163 -0
- package/dist/preload/ui-preload.js +33 -0
- package/dist/shared/contract.js +6 -0
- package/dist/ui/app.js +653 -0
- package/dist/ui/index.html +41 -0
- package/dist/ui/mock.js +479 -0
- package/dist/ui/newtab.html +69 -0
- package/dist/ui/styles.css +410 -0
- package/node_modules/@types/chrome/LICENSE +21 -0
- package/node_modules/@types/chrome/README.md +15 -0
- package/node_modules/@types/chrome/chrome-cast/index.d.ts +1156 -0
- package/node_modules/@types/chrome/har-format/index.d.ts +6 -0
- package/node_modules/@types/chrome/index.d.ts +13786 -0
- package/node_modules/@types/chrome/package.json +99 -0
- package/node_modules/@types/filesystem/LICENSE +21 -0
- package/node_modules/@types/filesystem/README.md +15 -0
- package/node_modules/@types/filesystem/index.d.ts +564 -0
- package/node_modules/@types/filesystem/package.json +26 -0
- package/node_modules/@types/filewriter/LICENSE +21 -0
- package/node_modules/@types/filewriter/README.md +15 -0
- package/node_modules/@types/filewriter/index.d.ts +166 -0
- package/node_modules/@types/filewriter/package.json +25 -0
- package/node_modules/@types/har-format/LICENSE +21 -0
- package/node_modules/@types/har-format/README.md +15 -0
- package/node_modules/@types/har-format/index.d.ts +938 -0
- package/node_modules/@types/har-format/package.json +31 -0
- package/node_modules/adm-zip/LICENSE +21 -0
- package/node_modules/adm-zip/README.md +90 -0
- package/node_modules/adm-zip/adm-zip.js +1020 -0
- package/node_modules/adm-zip/headers/entryHeader.js +396 -0
- package/node_modules/adm-zip/headers/index.js +2 -0
- package/node_modules/adm-zip/headers/mainHeader.js +177 -0
- package/node_modules/adm-zip/methods/deflater.js +33 -0
- package/node_modules/adm-zip/methods/index.js +3 -0
- package/node_modules/adm-zip/methods/inflater.js +64 -0
- package/node_modules/adm-zip/methods/zipcrypto.js +175 -0
- package/node_modules/adm-zip/package.json +56 -0
- package/node_modules/adm-zip/types.d.ts +223 -0
- package/node_modules/adm-zip/util/constants.js +142 -0
- package/node_modules/adm-zip/util/decoder.js +5 -0
- package/node_modules/adm-zip/util/errors.js +66 -0
- package/node_modules/adm-zip/util/fattr.js +76 -0
- package/node_modules/adm-zip/util/index.js +5 -0
- package/node_modules/adm-zip/util/utils.js +481 -0
- package/node_modules/adm-zip/zipEntry.js +415 -0
- package/node_modules/adm-zip/zipFile.js +466 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/electron-chrome-web-store/README.md +143 -0
- package/node_modules/electron-chrome-web-store/dist/chrome-web-store.preload.js +299 -0
- package/node_modules/electron-chrome-web-store/dist/cjs/browser/index.js +1674 -0
- package/node_modules/electron-chrome-web-store/dist/esm/browser/index.mjs +950 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/api.d.ts +2 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/crx3.d.ts +20 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/id.d.ts +9 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/index.d.ts +62 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/installer.d.ts +29 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/loader.d.ts +18 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/types.d.ts +21 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/updater.d.ts +6 -0
- package/node_modules/electron-chrome-web-store/dist/types/browser/utils.d.ts +4 -0
- package/node_modules/electron-chrome-web-store/dist/types/common/constants.d.ts +44 -0
- package/node_modules/electron-chrome-web-store/dist/types/renderer/chrome-web-store.preload.d.ts +1 -0
- package/node_modules/electron-chrome-web-store/package.json +43 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/pbf/LICENSE +27 -0
- package/node_modules/pbf/README.md +293 -0
- package/node_modules/pbf/bin/pbf +17 -0
- package/node_modules/pbf/compile.js +441 -0
- package/node_modules/pbf/dist/pbf-dev.js +838 -0
- package/node_modules/pbf/dist/pbf.js +1 -0
- package/node_modules/pbf/index.d.ts +206 -0
- package/node_modules/pbf/index.js +830 -0
- package/node_modules/pbf/package.json +63 -0
- package/node_modules/protocol-buffers-schema/.travis.yml +7 -0
- package/node_modules/protocol-buffers-schema/LICENSE +21 -0
- package/node_modules/protocol-buffers-schema/README.md +122 -0
- package/node_modules/protocol-buffers-schema/example.js +11 -0
- package/node_modules/protocol-buffers-schema/example.proto +13 -0
- package/node_modules/protocol-buffers-schema/index.js +6 -0
- package/node_modules/protocol-buffers-schema/package.json +31 -0
- package/node_modules/protocol-buffers-schema/parse.js +769 -0
- package/node_modules/protocol-buffers-schema/stringify.js +206 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/basic.json +90 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/basic.proto +11 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/comments.json +99 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/comments.proto +19 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/complex.json +125 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/complex.proto +30 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/enum.json +42 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/enum.proto +8 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.json +32 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/escaped-quotes.proto +3 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/extend.json +167 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/extend.proto +19 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/import.json +30 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/import.proto +6 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/map.json +33 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/map.proto +3 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/no-tags.proto +8 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/oneof.json +41 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/oneof.proto +6 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/option.json +364 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/option.proto +72 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/options.json +47 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/options.proto +8 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/pheromon-trajectories.proto +8 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/reserved.json +55 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/reserved.proto +17 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/search.json +30 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/search.proto +5 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/service.json +108 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/service.proto +30 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/valid-packed.proto +35 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/version.json +90 -0
- package/node_modules/protocol-buffers-schema/test/fixtures/version.proto +13 -0
- package/node_modules/protocol-buffers-schema/test/index.js +157 -0
- package/node_modules/protocol-buffers-schema/tokenize.js +56 -0
- package/node_modules/resolve-protobuf-schema/.travis.yml +3 -0
- package/node_modules/resolve-protobuf-schema/LICENSE +21 -0
- package/node_modules/resolve-protobuf-schema/README.md +49 -0
- package/node_modules/resolve-protobuf-schema/index.js +50 -0
- package/node_modules/resolve-protobuf-schema/package.json +25 -0
- package/node_modules/resolve-protobuf-schema/test/a.proto +5 -0
- package/node_modules/resolve-protobuf-schema/test/b.proto +5 -0
- package/node_modules/resolve-protobuf-schema/test/c.proto +3 -0
- package/node_modules/resolve-protobuf-schema/test/index.js +49 -0
- package/package.json +64 -4
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/* Stage UI: tab capsule + omnibox. System fonts, no assets, 4px grid.
|
|
2
|
+
Theme: tokens use light-dark(); `color-scheme` lives on <body> (not <html>) so the
|
|
3
|
+
transparent view never gets an opaque canvas. [data-theme] on <html> forces a theme. */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
|
|
7
|
+
--mono: ui-monospace, "SF Mono", Menlo, monospace;
|
|
8
|
+
|
|
9
|
+
--surface: light-dark(rgb(247 247 248 / .94), rgb(29 29 32 / .94));
|
|
10
|
+
--panel: light-dark(rgb(250 250 251 / .98), rgb(30 30 33 / .98));
|
|
11
|
+
--border: light-dark(rgb(0 0 0 / .11), rgb(255 255 255 / .11));
|
|
12
|
+
--edge: light-dark(rgb(0 0 0 / .05), rgb(0 0 0 / .55));
|
|
13
|
+
--highlight: light-dark(rgb(255 255 255 / .9), rgb(255 255 255 / .07));
|
|
14
|
+
--text: light-dark(#1d1d1f, #f5f5f7);
|
|
15
|
+
--muted: light-dark(rgb(60 60 67 / .64), rgb(235 235 245 / .58));
|
|
16
|
+
--faint: light-dark(rgb(60 60 67 / .36), rgb(235 235 245 / .32));
|
|
17
|
+
--hover: light-dark(rgb(0 0 0 / .055), rgb(255 255 255 / .075));
|
|
18
|
+
--press: light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .12));
|
|
19
|
+
--tab-active: light-dark(#fff, rgb(255 255 255 / .125));
|
|
20
|
+
--tab-ring: light-dark(rgb(0 0 0 / .07), rgb(255 255 255 / .07));
|
|
21
|
+
--shadow-c: light-dark(rgb(0 0 0 / .16), rgb(0 0 0 / .5));
|
|
22
|
+
--accent: light-dark(#0a74e6, #4da3ff);
|
|
23
|
+
--accent-soft: light-dark(rgb(10 116 230 / .12), rgb(77 163 255 / .18));
|
|
24
|
+
--kbd-bg: light-dark(rgb(0 0 0 / .06), rgb(255 255 255 / .1));
|
|
25
|
+
|
|
26
|
+
--ease-out: cubic-bezier(.2, .8, .2, 1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
30
|
+
|
|
31
|
+
html, body {
|
|
32
|
+
margin: 0;
|
|
33
|
+
height: 100%;
|
|
34
|
+
background: transparent;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
color-scheme: light dark;
|
|
40
|
+
font: 400 13px/16px var(--font);
|
|
41
|
+
color: var(--text);
|
|
42
|
+
-webkit-font-smoothing: antialiased;
|
|
43
|
+
-webkit-user-select: none;
|
|
44
|
+
user-select: none;
|
|
45
|
+
cursor: default;
|
|
46
|
+
}
|
|
47
|
+
:root[data-theme="light"] body { color-scheme: light; }
|
|
48
|
+
:root[data-theme="dark"] body { color-scheme: dark; }
|
|
49
|
+
|
|
50
|
+
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: default; }
|
|
51
|
+
svg { display: block; flex: none; }
|
|
52
|
+
::selection { background: var(--accent-soft); }
|
|
53
|
+
#omni-input::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
|
|
54
|
+
|
|
55
|
+
:focus { outline: none; }
|
|
56
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
57
|
+
|
|
58
|
+
/* ---------- strip + capsule ---------- */
|
|
59
|
+
|
|
60
|
+
#strip {
|
|
61
|
+
position: fixed;
|
|
62
|
+
inset: 0 0 auto 0;
|
|
63
|
+
height: 52px;
|
|
64
|
+
padding: 8px 12px 8px 84px; /* 84px reserved for the traffic lights */
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
-webkit-app-region: drag;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#capsule {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 2px;
|
|
76
|
+
height: 36px;
|
|
77
|
+
max-width: 100%;
|
|
78
|
+
min-width: 0;
|
|
79
|
+
padding: 4px;
|
|
80
|
+
border-radius: 12px;
|
|
81
|
+
background: var(--surface);
|
|
82
|
+
border: .5px solid var(--border);
|
|
83
|
+
box-shadow:
|
|
84
|
+
inset 0 .5px 0 var(--highlight),
|
|
85
|
+
0 0 0 .5px var(--edge),
|
|
86
|
+
0 1px 2px rgb(0 0 0 / .08),
|
|
87
|
+
0 4px 10px -2px var(--shadow-c),
|
|
88
|
+
0 10px 24px -10px var(--shadow-c); /* reaches ~24px below; main gives the view 20px under the strip */
|
|
89
|
+
-webkit-app-region: drag;
|
|
90
|
+
|
|
91
|
+
/* exit: quick and quiet */
|
|
92
|
+
opacity: 0;
|
|
93
|
+
transform: translateY(-10px);
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
transition: opacity 120ms ease-in, transform 120ms ease-in;
|
|
96
|
+
will-change: opacity, transform;
|
|
97
|
+
}
|
|
98
|
+
/* Pinned: the page starts right under the strip, so the view can't grow; keep the shadow inside 8px. */
|
|
99
|
+
.bar-pinned #capsule {
|
|
100
|
+
box-shadow:
|
|
101
|
+
inset 0 .5px 0 var(--highlight),
|
|
102
|
+
0 0 0 .5px var(--edge),
|
|
103
|
+
0 1px 2px rgb(0 0 0 / .08),
|
|
104
|
+
0 2px 6px -1px var(--shadow-c);
|
|
105
|
+
}
|
|
106
|
+
.bar-visible #capsule {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
transform: none;
|
|
109
|
+
pointer-events: auto;
|
|
110
|
+
transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* every interactive thing opts out of dragging */
|
|
114
|
+
#tabs, #new-tab, browser-action-list, .tab { -webkit-app-region: no-drag; }
|
|
115
|
+
|
|
116
|
+
#tabs {
|
|
117
|
+
position: relative;
|
|
118
|
+
display: flex;
|
|
119
|
+
gap: 2px;
|
|
120
|
+
/* A scroll container clips its children's shadows, so it gets 6px/4px of inner room,
|
|
121
|
+
cancelled by negative margins so the layout doesn't move. */
|
|
122
|
+
height: 40px;
|
|
123
|
+
padding: 6px 4px;
|
|
124
|
+
margin: -6px -4px;
|
|
125
|
+
flex: 0 1 auto;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
overflow-x: auto;
|
|
128
|
+
overflow-y: hidden;
|
|
129
|
+
scrollbar-width: none;
|
|
130
|
+
overscroll-behavior: contain;
|
|
131
|
+
}
|
|
132
|
+
#tabs::-webkit-scrollbar { display: none; }
|
|
133
|
+
#tabs.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px); mask-image: linear-gradient(90deg, transparent 0, #000 20px); }
|
|
134
|
+
#tabs.fade-r { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 20px); mask-image: linear-gradient(270deg, transparent 0, #000 20px); }
|
|
135
|
+
#tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
|
|
136
|
+
|
|
137
|
+
/* ---------- tabs ---------- */
|
|
138
|
+
|
|
139
|
+
.tab {
|
|
140
|
+
--reserve: 0px; /* space under the close button / audio glyph the title fades out before */
|
|
141
|
+
position: relative;
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
flex: 0 1 200px;
|
|
146
|
+
min-width: 72px;
|
|
147
|
+
height: 28px;
|
|
148
|
+
padding: 0 8px;
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
color: var(--muted);
|
|
151
|
+
background: transparent;
|
|
152
|
+
box-shadow: 0 0 0 .5px transparent;
|
|
153
|
+
transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 180ms var(--ease-out);
|
|
154
|
+
}
|
|
155
|
+
.tab:hover { background: var(--hover); color: var(--text); }
|
|
156
|
+
.tab.active {
|
|
157
|
+
color: var(--text);
|
|
158
|
+
background: var(--tab-active);
|
|
159
|
+
box-shadow: 0 0 0 .5px var(--tab-ring), 0 1px 1px rgb(0 0 0 / .05), 0 1px 4px var(--shadow-c);
|
|
160
|
+
}
|
|
161
|
+
.tab.has-aud { --reserve: 20px; }
|
|
162
|
+
.tab:hover, .tab.active { --reserve: 24px; }
|
|
163
|
+
.tab.has-aud:hover, .tab.has-aud.active { --reserve: 44px; }
|
|
164
|
+
|
|
165
|
+
.tab.entering { animation: tab-in 180ms var(--ease-out) both; }
|
|
166
|
+
.tab.closing {
|
|
167
|
+
animation: tab-out 160ms var(--ease-out) both;
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
}
|
|
170
|
+
@keyframes tab-in {
|
|
171
|
+
from { flex-basis: 0px; min-width: 0px; padding-left: 0; padding-right: 0; opacity: 0; }
|
|
172
|
+
}
|
|
173
|
+
@keyframes tab-out {
|
|
174
|
+
to { flex-basis: 0px; min-width: 0px; padding-left: 0; padding-right: 0; opacity: 0; }
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.tab.dragging {
|
|
178
|
+
z-index: 2;
|
|
179
|
+
transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
|
|
180
|
+
background: var(--tab-active);
|
|
181
|
+
color: var(--text);
|
|
182
|
+
box-shadow: 0 0 0 .5px var(--tab-ring), 0 2px 4px rgb(0 0 0 / .12), 0 1px 6px -1px var(--shadow-c); /* stays inside #tabs' 6px room */
|
|
183
|
+
}
|
|
184
|
+
#tabs.no-anim .tab { transition: none; }
|
|
185
|
+
|
|
186
|
+
/* favicon / spinner / monogram share one 16px slot */
|
|
187
|
+
.ico { position: relative; flex: none; width: 16px; height: 16px; }
|
|
188
|
+
.ico > * { position: absolute; inset: 0; display: none; }
|
|
189
|
+
.ico[data-k="img"] .fav,
|
|
190
|
+
.ico[data-k="mono"] .mono,
|
|
191
|
+
.ico[data-k="spin"] .spin,
|
|
192
|
+
.ico[data-k="blank"] .blank { display: block; }
|
|
193
|
+
|
|
194
|
+
.fav { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; -webkit-user-drag: none; }
|
|
195
|
+
.mono {
|
|
196
|
+
--h: 220;
|
|
197
|
+
border-radius: 5px;
|
|
198
|
+
font: 600 10px/16px var(--font);
|
|
199
|
+
text-align: center;
|
|
200
|
+
text-transform: uppercase;
|
|
201
|
+
color: light-dark(hsl(var(--h) 62% 36%), hsl(var(--h) 80% 76%));
|
|
202
|
+
background: light-dark(hsl(var(--h) 70% 50% / .16), hsl(var(--h) 70% 60% / .22));
|
|
203
|
+
}
|
|
204
|
+
.blank { color: var(--faint); }
|
|
205
|
+
.blank svg { width: 16px; height: 16px; }
|
|
206
|
+
|
|
207
|
+
.spin {
|
|
208
|
+
inset: 1px;
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
border: 1.5px solid var(--faint);
|
|
211
|
+
border-top-color: var(--accent);
|
|
212
|
+
animation: spin 760ms linear infinite;
|
|
213
|
+
}
|
|
214
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
215
|
+
|
|
216
|
+
.title {
|
|
217
|
+
flex: 1 1 auto;
|
|
218
|
+
min-width: 0;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
white-space: nowrap;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
letter-spacing: -.003em;
|
|
223
|
+
-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--reserve) - 14px), transparent calc(100% - var(--reserve)));
|
|
224
|
+
mask-image: linear-gradient(90deg, #000 calc(100% - var(--reserve) - 14px), transparent calc(100% - var(--reserve)));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.aud {
|
|
228
|
+
position: absolute;
|
|
229
|
+
right: 8px;
|
|
230
|
+
top: 7px;
|
|
231
|
+
width: 14px;
|
|
232
|
+
height: 14px;
|
|
233
|
+
display: none;
|
|
234
|
+
color: var(--muted);
|
|
235
|
+
transition: right 140ms var(--ease-out);
|
|
236
|
+
}
|
|
237
|
+
.has-aud .aud { display: block; }
|
|
238
|
+
.tab:hover .aud, .tab.active .aud { right: 28px; }
|
|
239
|
+
.aud .off { display: none; }
|
|
240
|
+
.aud.is-muted .on { display: none; }
|
|
241
|
+
.aud.is-muted .off { display: block; }
|
|
242
|
+
|
|
243
|
+
.close {
|
|
244
|
+
position: absolute;
|
|
245
|
+
right: 4px;
|
|
246
|
+
top: 4px;
|
|
247
|
+
width: 20px;
|
|
248
|
+
height: 20px;
|
|
249
|
+
border-radius: 6px;
|
|
250
|
+
display: grid;
|
|
251
|
+
place-items: center;
|
|
252
|
+
color: var(--muted);
|
|
253
|
+
opacity: 0;
|
|
254
|
+
pointer-events: none;
|
|
255
|
+
transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
|
|
256
|
+
-webkit-app-region: no-drag;
|
|
257
|
+
}
|
|
258
|
+
.tab:hover .close, .tab.active .close, .close:focus-visible { opacity: 1; pointer-events: auto; }
|
|
259
|
+
.close:hover { background: var(--press); color: var(--text); }
|
|
260
|
+
|
|
261
|
+
/* compact: many tabs → favicon-only, the active tab keeps its title */
|
|
262
|
+
#tabs.compact .tab { flex: 0 0 36px; min-width: 36px; padding: 0; justify-content: center; }
|
|
263
|
+
#tabs.compact .tab.active { flex: 0 0 120px; min-width: 120px; padding: 0 8px; justify-content: flex-start; }
|
|
264
|
+
#tabs.compact .tab:not(.active) .title,
|
|
265
|
+
#tabs.compact .tab:not(.active) .aud { display: none; }
|
|
266
|
+
#tabs.compact .tab:not(.active) .close { right: 8px; top: 4px; width: 20px; left: auto; background: var(--hover); backdrop-filter: none; }
|
|
267
|
+
#tabs.compact .tab:not(.active):hover .ico { opacity: 0; }
|
|
268
|
+
#tabs.compact .tab:not(.active) .close { inset: 4px 8px; width: 20px; }
|
|
269
|
+
#tabs.compact .tab.entering { animation-name: tab-in-c; }
|
|
270
|
+
#tabs.compact .tab.closing { animation-name: tab-out; }
|
|
271
|
+
@keyframes tab-in-c { from { flex-basis: 0px; min-width: 0px; opacity: 0; } }
|
|
272
|
+
|
|
273
|
+
/* ---------- trailing controls ---------- */
|
|
274
|
+
|
|
275
|
+
#controls { display: flex; align-items: center; gap: 2px; flex: none; }
|
|
276
|
+
/* Extensions menu → Hide Icons in Tab Bar. The extensions keep running; only their buttons go. */
|
|
277
|
+
.hide-ext #controls, .no-ext #controls { display: none; }
|
|
278
|
+
.divider { width: 1px; height: 16px; margin: 0 4px 0 2px; background: var(--border); border-radius: 1px; }
|
|
279
|
+
|
|
280
|
+
.icon-btn {
|
|
281
|
+
flex: none;
|
|
282
|
+
width: 28px;
|
|
283
|
+
height: 28px;
|
|
284
|
+
border-radius: 8px;
|
|
285
|
+
display: grid;
|
|
286
|
+
place-items: center;
|
|
287
|
+
color: var(--muted);
|
|
288
|
+
transition: background-color 120ms ease, color 120ms ease;
|
|
289
|
+
}
|
|
290
|
+
.icon-btn:hover { background: var(--hover); color: var(--text); }
|
|
291
|
+
.icon-btn:active { background: var(--press); }
|
|
292
|
+
|
|
293
|
+
browser-action-list { display: flex; align-items: center; height: 28px; }
|
|
294
|
+
browser-action-list::part(action) {
|
|
295
|
+
width: 24px;
|
|
296
|
+
height: 24px;
|
|
297
|
+
margin: 0 2px;
|
|
298
|
+
padding: 0;
|
|
299
|
+
border: 0;
|
|
300
|
+
border-radius: 6px;
|
|
301
|
+
background-color: transparent;
|
|
302
|
+
}
|
|
303
|
+
browser-action-list::part(action):hover { background-color: var(--hover); }
|
|
304
|
+
browser-action-list::part(action):active { background-color: var(--press); }
|
|
305
|
+
browser-action-list::part(badge) { font: 600 9px/12px var(--font); }
|
|
306
|
+
|
|
307
|
+
/* ---------- omnibox ---------- */
|
|
308
|
+
|
|
309
|
+
#omni { position: fixed; inset: 0; z-index: 10; }
|
|
310
|
+
#omni[hidden] { display: none; }
|
|
311
|
+
|
|
312
|
+
#omni-backdrop {
|
|
313
|
+
position: absolute;
|
|
314
|
+
inset: 0;
|
|
315
|
+
background: rgb(0 0 0 / .2);
|
|
316
|
+
animation: fade-in 140ms ease-out both;
|
|
317
|
+
}
|
|
318
|
+
@keyframes fade-in { from { opacity: 0; } }
|
|
319
|
+
|
|
320
|
+
#omni-panel {
|
|
321
|
+
position: absolute;
|
|
322
|
+
top: 18vh;
|
|
323
|
+
left: 50%;
|
|
324
|
+
width: min(640px, calc(100vw - 48px));
|
|
325
|
+
transform: translateX(-50%);
|
|
326
|
+
border-radius: 14px;
|
|
327
|
+
background: var(--panel);
|
|
328
|
+
border: .5px solid var(--border);
|
|
329
|
+
box-shadow:
|
|
330
|
+
inset 0 .5px 0 var(--highlight),
|
|
331
|
+
0 0 0 .5px var(--edge),
|
|
332
|
+
0 2px 6px rgb(0 0 0 / .12),
|
|
333
|
+
0 24px 64px rgb(0 0 0 / .32);
|
|
334
|
+
overflow: hidden;
|
|
335
|
+
animation: panel-in 160ms var(--ease-out) both;
|
|
336
|
+
}
|
|
337
|
+
@keyframes panel-in {
|
|
338
|
+
from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.985); }
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
#omni-field { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; }
|
|
342
|
+
#omni-glyph { width: 20px; height: 20px; color: var(--muted); display: grid; place-items: center; }
|
|
343
|
+
#omni-glyph svg { width: 20px; height: 20px; }
|
|
344
|
+
#omni-input {
|
|
345
|
+
flex: 1;
|
|
346
|
+
min-width: 0;
|
|
347
|
+
height: 100%;
|
|
348
|
+
border: 0;
|
|
349
|
+
outline: 0;
|
|
350
|
+
background: transparent;
|
|
351
|
+
color: var(--text);
|
|
352
|
+
font: 400 18px/24px var(--font);
|
|
353
|
+
letter-spacing: -.012em;
|
|
354
|
+
caret-color: var(--accent);
|
|
355
|
+
-webkit-user-select: text;
|
|
356
|
+
user-select: text;
|
|
357
|
+
}
|
|
358
|
+
#omni-input::placeholder { color: var(--faint); }
|
|
359
|
+
|
|
360
|
+
#omni-list {
|
|
361
|
+
max-height: calc(100vh - 18vh - 52px - 24px);
|
|
362
|
+
overflow-y: auto;
|
|
363
|
+
padding: 0 6px 6px;
|
|
364
|
+
scrollbar-width: thin;
|
|
365
|
+
}
|
|
366
|
+
#omni-list:not(:empty) { border-top: .5px solid var(--border); padding-top: 6px; }
|
|
367
|
+
|
|
368
|
+
.row {
|
|
369
|
+
display: flex;
|
|
370
|
+
align-items: center;
|
|
371
|
+
gap: 12px;
|
|
372
|
+
height: 40px;
|
|
373
|
+
padding: 0 12px;
|
|
374
|
+
border-radius: 8px;
|
|
375
|
+
}
|
|
376
|
+
.row.sel { background: var(--hover); }
|
|
377
|
+
.row .r-ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); flex: none; }
|
|
378
|
+
.row .r-ico img { width: 16px; height: 16px; border-radius: 4px; }
|
|
379
|
+
.row .r-ico svg { width: 16px; height: 16px; }
|
|
380
|
+
.row.sel .r-ico { color: var(--text); }
|
|
381
|
+
.row .r-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; }
|
|
382
|
+
.row .r-url { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
|
|
383
|
+
.row .r-url:empty { display: none; }
|
|
384
|
+
.row .r-title:only-of-type { flex: 1; }
|
|
385
|
+
.row .hint { display: none; align-items: center; gap: 6px; flex: none; color: var(--muted); font-size: 12px; margin-left: auto; }
|
|
386
|
+
.row.sel .hint { display: flex; }
|
|
387
|
+
kbd {
|
|
388
|
+
font: 500 11px/18px var(--font);
|
|
389
|
+
min-width: 20px;
|
|
390
|
+
padding: 0 5px;
|
|
391
|
+
text-align: center;
|
|
392
|
+
border-radius: 5px;
|
|
393
|
+
color: var(--muted);
|
|
394
|
+
background: var(--kbd-bg);
|
|
395
|
+
}
|
|
396
|
+
.hint .h-cmd { display: none; align-items: center; gap: 6px; }
|
|
397
|
+
.hint .h-ret { display: flex; align-items: center; gap: 6px; }
|
|
398
|
+
#omni.cmd .row:not(.is-tab) .h-cmd { display: flex; }
|
|
399
|
+
#omni.cmd .row:not(.is-tab) .h-ret { display: none; }
|
|
400
|
+
|
|
401
|
+
/* ---------- reduced motion ---------- */
|
|
402
|
+
|
|
403
|
+
@media (prefers-reduced-motion: reduce) {
|
|
404
|
+
#capsule, .bar-visible #capsule { transform: none; transition: opacity 80ms linear; }
|
|
405
|
+
.tab, .tab.dragging { transition: background-color 80ms linear, color 80ms linear, box-shadow 80ms linear; }
|
|
406
|
+
.tab.entering, .tab.closing, #omni-backdrop, #omni-panel { animation-duration: 1ms; }
|
|
407
|
+
#omni-panel { animation-name: fade-in; }
|
|
408
|
+
.aud, .close { transition: none; }
|
|
409
|
+
.spin { animation-duration: 1.6s; }
|
|
410
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/chrome`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for chrome (http://developer.chrome.com/extensions/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 26 Nov 2024 07:33:59 GMT
|
|
12
|
+
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
|
13
|
+
|
|
14
|
+
# Credits
|
|
15
|
+
These definitions were written by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [sreimer15](https://github.com/sreimer15), [MatCarlson](https://github.com/MatCarlson), [ekinsol](https://github.com/ekinsol), [Brian Wilson](https://github.com/echoabstract), [Sebastiaan Pasma](https://github.com/spasma), [bdbai](https://github.com/bdbai), [Jason Xian](https://github.com/JasonXian), [userTim](https://github.com/usertim), [Idan Zeierman](https://github.com/idan315), [Nicolas Rodriguez](https://github.com/nicolas377), [Ido Salomon](https://github.com/idosal), [Federico Brigante](https://github.com/fregante), and [Erwan Jugand](https://github.com/erwanjugand).
|