]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.scss
Client: add ability to hide left menu
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.scss
index 1d42f2a04c762c75c223aaab821b6f40bde12a5e..ca0030922f77565a88a04521a44565fbb2edc952 100644 (file)
@@ -1,44 +1,86 @@
-header div {
-  line-height: 25px;
-  margin-bottom: 30px;
+.main-row {
+  min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin});
 }
 
-menu {
-  @media screen and (max-width: 600px) {
-    margin-right: 3px !important;
-    padding: 3px !important;
-    min-height: 400px !important;
+.title-menu-left {
+  position: fixed;
+  height: calc(100vh - #{$header-height});
+  padding: 0;
+
+  .title-menu-left-block.menu {
+    height: 100%;
+  }
+}
+
+.header {
+  height: $header-height;
+
+  .fake-title-block {
+    display: inline-block;
   }
 
-  min-height: 600px;
-  margin-right: 20px;
-  border-right: 1px solid rgba(0, 0, 0, 0.2);
+  .top-left-block {
+    background-color: #fff;
+    border-right: 1px solid $header-border-color;
+    line-height: $header-height;
+    margin-top: 0;
+    margin-bottom: 0;
+    display: flex;
+    position: fixed;
 
-  .panel-button {
-    margin: 8px;
-    cursor: pointer;
-    transition: margin 0.2s;
+    &.border-bottom {
+      border-bottom: 1px solid $header-border-color;
+    }
 
-    &:hover {
+    .hamburger-block {
+      margin-right: 20px;
       margin-left: 15px;
+
+      .glyphicon {
+        position: relative;
+        top: 4px;
+      }
     }
 
-    a {
-      color: #333333;
+    #peertube-title {
+
+      a {
+        color: inherit !important;
+        display: block;
+        background: url(/client/assets/logo.png) no-repeat;
+        background-size: contain;
+        background-position: center;
+        width: 180px;
+        height: 100%;
+        margin: auto;
+
+        &:hover {
+          color: inherit !important;
+          text-decoration: none !important;
+        }
+      }
     }
   }
 
-  .glyphicon {
-    margin: 5px;
+  my-search {
+    position: fixed;
+    z-index: 1000;
+    // Fix col-md-* padding
+    padding: 0;
   }
-}
 
-.panel-block:not(:last-child) {
-  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+  .search-col {
+    height: 100%;
+    margin-left: -15px;
+    padding: 0;
+  }
 }
 
-.router-outlet-container {
-  @media screen and (max-width: 400px) {
-    padding: 0 3px 0 3px;
-  }
+footer {
+  border-top: 1px solid $footer-border-color;
+  padding: 10px 0;
+  text-align: center;
+  font-size: 11px;
+  margin-top: $footer-margin;
+  height: $footer-height;
 }