]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/shared/video-edit.component.scss
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / shared / video-edit.component.scss
index 9caf009c5c28bfe441818a3dd06f9bdffd0a5341..4b1dec89add7810365ee2296d14fe462005e1e75 100644 (file)
@@ -1,13 +1,8 @@
-// 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';
+@use '_variables' as *;
+@use '_mixins' as *;
 
-@import 'variables';
-@import 'mixins';
-
-label {
+label,
+my-dynamic-form-field ::ng-deep label {
   font-weight: $font-regular;
   font-size: 100%;
 }
@@ -56,140 +51,98 @@ my-peertube-checkbox {
   }
 }
 
-.captions {
-
-  .captions-header {
-    text-align: right;
-    margin-bottom: 1rem;
+.captions-header {
+  text-align: end;
+  margin-bottom: 1rem;
+}
 
-    .create-caption {
-      @include create-button;
-    }
-  }
+.create-caption {
+  @include create-button;
+}
 
-  .caption-entry {
-    display: flex;
-    height: 40px;
-    align-items: center;
+.caption-entry {
+  display: flex;
+  height: 40px;
+  align-items: center;
 
-    a.caption-entry-label {
-      @include disable-default-a-behaviour;
+  a.caption-entry-label {
+    @include disable-default-a-behaviour;
 
-      flex-grow: 1;
-      color: #000;
+    flex-grow: 1;
+    color: #000;
 
-      &:hover {
-        opacity: 0.8;
-      }
+    &:hover {
+      opacity: 0.8;
     }
+  }
 
-    .caption-entry-label {
-      font-size: 15px;
-      font-weight: bold;
-
-      margin-right: 20px;
-      width: 150px;
-    }
+  .caption-entry-label {
+    @include margin-right(20px);
 
-    .caption-entry-state {
-      width: 200px;
+    font-size: 15px;
+    font-weight: bold;
+    width: 150px;
+  }
 
-      &.caption-entry-state-create {
-        color: #39CC0B;
-      }
+  .caption-entry-state {
+    width: 200px;
 
-      &.caption-entry-state-delete {
-        color: #FF0000;
-      }
+    &.caption-entry-state-create {
+      color: #39CC0B;
     }
 
-    .caption-entry-delete {
-      @include peertube-button;
-      @include grey-button;
+    &.caption-entry-state-delete {
+      color: #FF0000;
     }
   }
 
-  .no-caption {
-    text-align: center;
-    font-size: 15px;
+  .caption-entry-delete {
+    @include peertube-button;
+    @include grey-button;
   }
 }
 
+.no-caption {
+  text-align: center;
+  font-size: 15px;
+}
+
 .submit-container {
-  text-align: right;
+  text-align: end;
 
   .message-submit {
-    display: inline-block;
-    margin-right: 25px;
+    @include margin-right(25px);
 
+    display: inline-block;
     color: pvar(--greyForegroundColor);
     font-size: 15px;
   }
-
-  .submit-button {
-    @include peertube-button;
-    @include orange-button;
-    @include button-with-icon(20px, 1px);
-
-    display: inline-block;
-
-    input {
-      cursor: inherit;
-      background-color: inherit;
-      border: none;
-      padding: 0;
-      outline: 0;
-      color: inherit;
-      font-weight: $font-semibold;
-    }
-  }
 }
 
 p-calendar {
   display: block;
 
   ::ng-deep {
-    input,
-    .ui-calendar {
+    .p-calendar {
       width: 100%;
     }
 
-    input {
+    .p-inputtext {
       @include peertube-input-text(100%);
       color: #000;
     }
   }
 }
 
-// columns for the video
-.col-video-edit {
-  @include make-col-ready();
-
-  @include media-breakpoint-up(md) {
-    @include make-col(7);
+.form-columns {
+  display: grid;
 
-    & + .col-video-edit {
-      @include make-col(5);
-    }
-  }
-
-  @include media-breakpoint-up(xl) {
-    @include make-col(8);
-
-    & + .col-video-edit {
-      @include make-col(4);
-    }
-  }
+  grid-template-columns: 66% 1fr;
+  grid-gap: 30px;
 }
 
-:host-context(.expanded) {
-  .col-video-edit {
-    @include media-breakpoint-up(md) {
-      @include make-col(8);
-
-      & + .col-video-edit {
-        @include make-col(4);
-      }
-    }
+@include on-small-main-col {
+  .form-columns {
+    grid-template-columns: 1fr;
   }
 }