cropper.css 4.8 KB

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