index.less 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @import (reference) './variable.less';
  2. @imageUploadPrefix: ant-image-upload;
  3. .@{imageUploadPrefix} {
  4. display: flex;
  5. flex-wrap: wrap;
  6. background: @COLOR_CARD;
  7. &-show {
  8. position: relative;
  9. }
  10. &-image {
  11. width: 160 * @rpx;
  12. height: 160 * @rpx;
  13. margin: @image-upload-common-margin;
  14. border-radius: @corner-radius-md;
  15. }
  16. &-close {
  17. width: @image-upload-close-tip-width;
  18. height: @image-upload-close-tip-height;
  19. position: absolute;
  20. z-index: 99;
  21. top: @image-upload-size-base * -1;
  22. right: 0;
  23. background: url(@image-upload-close-tip-url) no-repeat;
  24. background-size: cover;
  25. }
  26. &-add-image-wrapper {
  27. display: flex;
  28. align-items: center;
  29. justify-content: center;
  30. width: 160 * @rpx;
  31. height: 160 * @rpx;
  32. margin: @image-upload-add-image-container-margin;
  33. background-color: @COLOR_GREY_CARD;
  34. border-radius: @corner-radius-md;
  35. }
  36. &-add-image-icon {
  37. color: @COLOR_TEXT_ASSIST;
  38. }
  39. &-cover {
  40. position: absolute;
  41. width: 160 * @rpx;
  42. height: 160 * @rpx;
  43. margin: @image-upload-common-margin;
  44. border-radius: @corner-radius-md;
  45. background-color: rgba(0, 0, 0, 0.4);
  46. display: flex;
  47. justify-content: center;
  48. align-items: center;
  49. &-loading {
  50. text-align: center;
  51. &-icon {
  52. width: 48 * @rpx;
  53. height: 48 * @rpx;
  54. }
  55. &-text {
  56. color: @COLOR_WHITE;
  57. font-size: 24 * @rpx;
  58. margin-top: 8 * @rpx;
  59. }
  60. }
  61. &-error {
  62. text-align: center;
  63. &-icon {
  64. font-size: 48rpx;
  65. color: @COLOR_WHITE;
  66. }
  67. &-text {
  68. color: @COLOR_WHITE;
  69. font-size: 24rpx;
  70. margin-top: 8rpx;
  71. }
  72. }
  73. }
  74. }