index.module.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .grid {
  2. width: 100%;
  3. display: grid;
  4. grid-template-columns: repeat(3, 1fr);
  5. grid-gap: 6px;
  6. }
  7. .gridItem {
  8. position: relative;
  9. display: flex;
  10. flex-direction: column;
  11. align-items: center;
  12. justify-content: center;
  13. width: 100%;
  14. min-height: 196px;
  15. border-radius: 12px;
  16. overflow: hidden;
  17. background-color: white;
  18. }
  19. .mark{
  20. position: absolute;
  21. left: 0;
  22. top: 0;
  23. z-index: 1;
  24. width: 44px;
  25. height: 44px;
  26. background-size: cover;
  27. }
  28. // 当前背景
  29. .gridItemCurrentUsedMark {
  30. .mark();
  31. background-image: url(https://cdn.wehome.cn/cmn/png/43/META-H8UKXHWU-X0WXBKY1C0G0QA1DIH762-VWDBZUFM-P81.png);
  32. }
  33. // 已启用
  34. .gridItemActivedMark {
  35. .mark();
  36. background-image: url(https://cdn.wehome.cn/cmn/png/184/META-H8UKWHWU-Q0WXNNJLF5IO3DRNO8GK3-VWDBZUFM-691.png);
  37. }
  38. .gridItemActived {
  39. .gridItem();
  40. background-color: var(--color-primary);
  41. border: 2px solid var(--color-primary);
  42. }
  43. .gridItemCreateBtn{
  44. .gridItem();
  45. background-image: url(https://cdn.wehome.cn/cmn/png/117/META-H8UKXHWU-X0WXBKY1C0G0QA1DIH762-HABOZOFM-A41.png);
  46. background-size: cover;
  47. }
  48. .icon{
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. width: 28px;
  53. height: 28px;
  54. border-radius: 100%;
  55. background-color: var(--color-primary);
  56. }
  57. .container{
  58. overflow: hidden;
  59. width: 100%;
  60. height: calc(100vh - 120px);
  61. }
  62. .deleted{
  63. display: none;
  64. }
  65. .selected{
  66. position: absolute;
  67. top: 0;
  68. right: 0;
  69. z-index: 1;
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. width: 28px;
  74. height: 28px;
  75. }
  76. .videoContainer {
  77. position: relative;
  78. width: 100%;
  79. height: 100%;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .playBtn{
  85. width: 20px;
  86. height: 20px;
  87. }
  88. .durationStatus{
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. gap: 2px;
  93. position: absolute;
  94. right: 0;
  95. left: 0;
  96. bottom: 0;
  97. width: 100%;
  98. z-index: 2;
  99. border-radius: 30px;
  100. font-size: 10px;
  101. line-height: 36px;
  102. height:36px;
  103. color: white;
  104. background-color: var(--color-gray-4);
  105. backdrop-filter: blur(2px);
  106. }
  107. .aiTips{
  108. position: absolute;
  109. z-index: 1;
  110. right: 6px;
  111. bottom: 6px;
  112. font-family: PingFangSC-Medium;
  113. font-weight: 500;
  114. font-size: 8px;
  115. color: rgba(#fff, .5);
  116. line-height: 8px;
  117. text-shadow: 1px 1px 0 rgba(#000, .3);
  118. }