croppic.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. #croppic{
  2. width: 400px; /* MANDATORY */
  3. height: 208px; /* MANDATORY */
  4. position: relative; /* MANDATORY */
  5. margin: 50px 70px 20px;
  6. border: 3px solid #FFF;
  7. box-sizing: content-box;
  8. -moz-box-sizing: content-box;
  9. border-radius: 2px;
  10. background-image: url(../image/placeholder.png);
  11. background-repeat: no-repeat;
  12. background-position: center;
  13. box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
  14. }
  15. /* DO NOT CHANGE FROM HERE ( unless u know what u are doing) */
  16. .cropImgWrapper{
  17. cursor: -webkit-grab;
  18. cursor: grab;
  19. }
  20. .cropImgWrapper:active{
  21. cursor: -webkit-grabbing;
  22. cursor: grabbing;
  23. }
  24. .cropImgUpload{
  25. z-index:2;
  26. position:absolute;
  27. /*height:28px;*/
  28. display:block;
  29. top: -30px;
  30. right: -2px;
  31. font-family:sans-serif;
  32. width:20px;
  33. height:20px;
  34. text-align:center;
  35. line-height:20px;
  36. color:#FFF;
  37. }
  38. .cropControls{
  39. z-index:2;
  40. position:absolute;
  41. height:34px;
  42. display:block;
  43. /* top: -31px; */
  44. /*top: -1px;*/
  45. bottom: -80px;
  46. right: -1px;
  47. font-family:sans-serif;
  48. /*background-color:rgba(255,255,255,0.35);*/
  49. }
  50. .cropControlsUpload
  51. {
  52. top: 0;
  53. }
  54. .croppedImg
  55. {
  56. margin: 35px auto;
  57. }
  58. .cropControls i{
  59. display:block;
  60. float:left;
  61. margin:0 2px 0 2px;
  62. cursor:pointer;
  63. background-image:url('../image/cropperIcons.png');
  64. width:34px;
  65. height:38px;
  66. text-align:center;
  67. line-height:20px;
  68. color:#FFF;
  69. font-size:13px;
  70. font-weight: bold;
  71. font-style: normal;
  72. }
  73. .cropControls i:hover{
  74. background-image:url('../image/cropperIcons_hover.png');
  75. }
  76. .cropControls i.cropControlXiColor2{ background-position:-480px 0px; }
  77. .cropControls i.cropControlXiColor2{
  78. background-image:url('../image/cropperIcons_hover.png');
  79. display:none;
  80. }
  81. .cropControls i.cropControlXiColor.hover{
  82. background-image:url('../image/cropperIcons.png');
  83. }
  84. .cropControls i.cropControlSetColor{ background-position:-520px 0px; }
  85. .cropControls i.cropControlXiColor{ background-position:-480px 0px; }
  86. .cropControls i.cropControlRotateLeft{ background-position:-360px 0px; }
  87. .cropControls i.cropControlRotateMuchLeft{ background-position:-440px 0px; }
  88. .cropControls i.cropControlRotateRight{ background-position:-320px 0px; }
  89. .cropControls i.cropControlRotateMuchRight{ background-position:-400px 0px; }
  90. .cropControls i.cropControlZoomOut{ background-position:-280px 0px; }
  91. .cropControls i.cropControlZoomMuchOut{ background-position:-240px 0px; }
  92. .cropControls i.cropControlZoomIn{ background-position:-200px 0px; }
  93. .cropControls i.cropControlZoomMuchIn{ background-position:-160px 0px;}
  94. .cropControls i.cropControlReset{ background-position:-120px 0px;}
  95. .cropControls i.cropControlRemoveCroppedImage{ background-position:-120px 0px;}
  96. .cropControls i.cropControlUpload{ background-position:-80px 0px;}
  97. .cropControls i.cropControlOriginal{ background-position:-80px 0px;}
  98. .cropControls i.cropControlSave{ background-position: -40px 0px;}
  99. .cropControls i.cropControlCrop{ background-position:0px 0px;}
  100. .cropControls i:last-child{
  101. margin-right:none;
  102. }
  103. #croppicModal{
  104. position:fixed;
  105. width:100%;
  106. height:100%;
  107. top: 0;
  108. left: 0;
  109. display:block;
  110. background:rgba(0,0,0,0.8);
  111. z-index: 10000;
  112. }
  113. /*
  114. * PRELOADER
  115. * With courtesy of : http://cssload.net/
  116. */
  117. .bubblingG {
  118. text-align: center;
  119. width:80px;
  120. height:50px;
  121. position: absolute;
  122. top: 50%;
  123. left: 50%;
  124. margin: -18px auto auto -40px;
  125. z-index:2;
  126. }
  127. .bubblingG span {
  128. display: inline-block;
  129. vertical-align: middle;
  130. width: 10px;
  131. height: 10px;
  132. margin: 25px auto;
  133. background: #FFF;
  134. box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
  135. -moz-border-radius: 50px;
  136. -moz-animation: bubblingG 1s infinite alternate;
  137. -webkit-border-radius: 50px;
  138. -webkit-animation: bubblingG 1s infinite alternate;
  139. -ms-border-radius: 50px;
  140. -ms-animation: bubblingG 1s infinite alternate;
  141. -o-border-radius: 50px;
  142. -o-animation: bubblingG 1s infinite alternate;
  143. border-radius: 50px;
  144. animation: bubblingG 1s infinite alternate;
  145. }
  146. #bubblingG_1 {
  147. -moz-animation-delay: 0s;
  148. -webkit-animation-delay: 0s;
  149. -ms-animation-delay: 0s;
  150. -o-animation-delay: 0s;
  151. animation-delay: 0s;
  152. }
  153. #bubblingG_2 {
  154. -moz-animation-delay: 0.3s;
  155. -webkit-animation-delay: 0.3s;
  156. -ms-animation-delay: 0.3s;
  157. -o-animation-delay: 0.3s;
  158. animation-delay: 0.3s;
  159. }
  160. #bubblingG_3 {
  161. -moz-animation-delay: 0.6s;
  162. -webkit-animation-delay: 0.6s;
  163. -ms-animation-delay: 0.6s;
  164. -o-animation-delay: 0.6s;
  165. animation-delay: 0.6s;
  166. }
  167. @-moz-keyframes bubblingG {
  168. 0% {
  169. width: 10px;
  170. height: 10px;
  171. background-color:#FFF;
  172. -moz-transform: translateY(0);
  173. }
  174. 100% {
  175. width: 24px;
  176. height: 24px;
  177. background-color:#FFF;
  178. -moz-transform: translateY(-21px);
  179. }
  180. }
  181. @-webkit-keyframes bubblingG {
  182. 0% {
  183. width: 10px;
  184. height: 10px;
  185. background-color:#FFF;
  186. -webkit-transform: translateY(0);
  187. }
  188. 100% {
  189. width: 24px;
  190. height: 24px;
  191. background-color:#FFF;
  192. -webkit-transform: translateY(-21px);
  193. }
  194. }
  195. @-ms-keyframes bubblingG {
  196. 0% {
  197. width: 10px;
  198. height: 10px;
  199. background-color:#FFF;
  200. -ms-transform: translateY(0);
  201. }
  202. 100% {
  203. width: 24px;
  204. height: 24px;
  205. background-color:#FFF;
  206. -ms-transform: translateY(-21px);
  207. }
  208. }
  209. @-o-keyframes bubblingG {
  210. 0% {
  211. width: 10px;
  212. height: 10px;
  213. background-color:#FFF;
  214. -o-transform: translateY(0);
  215. }
  216. 100% {
  217. width: 24px;
  218. height: 24px;
  219. background-color:#FFF;
  220. -o-transform: translateY(-21px);
  221. }
  222. }
  223. @keyframes bubblingG {
  224. 0% {
  225. width: 10px;
  226. height: 10px;
  227. background-color:#FFF;
  228. transform: translateY(0);
  229. }
  230. 100% {
  231. width: 24px;
  232. height: 24px;
  233. background-color:#FFF;
  234. transform: translateY(-21px);
  235. }
  236. }
  237. /* some reset stlyes */