]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-videos/my-account-videos.component.scss
`fitWidth` for `video-miniature`, fluid grid (#2830)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.scss
index cd805be73b3b1320e9da44ee6e7341cdafbce914..67a58d8d5567507106b1c1056a5a2240449e36cd 100644 (file)
 @import '_variables';
 @import '_mixins';
 
-.action-selection-mode {
-  width: 174px;
+.videos-header {
   display: flex;
-  justify-content: flex-end;
+  justify-content: space-between;
+  margin: 20px 0 50px;
 
-  .action-selection-mode-child {
-    position: fixed;
-
-    .action-button {
-      display: inline-block;
-    }
-
-    .action-button-cancel-selection {
-      @include peertube-button;
-      @include grey-button;
-
-      margin-right: 10px;
-    }
-
-    .action-button-delete-selection {
-      @include peertube-button;
-      @include orange-button;
-    }
-
-    .icon.icon-delete-white {
-      @include icon(21px);
-
-      position: relative;
-      top: -2px;
-      background-image: url('../../../assets/images/global/delete-white.svg');
-    }
+  h4,
+  .fake-element {
+    flex: 1;
   }
-}
 
-/deep/ .action-button {
-  &.action-button-delete {
-    margin-right: 10px;
+  input[type=text] {
+    @include peertube-input-text(300px);
   }
 }
 
-.video {
-  @include row-blocks;
+.action-button-delete-selection {
+  display: inline-block;
 
-  &:first-child {
-    margin-top: 47px;
+  @include peertube-button;
+  @include orange-button;
+  @include button-with-icon(21px);
+
+  my-global-icon {
+    @include apply-svg-color(#fff);
   }
+}
 
-  .checkbox-container {
-    display: flex;
-    align-items: center;
-    margin-right: 20px;
-    margin-left: 12px;
+::ng-deep {
+  .video {
+    flex-wrap: wrap;
   }
 
-  my-video-thumbnail {
-    margin-right: 10px;
+  .action-button span {
+    white-space: nowrap;
   }
 
-  .video-info {
-    flex-grow: 1;
+  .video-miniature {
+    &.display-as-row {
+      // width: min-content !important;
+      width: 100% !important;
 
-    .video-info-name {
-      @include disable-default-a-behaviour;
+      .video-bottom .video-miniature-information {
+        width: max-content !important;
+        min-width: unset !important;
+      }
+    }
 
-      color: #000;
-      display: block;
-      width: fit-content;
-      font-size: 16px;
-      font-weight: $font-semibold;
+    .video-bottom {
+      max-width: 350px;
     }
+  }
+}
 
-    .video-info-date-views,
-    .video-info-private,
-    .video-info-blacklisted {
-      font-size: 13px;
+.action-button {
+  display: flex;
+  margin-left: 55px;
+  margin-top: 10px;
+  align-self: flex-end;
+}
 
-      &.video-info-private,
-      &.video-info-blacklisted .blacklisted-label {
-        font-weight: $font-semibold;
-      }
+my-delete-button,
+my-edit-button {
+  margin-right: 10px;
+}
 
-      &.video-info-blacklisted {
-        color: red;
+@media screen and (max-width: $small-view) {
+  .videos-header {
+    flex-direction: column;
+  }
 
-        .blacklisted-reason {
-          &::before {
-            content: ' - ';
-          }
-        }
+  .action-button {
+    flex-direction: column;
+    align-self: center;
+    margin-left: 0px;
+  }
+
+  ::ng-deep {
+    .video-miniature {
+      align-items: center;
+
+      .video-bottom,
+      .video-bottom .video-miniature-information {
+        /* same width than a.video-thumbnail */
+        max-width: $video-thumbnail-width !important;
       }
     }
   }
 
-  .video-buttons {
-    min-width: 190px;
+  my-delete-button,
+  my-edit-button {
+    margin-right: 0px;
+
+    ::ng-deep {
+      span, a {
+        margin-right: 0px;
+      }
+    }
   }
-}
 
-@media screen and (max-width: 800px) {
-  .video {
-    flex-direction: column;
-    height: auto;
+  my-delete-button,
+  my-edit-button,
+  my-button {
+    margin-top: 15px;
+    width: 100%;
     text-align: center;
 
-    .video-info-name {
-      margin: auto;
-    }
-
-    input[type=checkbox] {
-      display: none;
+    ::ng-deep {
+      .action-button {
+        /* same width than a.video-thumbnail */
+        width: $video-thumbnail-width;
+      }
     }
+  }
+}
 
-    my-video-thumbnail {
-      margin-right: 0;
-    }
+// Adapt my-video-miniature on small screens with menu
+@media screen and (min-width: $small-view) and (max-width: #{breakpoint(lg) + ($not-expanded-horizontal-margins / 3) * 2}) {
+  :host-context(.main-col:not(.expanded)) {
+    ::ng-deep {
+      .video-miniature {
+        flex-direction: column;
 
-    .video-buttons {
-      margin-top: 10px;
+        .video-miniature-name {
+          max-width: $video-thumbnail-width;
+        }
+      }
     }
   }
 }