123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- #croppic{
- width: 400px; /* MANDATORY */
- height: 208px; /* MANDATORY */
- position: relative; /* MANDATORY */
- margin: 50px 70px 20px;
- border: 3px solid #FFF;
- box-sizing: content-box;
- -moz-box-sizing: content-box;
- border-radius: 2px;
- background-image: url(../image/placeholder.png);
- background-repeat: no-repeat;
- background-position: center;
- box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
- }
- /* DO NOT CHANGE FROM HERE ( unless u know what u are doing) */
- .cropImgWrapper{
- cursor: -webkit-grab;
- cursor: grab;
- }
- .cropImgWrapper:active{
- cursor: -webkit-grabbing;
- cursor: grabbing;
- }
- .cropImgUpload{
- z-index:2;
- position:absolute;
- /*height:28px;*/
- display:block;
- top: -30px;
- right: -2px;
- font-family:sans-serif;
- width:20px;
- height:20px;
- text-align:center;
- line-height:20px;
- color:#FFF;
- }
- .cropControls{
- z-index:2;
- position:absolute;
- height:34px;
- display:block;
- /* top: -31px; */
- /*top: -1px;*/
- bottom: -80px;
- right: -1px;
- font-family:sans-serif;
- /*background-color:rgba(255,255,255,0.35);*/
- }
- .cropControlsUpload
- {
- top: 0;
- }
- .croppedImg
- {
- margin: 35px auto;
- }
- .cropControls i{
- display:block;
- float:left;
- margin:0 2px 0 2px;
- cursor:pointer;
- background-image:url('../image/cropperIcons.png');
- width:34px;
- height:38px;
- text-align:center;
- line-height:20px;
- color:#FFF;
- font-size:13px;
- font-weight: bold;
- font-style: normal;
- }
- .cropControls i:hover{
- background-image:url('../image/cropperIcons_hover.png');
- }
- .cropControls i.cropControlXiColor2{ background-position:-480px 0px; }
- .cropControls i.cropControlXiColor2{
- background-image:url('../image/cropperIcons_hover.png');
- display:none;
- }
- .cropControls i.cropControlXiColor.hover{
- background-image:url('../image/cropperIcons.png');
- }
- .cropControls i.cropControlSetColor{ background-position:-520px 0px; }
- .cropControls i.cropControlXiColor{ background-position:-480px 0px; }
- .cropControls i.cropControlRotateLeft{ background-position:-360px 0px; }
- .cropControls i.cropControlRotateMuchLeft{ background-position:-440px 0px; }
- .cropControls i.cropControlRotateRight{ background-position:-320px 0px; }
- .cropControls i.cropControlRotateMuchRight{ background-position:-400px 0px; }
- .cropControls i.cropControlZoomOut{ background-position:-280px 0px; }
- .cropControls i.cropControlZoomMuchOut{ background-position:-240px 0px; }
- .cropControls i.cropControlZoomIn{ background-position:-200px 0px; }
- .cropControls i.cropControlZoomMuchIn{ background-position:-160px 0px;}
- .cropControls i.cropControlReset{ background-position:-120px 0px;}
- .cropControls i.cropControlRemoveCroppedImage{ background-position:-120px 0px;}
- .cropControls i.cropControlUpload{ background-position:-80px 0px;}
- .cropControls i.cropControlOriginal{ background-position:-80px 0px;}
- .cropControls i.cropControlSave{ background-position: -40px 0px;}
- .cropControls i.cropControlCrop{ background-position:0px 0px;}
- .cropControls i:last-child{
- margin-right:none;
- }
- #croppicModal{
- position:fixed;
- width:100%;
- height:100%;
- top: 0;
- left: 0;
- display:block;
- background:rgba(0,0,0,0.8);
- z-index: 10000;
- }
- /*
- * PRELOADER
- * With courtesy of : http://cssload.net/
- */
- .bubblingG {
- text-align: center;
- width:80px;
- height:50px;
- position: absolute;
- top: 50%;
- left: 50%;
- margin: -18px auto auto -40px;
- z-index:2;
- }
- .bubblingG span {
- display: inline-block;
- vertical-align: middle;
- width: 10px;
- height: 10px;
- margin: 25px auto;
- background: #FFF;
- box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
- -moz-border-radius: 50px;
- -moz-animation: bubblingG 1s infinite alternate;
- -webkit-border-radius: 50px;
- -webkit-animation: bubblingG 1s infinite alternate;
- -ms-border-radius: 50px;
- -ms-animation: bubblingG 1s infinite alternate;
- -o-border-radius: 50px;
- -o-animation: bubblingG 1s infinite alternate;
- border-radius: 50px;
- animation: bubblingG 1s infinite alternate;
- }
- #bubblingG_1 {
- -moz-animation-delay: 0s;
- -webkit-animation-delay: 0s;
- -ms-animation-delay: 0s;
- -o-animation-delay: 0s;
- animation-delay: 0s;
- }
- #bubblingG_2 {
- -moz-animation-delay: 0.3s;
- -webkit-animation-delay: 0.3s;
- -ms-animation-delay: 0.3s;
- -o-animation-delay: 0.3s;
- animation-delay: 0.3s;
- }
- #bubblingG_3 {
- -moz-animation-delay: 0.6s;
- -webkit-animation-delay: 0.6s;
- -ms-animation-delay: 0.6s;
- -o-animation-delay: 0.6s;
- animation-delay: 0.6s;
- }
- @-moz-keyframes bubblingG {
- 0% {
- width: 10px;
- height: 10px;
- background-color:#FFF;
- -moz-transform: translateY(0);
- }
- 100% {
- width: 24px;
- height: 24px;
- background-color:#FFF;
- -moz-transform: translateY(-21px);
- }
- }
- @-webkit-keyframes bubblingG {
- 0% {
- width: 10px;
- height: 10px;
- background-color:#FFF;
- -webkit-transform: translateY(0);
- }
- 100% {
- width: 24px;
- height: 24px;
- background-color:#FFF;
- -webkit-transform: translateY(-21px);
- }
- }
- @-ms-keyframes bubblingG {
- 0% {
- width: 10px;
- height: 10px;
- background-color:#FFF;
- -ms-transform: translateY(0);
- }
- 100% {
- width: 24px;
- height: 24px;
- background-color:#FFF;
- -ms-transform: translateY(-21px);
- }
- }
- @-o-keyframes bubblingG {
- 0% {
- width: 10px;
- height: 10px;
- background-color:#FFF;
- -o-transform: translateY(0);
- }
- 100% {
- width: 24px;
- height: 24px;
- background-color:#FFF;
- -o-transform: translateY(-21px);
- }
- }
- @keyframes bubblingG {
- 0% {
- width: 10px;
- height: 10px;
- background-color:#FFF;
- transform: translateY(0);
- }
- 100% {
- width: 24px;
- height: 24px;
- background-color:#FFF;
- transform: translateY(-21px);
- }
- }
- /* some reset stlyes */
|