cropper.css 5.0 KB

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