slop-editor 0.0.0-stage → 0.1.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/README.md +133 -2
- package/cli.mjs +235 -0
- package/package.json +39 -4
- package/slop.css +209 -0
- package/slop.js +1179 -0
package/slop.css
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* Slop editor: who wrote what (see slop.js). MIT license.
|
|
2
|
+
Each category's color comes from the page's text block (picked in the editor), or --slop-<id> in the page's CSS
|
|
3
|
+
(--slop-ai, --slop-ok, --slop-data, --slop-me), or a default for the page's background: slop.js puts .slop-dark on
|
|
4
|
+
<html> when it's dark, and writes the colors into a stylesheet of its own. --slop-font and --slop-mono set the
|
|
5
|
+
editor's fonts. */
|
|
6
|
+
html {
|
|
7
|
+
--_accent: #6d35d0;
|
|
8
|
+
--_font: var(--slop-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
|
|
9
|
+
--_mono: var(--slop-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
|
|
10
|
+
/* the editor's own surface */
|
|
11
|
+
--_bg: #fdfcfa; --_sunk: #f4f2ee; --_ink: #1e1b24; --_ink-2: #57525f; --_ink-3: #8b8694; --_rule: #e5e1e8;
|
|
12
|
+
--_shadow: 0 1px 2px rgb(30 20 40 / 0.06), 0 18px 48px rgb(30 20 40 / 0.16);
|
|
13
|
+
}
|
|
14
|
+
html.slop-dark {
|
|
15
|
+
--_accent: #b892ff;
|
|
16
|
+
--_bg: #1b1920; --_sunk: #131217; --_ink: #f1eef5; --_ink-2: #bdb7c6; --_ink-3: #8a8494; --_rule: #2f2c36;
|
|
17
|
+
--_shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 48px rgb(0 0 0 / 0.5);
|
|
18
|
+
}
|
|
19
|
+
.slop-data { font-variant-numeric: tabular-nums; }
|
|
20
|
+
|
|
21
|
+
/* ---------- Slop-o-meter ---------- */
|
|
22
|
+
.slop-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; font: 0.78rem/1.4 var(--_font); }
|
|
23
|
+
.slop-meter-btn {
|
|
24
|
+
display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 5px; border-radius: 99px;
|
|
25
|
+
border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit;
|
|
26
|
+
font: 600 0.78rem var(--_font); letter-spacing: 0.01em; cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
.slop-meter-btn:hover { border-color: var(--slop-c-ai, var(--_accent)); }
|
|
29
|
+
.slop-meter-btn:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }
|
|
30
|
+
.slop-switch { position: relative; width: 26px; height: 15px; border-radius: 99px; background: color-mix(in srgb, currentColor 22%, transparent); transition: background .2s; }
|
|
31
|
+
.slop-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); transition: transform .2s; }
|
|
32
|
+
.slop-meter-btn[aria-pressed="true"] { border-color: var(--slop-c-ai, var(--_accent)); }
|
|
33
|
+
.slop-meter-btn[aria-pressed="true"] .slop-switch { background: var(--slop-c-ai, var(--_accent)); }
|
|
34
|
+
.slop-meter-btn[aria-pressed="true"] .slop-switch::after { transform: translateX(11px); }
|
|
35
|
+
.slop-meter-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
|
|
36
|
+
/* what readers see: nothing (the default), the pie with its legend, or that and the switch that colors the words */
|
|
37
|
+
.slop-meter:not([data-show]), .slop-meter[data-show="nothing"] { display: none; }
|
|
38
|
+
.slop-meter[data-show="pie"] .slop-meter-btn { display: none; }
|
|
39
|
+
.slop-pct { margin-left: 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
40
|
+
.slop-pie { flex: none; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, currentColor 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 15%, transparent); }
|
|
41
|
+
.slop-legend { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; font-weight: 600; }
|
|
42
|
+
.slop-key { display: inline-flex; align-items: center; gap: 5px; }
|
|
43
|
+
.slop-key i { width: 8px; height: 8px; border-radius: 50%; }
|
|
44
|
+
|
|
45
|
+
/* ---------- the editor ---------- */
|
|
46
|
+
.slop-edit-btn, .slop-panel { font-family: var(--_font); color: var(--_ink); -webkit-font-smoothing: antialiased; }
|
|
47
|
+
.slop-edit-btn, .slop-panel *, .slop-panel { box-sizing: border-box; }
|
|
48
|
+
.slop-edit-btn {
|
|
49
|
+
position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 2147483000;
|
|
50
|
+
display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px;
|
|
51
|
+
border: 1px solid var(--_accent); background: var(--_bg); color: var(--_accent); font: 600 0.88rem var(--_font); cursor: pointer; box-shadow: var(--_shadow);
|
|
52
|
+
}
|
|
53
|
+
.slop-edit-btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--slop-c-ai, var(--_accent)); }
|
|
54
|
+
.slop-edit-btn:hover { background: color-mix(in srgb, var(--_accent) 10%, var(--_bg)); }
|
|
55
|
+
.slop-edit-btn[hidden], .slop-panel[hidden], .slop-panel [hidden] { display: none !important; }
|
|
56
|
+
|
|
57
|
+
.slop-panel {
|
|
58
|
+
position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 2147483000; width: min(420px, calc(100vw - 24px));
|
|
59
|
+
display: flex; flex-direction: column; background: var(--_bg); border: 1px solid var(--_rule); border-radius: 16px;
|
|
60
|
+
box-shadow: var(--_shadow); font-size: 14px; line-height: 1.4; text-align: left;
|
|
61
|
+
}
|
|
62
|
+
.slop-panel button { font-family: inherit; color: inherit; }
|
|
63
|
+
.slop-panel :focus-visible { outline: 2px solid var(--_accent); outline-offset: 1px; }
|
|
64
|
+
.slop-panel p { margin: 0; }
|
|
65
|
+
|
|
66
|
+
.sp-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 14px 10px 16px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
|
|
67
|
+
.slop-dragging, .slop-dragging * { user-select: none !important; -webkit-user-select: none !important; }
|
|
68
|
+
.slop-dragging .sp-head { cursor: grabbing; }
|
|
69
|
+
.sp-grip { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--_rule); }
|
|
70
|
+
.sp-head:hover .sp-grip { background: var(--_ink-3); }
|
|
71
|
+
.sp-head h2 { margin: 0; font: 700 1.02rem/1.3 var(--_font); color: var(--_ink); }
|
|
72
|
+
.sp-status { margin-top: 2px; font-size: 0.78rem; color: var(--_ink-3); min-height: 1.4em; }
|
|
73
|
+
.sp-status[data-kind="dirty"] { color: var(--_ink-2); }
|
|
74
|
+
.sp-status[data-kind="error"] { color: #d0453a; }
|
|
75
|
+
.sp-link { padding: 0; border: 0; background: none; color: var(--_accent) !important; font: 600 0.78rem var(--_font); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
76
|
+
.sp-save { flex: none; margin-left: auto; height: 30px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--_accent); background: var(--_accent); color: var(--_bg) !important; font: 600 0.82rem var(--_font); font-variant-numeric: tabular-nums; cursor: pointer; }
|
|
77
|
+
.sp-save:hover:not(:disabled) { filter: brightness(1.1); }
|
|
78
|
+
.sp-save:disabled { border-color: var(--_rule); background: none; color: var(--_ink-3) !important; cursor: default; }
|
|
79
|
+
.sp-revert { flex: none; padding: 0 2px; border: 0; background: none; font: 600 0.72rem var(--_font); color: var(--_ink-3) !important; text-decoration: underline; text-decoration-color: var(--_rule); text-underline-offset: 2px; cursor: pointer; }
|
|
80
|
+
.sp-revert:hover { color: var(--_ink) !important; text-decoration-color: currentColor; }
|
|
81
|
+
.sp-close { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--_rule); background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; }
|
|
82
|
+
.sp-close:hover { background: var(--_sunk); }
|
|
83
|
+
/* resize handles along every edge and corner */
|
|
84
|
+
.sp-edge { position: absolute; z-index: 2; touch-action: none; }
|
|
85
|
+
.sp-edge[data-edge="n"], .sp-edge[data-edge="s"] { left: 14px; right: 14px; height: 8px; cursor: ns-resize; }
|
|
86
|
+
.sp-edge[data-edge="e"], .sp-edge[data-edge="w"] { top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; }
|
|
87
|
+
.sp-edge[data-edge="n"] { top: -4px; } .sp-edge[data-edge="s"] { bottom: -4px; }
|
|
88
|
+
.sp-edge[data-edge="e"] { right: -4px; } .sp-edge[data-edge="w"] { left: -4px; }
|
|
89
|
+
.sp-edge[data-edge="ne"], .sp-edge[data-edge="nw"], .sp-edge[data-edge="se"], .sp-edge[data-edge="sw"] { width: 16px; height: 16px; }
|
|
90
|
+
.sp-edge[data-edge="ne"] { top: -4px; right: -4px; cursor: nesw-resize; } .sp-edge[data-edge="sw"] { bottom: -4px; left: -4px; cursor: nesw-resize; }
|
|
91
|
+
.sp-edge[data-edge="nw"] { top: -4px; left: -4px; cursor: nwse-resize; } .sp-edge[data-edge="se"] { bottom: -4px; right: -4px; cursor: nwse-resize; }
|
|
92
|
+
|
|
93
|
+
/* the whole page: how much is slop, the page's switch, and the categories */
|
|
94
|
+
.sp-cover { display: grid; gap: 10px; padding: 0 16px 14px; }
|
|
95
|
+
.sp-cover-row { display: flex; align-items: center; gap: 10px; }
|
|
96
|
+
.sp-big { font-size: 0.9rem; color: var(--_ink-2); }
|
|
97
|
+
.sp-big b { font: 700 1.55rem/1 var(--_font); color: var(--slop-c-ai, var(--_accent)); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
|
|
98
|
+
.sp-words { margin-right: auto !important; font-size: 0.78rem; color: var(--_ink-3); font-variant-numeric: tabular-nums; }
|
|
99
|
+
.sp-cover-row .sp-pie { width: 22px; height: 22px; }
|
|
100
|
+
.sp-cats { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
101
|
+
.sp-cat { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 4px; border: 1px solid var(--_rule); border-radius: 99px; font-size: 0.78rem; }
|
|
102
|
+
.sp-swatch { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_ink) 18%, transparent); }
|
|
103
|
+
.sp-swatch:hover { box-shadow: 0 0 0 2px var(--_rule), inset 0 0 0 1px color-mix(in srgb, var(--_ink) 18%, transparent); }
|
|
104
|
+
.sp-swatch input { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); padding: 0; border: 0; opacity: 0; cursor: pointer; }
|
|
105
|
+
.sp-cat-name { min-width: 3ch; padding: 0; border: 0; border-radius: 4px; background: none; font: 600 0.78rem var(--_font); color: var(--_ink); }
|
|
106
|
+
.sp-cat-name:hover { background: var(--_sunk); }
|
|
107
|
+
.sp-cat-name:focus { outline: none; background: var(--_sunk); }
|
|
108
|
+
.sp-cat-pct { font-weight: 500; color: var(--_ink-3); font-variant-numeric: tabular-nums; }
|
|
109
|
+
.sp-cat-x { margin: 0 -3px 0 -2px; padding: 0 3px; border: 0; background: none; color: var(--_ink-3) !important; font-size: 1rem; line-height: 1; cursor: pointer; }
|
|
110
|
+
.sp-cat-x:hover { color: var(--_ink) !important; }
|
|
111
|
+
.sp-show { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--_ink-3); }
|
|
112
|
+
.sp-seg { display: flex; flex: 1; gap: 2px; padding: 2px; border-radius: 8px; background: var(--_sunk); }
|
|
113
|
+
.sp-seg button { flex: 1; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font-size: 0.76rem; font-weight: 600; color: var(--_ink-2); cursor: pointer; white-space: nowrap; }
|
|
114
|
+
.sp-seg button[aria-checked="true"] { background: var(--_bg); color: var(--_ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
|
|
115
|
+
.sp-seg button:hover:not([aria-checked="true"]) { color: var(--_ink); }
|
|
116
|
+
.sp-cat-add, .sp-cat-new { height: 28px; padding: 0 11px; border: 1px dashed var(--_rule); border-radius: 99px; background: none; font: 600 0.78rem var(--_font); color: var(--_ink-2); cursor: pointer; }
|
|
117
|
+
.sp-cat-add:hover { border-color: var(--_ink-3); color: var(--_ink); }
|
|
118
|
+
.sp-cat-new { width: 150px; border-style: solid; border-color: var(--_accent); color: var(--_ink); cursor: text; outline: none; }
|
|
119
|
+
|
|
120
|
+
/* tabs */
|
|
121
|
+
.sp-tabs { display: flex; gap: 2px; margin: 0 12px; padding: 3px; border-radius: 10px; background: var(--_sunk); }
|
|
122
|
+
.sp-tabs button { flex: 1; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--_ink-2); font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
|
|
123
|
+
.sp-tabs button span { margin-left: 3px; font-weight: 500; color: var(--_ink-3); font-variant-numeric: tabular-nums; }
|
|
124
|
+
.sp-tabs button[aria-selected="true"] { background: var(--_bg); color: var(--_ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
|
|
125
|
+
.sp-tabs button:hover:not([aria-selected="true"]) { color: var(--_ink); }
|
|
126
|
+
|
|
127
|
+
.sp-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 20px; }
|
|
128
|
+
.sp-intro { padding: 6px 4px 10px; font-size: 0.8rem; color: var(--_ink-3); }
|
|
129
|
+
.sp-empty { padding: 28px 12px; text-align: center; color: var(--_ink-3); font-size: 0.86rem; }
|
|
130
|
+
|
|
131
|
+
/* sections */
|
|
132
|
+
.sp-group { border-bottom: 1px solid var(--_rule); }
|
|
133
|
+
.sp-group summary { display: flex; align-items: center; gap: 8px; padding: 10px 4px; cursor: pointer; list-style: none; }
|
|
134
|
+
.sp-group summary::-webkit-details-marker { display: none; }
|
|
135
|
+
.sp-group summary::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 0 1px; border: solid var(--_ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
|
|
136
|
+
.sp-group[open] summary::before { transform: rotate(45deg) translate(-2px, 0); }
|
|
137
|
+
.sp-gname { font-weight: 700; font-size: 0.9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
138
|
+
.sp-gnote { margin-left: auto; font-size: 0.74rem; color: var(--_ink-3); white-space: nowrap; }
|
|
139
|
+
.sp-group > .sp-field:last-child { margin-bottom: 14px; }
|
|
140
|
+
|
|
141
|
+
/* one text */
|
|
142
|
+
.sp-field { display: grid; gap: 5px; margin: 0 2px 12px 18px; padding: 2px; border-radius: 10px; transition: background .4s; }
|
|
143
|
+
.sp-body > .sp-field { margin-left: 2px; }
|
|
144
|
+
.sp-flash { background: color-mix(in srgb, var(--_accent) 14%, transparent); }
|
|
145
|
+
.sp-flabel { display: flex; align-items: center; gap: 6px; min-height: 24px; }
|
|
146
|
+
.sp-flabel label { min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; font-weight: 600; color: var(--_ink-3); }
|
|
147
|
+
.sp-field textarea {
|
|
148
|
+
display: block; width: 100%; margin: 0; padding: 7px 9px; resize: none; overflow: hidden;
|
|
149
|
+
font: 0.86rem/1.5 var(--_mono); color: var(--_ink); background: var(--_sunk); border: 1px solid transparent; border-radius: 8px;
|
|
150
|
+
}
|
|
151
|
+
.sp-field textarea:hover { border-color: var(--_rule); }
|
|
152
|
+
.sp-field textarea:focus { outline: none; border-color: var(--_accent); background: var(--_bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_accent) 18%, transparent); }
|
|
153
|
+
.sp-unseen { flex: none; padding: 1px 6px; border: 0; border-radius: 4px; background: var(--_sunk); font: 600 0.68rem var(--_font); color: var(--_ink-3) !important; cursor: help; }
|
|
154
|
+
.sp-unseen:not(:disabled) { color: var(--_accent) !important; cursor: pointer; }
|
|
155
|
+
.sp-unseen:not(:disabled):hover { background: color-mix(in srgb, var(--_accent) 12%, transparent); }
|
|
156
|
+
.sp-hint { padding: 2px 2px 0; font-size: 0.76rem; color: var(--_ink-2); }
|
|
157
|
+
|
|
158
|
+
/* a pie of what the text is made of, and its slop switch */
|
|
159
|
+
.sp-ctl { flex: none; display: inline-flex; align-items: center; gap: 7px; }
|
|
160
|
+
.sp-pie { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--_rule); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_ink) 14%, transparent); }
|
|
161
|
+
.sp-toggle {
|
|
162
|
+
display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 4px; border: 1px solid var(--_rule); border-radius: 99px;
|
|
163
|
+
background: var(--_bg); font-size: 0.74rem; font-weight: 600; color: var(--_ink-3); cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
.sp-switch { position: relative; flex: none; width: 24px; height: 14px; border-radius: 99px; background: var(--slop-c-ok, #17805a); transition: background .2s; }
|
|
166
|
+
.sp-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); transition: transform .2s; }
|
|
167
|
+
.sp-toggle[aria-checked="true"] { color: var(--slop-c-ai, var(--_accent)); border-color: color-mix(in srgb, var(--slop-c-ai, var(--_accent)) 45%, var(--_rule)); }
|
|
168
|
+
.sp-toggle[aria-checked="true"] .sp-switch { background: var(--slop-c-ai, var(--_accent)); }
|
|
169
|
+
.sp-toggle[aria-checked="true"] .sp-switch::after { transform: translateX(10px); }
|
|
170
|
+
.sp-toggle:hover:not(:disabled) { border-color: var(--_ink-3); }
|
|
171
|
+
.sp-still .sp-switch, .sp-still .sp-switch::after { transition: none; }
|
|
172
|
+
.sp-toggle:disabled { opacity: 0.45; cursor: default; }
|
|
173
|
+
.sp-toggle:disabled .sp-switch { background: var(--_rule); }
|
|
174
|
+
|
|
175
|
+
/* marking text: shown under the focused text */
|
|
176
|
+
.sp-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 2px; }
|
|
177
|
+
.sp-assign-label { margin-right: 2px; font-size: 0.72rem; color: var(--_ink-3); }
|
|
178
|
+
.sp-as { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border: 1px solid var(--_rule); border-radius: 99px; background: var(--_bg); font-size: 0.72rem; font-weight: 600; color: var(--_ink-2) !important; cursor: pointer; }
|
|
179
|
+
.sp-as i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_ink) 15%, transparent); }
|
|
180
|
+
.sp-as:hover { border-color: var(--_ink-3); color: var(--_ink) !important; }
|
|
181
|
+
|
|
182
|
+
/* the repeat badge: the same words are elsewhere too */
|
|
183
|
+
.sp-rep {
|
|
184
|
+
flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px; border-radius: 6px;
|
|
185
|
+
border: 1px dashed color-mix(in srgb, var(--_accent) 55%, var(--_rule)); background: none; color: var(--_accent) !important;
|
|
186
|
+
font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
|
|
187
|
+
}
|
|
188
|
+
.sp-rep::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 2.5px -2.5px 0 -1px var(--_bg), 2.5px -2.5px 0 0.5px currentColor; margin-right: 2px; }
|
|
189
|
+
.sp-rep:hover { background: color-mix(in srgb, var(--_accent) 10%, transparent); }
|
|
190
|
+
|
|
191
|
+
/* Repeats: one card per repeated text */
|
|
192
|
+
.sp-set { margin: 0 0 12px; padding: 10px; border: 1px solid var(--_rule); border-radius: 12px; }
|
|
193
|
+
.sp-set .sp-flabel label { color: var(--_accent); }
|
|
194
|
+
.sp-where { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
|
|
195
|
+
.sp-goto { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px 3px 5px; border: 1px solid var(--_rule); border-radius: 6px; background: none; font-size: 0.74rem; color: var(--_ink-2) !important; cursor: pointer; }
|
|
196
|
+
.sp-goto:hover { border-color: var(--_ink-3); color: var(--_ink) !important; }
|
|
197
|
+
.sp-pie.sp-mini { width: 10px; height: 10px; }
|
|
198
|
+
|
|
199
|
+
/* on the page, while the editor is open */
|
|
200
|
+
.slop-editing [data-slop] { cursor: text; }
|
|
201
|
+
.slop-editing [data-slop]:hover { outline: 1px dashed color-mix(in srgb, var(--_accent) 60%, transparent); outline-offset: 3px; border-radius: 2px; }
|
|
202
|
+
.slop-focus { outline: 2px solid var(--_accent) !important; outline-offset: 3px; border-radius: 2px; }
|
|
203
|
+
.slop-copy { outline: 2px dashed var(--_accent) !important; outline-offset: 3px; border-radius: 2px; }
|
|
204
|
+
|
|
205
|
+
@media (max-width: 900px) {
|
|
206
|
+
.slop-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 60svh; }
|
|
207
|
+
.sp-head { cursor: ns-resize; }
|
|
208
|
+
.sp-edge:not([data-edge="n"]) { display: none; }
|
|
209
|
+
}
|