]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Responsive my account
authorChocobozzz <florian.bigard@gmail.com>
Mon, 11 Dec 2017 08:39:40 +0000 (09:39 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 11 Dec 2017 08:39:40 +0000 (09:39 +0100)
client/src/app/account/account-videos/account-videos.component.html
client/src/app/account/account-videos/account-videos.component.scss
client/src/app/menu/menu.component.scss
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/sass/application.scss

index 641fcb38acf16bb264bb8694604448a5d2cd2de3..77f959fefb969064fa4c3fbbf3b1549d4cd89b16 100644 (file)
@@ -1,4 +1,5 @@
 <div
+  class="videos"
   infiniteScroll
   [infiniteScrollDistance]="0.5"
   [infiniteScrollUpDistance]="1.5"
       </div>
     </div>
 
-    <ng-template [ngIf]="isInSelectionMode() === false">
+    <div class="video-buttons" *ngIf="isInSelectionMode() === false">
       <my-delete-button (click)="deleteVideo(video)"></my-delete-button>
 
       <my-edit-button [routerLink]="[ '/videos', 'edit', video.uuid ]"></my-edit-button>
-    </ng-template>
+    </div>
   </div>
 </div>
index 670fe992c30e6ab8fd747a2b3b2a5d9c7abf4dd7..4c00431fae93cb8c6b4730fb852b92d0355714e2 100644 (file)
     }
   }
 }
+
+@media screen and (max-width: 800px) {
+  .video {
+    flex-direction: column;
+    height: auto;
+    text-align: center;
+
+    input[type=checkbox] {
+      display: none;
+    }
+
+    my-video-thumbnail {
+      margin-right: 0;
+    }
+
+    .video-buttons {
+      margin-top: 10px;
+    }
+  }
+}
index 63d63d2874f18fadb25dad91b46e6d02c7950e54..97ceadde3200d2ec967cc647a7e0b933e5c0a19a 100644 (file)
@@ -9,10 +9,6 @@ menu {
   z-index: 1000;
   color: $menu-color;
 
-  @media screen and (max-width: 550px) {
-    font-size: 90%;
-  }
-
   .logged-in-block {
     height: 100px;
     background-color: rgba(255, 255, 255, 0.15);
@@ -68,7 +64,7 @@ menu {
       font-size: 15px;
       height: $button-height;
       line-height: $button-height;
-      width: 190px;
+      width: 100%;
       border-radius: 3px;
       text-align: center;
       color: $menu-color;
@@ -139,3 +135,59 @@ menu {
     }
   }
 }
+
+@media screen and (max-width: 800px) {
+  menu {
+    .logged-in-block {
+      padding-left: 10px;
+
+      img {
+        display: none;
+      }
+
+      .logged-in-info {
+        .logged-in-username {
+          font-size: 14px;
+        }
+
+        .logged-in-email {
+          font-size: 11px;
+          max-width: 120px;
+        }
+      }
+
+      .logged-in-more {
+        margin-right: 5px;
+
+        .login-button, .create-account-button {
+          font-weight: $font-semibold;
+          font-size: 15px;
+          height: $button-height;
+          line-height: $button-height;
+          width: 190px;
+        }
+      }
+    }
+
+    .button-block {
+      margin: 20px 10px 25px 10px;
+
+      .login-button, .create-account-button {
+        font-size: 13px;
+      }
+    }
+
+    .panel-block {
+      margin-bottom: 30px;
+      margin-left: 10px;
+
+      a {
+        font-size: 14px;
+
+        .icon {
+          margin-right: 10px;
+        }
+      }
+    }
+  }
+}
index fcf625d6c3d650b74e42b36b8bba78989328f34e..83a7cc41db9dc081b480805fcb8830eb270df170 100644 (file)
 
   .video-bottom {
     .video-info {
+      margin-right: 10px;
+
       .video-info-name-actions {
         align-items: left;
         flex-direction: column;
index f7d83c5c38af9c932f6b0d133397a32e7269b940..6352dd4fbd6b3d97f96c614d0b36ad3180471a4e 100644 (file)
@@ -110,7 +110,7 @@ label {
 // On small screen, menu is absolute
 @media screen and (max-width: 800px) {
   .title-menu-left {
-    width: 120px;
+    width: 150px !important;
     position: absolute !important;
     z-index: 10000;
   }
@@ -120,12 +120,17 @@ label {
 
     &, &.expanded {
       .margin-content {
-        //display: flex;
-        //flex-direction: column;
-        //align-items: center;
-        //justify-content: center;
-        margin-left: auto;
-        margin-right: auto;
+        margin-left: 10px;
+        margin-right: 10px;
+      }
+
+      .sub-menu {
+        padding-left: 10px;
+        margin-bottom: 10px;
+      }
+
+      input[type=text], input[type=password] {
+        width: 100% !important;
       }
     }
   }