@ecopages/dev-toolbar 0.2.0-beta.30
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 +61 -0
- package/package.json +54 -0
- package/src/api/dev-manifest.d.ts +33 -0
- package/src/api/dev-manifest.js +34 -0
- package/src/api/types.d.ts +21 -0
- package/src/api/types.js +1 -0
- package/src/apps/a11y/a11y-badge.d.ts +3 -0
- package/src/apps/a11y/a11y-badge.js +10 -0
- package/src/apps/a11y/a11y-issue-groups.d.ts +12 -0
- package/src/apps/a11y/a11y-issue-groups.js +27 -0
- package/src/apps/a11y/audit-cache.d.ts +6 -0
- package/src/apps/a11y/audit-cache.js +16 -0
- package/src/apps/a11y/dom-path.d.ts +10 -0
- package/src/apps/a11y/dom-path.js +32 -0
- package/src/apps/a11y/run-a11y-checks.d.ts +30 -0
- package/src/apps/a11y/run-a11y-checks.js +286 -0
- package/src/apps/a11y-panel.d.ts +29 -0
- package/src/apps/a11y-panel.js +163 -0
- package/src/apps/deps/load-deps-insights.d.ts +19 -0
- package/src/apps/deps/load-deps-insights.js +76 -0
- package/src/apps/deps-panel.d.ts +24 -0
- package/src/apps/deps-panel.js +100 -0
- package/src/apps/islands-panel.d.ts +26 -0
- package/src/apps/islands-panel.js +126 -0
- package/src/apps/navigation-panel.d.ts +25 -0
- package/src/apps/navigation-panel.js +95 -0
- package/src/apps/settings-panel.d.ts +17 -0
- package/src/apps/settings-panel.js +58 -0
- package/src/bootstrap.d.ts +1 -0
- package/src/bootstrap.js +6 -0
- package/src/config.d.ts +14 -0
- package/src/config.js +10 -0
- package/src/islands/island-discovery.d.ts +5 -0
- package/src/islands/island-discovery.js +99 -0
- package/src/islands/island-record-builder.d.ts +21 -0
- package/src/islands/island-record-builder.js +100 -0
- package/src/islands/read-island-records.d.ts +11 -0
- package/src/islands/read-island-records.js +43 -0
- package/src/runtime/constants.d.ts +20 -0
- package/src/runtime/constants.js +20 -0
- package/src/runtime/highlight-element.d.ts +3 -0
- package/src/runtime/highlight-element.js +46 -0
- package/src/runtime/navigation-telemetry.d.ts +51 -0
- package/src/runtime/navigation-telemetry.js +259 -0
- package/src/runtime/preferences.d.ts +9 -0
- package/src/runtime/preferences.js +32 -0
- package/src/shell/badges.d.ts +2 -0
- package/src/shell/badges.js +9 -0
- package/src/shell/brand-logo.d.ts +4 -0
- package/src/shell/brand-logo.js +4 -0
- package/src/shell/eco-dev-toolbar.d.ts +67 -0
- package/src/shell/eco-dev-toolbar.js +356 -0
- package/src/shell/ensure-dev-toolbar-styles.d.ts +7 -0
- package/src/shell/ensure-dev-toolbar-styles.js +18 -0
- package/src/shell/icons.d.ts +8 -0
- package/src/shell/icons.js +29 -0
- package/src/shell/legacy-app-host.d.ts +23 -0
- package/src/shell/legacy-app-host.js +36 -0
- package/src/shell/motion.d.ts +6 -0
- package/src/shell/motion.js +82 -0
- package/src/shell/navigation-loading.d.ts +14 -0
- package/src/shell/navigation-loading.js +39 -0
- package/src/shell/panel-slot-visibility.d.ts +10 -0
- package/src/shell/panel-slot-visibility.js +25 -0
- package/src/shell/stealth-controller.d.ts +27 -0
- package/src/shell/stealth-controller.js +83 -0
- package/src/shell/styles/base.d.ts +1 -0
- package/src/shell/styles/base.js +65 -0
- package/src/shell/styles/content.d.ts +1 -0
- package/src/shell/styles/content.js +209 -0
- package/src/shell/styles/dock.d.ts +1 -0
- package/src/shell/styles/dock.js +207 -0
- package/src/shell/styles/index.d.ts +1 -0
- package/src/shell/styles/index.js +12 -0
- package/src/shell/styles/panel.d.ts +1 -0
- package/src/shell/styles/panel.js +121 -0
- package/src/shell/styles/settings.d.ts +1 -0
- package/src/shell/styles/settings.js +206 -0
- package/src/shell/styles.d.ts +1 -0
- package/src/shell/styles.js +1 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export const DEV_TOOLBAR_PANEL_STYLES = `
|
|
2
|
+
.eco-dev-toolbar__panel-shell {
|
|
3
|
+
position: fixed;
|
|
4
|
+
z-index: 1;
|
|
5
|
+
width: var(--eco-dev-toolbar-panel-width);
|
|
6
|
+
max-height: min(60vh, 28rem);
|
|
7
|
+
overflow: auto;
|
|
8
|
+
border-radius: calc(var(--eco-dev-toolbar-radius) + 0.1rem);
|
|
9
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-bg-elevated) 94%, transparent);
|
|
10
|
+
backdrop-filter: blur(16px) saturate(140%);
|
|
11
|
+
-webkit-backdrop-filter: blur(16px) saturate(140%);
|
|
12
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
13
|
+
box-shadow:
|
|
14
|
+
0 0 0 1px rgba(0, 0, 0, 0.3),
|
|
15
|
+
0 18px 48px rgba(0, 0, 0, 0.48),
|
|
16
|
+
0 6px 16px rgba(0, 0, 0, 0.28);
|
|
17
|
+
pointer-events: auto;
|
|
18
|
+
transition:
|
|
19
|
+
opacity 180ms var(--eco-dev-toolbar-ease),
|
|
20
|
+
visibility 180ms var(--eco-dev-toolbar-ease);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
eco-dev-toolbar:not([data-panel-open='true']) .eco-dev-toolbar__panel-shell {
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.eco-dev-toolbar__panel-slot[hidden] {
|
|
30
|
+
display: none !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
eco-dev-toolbar[data-panel-open='true'] .eco-dev-toolbar__panel-shell {
|
|
34
|
+
visibility: visible;
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.eco-dev-toolbar__hit-bridge {
|
|
39
|
+
position: fixed;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
pointer-events: auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
eco-dev-toolbar[data-placement='bottom'] .eco-dev-toolbar__hit-bridge {
|
|
45
|
+
left: 50%;
|
|
46
|
+
bottom: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));
|
|
47
|
+
width: min(var(--eco-dev-toolbar-panel-width), calc(100vw - 1.5rem));
|
|
48
|
+
height: var(--eco-dev-toolbar-panel-gap);
|
|
49
|
+
transform: translateX(-50%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
eco-dev-toolbar[data-placement='top'] .eco-dev-toolbar__hit-bridge {
|
|
53
|
+
left: 50%;
|
|
54
|
+
top: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));
|
|
55
|
+
width: min(var(--eco-dev-toolbar-panel-width), calc(100vw - 1.5rem));
|
|
56
|
+
height: var(--eco-dev-toolbar-panel-gap);
|
|
57
|
+
transform: translateX(-50%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
eco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__hit-bridge {
|
|
61
|
+
top: 50%;
|
|
62
|
+
left: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));
|
|
63
|
+
width: var(--eco-dev-toolbar-panel-gap);
|
|
64
|
+
height: min(28rem, 60vh);
|
|
65
|
+
transform: translateY(-50%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
eco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__hit-bridge {
|
|
69
|
+
top: 50%;
|
|
70
|
+
right: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size));
|
|
71
|
+
width: var(--eco-dev-toolbar-panel-gap);
|
|
72
|
+
height: min(28rem, 60vh);
|
|
73
|
+
transform: translateY(-50%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (max-width: 40rem) {
|
|
77
|
+
eco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__hit-bridge,
|
|
78
|
+
eco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__hit-bridge {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
eco-dev-toolbar[data-placement='bottom'] .eco-dev-toolbar__panel-shell {
|
|
84
|
+
inset: auto auto calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) 50%;
|
|
85
|
+
transform: translateX(-50%);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
eco-dev-toolbar[data-placement='top'] .eco-dev-toolbar__panel-shell {
|
|
89
|
+
inset: calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) auto auto 50%;
|
|
90
|
+
transform: translateX(-50%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
eco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__panel-shell {
|
|
94
|
+
inset: 50% auto auto calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap));
|
|
95
|
+
width: min(
|
|
96
|
+
var(--eco-dev-toolbar-panel-width),
|
|
97
|
+
calc(100vw - var(--eco-dev-toolbar-edge-gap) - var(--eco-dev-toolbar-dock-size) - var(--eco-dev-toolbar-panel-gap) - 1rem)
|
|
98
|
+
);
|
|
99
|
+
transform: translateY(-50%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
eco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__panel-shell {
|
|
103
|
+
inset: 50% calc(var(--eco-dev-toolbar-edge-gap) + var(--eco-dev-toolbar-dock-size) + var(--eco-dev-toolbar-panel-gap)) auto auto;
|
|
104
|
+
width: min(
|
|
105
|
+
var(--eco-dev-toolbar-panel-width),
|
|
106
|
+
calc(100vw - var(--eco-dev-toolbar-edge-gap) - var(--eco-dev-toolbar-dock-size) - var(--eco-dev-toolbar-panel-gap) - 1rem)
|
|
107
|
+
);
|
|
108
|
+
transform: translateY(-50%);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (max-width: 40rem) {
|
|
112
|
+
eco-dev-toolbar[data-placement='left'] .eco-dev-toolbar__panel-shell,
|
|
113
|
+
eco-dev-toolbar[data-placement='right'] .eco-dev-toolbar__panel-shell {
|
|
114
|
+
inset: 50% auto auto 50%;
|
|
115
|
+
width: min(28rem, calc(100vw - 1.5rem));
|
|
116
|
+
max-height: min(70dvh, 28rem);
|
|
117
|
+
transform: translate(-50%, -50%);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEV_TOOLBAR_SETTINGS_STYLES = "\n.eco-dev-toolbar__settings-header {\n\tmargin-bottom: 0;\n}\n\n.eco-dev-toolbar__settings-header h2 {\n\tmargin-bottom: 0.25rem;\n}\n\n.eco-dev-toolbar__settings-header .eco-dev-toolbar__muted {\n\tmargin: 0;\n}\n\n.eco-dev-toolbar__settings-section {\n\tdisplay: grid;\n\tgap: 0.55rem;\n\tpadding: 0.7rem;\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\tborder-radius: 0.6rem;\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-bg) 88%, transparent);\n}\n\n.eco-dev-toolbar__history-section {\n\tmargin-top: 0.85rem;\n}\n\n.eco-dev-toolbar__section-header {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tgap: 0.75rem;\n}\n\n.eco-dev-toolbar__settings-title {\n\tmargin: 0;\n\tfont-size: 0.72rem;\n\tfont-weight: 600;\n\tletter-spacing: 0.06em;\n\ttext-transform: uppercase;\n\tcolor: var(--eco-dev-toolbar-muted);\n}\n\n.eco-dev-toolbar__setting-row {\n\tdisplay: grid;\n\tgrid-template-columns: minmax(0, 1fr) auto;\n\tgap: 0.75rem;\n\talign-items: center;\n\tpadding: 0.55rem 0;\n}\n\n.eco-dev-toolbar__setting-row + .eco-dev-toolbar__setting-row {\n\tborder-top: 1px solid rgba(255, 255, 255, 0.06);\n}\n\n.eco-dev-toolbar__setting-copy {\n\tdisplay: grid;\n\tgap: 0.15rem;\n}\n\n.eco-dev-toolbar__setting-copy strong {\n\tfont-size: 0.82rem;\n\tfont-weight: 600;\n}\n\n.eco-dev-toolbar__setting-copy .eco-dev-toolbar__muted {\n\tmargin: 0;\n\tfont-size: 0.72rem;\n\tline-height: 1.35;\n}\n\n.eco-dev-toolbar__select-wrap {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n}\n\n.eco-dev-toolbar__select-wrap::after {\n\tcontent: '';\n\tposition: absolute;\n\tright: 0.65rem;\n\twidth: 0.4rem;\n\theight: 0.4rem;\n\tborder-right: 1.5px solid var(--eco-dev-toolbar-muted);\n\tborder-bottom: 1.5px solid var(--eco-dev-toolbar-muted);\n\ttransform: rotate(45deg) translateY(-1px);\n\tpointer-events: none;\n}\n\n.eco-dev-toolbar__select {\n\tappearance: none;\n\tmin-width: 6.5rem;\n\tpadding: 0.42rem 1.8rem 0.42rem 0.65rem;\n\tborder: 1px solid rgba(255, 255, 255, 0.12);\n\tborder-radius: 0.45rem;\n\tbackground: rgba(255, 255, 255, 0.04);\n\tcolor: var(--eco-dev-toolbar-fg);\n\tfont: inherit;\n\tfont-size: 0.78rem;\n\tcursor: pointer;\n\ttransition:\n\t\tborder-color 160ms var(--eco-dev-toolbar-ease),\n\t\tbackground-color 160ms var(--eco-dev-toolbar-ease),\n\t\tbox-shadow 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__select:hover {\n\tborder-color: rgba(139, 124, 255, 0.45);\n\tbackground: rgba(255, 255, 255, 0.06);\n}\n\n.eco-dev-toolbar__select:focus {\n\toutline: none;\n\tborder-color: rgba(139, 124, 255, 0.7);\n\tbox-shadow: 0 0 0 2px rgba(139, 124, 255, 0.2);\n}\n\n.eco-dev-toolbar__switch {\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\twidth: 2.35rem;\n\theight: 1.35rem;\n\tflex-shrink: 0;\n}\n\n.eco-dev-toolbar__switch input {\n\tposition: absolute;\n\tinset: 0;\n\tmargin: 0;\n\topacity: 0;\n\tcursor: pointer;\n}\n\n.eco-dev-toolbar__switch-track {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: 999px;\n\tbackground: rgba(255, 255, 255, 0.14);\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\ttransition: background-color 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__switch-track::after {\n\tcontent: '';\n\tposition: absolute;\n\ttop: 0.14rem;\n\tleft: 0.14rem;\n\twidth: 0.95rem;\n\theight: 0.95rem;\n\tborder-radius: 999px;\n\tbackground: #f9fafb;\n\tbox-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);\n\ttransition: transform 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__switch input:checked + .eco-dev-toolbar__switch-track {\n\tbackground: color-mix(in srgb, var(--eco-dev-toolbar-accent) 72%, #111827);\n\tborder-color: rgba(139, 124, 255, 0.45);\n}\n\n.eco-dev-toolbar__switch input:checked + .eco-dev-toolbar__switch-track::after {\n\ttransform: translateX(1rem);\n}\n\n.eco-dev-toolbar__switch input:focus-visible + .eco-dev-toolbar__switch-track {\n\tbox-shadow: 0 0 0 2px rgba(139, 124, 255, 0.25);\n}\n\n.eco-dev-toolbar__settings-link {\n\tdisplay: grid;\n\tgrid-template-columns: minmax(0, 1fr) auto;\n\tgap: 0.75rem;\n\talign-items: center;\n\tpadding: 0.65rem 0.7rem;\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\tborder-radius: 0.5rem;\n\tbackground: rgba(255, 255, 255, 0.03);\n\tcolor: inherit;\n\ttext-decoration: none;\n\ttransition:\n\t\tborder-color 160ms var(--eco-dev-toolbar-ease),\n\t\tbackground-color 160ms var(--eco-dev-toolbar-ease);\n}\n\n.eco-dev-toolbar__settings-link:hover {\n\tborder-color: rgba(139, 124, 255, 0.45);\n\tbackground: rgba(139, 124, 255, 0.08);\n}\n\n.eco-dev-toolbar__settings-link strong {\n\tdisplay: block;\n\tfont-size: 0.82rem;\n\tmargin-bottom: 0.15rem;\n}\n\n.eco-dev-toolbar__settings-link .eco-dev-toolbar__muted {\n\tmargin: 0;\n\tfont-size: 0.72rem;\n}\n\n.eco-dev-toolbar__settings-link-icon {\n\tcolor: var(--eco-dev-toolbar-accent);\n\tfont-size: 0.9rem;\n}\n";
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export const DEV_TOOLBAR_SETTINGS_STYLES = `
|
|
2
|
+
.eco-dev-toolbar__settings-header {
|
|
3
|
+
margin-bottom: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.eco-dev-toolbar__settings-header h2 {
|
|
7
|
+
margin-bottom: 0.25rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.eco-dev-toolbar__settings-header .eco-dev-toolbar__muted {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.eco-dev-toolbar__settings-section {
|
|
15
|
+
display: grid;
|
|
16
|
+
gap: 0.55rem;
|
|
17
|
+
padding: 0.7rem;
|
|
18
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
19
|
+
border-radius: 0.6rem;
|
|
20
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-bg) 88%, transparent);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.eco-dev-toolbar__history-section {
|
|
24
|
+
margin-top: 0.85rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.eco-dev-toolbar__section-header {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
gap: 0.75rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.eco-dev-toolbar__settings-title {
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-size: 0.72rem;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
letter-spacing: 0.06em;
|
|
39
|
+
text-transform: uppercase;
|
|
40
|
+
color: var(--eco-dev-toolbar-muted);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.eco-dev-toolbar__setting-row {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
46
|
+
gap: 0.75rem;
|
|
47
|
+
align-items: center;
|
|
48
|
+
padding: 0.55rem 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.eco-dev-toolbar__setting-row + .eco-dev-toolbar__setting-row {
|
|
52
|
+
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.eco-dev-toolbar__setting-copy {
|
|
56
|
+
display: grid;
|
|
57
|
+
gap: 0.15rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.eco-dev-toolbar__setting-copy strong {
|
|
61
|
+
font-size: 0.82rem;
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.eco-dev-toolbar__setting-copy .eco-dev-toolbar__muted {
|
|
66
|
+
margin: 0;
|
|
67
|
+
font-size: 0.72rem;
|
|
68
|
+
line-height: 1.35;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.eco-dev-toolbar__select-wrap {
|
|
72
|
+
position: relative;
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.eco-dev-toolbar__select-wrap::after {
|
|
78
|
+
content: '';
|
|
79
|
+
position: absolute;
|
|
80
|
+
right: 0.65rem;
|
|
81
|
+
width: 0.4rem;
|
|
82
|
+
height: 0.4rem;
|
|
83
|
+
border-right: 1.5px solid var(--eco-dev-toolbar-muted);
|
|
84
|
+
border-bottom: 1.5px solid var(--eco-dev-toolbar-muted);
|
|
85
|
+
transform: rotate(45deg) translateY(-1px);
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.eco-dev-toolbar__select {
|
|
90
|
+
appearance: none;
|
|
91
|
+
min-width: 6.5rem;
|
|
92
|
+
padding: 0.42rem 1.8rem 0.42rem 0.65rem;
|
|
93
|
+
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
94
|
+
border-radius: 0.45rem;
|
|
95
|
+
background: rgba(255, 255, 255, 0.04);
|
|
96
|
+
color: var(--eco-dev-toolbar-fg);
|
|
97
|
+
font: inherit;
|
|
98
|
+
font-size: 0.78rem;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
transition:
|
|
101
|
+
border-color 160ms var(--eco-dev-toolbar-ease),
|
|
102
|
+
background-color 160ms var(--eco-dev-toolbar-ease),
|
|
103
|
+
box-shadow 160ms var(--eco-dev-toolbar-ease);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.eco-dev-toolbar__select:hover {
|
|
107
|
+
border-color: rgba(139, 124, 255, 0.45);
|
|
108
|
+
background: rgba(255, 255, 255, 0.06);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.eco-dev-toolbar__select:focus {
|
|
112
|
+
outline: none;
|
|
113
|
+
border-color: rgba(139, 124, 255, 0.7);
|
|
114
|
+
box-shadow: 0 0 0 2px rgba(139, 124, 255, 0.2);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.eco-dev-toolbar__switch {
|
|
118
|
+
position: relative;
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
width: 2.35rem;
|
|
122
|
+
height: 1.35rem;
|
|
123
|
+
flex-shrink: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.eco-dev-toolbar__switch input {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
margin: 0;
|
|
130
|
+
opacity: 0;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.eco-dev-toolbar__switch-track {
|
|
135
|
+
display: block;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
border-radius: 999px;
|
|
139
|
+
background: rgba(255, 255, 255, 0.14);
|
|
140
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
141
|
+
transition: background-color 160ms var(--eco-dev-toolbar-ease);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.eco-dev-toolbar__switch-track::after {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0.14rem;
|
|
148
|
+
left: 0.14rem;
|
|
149
|
+
width: 0.95rem;
|
|
150
|
+
height: 0.95rem;
|
|
151
|
+
border-radius: 999px;
|
|
152
|
+
background: #f9fafb;
|
|
153
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
|
|
154
|
+
transition: transform 160ms var(--eco-dev-toolbar-ease);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.eco-dev-toolbar__switch input:checked + .eco-dev-toolbar__switch-track {
|
|
158
|
+
background: color-mix(in srgb, var(--eco-dev-toolbar-accent) 72%, #111827);
|
|
159
|
+
border-color: rgba(139, 124, 255, 0.45);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.eco-dev-toolbar__switch input:checked + .eco-dev-toolbar__switch-track::after {
|
|
163
|
+
transform: translateX(1rem);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.eco-dev-toolbar__switch input:focus-visible + .eco-dev-toolbar__switch-track {
|
|
167
|
+
box-shadow: 0 0 0 2px rgba(139, 124, 255, 0.25);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.eco-dev-toolbar__settings-link {
|
|
171
|
+
display: grid;
|
|
172
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
173
|
+
gap: 0.75rem;
|
|
174
|
+
align-items: center;
|
|
175
|
+
padding: 0.65rem 0.7rem;
|
|
176
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
177
|
+
border-radius: 0.5rem;
|
|
178
|
+
background: rgba(255, 255, 255, 0.03);
|
|
179
|
+
color: inherit;
|
|
180
|
+
text-decoration: none;
|
|
181
|
+
transition:
|
|
182
|
+
border-color 160ms var(--eco-dev-toolbar-ease),
|
|
183
|
+
background-color 160ms var(--eco-dev-toolbar-ease);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.eco-dev-toolbar__settings-link:hover {
|
|
187
|
+
border-color: rgba(139, 124, 255, 0.45);
|
|
188
|
+
background: rgba(139, 124, 255, 0.08);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.eco-dev-toolbar__settings-link strong {
|
|
192
|
+
display: block;
|
|
193
|
+
font-size: 0.82rem;
|
|
194
|
+
margin-bottom: 0.15rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.eco-dev-toolbar__settings-link .eco-dev-toolbar__muted {
|
|
198
|
+
margin: 0;
|
|
199
|
+
font-size: 0.72rem;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.eco-dev-toolbar__settings-link-icon {
|
|
203
|
+
color: var(--eco-dev-toolbar-accent);
|
|
204
|
+
font-size: 0.9rem;
|
|
205
|
+
}
|
|
206
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEV_TOOLBAR_STYLES } from './styles/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEV_TOOLBAR_STYLES } from './styles/index.js';
|