index.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .media {
  2. width: 100%;
  3. display: flex;
  4. flex-wrap: wrap;
  5. margin-top: 20rpx;
  6. box-sizing: border-box;
  7. .item {
  8. position: relative;
  9. width: 158rpx;
  10. height: 158rpx;
  11. margin-right: 18rpx;
  12. margin-bottom: 18rpx;
  13. border-radius: 8rpx;
  14. overflow: hidden;
  15. image {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. .delete {
  20. position: absolute;
  21. width: 40rpx;
  22. height: 40rpx;
  23. right: 0;
  24. top: 0;
  25. }
  26. .shade {
  27. display: flex;
  28. align-items: center;
  29. justify-content: center;
  30. position: absolute;
  31. width: 100%;
  32. height: 100%;
  33. background: rgba(0, 0, 0, 0.2);
  34. top: 0;
  35. left: 0;
  36. color: #ffffff;
  37. }
  38. }
  39. .item:nth-child(4n) {
  40. margin-right: 0;
  41. }
  42. .file {
  43. display: flex;
  44. flex-direction: column;
  45. border: 1px solid #CCCCCC;
  46. box-sizing: border-box;
  47. align-items: center;
  48. .name {
  49. width: 120rpx;
  50. font-size: 24rpx;
  51. font-family: PingFang SC-Regular, PingFang SC;
  52. color: #333333;
  53. margin-top: 20rpx;
  54. overflow: hidden;
  55. white-space: nowrap;
  56. text-overflow: ellipsis;
  57. }
  58. .image {
  59. height: 58rpx;
  60. margin-top: 24rpx;
  61. }
  62. }
  63. }