|
| 1 | +.k-imageeditor { |
| 2 | + margin: @imageeditor-margin-y @imageeditor-margin-x; |
| 3 | + padding: @imageeditor-padding-y @imageeditor-padding-x; |
| 4 | + border-width: @imageeditor-border-width; |
| 5 | + border-style: solid; |
| 6 | + box-sizing: border-box; |
| 7 | + outline: 0; |
| 8 | + font-family: @imageeditor-font-family; |
| 9 | + font-size: @imageeditor-font-size; |
| 10 | + line-height: @imageeditor-line-height; |
| 11 | + -webkit-touch-callout: none; |
| 12 | + -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 ); |
| 13 | +} |
| 14 | + |
| 15 | +// Content |
| 16 | +.k-imageeditor-content { |
| 17 | + display: flex; |
| 18 | + flex-direction: row; |
| 19 | + flex-wrap: nowrap; |
| 20 | +} |
| 21 | + |
| 22 | +// Canvas |
| 23 | +.k-imageeditor-canvas-container { |
| 24 | + flex: 1 1 100%; |
| 25 | + display: flex; |
| 26 | + flex-direction: row; |
| 27 | + flex-wrap: nowrap; |
| 28 | + overflow: auto; |
| 29 | +} |
| 30 | + |
| 31 | +.k-imageeditor-canvas { |
| 32 | + margin: auto; |
| 33 | + display: flex; |
| 34 | + flex-direction: column; |
| 35 | + position: relative; |
| 36 | +} |
| 37 | + |
| 38 | +// Action Pane |
| 39 | +.k-imageeditor-action-pane { |
| 40 | + border-width: @imageeditor-content-border-width; |
| 41 | + border-top-width: 0; |
| 42 | + border-style: solid; |
| 43 | + flex-shrink: 0; |
| 44 | + overflow-y: auto; |
| 45 | +} |
| 46 | +.k-imageeditor-action-pane > .k-form { |
| 47 | + padding: 0 @imageeditor-action-pane-padding-x @imageeditor-action-pane-padding-y @imageeditor-action-pane-padding-x; |
| 48 | +} |
| 49 | + |
| 50 | +// Crop Tool |
| 51 | +.k-imageeditor-crop-overlay { |
| 52 | + width: 100%; |
| 53 | + height: 100%; |
| 54 | + position: absolute; |
| 55 | + top: 0; |
| 56 | + left: 0; |
| 57 | +} |
| 58 | + |
| 59 | +.k-imageeditor-crop { |
| 60 | + width: 100%; |
| 61 | + height: 100%; |
| 62 | + border-width: @imageeditor-crop-border-width; |
| 63 | + border-style: @imageeditor-crop-border-style; |
| 64 | + box-sizing: border-box; |
| 65 | + position: absolute; |
| 66 | + |
| 67 | + .k-resize-handle { |
| 68 | + margin: @imageeditor-resize-handle-margin-y @imageeditor-resize-handle-margin-x; |
| 69 | + border-style: solid; |
| 70 | + border-width: @imageeditor-resize-handle-border-width; |
| 71 | + } |
| 72 | + |
| 73 | + .k-resize-sw, |
| 74 | + .k-resize-se, |
| 75 | + .k-resize-nw, |
| 76 | + .k-resize-ne { |
| 77 | + width: @imageeditor-resize-handle-size; |
| 78 | + height: @imageeditor-resize-handle-size; |
| 79 | + } |
| 80 | + |
| 81 | + .k-resize-n, |
| 82 | + .k-resize-s { |
| 83 | + left: calc( 50% - (@imageeditor-resize-handle-size / 2) ); |
| 84 | + width: @imageeditor-resize-handle-size; |
| 85 | + height: 0; |
| 86 | + } |
| 87 | + |
| 88 | + .k-resize-w, |
| 89 | + .k-resize-e { |
| 90 | + top: calc( 50% - (@imageeditor-resize-handle-size / 2) ); |
| 91 | + width: 0; |
| 92 | + height: @imageeditor-resize-handle-size; |
| 93 | + } |
| 94 | + |
| 95 | + .k-resize-ne { |
| 96 | + transform: rotate(-90deg); |
| 97 | + } |
| 98 | + |
| 99 | + .k-resize-nw { |
| 100 | + transform: rotate(-180deg); |
| 101 | + } |
| 102 | + |
| 103 | + |
| 104 | + .k-resize-sw { |
| 105 | + transform: rotate(90deg); |
| 106 | + } |
| 107 | + |
| 108 | + .k-resize-n, |
| 109 | + .k-resize-nw, |
| 110 | + .k-resize-ne { |
| 111 | + top: 0; |
| 112 | + } |
| 113 | + |
| 114 | + .k-resize-s, |
| 115 | + .k-resize-sw, |
| 116 | + .k-resize-se { |
| 117 | + bottom: 0; |
| 118 | + } |
| 119 | + |
| 120 | + .k-resize-w, |
| 121 | + .k-resize-nw, |
| 122 | + .k-resize-sw { |
| 123 | + left: 0; |
| 124 | + } |
| 125 | + |
| 126 | + .k-resize-e, |
| 127 | + .k-resize-ne, |
| 128 | + .k-resize-se { |
| 129 | + right: 0; |
| 130 | + } |
| 131 | +} |
| 132 | + |
| 133 | +// IE |
| 134 | +.k-ie { |
| 135 | + .k-imageeditor-canvas { |
| 136 | + flex-direction: row; |
| 137 | + align-self: flex-start; |
| 138 | + } |
| 139 | + |
| 140 | + .k-imageeditor-action-pane { |
| 141 | + min-width: 200px; |
| 142 | + flex: 0 0 auto; |
| 143 | + } |
| 144 | +} |
0 commit comments