@luci-dev/capture 0.0.0-stage → 0.5.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/LICENSE +21 -0
- package/dist/a11y.d.ts +54 -0
- package/dist/a11y.d.ts.map +1 -0
- package/dist/a11y.js +144 -0
- package/dist/a11y.js.map +1 -0
- package/dist/browser.d.ts +4 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +4 -0
- package/dist/browser.js.map +1 -0
- package/dist/color.d.ts +44 -0
- package/dist/color.d.ts.map +1 -0
- package/dist/color.js +230 -0
- package/dist/color.js.map +1 -0
- package/dist/component.d.ts +94 -0
- package/dist/component.d.ts.map +1 -0
- package/dist/component.js +445 -0
- package/dist/component.js.map +1 -0
- package/dist/dom.d.ts +36 -0
- package/dist/dom.d.ts.map +1 -0
- package/dist/dom.js +365 -0
- package/dist/dom.js.map +1 -0
- package/dist/eligibility.d.ts +24 -0
- package/dist/eligibility.d.ts.map +1 -0
- package/dist/eligibility.js +33 -0
- package/dist/eligibility.js.map +1 -0
- package/dist/font.d.ts +18 -0
- package/dist/font.d.ts.map +1 -0
- package/dist/font.js +86 -0
- package/dist/font.js.map +1 -0
- package/dist/icon.d.ts +11 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/icon.js +221 -0
- package/dist/icon.js.map +1 -0
- package/dist/image.d.ts +82 -0
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +283 -0
- package/dist/image.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/layout.d.ts +9 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +115 -0
- package/dist/layout.js.map +1 -0
- package/dist/luci-capture.js +35510 -0
- package/dist/model.d.ts +60 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +43 -0
- package/dist/model.js.map +1 -0
- package/dist/naming.d.ts +8 -0
- package/dist/naming.d.ts.map +1 -0
- package/dist/naming.js +33 -0
- package/dist/naming.js.map +1 -0
- package/dist/page.d.ts +38 -0
- package/dist/page.d.ts.map +1 -0
- package/dist/page.js +102 -0
- package/dist/page.js.map +1 -0
- package/dist/realm.d.ts +17 -0
- package/dist/realm.d.ts.map +1 -0
- package/dist/realm.js +18 -0
- package/dist/realm.js.map +1 -0
- package/dist/responsive.d.ts +74 -0
- package/dist/responsive.d.ts.map +1 -0
- package/dist/responsive.js +237 -0
- package/dist/responsive.js.map +1 -0
- package/dist/section.d.ts +50 -0
- package/dist/section.d.ts.map +1 -0
- package/dist/section.js +244 -0
- package/dist/section.js.map +1 -0
- package/dist/spacing.d.ts +43 -0
- package/dist/spacing.d.ts.map +1 -0
- package/dist/spacing.js +113 -0
- package/dist/spacing.js.map +1 -0
- package/dist/stack.d.ts +11 -0
- package/dist/stack.d.ts.map +1 -0
- package/dist/stack.js +150 -0
- package/dist/stack.js.map +1 -0
- package/dist/states.d.ts +89 -0
- package/dist/states.d.ts.map +1 -0
- package/dist/states.js +457 -0
- package/dist/states.js.map +1 -0
- package/dist/text.d.ts +30 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +156 -0
- package/dist/text.js.map +1 -0
- package/dist/ui/basket.d.ts +50 -0
- package/dist/ui/basket.d.ts.map +1 -0
- package/dist/ui/basket.js +93 -0
- package/dist/ui/basket.js.map +1 -0
- package/dist/ui/check.d.ts +43 -0
- package/dist/ui/check.d.ts.map +1 -0
- package/dist/ui/check.js +168 -0
- package/dist/ui/check.js.map +1 -0
- package/dist/ui/devSettings.d.ts +66 -0
- package/dist/ui/devSettings.d.ts.map +1 -0
- package/dist/ui/devSettings.js +115 -0
- package/dist/ui/devSettings.js.map +1 -0
- package/dist/ui/index.d.ts +14 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +14 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/loading.d.ts +18 -0
- package/dist/ui/loading.d.ts.map +1 -0
- package/dist/ui/loading.js +23 -0
- package/dist/ui/loading.js.map +1 -0
- package/dist/ui/modeSwitch.d.ts +17 -0
- package/dist/ui/modeSwitch.d.ts.map +1 -0
- package/dist/ui/modeSwitch.js +6 -0
- package/dist/ui/modeSwitch.js.map +1 -0
- package/dist/ui/mount.d.ts +83 -0
- package/dist/ui/mount.d.ts.map +1 -0
- package/dist/ui/mount.js +81 -0
- package/dist/ui/mount.js.map +1 -0
- package/dist/ui/picker.d.ts +22 -0
- package/dist/ui/picker.d.ts.map +1 -0
- package/dist/ui/picker.js +73 -0
- package/dist/ui/picker.js.map +1 -0
- package/dist/ui/remap.d.ts +27 -0
- package/dist/ui/remap.d.ts.map +1 -0
- package/dist/ui/remap.js +76 -0
- package/dist/ui/remap.js.map +1 -0
- package/dist/ui/screenshot.d.ts +39 -0
- package/dist/ui/screenshot.d.ts.map +1 -0
- package/dist/ui/screenshot.js +59 -0
- package/dist/ui/screenshot.js.map +1 -0
- package/dist/ui/styles.d.ts +2 -0
- package/dist/ui/styles.d.ts.map +1 -0
- package/dist/ui/styles.js +381 -0
- package/dist/ui/styles.js.map +1 -0
- package/dist/ui/theme.d.ts +59 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +93 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/toolbar.d.ts +101 -0
- package/dist/ui/toolbar.d.ts.map +1 -0
- package/dist/ui/toolbar.js +1494 -0
- package/dist/ui/toolbar.js.map +1 -0
- package/dist/ui/tools.d.ts +165 -0
- package/dist/ui/tools.d.ts.map +1 -0
- package/dist/ui/tools.js +345 -0
- package/dist/ui/tools.js.map +1 -0
- package/dist/ui/zip.d.ts +16 -0
- package/dist/ui/zip.d.ts.map +1 -0
- package/dist/ui/zip.js +104 -0
- package/dist/ui/zip.js.map +1 -0
- package/package.json +29 -3
- package/README.md +0 -3
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The toolbar's styles. They live in its shadow root, so the page and the toolbar never affect each
|
|
3
|
+
* other. Built on @luci-dev/ui (tokens, base and components from the brand kit): this file only lays out
|
|
4
|
+
* the toolbar's own parts, with var(--luci-*) values and no colours of its own.
|
|
5
|
+
*/
|
|
6
|
+
import { UI_CSS } from '@luci-dev/ui';
|
|
7
|
+
export const TOOLBAR_CSS = `
|
|
8
|
+
:host { all: initial; }
|
|
9
|
+
${UI_CSS}
|
|
10
|
+
/* Compact, as the kit gives for the toolbar panel: 32 px buttons, small labels, small body text */
|
|
11
|
+
.luci-theme { --luci-btn-h: 32px; --luci-btn-font: var(--luci-type-small-size); --luci-btn-line: var(--luci-type-small-line); --luci-btn-pad: var(--luci-space-12);
|
|
12
|
+
font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
13
|
+
|
|
14
|
+
/* The shell: a column at the window's edge, the toolbar pill first, then cards */
|
|
15
|
+
.shell {
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: var(--luci-space-12);
|
|
18
|
+
right: var(--luci-space-12);
|
|
19
|
+
z-index: 2147483647;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: flex-end;
|
|
23
|
+
gap: var(--luci-space-8);
|
|
24
|
+
max-width: calc(100vw - 24px);
|
|
25
|
+
max-height: calc(100vh - 24px);
|
|
26
|
+
/* The column itself is see-through: only the pill and the cards take the pointer */
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
}
|
|
29
|
+
.shell > * { pointer-events: auto; }
|
|
30
|
+
.luci-theme[data-dock="left"] .shell { right: auto; left: var(--luci-space-12); align-items: flex-start; }
|
|
31
|
+
.luci-theme[data-dock="left"] .bar,
|
|
32
|
+
.luci-theme[data-dock="left"] .sub,
|
|
33
|
+
.luci-theme[data-dock="left"] .panel { right: auto; left: var(--luci-space-12); }
|
|
34
|
+
|
|
35
|
+
/* The toolbar pill (DESIGN.md, On-page toolbar): Charcoal in both themes, float shadow, no stroke */
|
|
36
|
+
.bar {
|
|
37
|
+
--luci-color-focus: var(--luci-color-muzzle-50);
|
|
38
|
+
position: fixed;
|
|
39
|
+
top: var(--luci-space-12);
|
|
40
|
+
right: var(--luci-space-12);
|
|
41
|
+
z-index: 2147483647;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: 2px;
|
|
46
|
+
max-width: calc(100vw - 24px);
|
|
47
|
+
padding: var(--luci-space-8);
|
|
48
|
+
border-radius: 32px;
|
|
49
|
+
background: var(--luci-color-bar);
|
|
50
|
+
color: var(--luci-color-bar-ink);
|
|
51
|
+
box-shadow: var(--luci-shadow-float);
|
|
52
|
+
}
|
|
53
|
+
/* Above the cards, so the tools' tooltips are never under a card */
|
|
54
|
+
.shell > .bar { position: relative; z-index: 2; }
|
|
55
|
+
/* In the column the shell is what is placed: the bar's own offsets would move it a second time */
|
|
56
|
+
.luci-theme .shell > .bar { inset: auto; }
|
|
57
|
+
/*
|
|
58
|
+
* The extension's bar, dragged anywhere (data-h and data-v: the corner it is nearest). Cards open on
|
|
59
|
+
* the side with room: below a bar in the top half, above one in the bottom half, aligned to its side.
|
|
60
|
+
*/
|
|
61
|
+
.luci-theme .shell[data-v="bottom"] { flex-direction: column-reverse; }
|
|
62
|
+
.luci-theme .shell[data-h="left"] { align-items: flex-start; }
|
|
63
|
+
.luci-theme .shell[data-h="right"] { align-items: flex-end; }
|
|
64
|
+
.luci-theme .shell[data-movable] > .bar { cursor: grab; touch-action: none; }
|
|
65
|
+
.luci-theme .shell[data-moving] > .bar, .luci-theme .shell[data-moving] > .bar * { cursor: grabbing; user-select: none; }
|
|
66
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip]:not([data-tip-align])::after { top: auto; bottom: calc(100% + var(--luci-space-8)); transform: translate(-50%, 4px); }
|
|
67
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip]:not([data-tip-align]):is(:hover, :focus-visible)::after { transform: translate(-50%, 0); }
|
|
68
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip][data-tip-align="left"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: 0; right: auto; transform: translate(0, 4px); }
|
|
69
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip][data-tip-align="left"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }
|
|
70
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip][data-tip-align="right"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: auto; right: 0; transform: translate(0, 4px); }
|
|
71
|
+
.luci-theme .shell[data-v="bottom"] > .bar [data-tip][data-tip-align="right"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }
|
|
72
|
+
.luci-theme .bar button { --luci-btn-h: 40px; color: var(--luci-color-bar-ink); }
|
|
73
|
+
.luci-theme .bar .tool, .luci-theme .bar .menu-btn { --luci-btn-h: 48px; }
|
|
74
|
+
.luci-theme .bar button:hover:not(:disabled) { background: var(--luci-color-bar-hover); }
|
|
75
|
+
.luci-theme .bar button:disabled { color: var(--luci-color-muzzle-500); }
|
|
76
|
+
.luci-theme .bar button[aria-pressed="true"],
|
|
77
|
+
.luci-theme .bar button[aria-pressed="true"]:hover:not(:disabled) { background: var(--luci-color-tool-active); color: var(--luci-color-on-tool-active); }
|
|
78
|
+
.luci-theme .bar .btn-primary { background: var(--luci-color-primary); color: var(--luci-color-on-primary); }
|
|
79
|
+
.luci-theme .bar .btn-primary:hover:not(:disabled) { background: var(--luci-color-primary-hover); }
|
|
80
|
+
/* Disabled on Charcoal: only the icon dims, so it never looks like an "on" state */
|
|
81
|
+
.luci-theme .bar .btn-primary:disabled { background: transparent; color: var(--luci-color-muzzle-500); }
|
|
82
|
+
.bar-sep { flex: none; width: 1px; height: 24px; margin: 0 2px; background: var(--luci-color-bar-stroke); }
|
|
83
|
+
/* Luci's head: the menu button */
|
|
84
|
+
.luci-theme .bar .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; padding: 0; cursor: pointer; }
|
|
85
|
+
.luci-theme .bar .menu-btn .luci-avatar { transition: background-color var(--luci-motion-fast); }
|
|
86
|
+
.luci-theme .bar .menu-btn:is(:hover, [aria-pressed="true"]) { background: transparent; }
|
|
87
|
+
.luci-theme .bar .menu-btn:hover .luci-avatar { background: var(--luci-color-primary-hover); }
|
|
88
|
+
.luci-theme .bar .menu-btn[aria-pressed="true"] .luci-avatar { background: var(--luci-color-tool-active); }
|
|
89
|
+
/* The basket: a Collar Lime pill with its count */
|
|
90
|
+
.luci-theme .bar .basket-pill { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-16) 0 var(--luci-space-12);
|
|
91
|
+
background: var(--luci-color-accent); color: var(--luci-color-on-accent); font-weight: 600; }
|
|
92
|
+
.luci-theme .bar .basket-pill:hover:not(:disabled),
|
|
93
|
+
.luci-theme .bar .basket-pill[aria-pressed="true"],
|
|
94
|
+
.luci-theme .bar .basket-pill[aria-pressed="true"]:hover:not(:disabled),
|
|
95
|
+
.luci-theme .bar button.basket-pill[aria-pressed="true"]:hover:not(:disabled) { background: var(--luci-color-collar-lime-300); color: var(--luci-color-on-accent); }
|
|
96
|
+
.brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;
|
|
97
|
+
font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }
|
|
98
|
+
/* The dev toolbar's mode switch, on Charcoal */
|
|
99
|
+
.bar .seg { background: var(--luci-color-muzzle-800); align-self: center; }
|
|
100
|
+
.luci-theme .bar .seg button { color: var(--luci-color-bar-ink); }
|
|
101
|
+
.luci-theme .bar .seg button[aria-pressed="true"],
|
|
102
|
+
.luci-theme .bar .seg button[aria-pressed="true"]:hover:not(:disabled) { color: var(--luci-color-on-tool-active); }
|
|
103
|
+
.modes { margin-right: var(--luci-space-4); }
|
|
104
|
+
|
|
105
|
+
/*
|
|
106
|
+
* The dev toolbar is placed by its host: data-h and data-v name the corner it is nearest, --luci-x and
|
|
107
|
+
* --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the
|
|
108
|
+
* person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above
|
|
109
|
+
* a bar in the bottom half, just below one in the top half, aligned to its side. A panel takes the
|
|
110
|
+
* hint's place while it is open. The extension sets none of this (its bar keeps its own place).
|
|
111
|
+
*/
|
|
112
|
+
:host([data-h="right"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: auto; right: var(--luci-x, 12px); }
|
|
113
|
+
:host([data-h="left"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { right: auto; left: var(--luci-x, 12px); }
|
|
114
|
+
:host([data-h="right"]) .shell { align-items: flex-end; }
|
|
115
|
+
:host([data-h="left"]) .shell { align-items: flex-start; }
|
|
116
|
+
:host([data-v="bottom"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }
|
|
117
|
+
:host([data-v="bottom"]) .shell { flex-direction: column-reverse; }
|
|
118
|
+
:host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + 72px); }
|
|
119
|
+
:host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + 64px); }
|
|
120
|
+
:host([data-v="top"]) :is(.shell, .bar:not(.shell > .bar)) { bottom: auto; top: var(--luci-y, 12px); }
|
|
121
|
+
:host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + 72px); }
|
|
122
|
+
:host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + 64px); }
|
|
123
|
+
:host([data-v]) .shell { max-height: calc(100vh - var(--luci-y, 12px) - 12px); }
|
|
124
|
+
:host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
|
|
125
|
+
:host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
|
|
126
|
+
:host([data-v]) .luci-theme:has(> .panel) > .sub:not([role="alert"]) { display: none; }
|
|
127
|
+
:host([data-v="bottom"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }
|
|
128
|
+
:host([data-v="top"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }
|
|
129
|
+
@keyframes luci-rise { from { opacity: 0; transform: translateY(8px); } }
|
|
130
|
+
@keyframes luci-drop { from { opacity: 0; transform: translateY(-8px); } }
|
|
131
|
+
@media (prefers-reduced-motion: reduce) { :host([data-v]) :is(.sub, .panel, .menu) { animation: none; } }
|
|
132
|
+
:host([data-v="bottom"]) .bar [data-tip]:not([data-tip-align])::after { top: auto; bottom: calc(100% + var(--luci-space-8)); transform: translate(-50%, 4px); }
|
|
133
|
+
:host([data-v="bottom"]) .bar [data-tip]:not([data-tip-align]):is(:hover, :focus-visible)::after { transform: translate(-50%, 0); }
|
|
134
|
+
:host([data-v="bottom"]) .bar [data-tip][data-tip-align="left"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: 0; right: auto; transform: translate(0, 4px); }
|
|
135
|
+
:host([data-v="bottom"]) .bar [data-tip][data-tip-align="left"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }
|
|
136
|
+
:host([data-v="bottom"]) .bar [data-tip][data-tip-align="right"]::after { top: auto; bottom: calc(100% + var(--luci-space-8)); left: auto; right: 0; transform: translate(0, 4px); }
|
|
137
|
+
:host([data-v="bottom"]) .bar [data-tip][data-tip-align="right"]:is(:hover, :focus-visible)::after { transform: translate(0, 0); }
|
|
138
|
+
/* The dev toolbar's bar can be dragged by its own background, a separator or Luci */
|
|
139
|
+
:host([data-v]) .bar { cursor: grab; touch-action: none; }
|
|
140
|
+
:host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }
|
|
141
|
+
:host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }
|
|
142
|
+
/* New page's canvas covers the window: its tools and its panel keep clear of the bar */
|
|
143
|
+
:host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + 76px); }
|
|
144
|
+
:host([data-v="bottom"]) .wf-tools { padding-top: var(--luci-space-12); }
|
|
145
|
+
:host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + 76px); }
|
|
146
|
+
:host([data-v="top"]) .panel[data-part="sketch-panel"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }
|
|
147
|
+
|
|
148
|
+
/* Cards under the pill: the hint while picking, and every panel (radius-xl, float shadow, no stroke) */
|
|
149
|
+
.sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-shadow-float); }
|
|
150
|
+
.sub {
|
|
151
|
+
position: fixed;
|
|
152
|
+
top: 84px;
|
|
153
|
+
right: var(--luci-space-12);
|
|
154
|
+
z-index: 2147483646;
|
|
155
|
+
width: min(420px, calc(100vw - 24px));
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
gap: var(--luci-space-8);
|
|
159
|
+
padding: var(--luci-space-12) var(--luci-space-16);
|
|
160
|
+
}
|
|
161
|
+
/* In the column, cards drop the stand-alone z-index (flex items honour it even unpositioned) */
|
|
162
|
+
.shell > .sub { position: static; z-index: auto; width: min(560px, calc(100vw - 24px)); }
|
|
163
|
+
.sub p { margin: 0; }
|
|
164
|
+
.sub.with-luci { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
|
|
165
|
+
/* Luci beside a hint inside a card (Layout: placing, new page) */
|
|
166
|
+
.luci-hint { display: flex; align-items: center; gap: var(--luci-space-16); }
|
|
167
|
+
.luci-hint > p { margin: 0; min-width: 0; }
|
|
168
|
+
.sub .sub-body { display: flex; flex-direction: column; gap: var(--luci-space-8); min-width: 0; }
|
|
169
|
+
.keys { color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
170
|
+
.panel {
|
|
171
|
+
position: fixed;
|
|
172
|
+
right: var(--luci-space-12);
|
|
173
|
+
bottom: var(--luci-space-12);
|
|
174
|
+
z-index: 2147483646;
|
|
175
|
+
width: min(480px, calc(100vw - 24px));
|
|
176
|
+
max-height: min(72vh, 660px);
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: var(--luci-space-12);
|
|
180
|
+
padding: var(--luci-space-20);
|
|
181
|
+
overflow-y: auto;
|
|
182
|
+
overscroll-behavior: contain;
|
|
183
|
+
}
|
|
184
|
+
.shell > .panel { position: static; z-index: auto; width: min(560px, calc(100vw - 24px)); max-height: none; flex: 0 1 auto; min-height: 0; }
|
|
185
|
+
.panel > * { flex-shrink: 0; }
|
|
186
|
+
.panel > .items, .panel > .diffs { flex-shrink: 1; }
|
|
187
|
+
.panel h2 { margin: 0; font: var(--luci-type-title-weight) var(--luci-type-title-size)/var(--luci-type-title-line) var(--luci-font-display); }
|
|
188
|
+
.panel.result-panel { padding: 0; gap: 0; }
|
|
189
|
+
.panel-body { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-20) var(--luci-space-20) var(--luci-space-16); }
|
|
190
|
+
|
|
191
|
+
/* The menu: who Luci is, help, then settings */
|
|
192
|
+
.menu-head { display: flex; align-items: center; gap: var(--luci-space-16); }
|
|
193
|
+
.menu-head > .repo-btn { align-self: flex-start; margin-left: auto; }
|
|
194
|
+
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }
|
|
195
|
+
.settings-head h2 { margin: 0; }
|
|
196
|
+
/* The extension's invitation: the rest of Luci lives in the person's project. A tint, no stroke, no pop-up */
|
|
197
|
+
.invite { display: flex; flex-direction: column; align-items: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-12) var(--luci-space-16);
|
|
198
|
+
border-radius: var(--luci-radius-lg); background: var(--luci-color-primary-soft); }
|
|
199
|
+
.invite p { margin: 0; }
|
|
200
|
+
.invite-title { font: var(--luci-type-display-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-display); color: var(--luci-color-ink); }
|
|
201
|
+
.invite-body { color: var(--luci-color-ink); }
|
|
202
|
+
.luci-theme .invite-action { margin-top: var(--luci-space-4); }
|
|
203
|
+
.brand-stack { display: flex; flex-direction: column; gap: var(--luci-space-4); min-width: 0; }
|
|
204
|
+
.brand-title-line { display: flex; align-items: baseline; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
205
|
+
.brand-title { font: var(--luci-type-title-weight) var(--luci-type-title-size)/var(--luci-type-title-line) var(--luci-font-display); color: var(--luci-color-ink); }
|
|
206
|
+
.brand-sub { font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: var(--luci-type-small-weight); color: var(--luci-color-ink-secondary); }
|
|
207
|
+
.brand-desc { margin: 0; color: var(--luci-color-ink-secondary); }
|
|
208
|
+
/* The first-run greeting */
|
|
209
|
+
.greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
|
|
210
|
+
.greet .t-title { margin: 0; }
|
|
211
|
+
|
|
212
|
+
/* Segmented control */
|
|
213
|
+
.seg { display: inline-flex; align-self: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-4); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-full); }
|
|
214
|
+
.luci-theme .seg button { min-height: 28px; padding: 5px var(--luci-space-12); }
|
|
215
|
+
.seg button::before { inset: -8px 0; }
|
|
216
|
+
|
|
217
|
+
/* Lists: basket items, section files */
|
|
218
|
+
.items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-8); overflow: auto; }
|
|
219
|
+
.items li { display: grid; grid-template-columns: 1fr auto; gap: var(--luci-space-8); align-items: center; padding: var(--luci-space-12);
|
|
220
|
+
background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-lg); }
|
|
221
|
+
.files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-4); }
|
|
222
|
+
.files li { display: flex; gap: var(--luci-space-8); align-items: center; justify-content: space-between; padding: var(--luci-space-4) var(--luci-space-4) var(--luci-space-4) var(--luci-space-12);
|
|
223
|
+
background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-md); }
|
|
224
|
+
.files li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
225
|
+
.files code, [data-part="file-view-box"] code { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
226
|
+
.items textarea { grid-column: 1 / -1; min-height: 40px; font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
227
|
+
.items input { min-width: 0; }
|
|
228
|
+
/* A basket item: what it is, then its name with Export and Remove in one row, then its note */
|
|
229
|
+
.items .meta { grid-column: 1; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); }
|
|
230
|
+
.items .meta:not(:has(+ .compare-pick)) { grid-column: 1 / -1; }
|
|
231
|
+
.items .compare-pick { grid-column: 2; justify-self: end; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); }
|
|
232
|
+
/* Automatic design check (v0.4) */
|
|
233
|
+
.check-watch { gap: var(--luci-space-8); font-size: var(--luci-type-small-size); color: var(--luci-color-ink); }
|
|
234
|
+
/* Screenshot mode (v0.4): the hint card is where an image is dropped */
|
|
235
|
+
.sub.image-drop { outline: 2px dashed var(--luci-color-stroke-subtle); outline-offset: -6px; }
|
|
236
|
+
/* Compare mode (v0.4): What, A, B */
|
|
237
|
+
.compare-scroll { max-height: 50vh; overflow: auto; border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
|
|
238
|
+
.compare { width: 100%; min-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
239
|
+
.compare th, .compare td { padding: var(--luci-space-4) var(--luci-space-8); text-align: left; vertical-align: top; box-sizing: border-box; }
|
|
240
|
+
.compare .col-what, .compare th:first-child, .compare td:first-child { width: 50%; overflow-wrap: break-word; word-break: normal; }
|
|
241
|
+
.compare .col-a, .compare .col-b,
|
|
242
|
+
.compare th:nth-child(2), .compare td:nth-child(2),
|
|
243
|
+
.compare th:nth-child(3), .compare td:nth-child(3) { width: 25%; overflow-wrap: anywhere; word-break: break-word; }
|
|
244
|
+
.compare th { position: sticky; top: 0; background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary); font-weight: 600; }
|
|
245
|
+
.compare tr + tr td { border-top: 1px solid var(--luci-color-stroke-subtle); }
|
|
246
|
+
.items .row { grid-column: 2; flex-wrap: nowrap; }
|
|
247
|
+
.stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--luci-space-8); }
|
|
248
|
+
|
|
249
|
+
/* The file preview: code you can edit and drag taller */
|
|
250
|
+
textarea.preview { flex: none; height: 280px; min-height: 120px; max-height: 70vh; padding: var(--luci-space-12); white-space: pre; overflow: auto;
|
|
251
|
+
background: var(--luci-color-surface-raised); font: var(--luci-type-code-weight) var(--luci-type-code-size)/var(--luci-type-code-line) var(--luci-font-code); }
|
|
252
|
+
textarea[data-part="instructions"] { min-height: 64px; }
|
|
253
|
+
pre.preview { margin: 0; max-height: 240px; overflow: auto; white-space: pre-wrap; }
|
|
254
|
+
pre { margin: 0; overflow: auto; padding: var(--luci-space-12); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-sm); white-space: pre; min-height: 80px;
|
|
255
|
+
font: var(--luci-type-code-weight) 12px/var(--luci-type-code-line) var(--luci-font-code); }
|
|
256
|
+
|
|
257
|
+
.dim { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: 400; }
|
|
258
|
+
.hint { margin: 0; color: var(--luci-color-ink-secondary); }
|
|
259
|
+
/* An error is a status message: tinted fill and the status colour, never colour alone (the words say it) */
|
|
260
|
+
.error { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-danger-bg); color: var(--luci-color-danger); font-weight: 500; }
|
|
261
|
+
.row { display: flex; flex-wrap: wrap; gap: var(--luci-space-8); align-items: center; }
|
|
262
|
+
.file { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); color: var(--luci-color-ink-secondary); word-break: break-all; }
|
|
263
|
+
label { display: inline-flex; gap: var(--luci-space-4); align-items: center; color: var(--luci-color-ink-secondary); }
|
|
264
|
+
|
|
265
|
+
/* Page overlays while picking: drawn over the host page, never part of it */
|
|
266
|
+
.pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }
|
|
267
|
+
.highlight { position: fixed; z-index: 2147483646; pointer-events: none; border: 2px solid var(--luci-color-pick); background: var(--luci-color-pick-fill); border-radius: 2px; }
|
|
268
|
+
.highlight.locked { border-width: 2px; border-style: solid; }
|
|
269
|
+
.highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }
|
|
270
|
+
.pad { position: fixed; z-index: 2147483645; pointer-events: none; border-style: solid; border-color: var(--luci-color-pad-fill); }
|
|
271
|
+
.margin { position: fixed; z-index: 2147483645; pointer-events: none; border-style: solid; border-color: var(--luci-color-margin-fill); }
|
|
272
|
+
@media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }
|
|
273
|
+
/* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */
|
|
274
|
+
.label, .swatch { position: fixed; z-index: 2147483647; pointer-events: none; padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md);
|
|
275
|
+
background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-shadow-float);
|
|
276
|
+
font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
|
|
277
|
+
.label { max-width: 360px; white-space: pre-wrap; }
|
|
278
|
+
.label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }
|
|
279
|
+
.swatch { display: flex; gap: var(--luci-space-8); align-items: center; }
|
|
280
|
+
.chip { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--luci-color-bar-stroke); }
|
|
281
|
+
/* Pixel mode's loupe: the pixels around the pointer, 8 times larger, the picked one framed */
|
|
282
|
+
.loupe { position: fixed; z-index: 2147483647; pointer-events: none; width: 120px; height: 120px; border-radius: 50%; image-rendering: pixelated;
|
|
283
|
+
background: var(--luci-color-muzzle-900); box-shadow: 0 0 0 3px var(--luci-color-muzzle-50), var(--luci-shadow-float); }
|
|
284
|
+
|
|
285
|
+
/* State pills */
|
|
286
|
+
.states-list { display: flex; flex-wrap: wrap; gap: var(--luci-space-4); }
|
|
287
|
+
.state { display: inline-flex; align-items: center; gap: var(--luci-space-4); height: 26px; padding: 0 var(--luci-space-12); border-radius: var(--luci-radius-full);
|
|
288
|
+
background: var(--luci-color-surface-sunken); color: var(--luci-color-ink); font-size: var(--luci-type-small-size); font-weight: 500; }
|
|
289
|
+
.state.default { background: var(--luci-color-primary-soft); color: var(--luci-color-link); font-weight: 600; }
|
|
290
|
+
.state.missing { background: transparent; color: var(--luci-color-ink-secondary); border: 1px dashed var(--luci-color-stroke-strong); }
|
|
291
|
+
.manual-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }
|
|
292
|
+
.section-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
293
|
+
.manual-actions { display: inline-flex; align-items: center; gap: var(--luci-space-8); flex: none; }
|
|
294
|
+
|
|
295
|
+
/* Settings and the 3-column export settings */
|
|
296
|
+
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--luci-space-8); }
|
|
297
|
+
.field-stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--luci-space-4); color: var(--luci-color-ink); }
|
|
298
|
+
.field-label { font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); font-weight: 600; color: var(--luci-color-ink); }
|
|
299
|
+
.field-stack .select, .field-stack select { width: 100%; }
|
|
300
|
+
.settings-appearance { display: flex; flex-direction: column; gap: var(--luci-space-12); }
|
|
301
|
+
/* The words wrap beside the control; the control keeps its place on the right */
|
|
302
|
+
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-12); }
|
|
303
|
+
.setting-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
|
|
304
|
+
.setting-row > .seg { flex: none; align-self: center; }
|
|
305
|
+
.settings-divider { height: 1px; margin: var(--luci-space-4) 0; border: 0; background: var(--luci-color-stroke-subtle); }
|
|
306
|
+
.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: var(--luci-space-8) var(--luci-space-12); align-items: center; padding: var(--luci-space-12);
|
|
307
|
+
border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); font-size: var(--luci-type-small-size); }
|
|
308
|
+
.kbd { display: inline-block; min-width: 24px; padding: 2px var(--luci-space-8); border-radius: 6px; background: var(--luci-color-surface-raised); color: var(--luci-color-ink);
|
|
309
|
+
text-align: center; font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
|
|
310
|
+
|
|
311
|
+
/* Connected project status (v0.4.4) */
|
|
312
|
+
.project-card { display: flex; flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
|
|
313
|
+
.project-header { display: flex; align-items: flex-start; gap: var(--luci-space-8); }
|
|
314
|
+
.status-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }
|
|
315
|
+
.status-dot.online { background: var(--luci-color-success); box-shadow: 0 0 0 2px var(--luci-color-success-bg); }
|
|
316
|
+
.status-dot.offline { background: var(--luci-color-stroke-strong); }
|
|
317
|
+
.project-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
318
|
+
.project-name { font-weight: 600; color: var(--luci-color-ink); font-size: var(--luci-type-small-size); }
|
|
319
|
+
.project-path { font-size: 11px; color: var(--luci-color-ink-secondary); word-break: break-all; }
|
|
320
|
+
.project-hint { font-size: 11px; color: var(--luci-color-ink-secondary); }
|
|
321
|
+
.project-port-row { display: flex; align-items: center; gap: var(--luci-space-8); margin-top: var(--luci-space-4); }
|
|
322
|
+
.port-input { flex: 1; min-width: 0; padding: 4px var(--luci-space-8); border-radius: var(--luci-radius-sm); border: 1px solid var(--luci-color-stroke-subtle); background: var(--luci-color-surface-raised); font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); color: var(--luci-color-ink); }
|
|
323
|
+
|
|
324
|
+
/* DevTool tabbed settings (v0.4.4) */
|
|
325
|
+
.setting-tools-header { display: flex; flex-direction: column; gap: var(--luci-space-8); }
|
|
326
|
+
.tool-tabs { display: flex; width: 100%; box-sizing: border-box; }
|
|
327
|
+
.tool-tabs button { flex: 1 1 0; text-align: center; justify-content: center; }
|
|
328
|
+
.tool-settings-body { display: flex; flex-direction: column; gap: var(--luci-space-12); }
|
|
329
|
+
.swatches { display: flex; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
330
|
+
.luci-theme .swatches button { width: 28px; min-height: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; }
|
|
331
|
+
.luci-theme .swatches button::before { inset: -8px; }
|
|
332
|
+
.luci-theme .swatches button[aria-pressed="true"] { outline: 2px solid var(--luci-color-focus); outline-offset: 2px; }
|
|
333
|
+
|
|
334
|
+
/* The selected element and its tips */
|
|
335
|
+
.selected-card { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16); border-radius: var(--luci-radius-lg); background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); }
|
|
336
|
+
.selected-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
337
|
+
.selected-card h2 { margin: 0; font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); }
|
|
338
|
+
.tip-box { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary);
|
|
339
|
+
font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
340
|
+
|
|
341
|
+
/* The file and its actions */
|
|
342
|
+
.md-section { display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16) var(--luci-space-20) var(--luci-space-20); background: var(--luci-color-surface-sunken); }
|
|
343
|
+
.md-head { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
344
|
+
.md-title { font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); color: var(--luci-color-ink); }
|
|
345
|
+
.file-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
|
|
346
|
+
.scope-pill { flex: none; }
|
|
347
|
+
.actions { gap: var(--luci-space-8); }
|
|
348
|
+
|
|
349
|
+
/* Design check */
|
|
350
|
+
[data-part="check-summary"] { margin: 0; }
|
|
351
|
+
.row .rule { order: 1; flex-basis: 100%; max-height: 132px; overflow: auto; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
|
|
352
|
+
.rule code { font: var(--luci-type-code-weight) 12px/1.5 var(--luci-font-code); white-space: pre-wrap; word-break: break-word; }
|
|
353
|
+
.diffs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-4); overflow: auto; min-height: 60px; }
|
|
354
|
+
.diffs li { display: flex; flex-direction: column; gap: 2px; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-raised); border: 1px solid var(--luci-color-stroke-subtle); }
|
|
355
|
+
.diffs li.high { background: var(--luci-color-warning-bg); color: var(--luci-color-muzzle-900); border-color: transparent; }
|
|
356
|
+
.diffs li.high .dim { color: var(--luci-color-muzzle-700); }
|
|
357
|
+
.diffs label { align-items: flex-start; gap: var(--luci-space-8); color: inherit; }
|
|
358
|
+
.diffs input { flex: none; margin: 3px 0 0; }
|
|
359
|
+
.diffs .dim { padding-left: 21px; }
|
|
360
|
+
|
|
361
|
+
/* Screenshot diff overlay (v0.4.4) */
|
|
362
|
+
.diff-section { border-top: 1px solid var(--luci-color-stroke-subtle); padding-top: var(--luci-space-8); }
|
|
363
|
+
.diff-controls { display: flex; flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
|
|
364
|
+
.diff-slider { width: 100%; accent-color: var(--luci-color-primary); cursor: pointer; }
|
|
365
|
+
.diff-overlay { position: fixed; z-index: 2147483644; pointer-events: none; overflow: hidden; box-shadow: 0 0 0 2px var(--luci-color-primary), var(--luci-shadow-float); border-radius: var(--luci-radius-sm); }
|
|
366
|
+
.diff-overlay img { width: 100%; height: 100%; object-fit: fill; display: block; }
|
|
367
|
+
.diff-split-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--luci-color-primary); box-shadow: var(--luci-shadow-float); pointer-events: none; }
|
|
368
|
+
|
|
369
|
+
/* Loading */
|
|
370
|
+
.loading { display: flex; gap: var(--luci-space-12); align-items: center; margin: 0; color: var(--luci-color-ink); }
|
|
371
|
+
.loading .steps { color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); }
|
|
372
|
+
.loading-sleep { flex-direction: column; gap: var(--luci-space-8); padding: var(--luci-space-16) 0; text-align: center; }
|
|
373
|
+
.loading-sleep .stack { align-items: center; }
|
|
374
|
+
/* Spins with transform only: the browser keeps it moving off the page's main thread, even while Luci reads a heavy page */
|
|
375
|
+
.spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--luci-color-stroke-strong); border-top-color: var(--luci-color-primary);
|
|
376
|
+
animation: luci-spin 0.8s linear infinite; will-change: transform; }
|
|
377
|
+
button .spinner { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; }
|
|
378
|
+
@keyframes luci-spin { to { transform: rotate(360deg); } }
|
|
379
|
+
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
|
|
380
|
+
`;
|
|
381
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;;EAEzB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmXP,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type ThemeChoice = 'system' | 'light' | 'dark';
|
|
2
|
+
export type DockChoice = 'right' | 'left';
|
|
3
|
+
/**
|
|
4
|
+
* Where the person dragged the extension's bar: the corner it is nearest, and its distance from that
|
|
5
|
+
* corner's edges in px (so it stays in place relative to that corner when the window resizes).
|
|
6
|
+
*/
|
|
7
|
+
export interface BarPlace {
|
|
8
|
+
h: 'left' | 'right';
|
|
9
|
+
v: 'top' | 'bottom';
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}
|
|
13
|
+
export interface UiPrefs {
|
|
14
|
+
theme: ThemeChoice;
|
|
15
|
+
dock: DockChoice;
|
|
16
|
+
/** Luci greeted the person once (first run); never again after that. */
|
|
17
|
+
greeted?: boolean;
|
|
18
|
+
/** The dragged bar's place (the extension); none: the dock's top corner. */
|
|
19
|
+
place?: BarPlace | null;
|
|
20
|
+
/** The dev toolbar's dragged place; none: the dock's bottom corner, next to its button. */
|
|
21
|
+
devPlace?: BarPlace | null;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_UI_PREFS: UiPrefs;
|
|
24
|
+
export declare const UI_PREFS_KEY = "luci.ui";
|
|
25
|
+
/** Sent on the document when the preferences change, so every Luci on the page follows. */
|
|
26
|
+
export declare const UI_PREFS_EVENT = "luci-ui-prefs";
|
|
27
|
+
export declare const THEME_OPTIONS: readonly {
|
|
28
|
+
id: ThemeChoice;
|
|
29
|
+
label: string;
|
|
30
|
+
title: string;
|
|
31
|
+
}[];
|
|
32
|
+
export declare const DOCK_OPTIONS: readonly {
|
|
33
|
+
id: DockChoice;
|
|
34
|
+
label: string;
|
|
35
|
+
title: string;
|
|
36
|
+
}[];
|
|
37
|
+
/** Read saved UI preferences from localStorage (with safe fallback in sandboxed frames). */
|
|
38
|
+
export declare function readUiPrefs(doc: Document): UiPrefs;
|
|
39
|
+
/** Save UI preferences and notify any mounted Luci root on the page. */
|
|
40
|
+
export declare function writeUiPrefs(doc: Document, next: UiPrefs): void;
|
|
41
|
+
/** Reactive hook for theme and dock preferences across all Luci modes. */
|
|
42
|
+
export declare function useUiPrefs(doc: Document): [UiPrefs, (patch: Partial<UiPrefs>) => void];
|
|
43
|
+
/** Luci's head in a Ginger circle, from the brand kit (brand/BRAND.md section 8). Decorative: the name is beside it. */
|
|
44
|
+
export declare function LuciLogo(props: {
|
|
45
|
+
compact?: boolean;
|
|
46
|
+
size?: number;
|
|
47
|
+
}): import("preact").JSX.Element;
|
|
48
|
+
/** Reusable Theme (System / Light / Dark) and Panel position (Right / Left) controls for Settings panels. */
|
|
49
|
+
/**
|
|
50
|
+
* `movable`: the bar can be dragged (the hint says how); `moved`: it is where it was dropped, so
|
|
51
|
+
* neither side is chosen. Right or Left puts a dragged bar back in that side's corner.
|
|
52
|
+
*/
|
|
53
|
+
export declare function AppearanceControls(props: {
|
|
54
|
+
prefs: UiPrefs;
|
|
55
|
+
onChange: (patch: Partial<UiPrefs>) => void;
|
|
56
|
+
movable?: boolean;
|
|
57
|
+
moved?: boolean;
|
|
58
|
+
}): import("preact").JSX.Element;
|
|
59
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/ui/theme.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CA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1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Shared UI appearance preferences (System / Light / Dark theme and Right / Left panel dock)
|
|
4
|
+
* and the Luci brand mark, shared by the Capture extension toolbar and the Dev Toolbar.
|
|
5
|
+
*/
|
|
6
|
+
import { useEffect, useState } from 'preact/hooks';
|
|
7
|
+
import { LuciAvatar } from '@luci-dev/ui';
|
|
8
|
+
const validPlace = (p) => {
|
|
9
|
+
const o = p;
|
|
10
|
+
return o && (o.h === 'left' || o.h === 'right') && (o.v === 'top' || o.v === 'bottom') && Number.isFinite(o.x) && Number.isFinite(o.y)
|
|
11
|
+
? { h: o.h, v: o.v, x: Math.max(0, Math.round(o.x)), y: Math.max(0, Math.round(o.y)) }
|
|
12
|
+
: null;
|
|
13
|
+
};
|
|
14
|
+
export const DEFAULT_UI_PREFS = {
|
|
15
|
+
theme: 'system',
|
|
16
|
+
dock: 'right',
|
|
17
|
+
greeted: false
|
|
18
|
+
};
|
|
19
|
+
export const UI_PREFS_KEY = 'luci.ui';
|
|
20
|
+
/** Sent on the document when the preferences change, so every Luci on the page follows. */
|
|
21
|
+
export const UI_PREFS_EVENT = 'luci-ui-prefs';
|
|
22
|
+
export const THEME_OPTIONS = [
|
|
23
|
+
{ id: 'system', label: 'System', title: 'Match your operating system or browser appearance' },
|
|
24
|
+
{ id: 'light', label: 'Light', title: 'Muzzle White surface with Charcoal text' },
|
|
25
|
+
{ id: 'dark', label: 'Dark', title: 'Charcoal surface with Muzzle White text' }
|
|
26
|
+
];
|
|
27
|
+
export const DOCK_OPTIONS = [
|
|
28
|
+
// In the order they sit on screen: Left, then Right (the default)
|
|
29
|
+
{ id: 'left', label: 'Left', title: 'Move Luci to the left side when inspecting elements on the right' },
|
|
30
|
+
{ id: 'right', label: 'Right', title: 'Keep Luci docked on the right side of the window' }
|
|
31
|
+
];
|
|
32
|
+
/** Read saved UI preferences from localStorage (with safe fallback in sandboxed frames). */
|
|
33
|
+
export function readUiPrefs(doc) {
|
|
34
|
+
try {
|
|
35
|
+
const raw = (doc.defaultView ?? window).localStorage.getItem(UI_PREFS_KEY);
|
|
36
|
+
if (!raw)
|
|
37
|
+
return DEFAULT_UI_PREFS;
|
|
38
|
+
const parsed = JSON.parse(raw);
|
|
39
|
+
const theme = parsed.theme === 'light' || parsed.theme === 'dark' || parsed.theme === 'system' ? parsed.theme : 'system';
|
|
40
|
+
const dock = parsed.dock === 'left' || parsed.dock === 'right' ? parsed.dock : 'right';
|
|
41
|
+
const place = validPlace(parsed.place);
|
|
42
|
+
const devPlace = validPlace(parsed.devPlace);
|
|
43
|
+
return { theme, dock, greeted: parsed.greeted === true, ...(place ? { place } : {}), ...(devPlace ? { devPlace } : {}) };
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return DEFAULT_UI_PREFS;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** Save UI preferences and notify any mounted Luci root on the page. */
|
|
50
|
+
export function writeUiPrefs(doc, next) {
|
|
51
|
+
try {
|
|
52
|
+
(doc.defaultView ?? window).localStorage.setItem(UI_PREFS_KEY, JSON.stringify(next));
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
/* localStorage may be blocked in sandboxed frames */
|
|
56
|
+
}
|
|
57
|
+
doc.dispatchEvent(new CustomEvent(UI_PREFS_EVENT, { detail: next }));
|
|
58
|
+
}
|
|
59
|
+
/** Reactive hook for theme and dock preferences across all Luci modes. */
|
|
60
|
+
export function useUiPrefs(doc) {
|
|
61
|
+
const [prefs, setPrefs] = useState(() => readUiPrefs(doc));
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
const onUpdate = (e) => {
|
|
64
|
+
const detail = e.detail;
|
|
65
|
+
if (detail)
|
|
66
|
+
setPrefs(detail);
|
|
67
|
+
else
|
|
68
|
+
setPrefs(readUiPrefs(doc));
|
|
69
|
+
};
|
|
70
|
+
doc.addEventListener(UI_PREFS_EVENT, onUpdate);
|
|
71
|
+
return () => doc.removeEventListener(UI_PREFS_EVENT, onUpdate);
|
|
72
|
+
}, [doc]);
|
|
73
|
+
const update = (patch) => {
|
|
74
|
+
const next = { ...prefs, ...patch };
|
|
75
|
+
setPrefs(next);
|
|
76
|
+
writeUiPrefs(doc, next);
|
|
77
|
+
};
|
|
78
|
+
return [prefs, update];
|
|
79
|
+
}
|
|
80
|
+
/** Luci's head in a Ginger circle, from the brand kit (brand/BRAND.md section 8). Decorative: the name is beside it. */
|
|
81
|
+
export function LuciLogo(props) {
|
|
82
|
+
return _jsx(LuciAvatar, { size: props.size ?? (props.compact ? 32 : 44) });
|
|
83
|
+
}
|
|
84
|
+
/** Reusable Theme (System / Light / Dark) and Panel position (Right / Left) controls for Settings panels. */
|
|
85
|
+
/**
|
|
86
|
+
* `movable`: the bar can be dragged (the hint says how); `moved`: it is where it was dropped, so
|
|
87
|
+
* neither side is chosen. Right or Left puts a dragged bar back in that side's corner.
|
|
88
|
+
*/
|
|
89
|
+
export function AppearanceControls(props) {
|
|
90
|
+
const { prefs, onChange } = props;
|
|
91
|
+
return (_jsxs("div", { class: "settings-appearance", "data-part": "appearance-settings", children: [_jsxs("div", { class: "setting-row", children: [_jsxs("div", { class: "setting-copy", children: [_jsx("span", { class: "field-label", children: "Appearance" }), _jsx("span", { class: "dim", children: "System, light or dark" })] }), _jsx("div", { class: "seg", role: "group", "aria-label": "Theme", children: THEME_OPTIONS.map(t => (_jsx("button", { type: "button", "data-theme-choice": t.id, "aria-pressed": prefs.theme === t.id, title: t.title, onClick: () => onChange({ theme: t.id }), children: t.label }))) })] }), _jsxs("div", { class: "setting-row", children: [_jsxs("div", { class: "setting-copy", children: [_jsx("span", { class: "field-label", children: "Panel position" }), _jsx("span", { class: "dim", children: props.movable ? 'Drag the bar by its edge or Luci. Left or Right resets it.' : 'Move Luci to the other side if it covers an element' })] }), _jsx("div", { class: "seg", role: "group", "aria-label": "Panel position", children: DOCK_OPTIONS.map(d => (_jsx("button", { type: "button", "data-dock-choice": d.id, "aria-pressed": prefs.dock === d.id, title: d.title, onClick: () => onChange({ dock: d.id, place: null, devPlace: null }), children: d.label }))) })] })] }));
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/ui/theme.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA2B1C,MAAM,UAAU,GAAG,CAAC,CAAU,EAAmB,EAAE;IACjD,MAAM,CAAC,GAAG,CAA6B,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACpI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC,EAAE;QACxF,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAY;IACvC,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,KAAK;CACf,CA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