cropper.css 4.5 KB

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