index.module.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .VideoList {
  2. width: 100%;
  3. height: 100%;
  4. display: flex;
  5. flex-direction: column;
  6. align-items: center;
  7. justify-content: center;
  8. background: url('../../../../assets/img/layoutBg.png') no-repeat;
  9. background-size: 100% 100%;
  10. :global {
  11. .swiper_container {
  12. width: 100%;
  13. height: 70%;
  14. perspective: 1500px;
  15. .swiper-slide-shadow-coverflow {
  16. background-image: none;
  17. }
  18. .swiper-button-arr-custom {
  19. width: 50px;
  20. height: 65px;
  21. &:after {
  22. content: '';
  23. }
  24. & > img {
  25. width: 50px;
  26. height: 55px;
  27. object-fit: cover;
  28. }
  29. }
  30. .itemCard {
  31. border-radius: 20px;
  32. margin: 0 auto;
  33. width: 70%;
  34. height: 100%;
  35. position: relative;
  36. cursor: pointer;
  37. transition: transform 0.3s ease;
  38. .name {
  39. width: 100%;
  40. height: 7%;
  41. text-align: center;
  42. font-weight: 600;
  43. font-size: 30px;
  44. color: #9d0800;
  45. letter-spacing: 5px;
  46. }
  47. .itemImage {
  48. width: 100%;
  49. height: 93%;
  50. & > video {
  51. border-radius: 20px;
  52. width: 100%;
  53. height: 100%;
  54. object-fit: contain;
  55. transition: all 0.3s ease;
  56. }
  57. }
  58. }
  59. }
  60. .swiper-pagination {
  61. bottom: 85px !important;
  62. .swiper-pagination-bullet-active {
  63. background-color: #9d0800;
  64. }
  65. }
  66. .videoModal {
  67. position: fixed;
  68. top: 0;
  69. left: 0;
  70. width: 100%;
  71. height: 100%;
  72. background-color: rgba(0, 0, 0, 0.8);
  73. display: none;
  74. justify-content: center;
  75. align-items: center;
  76. z-index: 1000;
  77. .close {
  78. position: absolute;
  79. top: 20px;
  80. right: 20px;
  81. cursor: pointer;
  82. }
  83. .content {
  84. width: 100vw;
  85. height: 100vh;
  86. .custom-media-controller {
  87. width: 100%;
  88. height: 100%;
  89. & > video {
  90. width: 100%;
  91. height: 100%;
  92. object-fit: contain;
  93. }
  94. & > media-control-bar {
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. width: 70%;
  99. gap: 10px;
  100. margin: 0 auto;
  101. }
  102. media-play-button {
  103. width: 40px;
  104. height: 40px;
  105. border-radius: 50%;
  106. background-color: rgba(167, 31, 30, 1);
  107. border: none;
  108. display: flex;
  109. align-self: flex-start;
  110. }
  111. .progress {
  112. width: 70%;
  113. height: 50px;
  114. display: flex;
  115. align-items: center;
  116. flex-direction: column;
  117. & > media-time-range {
  118. width: 100%;
  119. height: 10px;
  120. --media-range-bar-color: rgba(167, 31, 30, 1);
  121. --media-range-track-background: rgba(230, 203, 160, 1); // 未播放部分背景
  122. border-radius: 5px;
  123. --media-range-track-fill-background: rgba(167, 31, 30, 1);
  124. }
  125. .time {
  126. display: flex;
  127. justify-content: space-between;
  128. width: 98%;
  129. align-items: center;
  130. media-time-display,
  131. media-duration-display {
  132. font-size: 16px;
  133. background: none;
  134. color: rgba(230, 203, 160, 1);
  135. }
  136. }
  137. cursor: pointer;
  138. }
  139. }
  140. }
  141. }
  142. .active {
  143. display: flex;
  144. }
  145. }
  146. }