Adapt theather icon depending on the player state
authorChocobozzz <me@florianbigard.com>
Wed, 13 Jun 2018 14:29:23 +0000 (16:29 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 13 Jun 2018 14:31:32 +0000 (16:31 +0200)
client/src/sass/player/peertube-skin.scss
client/src/sass/player/settings-menu.scss

index e60a854d4633cfe071bebc56e7faea468e0de3bd..75c6a0e5cbcd4b859367ced6d3934c41acd4c287 100644 (file)
@@ -10,6 +10,7 @@
 }
 
 .video-js.vjs-peertube-skin {
+
   font-size: $font-size;
   color: $primary-foreground-color;
 
       margin-right: 1px;
 
       .vjs-icon-placeholder {
+        transition: transform 0.2s ease;
         display: inline-block;
         width: 22px;
         height: 22px;
       width: 33px;
     }
   }
+
+  // Theater mode is enabled
+  &.vjs-theater-enabled {
+    .vjs-theater-control {
+      width: 30px;
+
+      .vjs-icon-placeholder {
+        transform: scale(0.8);
+      }
+    }
+  }
+
+  // On fullscreen, hide theater control
+  &.vjs-fullscreen {
+    .vjs-theater-control {
+      display: none;
+    }
+  }
 }
 
 // Play/pause animations
index 6c213c5d13d2141113032334d4369fd09b3a2737..f95123f52589e63028b22c61de4caef532388cf8 100644 (file)
@@ -13,7 +13,7 @@ $setting-transition-easing: ease-out;
     @include disable-outline;
 
     cursor: pointer;
-    width: 37px;
+    width: 33px;
 
     .vjs-icon-placeholder {
       display: inline-block;