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

                                                
                  
                   
                        
                     
                
               

                              
                          

                       














                                       




                                        
                         

                  
                            


                                           
                      









                                                   


     
                                 
                 
 

                           
                     






                                          
 

                              

       


                                          
 









                                              
         


       
                                                                

                       

                                          
                   




                                           


                             
                             

               
                       
                              
       


     
@import "../../../sass/pre-customizations.scss";

.video-miniature {
  margin-top: 30px;
  display: inline-block;
  position: relative;
  height: 190px;
  width: 220px;

  .video-miniature-thumbnail {
    display: inline-block;
    position: relative;

    &:hover {
      text-decoration: none !important;
    }

    .thumbnail-nsfw {
      background-color: #000;
      color: #fff;
      text-align: center;
      font-size: 30px;
      line-height: 110px;

      width: 200px;
      height: 110px;
    }

    img, .thumbnail-nsfw {
      border-radius: 3px;
    }

    .video-miniature-thumbnail-overlay {
      position: absolute;
      right: 0px;
      bottom: 0px;
      display: inline-block;
      background-color: rgba(0, 0, 0, 0.7);
      color: #fff;
      padding: 3px 5px;
      font-size: 11px;
      font-weight: bold;
      width: 100%;

      .video-miniature-thumbnail-overlay-views {

      }

      .video-miniature-thumbnail-overlay-duration {
        float: right;
      }
    }
  }

  .video-miniature-informations {
    width: 200px;

    .video-miniature-name {
      height: 23px;
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: bold;
      transition: color 0.2s;
      font-size: 15px;
      color: $video-miniature-title-color;

      &:hover {
        text-decoration: none;
      }

      .video-miniature-tags {
        // Fix for chrome when tags a long
        width: 201px;

        .video-miniature-tag {
          font-size: 13px;
          cursor: pointer;
          position: relative;
          top: -2px;

          .label {
            line-height: $line-height-base;
            transition: background-color 0.2s;
          }
        }
      }
    }

    .video-miniature-author, .video-miniature-views-created-at {
      display: block;
      margin-left: 1px;
      font-size: 11px;
      color: $video-miniature-other-infos;
      opacity: 0.9;

      .video-miniature-created-at::before {
        content: '\002022';
        margin: 0 2px 0 1px;
      }
    }

    .video-miniature-author {
      transition: color 0.2s;

      &:hover {
        color: #23527c;
        text-decoration: none;
      }
    }
  }
}