]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-edit/shared/video-edit.component.scss
Reorganize client shared modules
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / shared / video-edit.component.scss
index bb775cb0af67642979d720bf93d15339cfadcfcd..69b9072883ac33625d35b43c384ff5f9ae5db815 100644 (file)
@@ -1,15 +1,39 @@
-@import '_variables';
-@import '_mixins';
+// Bootstrap grid utilities require functions, variables and mixins
+@import 'node_modules/bootstrap/scss/functions';
+@import 'node_modules/bootstrap/scss/variables';
+@import 'node_modules/bootstrap/scss/mixins';
+@import 'node_modules/bootstrap/scss/grid';
+
+@import 'variables';
+@import 'mixins';
+
+label {
+  font-weight: $font-regular;
+  font-size: 100%;
+}
 
 .peertube-select-container {
   @include peertube-select-container(auto);
 }
 
+.title-page a {
+  color: pvar(--mainForegroundColor);
+
+  &:hover {
+    text-decoration: none;
+    opacity: .8;
+  }
+}
+
 my-peertube-checkbox {
   display: block;
   margin-bottom: 1rem;
 }
 
+.nav-tabs {
+  margin-bottom: 15px;
+}
+
 .video-edit {
   height: 100%;
   min-height: 300px;
@@ -36,6 +60,7 @@ my-peertube-checkbox {
 
   .captions-header {
     text-align: right;
+    margin-bottom: 1rem;
 
     .create-caption {
       @include create-button;
@@ -50,6 +75,7 @@ my-peertube-checkbox {
     a.caption-entry-label {
       @include disable-default-a-behaviour;
 
+      flex-grow: 1;
       color: #000;
 
       &:hover {
@@ -96,7 +122,7 @@ my-peertube-checkbox {
     display: inline-block;
     margin-right: 25px;
 
-    color: $grey-foreground-color;
+    color: pvar(--greyForegroundColor);
     font-size: 15px;
   }
 
@@ -122,7 +148,7 @@ my-peertube-checkbox {
 p-calendar {
   display: block;
 
-  /deep/ {
+  ::ng-deep {
     input,
     .ui-calendar {
       width: 100%;
@@ -135,68 +161,37 @@ p-calendar {
   }
 }
 
-/deep/ {
-  .root-tabset > .nav {
-    margin-bottom: 15px;
-  }
-
-  .ng2-tag-input {
-    border: none !important;
-  }
+@include ng2-tags;
 
-  .ng2-tags-container {
-    display: flex;
-    align-items: center;
-    border: 1px solid #C6C6C6;
-    border-radius: 3px;
-    padding: 5px !important;
-    height: 40px;
-  }
+// columns for the video
+.col-video-edit {
+  @include make-col-ready();
 
-  tag-input-form {
-    input {
-      height: 30px !important;
+  @include media-breakpoint-up(md) {
+    @include make-col(7);
 
-      background-color: var(--mainBackgroundColor) !important;
-      color: var(--mainForegroundColor) !important;
+    & + .col-video-edit {
+      @include make-col(5);
     }
   }
 
-  tag {
-    background-color: $grey-background-color !important;
-    color: #000 !important;
-    border-radius: 3px !important;
-    font-size: 15px !important;
-    height: 30px !important;
-    line-height: 30px !important;
-    margin: 0 5px 0 0 !important;
-    cursor: default !important;
-    padding: 0 8px 0 10px !important;
-
-    div {
-      height: 100% !important;
+  @include media-breakpoint-up(xl) {
+    @include make-col(8);
+
+    & + .col-video-edit {
+      @include make-col(4);
     }
   }
+}
 
-  delete-icon {
-    cursor: pointer !important;
-    height: auto !important;
-    vertical-align: middle !important;
-    padding-left: 6px !important;
-
-    svg {
-      position: relative;
-      top: -1px;
-      height: auto !important;
-      vertical-align: middle !important;
+:host-context(.expanded) {
+  .col-video-edit {
+    @include media-breakpoint-up(md) {
+      @include make-col(8);
 
-      path  {
-        fill: $grey-foreground-color !important;
+      & + .col-video-edit {
+        @include make-col(4);
       }
     }
-
-    &:hover {
-      transform: none !important;
-    }
   }
 }