index.module.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .video-container {
  2. position: relative;
  3. width: 100%;
  4. --plyr-color-main: var(--k-primary);
  5. video {
  6. width: 100%;
  7. // object-fit: cover;
  8. }
  9. :global {
  10. .video-back {
  11. position: absolute;
  12. left: 20px;
  13. top: 20px;
  14. color: #fff;
  15. z-index: 99;
  16. font-size: 24px;
  17. width: 30px;
  18. height: 30px;
  19. background-color: rgba(0, 0, 0, 0.5);
  20. border-radius: 50%;
  21. padding: 4px 5px 4px 3px;
  22. }
  23. .plyr__poster {
  24. background-size: cover;
  25. }
  26. .plyr__control--overlaid {
  27. border: 1px solid #fff;
  28. background-color: rgba(0, 0, 0, 0.2) !important;
  29. }
  30. .plyr--video .plyr__control:hover {
  31. background-color: transparent !important;
  32. }
  33. .vjs-poster {
  34. background-size: cover;
  35. }
  36. .video-js .vjs-progress-control:hover .vjs-progress-holder {
  37. font-size: inherit !important;
  38. outline: none;
  39. }
  40. .video-js .vjs-slider:focus {
  41. box-shadow: none !important;
  42. text-shadow: none !important;
  43. outline: none;
  44. }
  45. }
  46. .video {
  47. position: relative;
  48. }
  49. }
  50. .loadingVideo {
  51. position: absolute;
  52. top: 0;
  53. left: 0;
  54. bottom: 0;
  55. right: 0;
  56. background: rgba(0, 0, 0, 0.9);
  57. z-index: 10;
  58. }