Clean up bottom video bar
authorChocobozzz <florian.bigard@gmail.com>
Thu, 6 Jul 2017 15:18:10 +0000 (17:18 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 6 Jul 2017 15:18:10 +0000 (17:18 +0200)
client/src/app/videos/video-watch/video-watch.component.html
client/src/app/videos/video-watch/video-watch.component.scss

index 58a48ca9cab7939452577a7185b5943a8bbab872..8676b5b72e329f559c4579cb6f3650c030e41bbe 100644 (file)
@@ -43,8 +43,9 @@
 
   <div class="row video-small-blocks">
     <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-author">
-      <a title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'author', search: video.author }]">
-        {{ video.by }}
+      <a class="option" title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'author', search: video.author }]">
+        <span class="glyphicon glyphicon-user"></span>
+        <span class="video-small-block-text">{{ video.by }}</span>
       </a>
     </div>
 
index 789260a91875e347f67f57fd17935a4598de0a9b..69661747c2ccbdb82aa613779bc98481b378af42 100644 (file)
         &:hover {
           color: #000 !important;
         }
+
+        &:hover > .glyphicon {
+          opacity: 1 !important;
+        }
       }
 
       .option .glyphicon {
         font-size: 22px;
         color: inherit;
-        opacity: 0.6;
+        opacity: 0.15;
         margin-bottom: 10px;
+        transition: opacity 0.3s;
       }
 
       .video-small-block-text {
       border-style: solid;
     }
 
-    .video-small-block-author {
-      font-size: 15px;
-      font-weight: bold;
-      text-align: left;
-      padding-left: $video-watch-info-padding-left;
+    .video-small-block-author, .video-small-block-more {
+      a.option {
+        display: block;
+
+        .glyphicon {
+          display: block;
+        }
+      }
     }
 
     .video-small-block-share, .video-small-block-more {
       .glyphicon {
         font-size: 18px;
         margin: 0 10px 0 0;
+        opacity: 0.3;
       }
 
       .interactive {
         cursor: pointer;
-        transition: color 0.3s;
+        transition: opacity, color 0.3s;
 
         &.activated, &:hover {
+          opacity: 1;
           color: #000;
         }
       }