@wordpress/media-editor 0.8.0 → 0.8.1-next.v.202605131032.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/build/components/media-editor/index.cjs +560 -0
- package/build/components/media-editor/index.cjs.map +7 -0
- package/build/components/media-editor-canvas/index.cjs +14 -2
- package/build/components/media-editor-canvas/index.cjs.map +2 -2
- package/build/components/media-editor-crop-panel/index.cjs +34 -27
- package/build/components/media-editor-crop-panel/index.cjs.map +2 -2
- package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs +162 -0
- package/build/components/media-editor-keyboard-shortcuts-modal/index.cjs.map +7 -0
- package/build/components/media-editor-modal/index.cjs +42 -430
- package/build/components/media-editor-modal/index.cjs.map +3 -3
- package/build/components/media-editor-toolbar/index.cjs +143 -75
- package/build/components/media-editor-toolbar/index.cjs.map +3 -3
- package/build/components/media-form/index.cjs +3 -0
- package/build/components/media-form/index.cjs.map +2 -2
- package/build/components/rotation-ruler/index.cjs +197 -0
- package/build/components/rotation-ruler/index.cjs.map +7 -0
- package/build/components/rotation-ruler/use-ruler-drag.cjs +154 -0
- package/build/components/rotation-ruler/use-ruler-drag.cjs.map +7 -0
- package/build/hooks/use-crop-gesture-handlers.cjs +43 -0
- package/build/hooks/use-crop-gesture-handlers.cjs.map +7 -0
- package/build/image-editor/core/constants.cjs +9 -0
- package/build/image-editor/core/constants.cjs.map +2 -2
- package/build/image-editor/core/containment.cjs +7 -13
- package/build/image-editor/core/containment.cjs.map +2 -2
- package/build/image-editor/core/interaction-controller.cjs +43 -7
- package/build/image-editor/core/interaction-controller.cjs.map +2 -2
- package/build/image-editor/core/state.cjs +5 -1
- package/build/image-editor/core/state.cjs.map +2 -2
- package/build/image-editor/core/transform-style.cjs.map +1 -1
- package/build/image-editor/core/types.cjs.map +1 -1
- package/build/image-editor/core/viewport-state.cjs +50 -0
- package/build/image-editor/core/viewport-state.cjs.map +7 -0
- package/build/image-editor/react/components/cropper.cjs +192 -72
- package/build/image-editor/react/components/cropper.cjs.map +3 -3
- package/build/image-editor/react/components/overlays/dimming-overlay.cjs +5 -2
- package/build/image-editor/react/components/overlays/dimming-overlay.cjs.map +2 -2
- package/build/image-editor/react/components/stencils/rectangle-stencil.cjs +16 -4
- package/build/image-editor/react/components/stencils/rectangle-stencil.cjs.map +2 -2
- package/build/image-editor/react/components/viewport-provider.cjs +51 -0
- package/build/image-editor/react/components/viewport-provider.cjs.map +7 -0
- package/build/image-editor/react/hooks/use-aria-announcer.cjs +53 -6
- package/build/image-editor/react/hooks/use-aria-announcer.cjs.map +2 -2
- package/build/image-editor/react/hooks/use-cropper-state.cjs +127 -8
- package/build/image-editor/react/hooks/use-cropper-state.cjs.map +2 -2
- package/build/image-editor/react/hooks/use-interaction.cjs +26 -5
- package/build/image-editor/react/hooks/use-interaction.cjs.map +2 -2
- package/build/image-editor/react/hooks/use-viewport-state.cjs +51 -0
- package/build/image-editor/react/hooks/use-viewport-state.cjs.map +7 -0
- package/build/image-editor/react/visually-hidden-style.cjs +41 -0
- package/build/image-editor/react/visually-hidden-style.cjs.map +7 -0
- package/build/private-apis.cjs +2 -0
- package/build/private-apis.cjs.map +2 -2
- package/build-module/components/media-editor/index.mjs +545 -0
- package/build-module/components/media-editor/index.mjs.map +7 -0
- package/build-module/components/media-editor-canvas/index.mjs +14 -2
- package/build-module/components/media-editor-canvas/index.mjs.map +2 -2
- package/build-module/components/media-editor-crop-panel/index.mjs +35 -28
- package/build-module/components/media-editor-crop-panel/index.mjs.map +2 -2
- package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs +144 -0
- package/build-module/components/media-editor-keyboard-shortcuts-modal/index.mjs.map +7 -0
- package/build-module/components/media-editor-modal/index.mjs +46 -455
- package/build-module/components/media-editor-modal/index.mjs.map +2 -2
- package/build-module/components/media-editor-toolbar/index.mjs +137 -77
- package/build-module/components/media-editor-toolbar/index.mjs.map +2 -2
- package/build-module/components/media-form/index.mjs +3 -0
- package/build-module/components/media-form/index.mjs.map +2 -2
- package/build-module/components/rotation-ruler/index.mjs +166 -0
- package/build-module/components/rotation-ruler/index.mjs.map +7 -0
- package/build-module/components/rotation-ruler/use-ruler-drag.mjs +126 -0
- package/build-module/components/rotation-ruler/use-ruler-drag.mjs.map +7 -0
- package/build-module/hooks/use-crop-gesture-handlers.mjs +17 -0
- package/build-module/hooks/use-crop-gesture-handlers.mjs.map +7 -0
- package/build-module/image-editor/core/constants.mjs +6 -0
- package/build-module/image-editor/core/constants.mjs.map +2 -2
- package/build-module/image-editor/core/containment.mjs +6 -12
- package/build-module/image-editor/core/containment.mjs.map +2 -2
- package/build-module/image-editor/core/interaction-controller.mjs +50 -8
- package/build-module/image-editor/core/interaction-controller.mjs.map +2 -2
- package/build-module/image-editor/core/state.mjs +5 -1
- package/build-module/image-editor/core/state.mjs.map +2 -2
- package/build-module/image-editor/core/transform-style.mjs.map +1 -1
- package/build-module/image-editor/core/viewport-state.mjs +24 -0
- package/build-module/image-editor/core/viewport-state.mjs.map +7 -0
- package/build-module/image-editor/react/components/cropper.mjs +195 -73
- package/build-module/image-editor/react/components/cropper.mjs.map +3 -3
- package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs +5 -2
- package/build-module/image-editor/react/components/overlays/dimming-overlay.mjs.map +2 -2
- package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs +26 -5
- package/build-module/image-editor/react/components/stencils/rectangle-stencil.mjs.map +2 -2
- package/build-module/image-editor/react/components/viewport-provider.mjs +27 -0
- package/build-module/image-editor/react/components/viewport-provider.mjs.map +7 -0
- package/build-module/image-editor/react/hooks/use-aria-announcer.mjs +59 -7
- package/build-module/image-editor/react/hooks/use-aria-announcer.mjs.map +2 -2
- package/build-module/image-editor/react/hooks/use-cropper-state.mjs +134 -9
- package/build-module/image-editor/react/hooks/use-cropper-state.mjs.map +2 -2
- package/build-module/image-editor/react/hooks/use-interaction.mjs +26 -5
- package/build-module/image-editor/react/hooks/use-interaction.mjs.map +2 -2
- package/build-module/image-editor/react/hooks/use-viewport-state.mjs +29 -0
- package/build-module/image-editor/react/hooks/use-viewport-state.mjs.map +7 -0
- package/build-module/image-editor/react/visually-hidden-style.mjs +16 -0
- package/build-module/image-editor/react/visually-hidden-style.mjs.map +7 -0
- package/build-module/private-apis.mjs +2 -0
- package/build-module/private-apis.mjs.map +2 -2
- package/build-style/style-rtl.css +254 -29
- package/build-style/style.css +254 -29
- package/build-types/components/media-editor/index.d.ts +34 -0
- package/build-types/components/media-editor/index.d.ts.map +1 -0
- package/build-types/components/media-editor-canvas/index.d.ts +10 -1
- package/build-types/components/media-editor-canvas/index.d.ts.map +1 -1
- package/build-types/components/media-editor-crop-panel/index.d.ts +1 -1
- package/build-types/components/media-editor-crop-panel/index.d.ts.map +1 -1
- package/build-types/components/media-editor-keyboard-shortcuts-modal/index.d.ts +6 -0
- package/build-types/components/media-editor-keyboard-shortcuts-modal/index.d.ts.map +1 -0
- package/build-types/components/media-editor-modal/index.d.ts +2 -2
- package/build-types/components/media-editor-modal/index.d.ts.map +1 -1
- package/build-types/components/media-editor-provider/index.d.ts +1 -1
- package/build-types/components/media-editor-provider/index.d.ts.map +1 -1
- package/build-types/components/media-editor-toolbar/index.d.ts +4 -1
- package/build-types/components/media-editor-toolbar/index.d.ts.map +1 -1
- package/build-types/components/media-form/index.d.ts +1 -1
- package/build-types/components/media-form/index.d.ts.map +1 -1
- package/build-types/components/rotation-ruler/index.d.ts +46 -0
- package/build-types/components/rotation-ruler/index.d.ts.map +1 -0
- package/build-types/components/rotation-ruler/stories/index.story.d.ts +14 -0
- package/build-types/components/rotation-ruler/stories/index.story.d.ts.map +1 -0
- package/build-types/components/rotation-ruler/use-ruler-drag.d.ts +61 -0
- package/build-types/components/rotation-ruler/use-ruler-drag.d.ts.map +1 -0
- package/build-types/hooks/use-crop-gesture-handlers.d.ts +42 -0
- package/build-types/hooks/use-crop-gesture-handlers.d.ts.map +1 -0
- package/build-types/image-editor/core/constants.d.ts +9 -0
- package/build-types/image-editor/core/constants.d.ts.map +1 -1
- package/build-types/image-editor/core/containment.d.ts +11 -7
- package/build-types/image-editor/core/containment.d.ts.map +1 -1
- package/build-types/image-editor/core/interaction-controller.d.ts +14 -2
- package/build-types/image-editor/core/interaction-controller.d.ts.map +1 -1
- package/build-types/image-editor/core/state.d.ts.map +1 -1
- package/build-types/image-editor/core/transform-style.d.ts +1 -1
- package/build-types/image-editor/core/types.d.ts +25 -0
- package/build-types/image-editor/core/types.d.ts.map +1 -1
- package/build-types/image-editor/core/viewport-state.d.ts +7 -0
- package/build-types/image-editor/core/viewport-state.d.ts.map +1 -0
- package/build-types/image-editor/react/components/cropper-provider.d.ts +1 -1
- package/build-types/image-editor/react/components/cropper-provider.d.ts.map +1 -1
- package/build-types/image-editor/react/components/cropper.d.ts +2 -1
- package/build-types/image-editor/react/components/cropper.d.ts.map +1 -1
- package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts +3 -13
- package/build-types/image-editor/react/components/overlays/dimming-overlay.d.ts.map +1 -1
- package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts +1 -1
- package/build-types/image-editor/react/components/overlays/grid-overlay.d.ts.map +1 -1
- package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts +1 -1
- package/build-types/image-editor/react/components/stencils/rectangle-stencil.d.ts.map +1 -1
- package/build-types/image-editor/react/components/viewport-provider.d.ts +9 -0
- package/build-types/image-editor/react/components/viewport-provider.d.ts.map +1 -0
- package/build-types/image-editor/react/hooks/use-aria-announcer.d.ts.map +1 -1
- package/build-types/image-editor/react/hooks/use-cropper-state.d.ts +29 -0
- package/build-types/image-editor/react/hooks/use-cropper-state.d.ts.map +1 -1
- package/build-types/image-editor/react/hooks/use-interaction.d.ts +5 -2
- package/build-types/image-editor/react/hooks/use-interaction.d.ts.map +1 -1
- package/build-types/image-editor/react/hooks/use-viewport-state.d.ts +19 -0
- package/build-types/image-editor/react/hooks/use-viewport-state.d.ts.map +1 -0
- package/build-types/image-editor/react/visually-hidden-style.d.ts +6 -0
- package/build-types/image-editor/react/visually-hidden-style.d.ts.map +1 -0
- package/build-types/image-editor/stories/rectangle-crop.story.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +3 -3
- package/build-types/store/actions.d.ts.map +1 -1
- package/package.json +16 -15
- package/src/components/media-editor/index.tsx +709 -0
- package/src/components/media-editor/style.scss +89 -0
- package/src/components/media-editor-canvas/index.tsx +24 -0
- package/src/components/media-editor-crop-panel/index.tsx +39 -27
- package/src/components/media-editor-crop-panel/test/index.tsx +109 -0
- package/src/components/media-editor-keyboard-shortcuts-modal/index.tsx +177 -0
- package/src/components/media-editor-keyboard-shortcuts-modal/style.scss +53 -0
- package/src/components/media-editor-modal/index.tsx +49 -589
- package/src/components/media-editor-modal/style.scss +13 -112
- package/src/components/media-editor-toolbar/index.tsx +122 -63
- package/src/components/media-editor-toolbar/style.scss +39 -11
- package/src/components/media-form/index.tsx +5 -0
- package/src/components/rotation-ruler/README.md +37 -0
- package/src/components/rotation-ruler/index.tsx +266 -0
- package/src/components/rotation-ruler/stories/index.story.tsx +54 -0
- package/src/components/rotation-ruler/style.scss +147 -0
- package/src/components/rotation-ruler/test/index.tsx +109 -0
- package/src/components/rotation-ruler/use-ruler-drag.ts +230 -0
- package/src/hooks/use-crop-gesture-handlers.ts +54 -0
- package/src/image-editor/core/constants.ts +12 -0
- package/src/image-editor/core/containment.ts +16 -28
- package/src/image-editor/core/interaction-controller.ts +66 -10
- package/src/image-editor/core/state.ts +15 -8
- package/src/image-editor/core/test/camera.ts +15 -26
- package/src/image-editor/core/test/interaction-controller.ts +158 -7
- package/src/image-editor/core/test/state.ts +21 -1
- package/src/image-editor/core/transform-style.ts +1 -1
- package/src/image-editor/core/types.ts +16 -0
- package/src/image-editor/core/viewport-state.ts +33 -0
- package/src/image-editor/docs/architecture.md +1 -1
- package/src/image-editor/docs/recipes.md +2 -2
- package/src/image-editor/react/components/cropper.scss +28 -0
- package/src/image-editor/react/components/cropper.tsx +268 -72
- package/src/image-editor/react/components/overlays/dimming-overlay.tsx +12 -12
- package/src/image-editor/react/components/stencils/rectangle-stencil.tsx +27 -8
- package/src/image-editor/react/components/stencils/test/rectangle-stencil.tsx +29 -3
- package/src/image-editor/react/components/test/cropper.tsx +294 -5
- package/src/image-editor/react/components/viewport-provider.tsx +39 -0
- package/src/image-editor/react/hooks/test/use-aria-announcer.ts +81 -0
- package/src/image-editor/react/hooks/test/use-cropper-state.ts +286 -0
- package/src/image-editor/react/hooks/test/use-interaction.ts +1 -0
- package/src/image-editor/react/hooks/use-aria-announcer.ts +68 -7
- package/src/image-editor/react/hooks/use-cropper-state.ts +230 -11
- package/src/image-editor/react/hooks/use-interaction.ts +36 -6
- package/src/image-editor/react/hooks/use-viewport-state.ts +48 -0
- package/src/image-editor/react/visually-hidden-style.ts +15 -0
- package/src/private-apis.ts +2 -0
- package/src/style.scss +3 -0
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -140,6 +140,13 @@
|
|
|
140
140
|
position: absolute;
|
|
141
141
|
inset: 22px;
|
|
142
142
|
}
|
|
143
|
+
.wp-media-editor-image-editor__canvas:focus {
|
|
144
|
+
outline: none;
|
|
145
|
+
}
|
|
146
|
+
.wp-media-editor-image-editor__stage {
|
|
147
|
+
position: absolute;
|
|
148
|
+
inset: 0;
|
|
149
|
+
}
|
|
143
150
|
.wp-media-editor-image-editor--dragging {
|
|
144
151
|
cursor: grabbing;
|
|
145
152
|
}
|
|
@@ -180,6 +187,10 @@
|
|
|
180
187
|
opacity: 1;
|
|
181
188
|
transition-delay: 0s;
|
|
182
189
|
}
|
|
190
|
+
.wp-media-editor-image-editor__canvas--settling .wp-media-editor-image-editor__grid {
|
|
191
|
+
opacity: 0;
|
|
192
|
+
transition: none;
|
|
193
|
+
}
|
|
183
194
|
.wp-media-editor-image-editor__grid-line {
|
|
184
195
|
position: absolute;
|
|
185
196
|
background: rgba(255, 255, 255, 0.4);
|
|
@@ -199,6 +210,11 @@
|
|
|
199
210
|
border: 1px solid rgba(255, 255, 255, 0.7);
|
|
200
211
|
box-sizing: border-box;
|
|
201
212
|
pointer-events: none;
|
|
213
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
214
|
+
}
|
|
215
|
+
.wp-media-editor-image-editor__canvas--focus-visible .wp-media-editor-image-editor__stencil-rect {
|
|
216
|
+
border-color: var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
|
|
217
|
+
box-shadow: 0 0 0 1px var(--wp-image-editor-focus-color, var(--wp-admin-theme-color, #007cba));
|
|
202
218
|
}
|
|
203
219
|
.wp-media-editor-image-editor__handle {
|
|
204
220
|
appearance: none;
|
|
@@ -325,22 +341,20 @@
|
|
|
325
341
|
* Creates a checkerboard pattern background to indicate transparency.
|
|
326
342
|
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
|
|
327
343
|
*/
|
|
328
|
-
.media-editor
|
|
329
|
-
padding: 0;
|
|
330
|
-
margin-bottom: 0;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.media-editor-modal {
|
|
344
|
+
.media-editor {
|
|
334
345
|
display: flex;
|
|
346
|
+
flex: 1;
|
|
335
347
|
flex-direction: column;
|
|
348
|
+
height: 100%;
|
|
349
|
+
min-height: 0;
|
|
336
350
|
}
|
|
337
|
-
.media-editor
|
|
351
|
+
.media-editor .media-editor__loading {
|
|
338
352
|
height: 100%;
|
|
339
353
|
display: flex;
|
|
340
354
|
align-items: center;
|
|
341
355
|
justify-content: center;
|
|
342
356
|
}
|
|
343
|
-
.media-editor
|
|
357
|
+
.media-editor .interface-interface-skeleton {
|
|
344
358
|
position: relative;
|
|
345
359
|
top: auto;
|
|
346
360
|
left: auto;
|
|
@@ -351,18 +365,18 @@
|
|
|
351
365
|
flex: 1;
|
|
352
366
|
flex-direction: column;
|
|
353
367
|
}
|
|
354
|
-
.media-editor
|
|
368
|
+
.media-editor .interface-interface-skeleton__editor {
|
|
355
369
|
min-width: 0;
|
|
356
370
|
flex: 1;
|
|
357
371
|
}
|
|
358
|
-
.media-editor
|
|
372
|
+
.media-editor .interface-interface-skeleton__footer {
|
|
359
373
|
position: relative;
|
|
360
374
|
display: flex;
|
|
361
375
|
}
|
|
362
|
-
.media-editor
|
|
376
|
+
.media-editor .interface-interface-skeleton.has-footer .interface-interface-skeleton__body {
|
|
363
377
|
padding-bottom: 0;
|
|
364
378
|
}
|
|
365
|
-
.media-editor
|
|
379
|
+
.media-editor .media-editor__canvas {
|
|
366
380
|
display: flex;
|
|
367
381
|
align-items: center;
|
|
368
382
|
justify-content: center;
|
|
@@ -370,39 +384,74 @@
|
|
|
370
384
|
overflow: auto;
|
|
371
385
|
height: 100%;
|
|
372
386
|
}
|
|
373
|
-
.media-editor
|
|
387
|
+
.media-editor .media-editor__canvas .media-editor-preview {
|
|
374
388
|
height: 100%;
|
|
375
389
|
}
|
|
376
|
-
.media-editor
|
|
377
|
-
.media-editor
|
|
390
|
+
.media-editor .media-editor__canvas img,
|
|
391
|
+
.media-editor .media-editor__canvas video {
|
|
378
392
|
max-width: 100%;
|
|
379
393
|
max-height: 100%;
|
|
380
394
|
object-fit: contain;
|
|
381
395
|
}
|
|
382
|
-
.media-editor
|
|
396
|
+
.media-editor .media-editor__sidebar {
|
|
383
397
|
box-sizing: border-box;
|
|
384
398
|
}
|
|
385
|
-
.media-editor
|
|
386
|
-
.media-editor
|
|
387
|
-
.media-editor
|
|
399
|
+
.media-editor .media-editor__sidebar *,
|
|
400
|
+
.media-editor .media-editor__sidebar *::before,
|
|
401
|
+
.media-editor .media-editor__sidebar *::after {
|
|
388
402
|
box-sizing: inherit;
|
|
389
403
|
}
|
|
390
|
-
.media-editor
|
|
404
|
+
.media-editor .media-editor__panel {
|
|
391
405
|
padding: 16px;
|
|
392
406
|
}
|
|
393
|
-
.media-editor
|
|
407
|
+
.media-editor .components-panel__header.media-editor__sidebar-header {
|
|
394
408
|
padding-right: 0;
|
|
395
409
|
padding-left: 8px;
|
|
396
410
|
}
|
|
397
|
-
.media-editor
|
|
411
|
+
.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
|
|
398
412
|
padding: 0;
|
|
399
413
|
}
|
|
400
414
|
@media (min-width: 782px) {
|
|
401
|
-
.media-editor
|
|
415
|
+
.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon {
|
|
402
416
|
display: flex;
|
|
403
417
|
}
|
|
404
418
|
}
|
|
405
419
|
|
|
420
|
+
.media-editor__snackbar {
|
|
421
|
+
position: fixed;
|
|
422
|
+
bottom: 24px;
|
|
423
|
+
right: 0;
|
|
424
|
+
left: 0;
|
|
425
|
+
padding-inline: 16px;
|
|
426
|
+
box-sizing: border-box;
|
|
427
|
+
display: flex;
|
|
428
|
+
flex-direction: column;
|
|
429
|
+
pointer-events: none;
|
|
430
|
+
}
|
|
431
|
+
.media-editor__snackbar .components-snackbar {
|
|
432
|
+
margin-inline: auto;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.media-editor-modal.components-modal__frame .components-modal__content {
|
|
436
|
+
padding: 0;
|
|
437
|
+
margin-bottom: 0;
|
|
438
|
+
display: flex;
|
|
439
|
+
flex-direction: column;
|
|
440
|
+
min-height: 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.media-editor-modal.components-modal__frame .components-modal__children-container {
|
|
444
|
+
display: flex;
|
|
445
|
+
flex: 1;
|
|
446
|
+
flex-direction: column;
|
|
447
|
+
min-height: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.media-editor-modal {
|
|
451
|
+
display: flex;
|
|
452
|
+
flex-direction: column;
|
|
453
|
+
}
|
|
454
|
+
|
|
406
455
|
.media-editor-modal__snackbar {
|
|
407
456
|
position: fixed;
|
|
408
457
|
bottom: 24px;
|
|
@@ -431,12 +480,188 @@
|
|
|
431
480
|
width: 100%;
|
|
432
481
|
padding: 8px 16px;
|
|
433
482
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
483
|
+
|
|
484
|
+
.media-editor-toolbar__rotation-slider {
|
|
485
|
+
flex: 1 1 280px;
|
|
486
|
+
min-width: 0;
|
|
487
|
+
max-width: 360px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.media-editor-toolbar__action-cluster {
|
|
491
|
+
display: flex;
|
|
492
|
+
flex-wrap: nowrap;
|
|
493
|
+
align-items: center;
|
|
494
|
+
gap: 8px;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
@media (min-width: 782px) {
|
|
498
|
+
.media-editor-toolbar__action-cluster {
|
|
499
|
+
border-right: 1px solid #ddd;
|
|
500
|
+
padding-right: 12px;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
@media (max-width: 781px) {
|
|
504
|
+
.media-editor-toolbar__rotation-slider {
|
|
505
|
+
flex-basis: 100%;
|
|
506
|
+
max-width: none;
|
|
507
|
+
}
|
|
508
|
+
.media-editor-toolbar__action-cluster {
|
|
509
|
+
flex-basis: 100%;
|
|
510
|
+
justify-content: center;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
.media-editor-keyboard-shortcuts-modal {
|
|
514
|
+
min-width: 280px;
|
|
515
|
+
}
|
|
516
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__note {
|
|
517
|
+
margin: 0 0 16px;
|
|
518
|
+
color: #757575;
|
|
519
|
+
font-size: 13px;
|
|
520
|
+
}
|
|
521
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-list {
|
|
522
|
+
list-style: none;
|
|
523
|
+
margin: 0;
|
|
524
|
+
padding: 0;
|
|
525
|
+
}
|
|
526
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut {
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: baseline;
|
|
529
|
+
padding: 0.6rem 0;
|
|
530
|
+
border-top: 1px solid #ddd;
|
|
531
|
+
margin-bottom: 0;
|
|
532
|
+
}
|
|
533
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut:last-child {
|
|
534
|
+
border-bottom: 1px solid #ddd;
|
|
535
|
+
}
|
|
536
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-description {
|
|
537
|
+
flex: 1;
|
|
538
|
+
margin: 0;
|
|
539
|
+
}
|
|
540
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term {
|
|
541
|
+
background: none;
|
|
542
|
+
font-weight: 600;
|
|
543
|
+
margin: 0 1rem 0 0;
|
|
544
|
+
padding: 0;
|
|
545
|
+
text-align: left;
|
|
546
|
+
}
|
|
547
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key {
|
|
548
|
+
padding: 0.25rem 0.5rem;
|
|
549
|
+
border-radius: 8%;
|
|
550
|
+
margin: 0 0.2rem 0 0.2rem;
|
|
551
|
+
}
|
|
552
|
+
.media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-key:last-child {
|
|
553
|
+
margin: 0 0.2rem 0 0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.rotation-ruler {
|
|
557
|
+
position: relative;
|
|
558
|
+
min-width: 180px;
|
|
559
|
+
height: 32px;
|
|
560
|
+
padding: 0 8px;
|
|
561
|
+
box-sizing: border-box;
|
|
562
|
+
color: #1e1e1e;
|
|
563
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
564
|
+
-webkit-user-select: none;
|
|
565
|
+
user-select: none;
|
|
566
|
+
touch-action: none;
|
|
567
|
+
cursor: ew-resize;
|
|
568
|
+
container-type: inline-size;
|
|
569
|
+
}
|
|
570
|
+
.rotation-ruler[data-disabled] {
|
|
571
|
+
opacity: 0.5;
|
|
572
|
+
pointer-events: none;
|
|
573
|
+
cursor: default;
|
|
574
|
+
}
|
|
575
|
+
.rotation-ruler:has(.rotation-ruler__input:focus-visible) {
|
|
576
|
+
outline: 2px solid var(--wp-admin-theme-color, #3858e9);
|
|
577
|
+
outline-offset: 2px;
|
|
578
|
+
border-radius: 4px;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.rotation-ruler__input {
|
|
582
|
+
position: absolute;
|
|
583
|
+
width: 1px;
|
|
584
|
+
height: 1px;
|
|
585
|
+
margin: -1px;
|
|
586
|
+
padding: 0;
|
|
587
|
+
border: 0;
|
|
588
|
+
clip: rect(0 0 0 0);
|
|
589
|
+
overflow: hidden;
|
|
590
|
+
white-space: nowrap;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.rotation-ruler__pointer {
|
|
594
|
+
position: absolute;
|
|
595
|
+
bottom: 0;
|
|
596
|
+
right: 50%;
|
|
597
|
+
width: 0;
|
|
598
|
+
height: 0;
|
|
599
|
+
border-right: 6px solid transparent;
|
|
600
|
+
border-left: 6px solid transparent;
|
|
601
|
+
border-bottom: 9px solid var(--wp-admin-theme-color, #3858e9);
|
|
602
|
+
transform: translateX(50%);
|
|
603
|
+
pointer-events: none;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.rotation-ruler__strip {
|
|
607
|
+
position: absolute;
|
|
608
|
+
inset: 0;
|
|
609
|
+
overflow: hidden;
|
|
610
|
+
mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
|
|
611
|
+
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.rotation-ruler__ticks {
|
|
615
|
+
position: absolute;
|
|
616
|
+
right: 50%;
|
|
617
|
+
top: 0;
|
|
618
|
+
display: block;
|
|
619
|
+
overflow: visible;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.rotation-ruler__tick {
|
|
623
|
+
stroke: currentColor;
|
|
624
|
+
stroke-width: 1;
|
|
625
|
+
}
|
|
626
|
+
.rotation-ruler__tick--minor {
|
|
627
|
+
opacity: 0.35;
|
|
628
|
+
}
|
|
629
|
+
.rotation-ruler__tick--mid {
|
|
630
|
+
opacity: 0.6;
|
|
631
|
+
}
|
|
632
|
+
.rotation-ruler__tick--major {
|
|
633
|
+
opacity: 1;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.rotation-ruler__label {
|
|
637
|
+
fill: currentColor;
|
|
638
|
+
font-size: 10px;
|
|
639
|
+
font-weight: 400;
|
|
640
|
+
opacity: 0.45;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.rotation-ruler__active-label {
|
|
644
|
+
position: absolute;
|
|
645
|
+
top: 0;
|
|
646
|
+
right: 50%;
|
|
647
|
+
height: 14px;
|
|
648
|
+
transform: translateX(50%);
|
|
649
|
+
padding: 0 12px;
|
|
650
|
+
font-size: 12px;
|
|
651
|
+
font-weight: 600;
|
|
652
|
+
line-height: 14px;
|
|
653
|
+
color: #1e1e1e;
|
|
654
|
+
background: linear-gradient(to left, transparent 0, #fff 12px, #fff calc(100% - 12px), transparent 100%);
|
|
655
|
+
pointer-events: none;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
@container (max-width: 220px) {
|
|
659
|
+
.rotation-ruler__tick--minor {
|
|
660
|
+
opacity: 0;
|
|
661
|
+
}
|
|
437
662
|
}
|
|
438
|
-
@media (
|
|
439
|
-
.
|
|
440
|
-
|
|
663
|
+
@media (prefers-reduced-motion: reduce) {
|
|
664
|
+
.rotation-ruler__ticks {
|
|
665
|
+
transition: none;
|
|
441
666
|
}
|
|
442
667
|
}
|