material-list.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @import "../ms-admin/4.7.0/less/app.less";
  2. .ms-admin-material-list {
  3. background: #fff;
  4. .ms-margin-padding(12px, 14px);
  5. display: flex;
  6. flex-wrap: wrap;
  7. //单个素材
  8. .ms-admin-material-item {
  9. .ms-margin-padding(0 24px 0 0, 0 10px);
  10. width: 230px;
  11. display: flex;
  12. flex-direction: column;
  13. border: 1px solid #e6e6e6;
  14. border-radius: 4px;
  15. .head {
  16. border-bottom: 1px solid #e6e6e6;
  17. padding: 10px 0;
  18. span {
  19. color: @contentColor;
  20. }
  21. }
  22. .body {
  23. display: flex;
  24. flex-direction: column;
  25. line-height: 2em;
  26. span {
  27. .ms-ellipsis;
  28. }
  29. img {
  30. .ms-width-height(170px, 110px);
  31. margin: 0.5em auto;
  32. object-fit: cover;
  33. }
  34. p {
  35. margin: 0;
  36. color: @contentColor;
  37. .ms-ellipsis-clamp(3);
  38. }
  39. }
  40. .footer {
  41. display: flex;
  42. padding: 14px 0;
  43. i {
  44. color: @contentColor;
  45. margin: auto;
  46. cursor: pointer;
  47. }
  48. em {
  49. .ms-width-height(1px, 1em);
  50. background: #e6e6e6;
  51. }
  52. }
  53. }
  54. }