index.wxss 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .wux-upload {
  2. position: relative;
  3. display: block
  4. }
  5. .wux-upload::after,
  6. .wux-upload::before {
  7. display: table;
  8. content: " "
  9. }
  10. .wux-upload::after {
  11. clear: both
  12. }
  13. .wux-upload--disabled {
  14. opacity: .3
  15. }
  16. .wux-upload--picture-card .wux-upload__select {
  17. width: 156rpx;
  18. height: 156rpx;
  19. border: 1PX dashed #d9d9d9;
  20. border-radius: 8rpx;
  21. margin: 0 16rpx 16rpx 0;
  22. background-color: #fafafa;
  23. transition: border-color .3s ease;
  24. box-sizing: border-box;
  25. float: left
  26. }
  27. .wux-upload--picture-card .wux-upload__button {
  28. width: 100%;
  29. height: 100%;
  30. display: flex;
  31. text-align: center;
  32. justify-content: center;
  33. align-items: center;
  34. vertical-align: middle;
  35. padding: 8rpx;
  36. box-sizing: border-box
  37. }
  38. .wux-upload--picture-card .wux-upload__button image {
  39. width: 100%;
  40. height: 100%;
  41. display: inline-block;
  42. overflow: hidden
  43. }
  44. .wux-upload--picture-card .wux-upload__files {
  45. position: relative;
  46. display: block;
  47. float: left
  48. }
  49. .wux-upload--picture-card .wux-upload__files::after,
  50. .wux-upload--picture-card .wux-upload__files::before {
  51. display: table;
  52. content: " "
  53. }
  54. .wux-upload--picture-card .wux-upload__files::after {
  55. clear: both
  56. }
  57. .wux-upload--picture-card .wux-upload__file {
  58. width: 156rpx;
  59. height: 156rpx;
  60. float: left;
  61. margin: 0 16rpx 16rpx 0;
  62. padding: 8rpx;
  63. border-radius: 8rpx;
  64. border: 1PX solid #d9d9d9;
  65. position: relative;
  66. box-sizing: border-box
  67. }
  68. .wux-upload--picture-card .wux-upload__file--uploading {
  69. border-style: dashed
  70. }
  71. .wux-upload--picture-card .wux-upload__file--error {
  72. border-color: #f5222d
  73. }
  74. .wux-upload--picture-card .wux-upload__thumb {
  75. width: 100%;
  76. height: 100%;
  77. display: inline-block;
  78. overflow: hidden
  79. }
  80. .wux-upload--picture-card .wux-upload__remove {
  81. width: 30rpx;
  82. height: 30rpx;
  83. position: absolute;
  84. right: 12rpx;
  85. top: 12rpx;
  86. text-align: right;
  87. vertical-align: top;
  88. z-index: 2;
  89. background-repeat: no-repeat;
  90. background-size: 30rpx auto;
  91. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Ccircle%20fill-opacity%3D%22.4%22%20fill%3D%22%23404040%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%228%22%2F%3E%3Cpath%20d%3D%22M11.898%204.101a.345.345%200%200%200-.488%200L8%207.511l-3.411-3.41a.345.345%200%200%200-.488.488l3.411%203.41-3.41%203.412a.345.345%200%200%200%20.488.488L8%208.487l3.411%203.411a.345.345%200%200%200%20.488-.488L8.488%208l3.41-3.412a.344.344%200%200%200%200-.487z%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
  92. }