index.module.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .itemWrap {
  2. margin-bottom: 25px;
  3. margin-right: 14px;
  4. position: relative;
  5. .albumType {
  6. position: absolute;
  7. left: 0;
  8. top: 0;
  9. background: linear-gradient(180deg, #ff8900 0%, #ff5100 100%);
  10. box-shadow: 0px 1px 2px 0px rgba(150, 13, 0, 0.11);
  11. border-radius: 10px 0px 10px 0px;
  12. font-size: 12px;
  13. padding: 0 6px;
  14. line-height: 20px;
  15. color: #ffffff;
  16. z-index: 9;
  17. }
  18. &:hover {
  19. .albumType {
  20. transform: translateY(-10px);
  21. transition: linear 0.1s;
  22. }
  23. .hold {
  24. transform: translateY(-10px);
  25. transition: linear 0.1s;
  26. .masker {
  27. // transition: all linear 0.2s;
  28. visibility: visible;
  29. z-index: 99;
  30. img {
  31. width: 48px;
  32. height: 48px;
  33. animation-name: showPaly;
  34. animation-duration: 0.6s;
  35. animation-timing-function: linear;
  36. animation-fill-mode: forwards;
  37. // animation-delay: 1s;
  38. }
  39. }
  40. @keyframes showPaly {
  41. 0% {
  42. transform: scale(0.5);
  43. }
  44. 50% {
  45. transform: scale(1.2);
  46. }
  47. 100% {
  48. transform: scale(1);
  49. }
  50. }
  51. // img {
  52. // transform: scale(1.1);
  53. // transition: all 0.3s ease-in-out;
  54. // }
  55. }
  56. }
  57. .hold {
  58. .masker {
  59. visibility: hidden;
  60. width: 160px;
  61. height: 160px;
  62. background-color: rgba(0, 0, 0, 0.4);
  63. position: absolute;
  64. top: 0;
  65. left: 0;
  66. display: flex;
  67. flex-direction: row;
  68. align-items: center;
  69. justify-content: center;
  70. position: absolute;
  71. z-index: 99;
  72. img {
  73. width: 48px;
  74. height: 48px;
  75. }
  76. }
  77. position: relative;
  78. width: 160px;
  79. height: 160px;
  80. border-radius: 10px;
  81. overflow: hidden;
  82. img {
  83. width: 100%;
  84. transition: all 0.3s ease-in-out;
  85. }
  86. }
  87. cursor: pointer;
  88. &:nth-child(4n) {
  89. margin-right: 0;
  90. }
  91. .startImage {
  92. width: 24px;
  93. height: 24px;
  94. z-index: 1000;
  95. position: absolute;
  96. top: 8px;
  97. right: 8px;
  98. }
  99. h2 {
  100. line-height: 30px;
  101. font-size: 18px;
  102. font-weight: 400;
  103. color: #000;
  104. line-height: 25px;
  105. margin: 18px 0 3px;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. white-space: nowrap;
  109. width: 160px;
  110. }
  111. span {
  112. color: #999;
  113. font-size: 14px;
  114. }
  115. .itemBottom {
  116. display: flex;
  117. flex-direction: row;
  118. justify-content: space-between;
  119. img {
  120. width: 18px;
  121. margin-right: 4px;
  122. // height: 18px;
  123. }
  124. .itemBottomR {
  125. margin-right: 1px;
  126. }
  127. .itemBottomL,
  128. .itemBottomR {
  129. display: flex;
  130. flex-direction: row;
  131. justify-content: flex-start;
  132. align-items: center;
  133. font-size: 14px;
  134. line-height: 20px;
  135. }
  136. }
  137. }