ImgCropping.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. *{
  2. margin: 0;padding: 0;
  3. }
  4. .l-btn{
  5. display: inline-block;
  6. outline: none;
  7. resize: none;
  8. border: none;
  9. padding:5px 10px;
  10. background: #8C85E6;
  11. color: #fff;
  12. border:solid 1px #8C85E6;
  13. border-radius: 3px;
  14. font-size: 14px;
  15. }
  16. .l-btn:hover{
  17. background: #8078e3;
  18. animation: anniu 1s infinite;
  19. }
  20. .l-btn:active{
  21. box-shadow: 0 2px 3px rgba(0,0,0,.2) inset;
  22. }
  23. .hidden{
  24. display: none;
  25. }
  26. .tailoring-container, .tailoring-container div, .tailoring-container p{
  27. margin: 0;padding: 0;
  28. box-sizing: border-box;
  29. -webkit-box-sizing: border-box;
  30. -moz-box-sizing: border-box;
  31. }
  32. .tailoring-container{
  33. position: fixed;
  34. width: 100%;
  35. height: 100%;
  36. z-index: 1000;
  37. top: 0;
  38. left: 0;
  39. }
  40. .tailoring-container .black-cloth{
  41. position: fixed;
  42. width: 100%;
  43. height: 100%;
  44. background: #111;
  45. opacity: .9;
  46. z-index: 1001;
  47. }
  48. .tailoring-container .tailoring-content{
  49. position: absolute;
  50. width: 768px;
  51. height: 560px;
  52. background: #fff;
  53. z-index: 1002;
  54. left: 0;
  55. top: 0;
  56. /* 水平垂直居中 浏览器版本号低的不支持transform */
  57. /*left: 50%;
  58. top: 50%;
  59. transform: translate(-50%,-50%);
  60. -weblit-transform: translate(-50%,-50%);
  61. -moz-transform: translate(-50%,-50%);
  62. -ms-transform: translate(-50%,-50%);
  63. -o-transform: translate(-50%,-50%);*/
  64. border-radius: 10px;
  65. box-shadow: 0 0 10px #000;
  66. padding: 10px;
  67. }
  68. .tailoring-content-one{
  69. height: 40px;
  70. width: 100%;
  71. border-bottom: 1px solid #DDD ;
  72. }
  73. .tailoring-content .choose-btn{
  74. float: left;
  75. }
  76. .tailoring-content .close-tailoring{
  77. display: inline-block;
  78. height: 30px;
  79. width: 30px;
  80. border-radius: 100%;
  81. background: #eee;
  82. color: #fff;
  83. font-size: 22px;
  84. text-align: center;
  85. line-height: 30px;
  86. float: right;
  87. cursor: pointer;
  88. }
  89. .tailoring-content .close-tailoring:hover{
  90. background: #ccc;
  91. }
  92. .tailoring-content .tailoring-content-two{
  93. width: 100%;
  94. height: 460px;
  95. position: relative;
  96. padding: 5px 0;
  97. }
  98. .tailoring-content .tailoring-box-parcel{
  99. width: 520px;
  100. height: 450px;
  101. position: absolute;
  102. left: 0;
  103. border: solid 1px #ddd;
  104. }
  105. .tailoring-content .preview-box-parcel{
  106. display: inline-block;
  107. width: 228px;
  108. height: 450px;
  109. position: absolute;
  110. right: 0;
  111. padding: 4px 14px;
  112. }
  113. .preview-box-parcel p{
  114. color: #555;
  115. }
  116. .previewImg{
  117. width: 200px;
  118. height: 200px;
  119. overflow: hidden;
  120. }
  121. .preview-box-parcel .square{
  122. margin-top: 10px;
  123. border: solid 1px #ddd;
  124. }
  125. .preview-box-parcel .circular{
  126. border-radius: 100%;
  127. margin-top: 10px;
  128. border: solid 1px #ddd;
  129. }
  130. .tailoring-content .tailoring-content-three{
  131. width: 100%;
  132. height: 40px;
  133. border-top: 1px solid #DDD ;
  134. padding-top: 10px;
  135. }
  136. .sureCut{
  137. float: right;
  138. }
  139. @media all and (max-width: 768px) {
  140. .tailoring-container .tailoring-content{
  141. width: 100%;
  142. min-width: 320px;
  143. height: 460px;
  144. }
  145. .tailoring-content .tailoring-content-two{
  146. height: 360px;
  147. }
  148. .tailoring-content .tailoring-box-parcel{
  149. height: 350px;
  150. }
  151. .tailoring-container .tailoring-box-parcel{
  152. width: 100%;
  153. }
  154. .tailoring-container .preview-box-parcel{
  155. display: none;
  156. }
  157. }