aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/sass/player/playlist.scss
blob: f7e67ba16d2287da35e5574efbd2a9859b14f081 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                






                              

                                                       

                         
                     















                                                  

                        

                         


              

                        

                      


            


                                                                      


                      
                             
                       

































                                                     
                         



                    


                                                                     

               
                         
                   













                                                                 

                  




                        






                            







                            


                
                                   

                  













                                               
                              








                                               

                   

            

                        
                      
                         

     

                 

                        

                      
     




                      

   
@use '_variables' as *;
@use '_mixins' as *;
@use './_player-variables' as *;

$playlist-menu-width: 350px;

.vjs-playlist-menu {
  position: absolute;
  right: 0;
  height: 100%;
  width: $playlist-menu-width;
  // !important to prevent none background set on focus
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 101;
  transition: right 0.2s;
  overflow-y: scroll;

  // Hidden
  right: -$playlist-menu-width;

  ol {
    padding: 0;
    margin: 0;
  }

  .header {
    border-bottom: 1px solid $header-border-color;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;

    .title {
      @include ellipsis;

      font-size: 14px;
      margin-bottom: 5px;
    }

    .channel {
      @include ellipsis;

      font-size: 11px;
      color: #bfbfbf;
    }

    .cross {
      mask-image: url('#{$assets-path}/images/feather/x.svg');
      -webkit-mask-image: url('#{$assets-path}/images/feather/x.svg');

      cursor: pointer;
      width: 20px;
      height: 20px;
      background-color: #fff;
      mask-size: cover;
    }
  }
}

.playlist-menu-displayed {

  .vjs-playlist-menu {
    right: 0;
    display: block;
  }

  .vjs-playlist-button {
    display: none;
  }
}

@media screen and (max-width: $playlist-menu-width) {
  .vjs-playlist-menu {
    width: 100%;
    min-width: unset;
    display: none;
  }

  .playlist-menu-displayed .vjs-playlist-menu {
    display: block;
  }
}

.vjs-playlist-button {
  font-size: 15px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100;
  padding: $dock-padding;
  cursor: pointer;
}

.vjs-playlist-icon {
  mask-image: url('#{$assets-path}/images/feather/list.svg');
  -webkit-mask-image: url('#{$assets-path}/images/feather/list.svg');

  width: 22px;
  height: 22px;
  background-color: #fff;
  mask-size: cover;
  margin-bottom: 3px;
}

.vjs-playing.vjs-user-inactive .vjs-playlist-button {
  opacity: 0;

  transition: opacity 1s;
}

.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-playlist-button {
  display: none;
}

.vjs-playlist-menu-item {
  display: flex;
  padding: 10px 0;
  height: 60px;

  &:not(.vjs-disabled) {
    cursor: pointer;
  }

  .item-position-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    flex-shrink: 0;
  }

  .item-unavailable {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .item-player {
    @include play-icon(20px, 16px);

    display: none;
  }

  &.vjs-selected {
    background-color: rgba(150, 150, 150, 0.3);

    .item-position {
      display: none;
    }

    .item-player {
      display: block;
    }
  }

  &:hover:not(.vjs-disabled) {
    background-color: rgba(150, 150, 150, 0.2);
  }

  img {
    width: 80px;
    height: 40px;
  }

  .info-block {
    margin: 0 10px;
    min-width: 1px;

    .title {
      @include ellipsis;

      font-size: 13px;
      margin-bottom: 3px;
    }

    .channel,
    .timestamps {
      @include ellipsis;

      font-size: 11px;
      color: #bfbfbf;
    }

    .timestamps {
      font-size: 10px;
      margin-top: 3px;
    }
  }
}