@trafica/editor 1.0.49 → 1.0.51
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles/editor.css +17 -0
- package/package.json +1 -1
package/dist/styles/editor.css
CHANGED
|
@@ -138,6 +138,11 @@
|
|
|
138
138
|
|
|
139
139
|
/* ─── Images ──────────────────────────────────────────────────────────────── */
|
|
140
140
|
|
|
141
|
+
/* Editor canvas must be the positioned ancestor for floating images */
|
|
142
|
+
.editor-canvas {
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
|
|
141
146
|
.editor-canvas .editor-image-wrapper {
|
|
142
147
|
margin: 1em 0;
|
|
143
148
|
display: block;
|
|
@@ -164,10 +169,22 @@
|
|
|
164
169
|
transition: outline 0.1s;
|
|
165
170
|
}
|
|
166
171
|
|
|
172
|
+
/* Freely-positioned (floating) image — gets x/y attrs from drag */
|
|
173
|
+
.editor-canvas .editor-image-floating {
|
|
174
|
+
position: absolute;
|
|
175
|
+
margin: 0;
|
|
176
|
+
z-index: 10;
|
|
177
|
+
cursor: grab;
|
|
178
|
+
}
|
|
179
|
+
.editor-canvas .editor-image-floating:active {
|
|
180
|
+
cursor: grabbing;
|
|
181
|
+
}
|
|
182
|
+
|
|
167
183
|
/* Selected image highlight */
|
|
168
184
|
.editor-canvas .editor-image-wrapper[data-selected] .editor-image {
|
|
169
185
|
outline: 2px solid #3b82f6;
|
|
170
186
|
outline-offset: 2px;
|
|
187
|
+
cursor: grab;
|
|
171
188
|
}
|
|
172
189
|
|
|
173
190
|
/* Caption */
|