crop.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @charset 'utf-8';
  2. .crop-block {
  3. position: relative;
  4. display: inline-block;
  5. }
  6. .crop-add-img {
  7. position: relative;
  8. border: 1px dashed #d9d9d9;
  9. width: 96px;
  10. height: 96px;
  11. border-radius: 4px;
  12. background-color: #fbfbfb;
  13. text-align: center;
  14. cursor: pointer;
  15. transition: border-color 0.3s ease;
  16. display: inline-block;
  17. vertical-align: top;
  18. margin-top: 2px;
  19. color: #999;
  20. }
  21. .crop-input{
  22. height: 70px;
  23. line-height:70px;
  24. }
  25. .crop-input button{
  26. float: left;
  27. }
  28. .selectFile {
  29. visibility: hidden;
  30. margin-top: -20px;
  31. }
  32. .crop-add-img:hover{
  33. border-color: #2F86C9;
  34. }
  35. .crop-add-img>span{
  36. display: inline-block;
  37. font-size: 18px;
  38. color: #999;
  39. margin-top: 16px;
  40. }
  41. .crop-img-block {
  42. position: relative;
  43. box-sizing: border-box;
  44. display: inline-block;
  45. width: 94px;
  46. height: 96px;
  47. margin:0 5px;
  48. padding: 8px;
  49. border-radius: 4px;
  50. border: 1px solid #d9d9d9;
  51. margin-top: 2px;
  52. }
  53. .crop-img-block:hover{
  54. box-shadow: 0 0 3px #ccc;
  55. }
  56. .crop-img-block:hover span{
  57. display: block;
  58. }
  59. .crop-img-block img{
  60. width: 100%;
  61. height: 100%;
  62. position: absolute;
  63. left:0px;
  64. padding: 8px;
  65. top:0px;
  66. }
  67. .crop-img-block span{
  68. cursor: pointer;
  69. position: absolute;
  70. padding: 8px;
  71. top:0px;
  72. left:0px;
  73. display: none;
  74. width: 92px;
  75. height: 94px;
  76. font-size: 24px;
  77. background: rgba(0, 0, 0, .3);
  78. color: #fff;
  79. line-height:84px;
  80. text-align: center;
  81. }
  82. .crop-img-block span .anticon{
  83. color: #fff;
  84. }
  85. .crop-img-block span .anticon:hover{
  86. color: #f00;
  87. }
  88. .crop-img {
  89. max-width: 100%;
  90. max-height: 100%;
  91. cursor: pointer;
  92. }
  93. .crop-box {
  94. position: fixed;
  95. left: 0;
  96. top: 0;
  97. width: 100%;
  98. height: 100%;
  99. z-index: 1000;
  100. }
  101. .crop-box-bg {
  102. position: absolute;
  103. left: 0;
  104. top: 0;
  105. width: 100%;
  106. height: 100%;
  107. background-color: #000;
  108. opacity: 0.5;
  109. }
  110. .crop-box-content {
  111. position: relative;
  112. width: 800px;
  113. height: 525px;
  114. margin: 100px auto 0 auto;
  115. background-color: #fff;
  116. }
  117. .crop-close {
  118. position: absolute;
  119. right: 10px;
  120. top: 10px;
  121. font-size: 30px;
  122. color: #666;
  123. padding: 0 5px;
  124. height: 24px;
  125. line-height: 24px;
  126. cursor: pointer;
  127. }
  128. .crop-close:hover{
  129. color: #f00;
  130. }
  131. .crop-input {
  132. position: relative;
  133. padding: 10px;
  134. text-align: center;
  135. border-bottom: 1px solid #ccc;
  136. }
  137. .crop-area {
  138. position: relative;
  139. padding-left: 200px;
  140. border-bottom: 1px solid #ccc;
  141. }
  142. .btnGrounpCrop{
  143. width: 100%;
  144. margin: 0!important;
  145. text-align: center;
  146. }
  147. .btnGrounpCrop button{
  148. margin: 10px ;
  149. }