]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss
Reorder playlists when adding an element
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-playlist / video-add-to-playlist.component.scss
index 47baa997b2fee610cfaf1ea0f8d1fe8b7cea2e48..de2f1032b1b3061bc23b6bd9fe8dcb98529e9130 100644 (file)
@@ -1,5 +1,5 @@
-@import '_variables';
-@import '_mixins';
+@use '_variables' as *;
+@use '_mixins' as *;
 
 .header,
 .dropdown-item,
@@ -7,6 +7,10 @@
   padding: 8px 24px;
 }
 
+.dropdown-item:active {
+  color: inherit;
+}
+
 .header {
   min-width: 240px;
   margin-bottom: 10px;
       font-size: 18px;
       flex-grow: 1;
     }
-
-    .options {
-      display: flex;
-      align-items: center;
-      font-size: 14px;
-      cursor: pointer;
-
-      my-global-icon {
-        @include apply-svg-color(#333);
-
-        width: 16px;
-        height: 23px;
-        margin-right: 3px;
-      }
-    }
-  }
-
-  .options-row {
-    margin-top: 10px;
-    padding-left: 10px;
-
-    > div {
-      display: flex;
-      align-items: center;
-    }
   }
 }
 
 }
 
 .playlist {
-  display: inline-flex;
-  cursor: pointer;
+  padding: 0;
+
+  > .primary-row {
+    padding: 8px 10px 8px 24px;
+  }
+
+  > .optional-rows {
+    @include padding-left(24px);
+  }
+
+  &.has-optional-row:hover {
+    background-color: inherit;
+  }
+}
+
+.primary-row {
+  display: flex;
 
   my-peertube-checkbox {
-    margin-right: 10px;
+    @include margin-right(10px);
+
     align-self: center;
   }
 
   .display-name {
     display: flex;
     align-items: flex-end;
+    flex-grow: 1;
+    margin: 0;
+    font-weight: $font-regular;
+    cursor: pointer;
+  }
+
+  .optional-row-icon {
+    display: flex;
+    align-items: center;
+    font-size: 14px;
+    cursor: pointer;
+
+    my-global-icon {
+      @include apply-svg-color(#333);
+      @include margin-right(0);
+
+      width: 19px;
+      height: 19px;
+    }
+  }
+}
+
+.optional-rows {
+  display: grid;
+  grid-template-columns: 35px 80px 80px;
+  row-gap: 3px;
+  column-gap: 10px;
+  align-items: center;
+
+  my-peertube-checkbox {
+    @include margin-left(auto);
+  }
+
+  .header-label {
+    font-size: 13px;
+    color: pvar(--greyForegroundColor);
+    padding-left: 2px;
+
+    &:nth-child(1) {
+      grid-column: 2;
+    }
 
-    .timestamp-info {
-      font-size: 0.9em;
-      color: pvar(--greyForegroundColor);
-      margin-left: 5px;
+    &:nth-child(2) {
+      grid-column: 3;
     }
   }
 }
   border-top: 1px solid $separator-border-color;
 }
 
-.new-playlist-button  {
+.new-playlist-button {
   cursor: pointer;
 
   my-global-icon {
     @include apply-svg-color(#333);
+    @include margin-right(4px);
 
     position: relative;
     left: -1px;
     top: -1px;
-    margin-right: 4px;
     width: 21px;
     height: 21px;
   }