image-cropper.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .image-cropper{
  2. background:rgba(14, 13, 13,.8);
  3. position: fixed;
  4. top:0;
  5. left:0;
  6. width:100vw;
  7. height:100vh;
  8. z-index: 1;
  9. }
  10. .main{
  11. position: absolute;
  12. width:100vw;
  13. height:100vh;
  14. overflow: hidden;
  15. }
  16. .content{
  17. z-index: 9;
  18. position: absolute;
  19. width:100vw;
  20. height:100vh;
  21. display: flex;
  22. flex-direction:column;
  23. pointer-events:none;
  24. }
  25. .bg_black{
  26. background: rgba(0, 0, 0, 0.8)!important;
  27. }
  28. .bg_gray{
  29. background: rgba(0, 0, 0, 0.45);
  30. transition-duration: .35s;
  31. }
  32. .content>.content_top{
  33. pointer-events:none;
  34. }
  35. .content>.content_middle{
  36. display: flex;
  37. height: 200px;
  38. width:100%;
  39. }
  40. .content_middle_middle{
  41. width:200px;
  42. box-sizing:border-box;
  43. position: relative;
  44. transition-duration: .3s;
  45. }
  46. .content_middle_right{
  47. flex: auto;
  48. }
  49. .content>.content_bottom{
  50. flex: auto;
  51. }
  52. .image-cropper .img{
  53. z-index: 2;
  54. top:0;
  55. left:0;
  56. position: absolute;
  57. border:none;
  58. width:100%;
  59. backface-visibility: hidden;
  60. transform-origin:center;
  61. }
  62. .image-cropper-canvas{
  63. position: fixed;
  64. background: white;
  65. width:150px;
  66. height:150px;
  67. z-index: 10;
  68. top:-200%;
  69. pointer-events:none;
  70. }
  71. .border{
  72. background: white;
  73. pointer-events:auto;
  74. position:absolute;
  75. }
  76. .border-top-left{
  77. left:-2.5px;
  78. top:-2.5px;
  79. height:2.5px;
  80. width:33rpx;
  81. }
  82. .border-top-right{
  83. right:-2.5px;
  84. top:-2.5px;
  85. height:2.5px;
  86. width:33rpx;
  87. }
  88. .border-right-top{
  89. top:-1px;
  90. width:2.5px;
  91. height:30rpx;
  92. right:-2.5px;
  93. }
  94. .border-right-bottom{
  95. width:2.5px;
  96. height:30rpx;
  97. right:-2.5px;
  98. bottom:-1px;
  99. }
  100. .border-bottom-left{
  101. height:2.5px;
  102. width:33rpx;
  103. bottom:-2.5px;
  104. left:-2.5px;
  105. }
  106. .border-bottom-right{
  107. height:2.5px;
  108. width:33rpx;
  109. bottom:-2.5px;
  110. right:-2.5px;
  111. }
  112. .border-left-top{
  113. top:-1px;
  114. width:2.5px;
  115. height:30rpx;
  116. left:-2.5px;
  117. }
  118. .border-left-bottom{
  119. width:2.5px;
  120. height:30rpx;
  121. left:-2.5px;
  122. bottom:-1px;
  123. }