aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/video/video-thumbnail.component.scss
blob: c13105e94e570dc365e584d39523c2391786b131 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                     
                     
 
                  
                               
 


                 

                       







                                          
                                       


                                      
                       

                            
                          
   







                                     






















                                          
 
@import '_variables';
@import '_mixins';
@import '_miniature';

.video-thumbnail {
  @include miniature-thumbnail;

  .progress-bar {
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.20);

    div {
      height: 100%;
      background-color: var(--mainColor);
    }
  }

  .video-thumbnail-watch-later-overlay,
  .video-thumbnail-duration-overlay {
    @include static-thumbnail-overlay;

    border-radius: 3px;
    font-size: 12px;
    font-weight: $font-bold;
    z-index: z(miniature);
  }

  .video-thumbnail-duration-overlay {
    position: absolute;
    padding: 0 5px;
    right: 5px;
    bottom: 5px;
  }

  .video-thumbnail-actions-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 5px;
    top: 5px;
    opacity: 0;

    div:not(:first-child) {
      margin-top: 2px;
    }

    .video-thumbnail-watch-later-overlay {
      padding: 3px;

      my-global-icon {
        width: 22px;
        height: 22px;

        @include apply-svg-color(#fff);
      }
    }
  }
}