croppic.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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(./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 6px 0 6px;
  62. cursor:pointer;
  63. background-image:url('cropperIcons.png');
  64. width:30px;
  65. height:34px;
  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{ background-image:url('cropperIcons_hover.png'); }
  74. .cropControls i.cropControlRotateLeft{ background-position:-360px 0px; }
  75. .cropControls i.cropControlRotateRight{ background-position:-320px 0px; }
  76. .cropControls i.cropControlZoomOut{ background-position:-280px 0px; }
  77. .cropControls i.cropControlZoomMuchOut{ background-position:-240px 0px; }
  78. .cropControls i.cropControlZoomIn{ background-position:-200px 0px; }
  79. .cropControls i.cropControlZoomMuchIn{ background-position:-160px 0px;}
  80. .cropControls i.cropControlReset{ background-position:-120px 0px;}
  81. .cropControls i.cropControlRemoveCroppedImage{ background-position:-120px 0px;}
  82. .cropControls i.cropControlUpload{ background-position:-80px 0px;}
  83. .cropControls i.cropControlOriginal{ background-position:-80px 0px;}
  84. .cropControls i.cropControlSave{ background-position: -40px 0px;}
  85. .cropControls i.cropControlCrop{ background-position:0px 0px;}
  86. .cropControls i:last-child{
  87. margin-right:none;
  88. }
  89. #croppicModal{
  90. position:fixed;
  91. width:100%;
  92. height:100%;
  93. top: 0;
  94. left: 0;
  95. display:block;
  96. background:rgba(0,0,0,0.8);
  97. z-index: 10000;
  98. }
  99. /*
  100. * PRELOADER
  101. * With courtesy of : http://cssload.net/
  102. */
  103. .bubblingG {
  104. text-align: center;
  105. width:80px;
  106. height:50px;
  107. position: absolute;
  108. top: 50%;
  109. left: 50%;
  110. margin: -18px auto auto -40px;
  111. z-index:2;
  112. }
  113. .bubblingG span {
  114. display: inline-block;
  115. vertical-align: middle;
  116. width: 10px;
  117. height: 10px;
  118. margin: 25px auto;
  119. background: #FFF;
  120. box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
  121. -moz-border-radius: 50px;
  122. -moz-animation: bubblingG 1s infinite alternate;
  123. -webkit-border-radius: 50px;
  124. -webkit-animation: bubblingG 1s infinite alternate;
  125. -ms-border-radius: 50px;
  126. -ms-animation: bubblingG 1s infinite alternate;
  127. -o-border-radius: 50px;
  128. -o-animation: bubblingG 1s infinite alternate;
  129. border-radius: 50px;
  130. animation: bubblingG 1s infinite alternate;
  131. }
  132. #bubblingG_1 {
  133. -moz-animation-delay: 0s;
  134. -webkit-animation-delay: 0s;
  135. -ms-animation-delay: 0s;
  136. -o-animation-delay: 0s;
  137. animation-delay: 0s;
  138. }
  139. #bubblingG_2 {
  140. -moz-animation-delay: 0.3s;
  141. -webkit-animation-delay: 0.3s;
  142. -ms-animation-delay: 0.3s;
  143. -o-animation-delay: 0.3s;
  144. animation-delay: 0.3s;
  145. }
  146. #bubblingG_3 {
  147. -moz-animation-delay: 0.6s;
  148. -webkit-animation-delay: 0.6s;
  149. -ms-animation-delay: 0.6s;
  150. -o-animation-delay: 0.6s;
  151. animation-delay: 0.6s;
  152. }
  153. @-moz-keyframes bubblingG {
  154. 0% {
  155. width: 10px;
  156. height: 10px;
  157. background-color:#FFF;
  158. -moz-transform: translateY(0);
  159. }
  160. 100% {
  161. width: 24px;
  162. height: 24px;
  163. background-color:#FFF;
  164. -moz-transform: translateY(-21px);
  165. }
  166. }
  167. @-webkit-keyframes bubblingG {
  168. 0% {
  169. width: 10px;
  170. height: 10px;
  171. background-color:#FFF;
  172. -webkit-transform: translateY(0);
  173. }
  174. 100% {
  175. width: 24px;
  176. height: 24px;
  177. background-color:#FFF;
  178. -webkit-transform: translateY(-21px);
  179. }
  180. }
  181. @-ms-keyframes bubblingG {
  182. 0% {
  183. width: 10px;
  184. height: 10px;
  185. background-color:#FFF;
  186. -ms-transform: translateY(0);
  187. }
  188. 100% {
  189. width: 24px;
  190. height: 24px;
  191. background-color:#FFF;
  192. -ms-transform: translateY(-21px);
  193. }
  194. }
  195. @-o-keyframes bubblingG {
  196. 0% {
  197. width: 10px;
  198. height: 10px;
  199. background-color:#FFF;
  200. -o-transform: translateY(0);
  201. }
  202. 100% {
  203. width: 24px;
  204. height: 24px;
  205. background-color:#FFF;
  206. -o-transform: translateY(-21px);
  207. }
  208. }
  209. @keyframes bubblingG {
  210. 0% {
  211. width: 10px;
  212. height: 10px;
  213. background-color:#FFF;
  214. transform: translateY(0);
  215. }
  216. 100% {
  217. width: 24px;
  218. height: 24px;
  219. background-color:#FFF;
  220. transform: translateY(-21px);
  221. }
  222. }
  223. /* some reset stlyes */