@kagayoi/support-extension 1.0.6
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 +164 -0
- package/bin/kagayoi-support-sync.mjs +95 -0
- package/dist/kagayoi-support-footer.css +45 -0
- package/dist/kagayoi-support-footer.js +217 -0
- package/dist/kagayoi-support-form.css +103 -0
- package/dist/kagayoi-support-popup.css +85 -0
- package/dist/kagayoi-support-popup.js +647 -0
- package/package.json +38 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--ksp-accent: var(--ks-accent, var(--kgs-accent, var(--accent, var(--primary, #006fee))));
|
|
3
|
+
--ksp-surface: var(--ks-surface, var(--kgs-surface, var(--panel, var(--surface, Canvas))));
|
|
4
|
+
--ksp-surface-soft: var(--ks-surface-soft, var(--kgs-surface-hover, var(--panel-2, var(--content2, rgba(127, 127, 127, 0.08)))));
|
|
5
|
+
--ksp-border: var(--ks-border, var(--kgs-border, var(--line, var(--border, rgba(127, 127, 127, 0.28)))));
|
|
6
|
+
--ksp-text: var(--ks-text, var(--kgs-text, var(--ink, var(--fg, CanvasText))));
|
|
7
|
+
--ksp-muted: var(--ks-muted, var(--kgs-muted, var(--muted, color-mix(in srgb, currentColor 68%, transparent))));
|
|
8
|
+
display: inline-block;
|
|
9
|
+
color-scheme: var(--kgs-color-scheme, inherit);
|
|
10
|
+
color: var(--ksp-text);
|
|
11
|
+
font: inherit;
|
|
12
|
+
}
|
|
13
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
14
|
+
[hidden] { display: none !important; }
|
|
15
|
+
.trigger {
|
|
16
|
+
min-height: 40px;
|
|
17
|
+
padding: 0.58rem 1rem;
|
|
18
|
+
border: 1px solid var(--ksp-accent);
|
|
19
|
+
border-radius: 999px;
|
|
20
|
+
background: var(--ksp-accent);
|
|
21
|
+
color: #ffffff;
|
|
22
|
+
font: inherit;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.trigger:focus-visible, .close:focus-visible {
|
|
27
|
+
outline: 3px solid color-mix(in srgb, var(--ksp-accent) 35%, transparent);
|
|
28
|
+
outline-offset: 2px;
|
|
29
|
+
}
|
|
30
|
+
dialog {
|
|
31
|
+
width: min(720px, calc(100vw - 1.5rem));
|
|
32
|
+
max-width: none;
|
|
33
|
+
max-height: calc(100vh - 1.5rem);
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: 1px solid var(--ksp-border);
|
|
36
|
+
border-radius: 18px;
|
|
37
|
+
background: var(--ksp-surface);
|
|
38
|
+
color: var(--ksp-text);
|
|
39
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
|
|
40
|
+
overflow: auto;
|
|
41
|
+
scrollbar-color: color-mix(in srgb, var(--ksp-text) 42%, transparent) transparent;
|
|
42
|
+
}
|
|
43
|
+
dialog::backdrop { background: rgba(0, 0, 0, 0.52); }
|
|
44
|
+
.shell { min-width: 0; }
|
|
45
|
+
.header {
|
|
46
|
+
position: sticky;
|
|
47
|
+
top: 0;
|
|
48
|
+
z-index: 1;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
gap: 1rem;
|
|
53
|
+
padding: 0.9rem 1rem;
|
|
54
|
+
border-bottom: 1px solid var(--ksp-border);
|
|
55
|
+
background: var(--ksp-surface);
|
|
56
|
+
}
|
|
57
|
+
.title { margin: 0; font-size: 1.05rem; }
|
|
58
|
+
.close {
|
|
59
|
+
width: 38px;
|
|
60
|
+
height: 38px;
|
|
61
|
+
padding: 0;
|
|
62
|
+
border: 1px solid var(--ksp-border);
|
|
63
|
+
border-radius: 999px;
|
|
64
|
+
background: transparent;
|
|
65
|
+
color: inherit;
|
|
66
|
+
font: inherit;
|
|
67
|
+
font-size: 1.25rem;
|
|
68
|
+
line-height: 1;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
kagayoi-contact-form {
|
|
72
|
+
display: block;
|
|
73
|
+
padding: 1rem;
|
|
74
|
+
--ks-accent: var(--ksp-accent);
|
|
75
|
+
--ks-surface: transparent;
|
|
76
|
+
--ks-option-surface: var(--ksp-surface);
|
|
77
|
+
--ks-surface-soft: var(--ksp-surface-soft);
|
|
78
|
+
--ks-border: var(--ksp-border);
|
|
79
|
+
--ks-text: var(--ksp-text);
|
|
80
|
+
--ks-muted: var(--ksp-muted);
|
|
81
|
+
}
|
|
82
|
+
@media (max-width: 620px) {
|
|
83
|
+
dialog { width: calc(100vw - 0.75rem); max-height: calc(100vh - 0.75rem); }
|
|
84
|
+
kagayoi-contact-form { padding: 0.65rem; }
|
|
85
|
+
}
|