]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/hotkeys/hotkeys.component.scss
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / core / hotkeys / hotkeys.component.scss
index 9af10b7c4fda4dd4b0d8bd81a51a00e55fcb8b27..a848d98cd85111ad92802ae1658d08873d63d2ee 100644 (file)
@@ -1,5 +1,9 @@
+@use '_variables' as *;
+@use '_mixins' as *;
+
 .cfp-hotkeys-container {
-  display: table !important;
+  display: flex !important;
+  align-items: center;
   position: fixed;
   overflow: auto;
   width: 100%;
   left: 0;
   color: #333;
   font-size: 1em;
-  background-color: rgba(255,255,255,0.9);
+  background-color: rgba(255, 255, 255, 0.9);
 }
 
 .cfp-hotkeys-container.fade {
   z-index: -1024;
   visibility: hidden;
   opacity: 0;
-  -webkit-transition: opacity 0.15s linear;
-  -moz-transition: opacity 0.15s linear;
-  -o-transition: opacity 0.15s linear;
   transition: opacity 0.15s linear;
 }
 
 .cfp-hotkeys-container.fade.in {
-  z-index: 10002;
+  z-index: z(hotkeys);
   visibility: visible;
   opacity: 1;
 }
@@ -35,9 +36,7 @@
 
 .cfp-hotkeys {
   width: 100%;
-  height: 100%;
-  display: table-cell;
-  vertical-align: middle;
+  max-height: 100%;
 }
 
 .cfp-hotkeys table {
 
 .cfp-hotkeys-keys {
   padding: 5px;
-  text-align: right;
+  text-align: end;
 }
 
 .cfp-hotkeys-key {
+  @include margin-right(5px);
+
   display: inline-block;
   color: #fff;
   background-color: #333;
   border: 1px solid #333;
   border-radius: 5px;
   text-align: center;
-  margin-right: 5px;
   box-shadow: inset 0 1px 0 #666, 0 1px 0 #bbb;
   padding: 5px 9px;
   font-size: 1em;
 }
 
 .cfp-hotkeys-text {
-  padding-left: 10px;
+  @include padding-left(10px);
   font-size: 1em;
 }
 
@@ -92,7 +92,7 @@
   cursor: pointer;
 }
 
-@media all and (max-width: 500px) {
+@media all and (max-width: $mobile-view) {
   .cfp-hotkeys {
     font-size: 0.8em;
   }
   .cfp-hotkeys {
     font-size: 1.2em;
   }
-}
\ No newline at end of file
+}