video-thumbnail.component.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @import '_variables';
  2. @import '_mixins';
  3. @import '_miniature';
  4. .video-thumbnail {
  5. @include miniature-thumbnail;
  6. }
  7. .progress-bar {
  8. height: 3px;
  9. width: 100%;
  10. position: absolute;
  11. bottom: 0;
  12. background-color: rgba(0, 0, 0, 0.20);
  13. div {
  14. height: 100%;
  15. background-color: pvar(--mainColor);
  16. }
  17. }
  18. .video-thumbnail-watch-later-overlay,
  19. .video-thumbnail-label-overlay,
  20. .video-thumbnail-duration-overlay,
  21. .video-thumbnail-live-overlay {
  22. @include static-thumbnail-overlay;
  23. border-radius: 3px;
  24. font-size: 12px;
  25. font-weight: $font-semibold;
  26. line-height: 1.1;
  27. z-index: z(miniature);
  28. }
  29. .video-thumbnail-label-overlay {
  30. position: absolute;
  31. padding: 0 5px;
  32. left: 5px;
  33. top: 5px;
  34. font-weight: $font-bold;
  35. &.warning { background-color: orange; }
  36. &.danger { background-color: red; }
  37. }
  38. .video-thumbnail-duration-overlay,
  39. .video-thumbnail-live-overlay {
  40. position: absolute;
  41. padding: 0 3px;
  42. right: 5px;
  43. bottom: 5px;
  44. }
  45. .video-thumbnail-live-overlay {
  46. font-weight: $font-semibold;
  47. color: #fff;
  48. &:not(.live-ended) {
  49. background-color: rgba(224, 8, 8, 0.7);
  50. }
  51. }
  52. .video-thumbnail-actions-overlay {
  53. position: absolute;
  54. display: flex;
  55. flex-direction: column;
  56. right: 5px;
  57. top: 5px;
  58. opacity: 0;
  59. div:not(:first-child) {
  60. margin-top: 2px;
  61. }
  62. }
  63. .video-thumbnail-watch-later-overlay {
  64. padding: 3px;
  65. my-global-icon {
  66. width: 22px;
  67. height: 22px;
  68. @include apply-svg-color(#fff);
  69. }
  70. }