|
11 | 11 | } |
12 | 12 |
|
13 | 13 | // This is necessary for the editor resize handles to accurately work on a non-floated, non-resized, small image. |
14 | | -.wp-block-image { |
15 | | - .block-library-image__resizer { |
16 | | - display: inline-block; |
| 14 | +.wp-block-image .components-resizable-box__container { |
| 15 | + display: inline-block; |
17 | 16 |
|
18 | | - img { |
19 | | - display: block; |
20 | | - width: 100%; |
21 | | - } |
22 | | - } |
23 | | -} |
24 | | - |
25 | | -.block-library-image__resize-handler-right, |
26 | | -.block-library-image__resize-handler-bottom, |
27 | | -.block-library-image__resize-handler-left { |
28 | | - @include resize-handler__container(); |
29 | | - |
30 | | - .wp-block-image.is-focused & { |
| 17 | + img { |
31 | 18 | display: block; |
32 | | - z-index: z-index(".block-library-image__resize-handlers"); |
| 19 | + width: 100%; |
33 | 20 | } |
34 | 21 | } |
35 | 22 |
|
36 | | -// Draw the visible handle |
37 | | -.block-library-image__resize-handler-right::before, |
38 | | -.block-library-image__resize-handler-bottom::before, |
39 | | -.block-library-image__resize-handler-left::before { |
40 | | - @include resize-handler__visible-handle(); |
41 | | -} |
42 | | - |
43 | | -/*!rtl:begin:ignore*/ |
44 | | -.block-library-image__resize-handler-right { |
45 | | - top: calc(50% - #{$resize-handler-container-size / 2}); |
46 | | - right: calc(#{$resize-handler-container-size / 2} * -1); |
47 | | -} |
48 | | - |
49 | | -.block-library-image__resize-handler-left { |
50 | | - top: calc(50% - #{$resize-handler-container-size / 2}); |
51 | | - left: calc(#{$resize-handler-container-size / 2} * -1); |
52 | | -} |
53 | | - |
54 | | -.block-library-image__resize-handler-bottom { |
55 | | - bottom: calc(#{$resize-handler-container-size / 2} * -1); |
56 | | - left: calc(50% - #{$resize-handler-container-size / 2}); |
| 23 | +// Ensure the resize handles are visible when the image is focused. |
| 24 | +.wp-block-image.is-focused .components-resizable-box__handle { |
| 25 | + display: block; |
| 26 | + z-index: z-index(".block-library-image__resize-handlers"); |
57 | 27 | } |
58 | | -/*!rtl:end:ignore*/ |
59 | 28 |
|
60 | 29 | .editor-block-list__block[data-type="core/image"][data-align="center"] { |
61 | 30 | .wp-block-image { |
|
0 commit comments