index.module.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .video-container {
  2. position: relative;
  3. width: 100%;
  4. --plyr-color-main: #FF8057;
  5. height: 210px;
  6. video {
  7. width: 100%;
  8. // object-fit: cover;
  9. }
  10. :global {
  11. .video-back {
  12. position: absolute;
  13. left: 20px;
  14. top: 20px;
  15. color: #fff;
  16. z-index: 99;
  17. font-size: 24px;
  18. width: 30px;
  19. height: 30px;
  20. background-color: rgba(0, 0, 0, 0.5);
  21. border-radius: 50%;
  22. padding: 4px 5px 4px 3px;
  23. }
  24. .plyr__poster {
  25. background-size: cover;
  26. }
  27. .plyr__control--overlaid {
  28. border: 1px solid #fff;
  29. background-color: rgba(0, 0, 0, 0.2) !important;
  30. }
  31. .plyr--video .plyr__control:hover {
  32. background-color: transparent !important;
  33. }
  34. .video-js {
  35. width: 100%;
  36. height: 100%;
  37. }
  38. .tcp-skin .vjs-play-progress {
  39. background-color: var(--van-primary) !important;
  40. }
  41. }
  42. .video {
  43. position: relative;
  44. }
  45. }
  46. .loadingVideo {
  47. position: absolute;
  48. top: 0;
  49. left: 0;
  50. bottom: 0;
  51. right: 0;
  52. background: rgba(0, 0, 0, 0.9);
  53. z-index: 10;
  54. }
  55. .playOver {
  56. background: rgba(0, 0, 0, 0.5);
  57. color: #fff;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. flex-direction: column;
  62. .tips {
  63. font-size: 15px;
  64. color: #ffffff;
  65. }
  66. .btn {
  67. margin: 10px 0;
  68. min-width: 94px;
  69. font-size: 14px;
  70. height: 28px;
  71. line-height: 28px;
  72. }
  73. .replay {
  74. padding-top: 12px;
  75. }
  76. }
  77. .freeTxt {
  78. font-size: 15px;
  79. color: #ffffff;
  80. line-height: 21px;
  81. padding-top: 10px;
  82. }
  83. .freeRate {
  84. color: #32ffd8;
  85. }