cropper.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /*!
  2. * Cropper v0.3.2
  3. * https://github.com/fengyuanchen/cropper
  4. *
  5. * Copyright 2014 Fengyuan Chen
  6. * Released under the MIT license
  7. */
  8. .cropper-container {
  9. position: relative;
  10. overflow: hidden;
  11. -webkit-user-select: none;
  12. -moz-user-select: none;
  13. -ms-user-select: none;
  14. user-select: none;
  15. background-color: #fff;
  16. -webkit-tap-highlight-color: transparent;
  17. -webkit-touch-callout: none;
  18. }
  19. .cropper-container .cropper-modal {
  20. position: absolute;
  21. top: 0;
  22. right: 0;
  23. bottom: 0;
  24. left: 0;
  25. background: #000;
  26. filter: alpha(opacity=50);
  27. opacity: .5;
  28. }
  29. .cropper-container .cropper-dragger {
  30. position: absolute;
  31. top: 10%;
  32. left: 10%;
  33. width: 80%;
  34. height: 80%;
  35. }
  36. .cropper-container .cropper-preview {
  37. display: block;
  38. width: 100%;
  39. height: 100%;
  40. -webkit-box-sizing: border-box;
  41. -moz-box-sizing: border-box;
  42. box-sizing: border-box;
  43. overflow: hidden;
  44. border-color: #69f;
  45. border-color: rgba(51, 102, 255, .75);
  46. border-style: solid;
  47. border-width: 1px;
  48. }
  49. .cropper-container .cropper-dashed {
  50. position: absolute;
  51. display: block;
  52. filter: alpha(opacity=50);
  53. border: 0 dashed #fff;
  54. opacity: .5;
  55. }
  56. .cropper-container .dashed-h {
  57. top: 33.3%;
  58. left: 0;
  59. width: 100%;
  60. height: 33.3%;
  61. border-top-width: 1px;
  62. border-bottom-width: 1px;
  63. }
  64. .cropper-container .dashed-v {
  65. top: 0;
  66. left: 33.3%;
  67. width: 33.3%;
  68. height: 100%;
  69. border-right-width: 1px;
  70. border-left-width: 1px;
  71. }
  72. .cropper-container .cropper-face,
  73. .cropper-container .cropper-line,
  74. .cropper-container .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-container .cropper-face {
  83. top: 0;
  84. left: 0;
  85. cursor: move;
  86. background-color: #fff;
  87. }
  88. .cropper-container .cropper-line {
  89. background-color: #69f;
  90. }
  91. .cropper-container .line-e {
  92. top: 0;
  93. right: -2px;
  94. width: 5px;
  95. cursor: e-resize;
  96. }
  97. .cropper-container .line-n {
  98. top: -2px;
  99. left: 0;
  100. height: 5px;
  101. cursor: n-resize;
  102. }
  103. .cropper-container .line-w {
  104. top: 0;
  105. left: -2px;
  106. width: 5px;
  107. cursor: w-resize;
  108. }
  109. .cropper-container .line-s {
  110. bottom: -2px;
  111. left: 0;
  112. height: 5px;
  113. cursor: s-resize;
  114. }
  115. .cropper-container .cropper-point {
  116. width: 5px;
  117. height: 5px;
  118. background-color: #69f;
  119. filter: alpha(opacity=75);
  120. opacity: .75;
  121. }
  122. .cropper-container .point-e {
  123. top: 49%;
  124. right: -2px;
  125. cursor: e-resize;
  126. }
  127. .cropper-container .point-n {
  128. top: -2px;
  129. left: 49%;
  130. cursor: n-resize;
  131. }
  132. .cropper-container .point-w {
  133. top: 49%;
  134. left: -2px;
  135. cursor: w-resize;
  136. }
  137. .cropper-container .point-s {
  138. bottom: -2px;
  139. left: 49%;
  140. cursor: s-resize;
  141. }
  142. .cropper-container .point-ne {
  143. top: -2px;
  144. right: -2px;
  145. cursor: ne-resize;
  146. }
  147. .cropper-container .point-nw {
  148. top: -2px;
  149. left: -2px;
  150. cursor: nw-resize;
  151. }
  152. .cropper-container .point-sw {
  153. bottom: -2px;
  154. left: -2px;
  155. cursor: sw-resize;
  156. }
  157. .cropper-container .point-se {
  158. right: -2px;
  159. bottom: -2px;
  160. width: 20px;
  161. height: 20px;
  162. cursor: se-resize;
  163. filter: alpha(opacity=100);
  164. opacity: 1;
  165. }
  166. .cropper-container .point-se:before {
  167. position: absolute;
  168. right: -50%;
  169. bottom: -50%;
  170. display: block;
  171. width: 200%;
  172. height: 200%;
  173. content: " ";
  174. background-color: #69f;
  175. filter: alpha(opacity=0);
  176. opacity: 0;
  177. }
  178. @media (min-width: 768px) {
  179. .cropper-container .point-se {
  180. width: 15px;
  181. height: 15px;
  182. }
  183. }
  184. @media (min-width: 992px) {
  185. .cropper-container .point-se {
  186. width: 10px;
  187. height: 10px;
  188. }
  189. }
  190. @media (min-width: 1200px) {
  191. .cropper-container .point-se {
  192. width: 5px;
  193. height: 5px;
  194. filter: alpha(opacity=75);
  195. opacity: .75;
  196. }
  197. }
  198. .cropper-hidden {
  199. display: none !important;
  200. }