cropper.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. .cropper-container {
  2. position: relative;
  3. overflow: hidden;
  4. -webkit-user-select: none;
  5. -moz-user-select: none;
  6. -ms-user-select: none;
  7. user-select: none;
  8. -webkit-tap-highlight-color: transparent;
  9. -webkit-touch-callout: none
  10. }
  11. .cropper-container img {
  12. display: block;
  13. width: 100%;
  14. min-width: 0 !important;
  15. max-width: none !important;
  16. height: 100%;
  17. min-height: 0 !important;
  18. max-height: none !important;
  19. image-orientation: 0deg !important
  20. }
  21. .cropper-canvas,
  22. .cropper-crop-box,
  23. .cropper-drag-box,
  24. .cropper-modal {
  25. position: absolute;
  26. top: 0;
  27. right: 0;
  28. bottom: 0;
  29. left: 0
  30. }
  31. .cropper-drag-box {
  32. background-color: #fff;
  33. filter: alpha(opacity=0);
  34. opacity: 0
  35. }
  36. .cropper-modal {
  37. background-color: #000;
  38. filter: alpha(opacity=50);
  39. opacity: .5
  40. }
  41. .cropper-view-box {
  42. display: block;
  43. width: 100%;
  44. height: 100%;
  45. overflow: hidden;
  46. outline: #69f solid 1px;
  47. outline-color: rgba(102, 153, 255, .75)
  48. }
  49. .cropper-dashed {
  50. position: absolute;
  51. display: block;
  52. filter: alpha(opacity=50);
  53. border: 0 dashed #fff;
  54. opacity: .5
  55. }
  56. .cropper-dashed.dashed-h {
  57. top: 33.33333333%;
  58. left: 0;
  59. width: 100%;
  60. height: 33.33333333%;
  61. border-top-width: 1px;
  62. border-bottom-width: 1px
  63. }
  64. .cropper-dashed.dashed-v {
  65. top: 0;
  66. left: 33.33333333%;
  67. width: 33.33333333%;
  68. height: 100%;
  69. border-right-width: 1px;
  70. border-left-width: 1px
  71. }
  72. .cropper-face,
  73. .cropper-line,
  74. .cropper-point {
  75. position: absolute;
  76. display: block;
  77. width: 100%;
  78. height: 100%;
  79. filter: alpha(opacity=10);
  80. opacity: .1
  81. }
  82. .cropper-face {
  83. top: 0;
  84. left: 0;
  85. cursor: move;
  86. background-color: #fff
  87. }
  88. .cropper-line {
  89. background-color: #69f
  90. }
  91. .cropper-line.line-e {
  92. top: 0;
  93. right: -3px;
  94. width: 5px;
  95. cursor: e-resize
  96. }
  97. .cropper-line.line-n {
  98. top: -3px;
  99. left: 0;
  100. height: 5px;
  101. cursor: n-resize
  102. }
  103. .cropper-line.line-w {
  104. top: 0;
  105. left: -3px;
  106. width: 5px;
  107. cursor: w-resize
  108. }
  109. .cropper-line.line-s {
  110. bottom: -3px;
  111. left: 0;
  112. height: 5px;
  113. cursor: s-resize
  114. }
  115. .cropper-point {
  116. width: 5px;
  117. height: 5px;
  118. background-color: #69f;
  119. filter: alpha(opacity=75);
  120. opacity: .75
  121. }
  122. .cropper-point.point-e {
  123. top: 50%;
  124. right: -3px;
  125. margin-top: -3px;
  126. cursor: e-resize
  127. }
  128. .cropper-point.point-n {
  129. top: -3px;
  130. left: 50%;
  131. margin-left: -3px;
  132. cursor: n-resize
  133. }
  134. .cropper-point.point-w {
  135. top: 50%;
  136. left: -3px;
  137. margin-top: -3px;
  138. cursor: w-resize
  139. }
  140. .cropper-point.point-s {
  141. bottom: -3px;
  142. left: 50%;
  143. margin-left: -3px;
  144. cursor: s-resize
  145. }
  146. .cropper-point.point-ne {
  147. top: -3px;
  148. right: -3px;
  149. cursor: ne-resize
  150. }
  151. .cropper-point.point-nw {
  152. top: -3px;
  153. left: -3px;
  154. cursor: nw-resize
  155. }
  156. .cropper-point.point-sw {
  157. bottom: -3px;
  158. left: -3px;
  159. cursor: sw-resize
  160. }
  161. .cropper-point.point-se {
  162. right: -3px;
  163. bottom: -3px;
  164. width: 20px;
  165. height: 20px;
  166. cursor: se-resize;
  167. filter: alpha(opacity=100);
  168. opacity: 1
  169. }
  170. .cropper-point.point-se:before {
  171. position: absolute;
  172. right: -50%;
  173. bottom: -50%;
  174. display: block;
  175. width: 200%;
  176. height: 200%;
  177. content: " ";
  178. background-color: #69f;
  179. filter: alpha(opacity=0);
  180. opacity: 0
  181. }
  182. @media (min-width:768px) {
  183. .cropper-point.point-se {
  184. width: 15px;
  185. height: 15px
  186. }
  187. }
  188. @media (min-width:992px) {
  189. .cropper-point.point-se {
  190. width: 10px;
  191. height: 10px
  192. }
  193. }
  194. @media (min-width:1200px) {
  195. .cropper-point.point-se {
  196. width: 5px;
  197. height: 5px;
  198. filter: alpha(opacity=75);
  199. opacity: .75
  200. }
  201. }
  202. .cropper-bg {
  203. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)
  204. }
  205. .cropper-invisible {
  206. filter: alpha(opacity=0);
  207. opacity: 0
  208. }
  209. .cropper-hide {
  210. position: fixed;
  211. top: 0;
  212. left: 0;
  213. z-index: -1;
  214. width: auto !important;
  215. min-width: 0 !important;
  216. max-width: none !important;
  217. height: auto !important;
  218. min-height: 0 !important;
  219. max-height: none !important;
  220. filter: alpha(opacity=0);
  221. opacity: 0
  222. }
  223. .cropper-hidden {
  224. display: none !important
  225. }
  226. .cropper-move {
  227. cursor: move
  228. }
  229. .cropper-crop {
  230. cursor: crosshair
  231. }
  232. .cropper-disabled .cropper-canvas,
  233. .cropper-disabled .cropper-face,
  234. .cropper-disabled .cropper-line,
  235. .cropper-disabled .cropper-point {
  236. cursor: not-allowed
  237. }