| 1 |
/*! |
| 2 |
* VisualEditor ContentEditable ResizableNode styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
*/ |
| 6 |
|
| 7 |
.ve-ce-resizableNode { |
| 8 |
&-handles { |
| 9 |
position: absolute; |
| 10 |
box-sizing: border-box; |
| 11 |
|
| 12 |
&-resizing { |
| 13 |
box-shadow: inset 0 0 0 1px rgba( 0, 0, 0, 0.2 ); |
| 14 |
background: rgba( 0, 0, 0, 0.1 ); |
| 15 |
} |
| 16 |
|
| 17 |
div { |
| 18 |
position: absolute; |
| 19 |
width: 11px; |
| 20 |
height: 11px; |
| 21 |
background-repeat: no-repeat; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
&-nwHandle { |
| 26 |
cursor: nw-resize; |
| 27 |
left: -6px; |
| 28 |
top: -6px; |
| 29 |
} |
| 30 |
|
| 31 |
&-neHandle { |
| 32 |
cursor: ne-resize; |
| 33 |
right: -6px; |
| 34 |
top: -6px; |
| 35 |
} |
| 36 |
|
| 37 |
&-swHandle { |
| 38 |
cursor: sw-resize; |
| 39 |
bottom: -6px; |
| 40 |
left: -6px; |
| 41 |
} |
| 42 |
|
| 43 |
&-seHandle { |
| 44 |
cursor: se-resize; |
| 45 |
bottom: -6px; |
| 46 |
right: -6px; |
| 47 |
} |
| 48 |
|
| 49 |
&-nwHandle, |
| 50 |
&-seHandle { |
| 51 |
/* @embed */ |
| 52 |
background-image: url( ../../../ui/styles/images/resize-nw-se.svg ); |
| 53 |
} |
| 54 |
|
| 55 |
&-neHandle, |
| 56 |
&-swHandle { |
| 57 |
/* @embed */ |
| 58 |
background-image: url( ../../../ui/styles/images/resize-ne-sw.svg ); |
| 59 |
} |
| 60 |
|
| 61 |
&-hide-nw &-nwHandle, |
| 62 |
&-hide-ne &-neHandle, |
| 63 |
&-hide-sw &-swHandle, |
| 64 |
&-hide-se &-seHandle { |
| 65 |
display: none; |
| 66 |
} |
| 67 |
|
| 68 |
&-sizeLabel { |
| 69 |
position: absolute; |
| 70 |
text-align: center; |
| 71 |
opacity: 0; |
| 72 |
transition: opacity 200ms; |
| 73 |
|
| 74 |
&-resizing { |
| 75 |
opacity: 1; |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
&-sizeText { |
| 80 |
padding: 0.25em 0.5em; |
| 81 |
border: 1px solid #c8ccd1; |
| 82 |
background-color: #fff; |
| 83 |
border-radius: 2px; |
| 84 |
white-space: nowrap; |
| 85 |
|
| 86 |
span:not( :first-child ) { |
| 87 |
margin-left: 0.4em; |
| 88 |
padding-left: 0.4em; |
| 89 |
border-left: 1px solid #c8ccd1; |
| 90 |
} |
| 91 |
|
| 92 |
&-warning { |
| 93 |
background-color: #ecc; |
| 94 |
border-color: #caa; |
| 95 |
} |
| 96 |
} |
| 97 |
} |