CropRect.less 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // CropRect
  2. .@{prefix}-croprect-container {
  3. position: absolute;
  4. top: 0;
  5. left: 0;
  6. }
  7. .@{prefix}-croprect-handle {
  8. position: absolute;
  9. top: 0; left: 0;
  10. width: 20px; height: 20px;
  11. border: 2px solid white;
  12. }
  13. .@{prefix}-croprect-handle-nw {
  14. border-width: 2px 0 0 2px;
  15. margin: -2px 0 0 -2px;
  16. cursor: nw-resize;
  17. top: 100px; left: 100px;
  18. }
  19. .@{prefix}-croprect-handle-ne {
  20. border-width: 2px 2px 0 0;
  21. margin: -2px 0 0 -20px;
  22. cursor: ne-resize;
  23. top: 100px; left: 200px;
  24. }
  25. .@{prefix}-croprect-handle-sw {
  26. border-width: 0 0 2px 2px;
  27. margin: -20px 2px 0 -2px;
  28. cursor: sw-resize;
  29. top: 200px; left: 100px;
  30. }
  31. .@{prefix}-croprect-handle-se {
  32. border-width: 0 2px 2px 0;
  33. margin: -20px 0 0 -20px;
  34. cursor: se-resize;
  35. top: 200px; left: 200px;
  36. }
  37. .@{prefix}-croprect-handle-move {
  38. position: absolute;
  39. cursor: move;
  40. border: 0;
  41. }
  42. .@{prefix}-croprect-block {
  43. .opacity(@window-modalblock-opacity);
  44. position: absolute;
  45. background: black;
  46. }
  47. .@{prefix}-croprect-handle:focus {
  48. border-color: @textbox-border-focus;
  49. }
  50. .@{prefix}-croprect-handle-move:focus {
  51. outline: 1px solid @textbox-border-focus;
  52. }