cropper.css 4.9 KB

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