]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-edit/shared/video-edit.component.scss
Use form-control to display box-shadow on form inputs/selects upon focus
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / shared / video-edit.component.scss
index 1295cf0987a65c9596910e0574b90c022381bb99..1b7bc56b4ac6216aae01f7ccedafb49f2e5ab8d4 100644 (file)
@@ -1,12 +1,36 @@
 @import '_variables';
 @import '_mixins';
 
+label {
+  font-weight: $font-regular;
+  font-size: 100%;
+}
+
 .peertube-select-container {
   @include peertube-select-container(auto);
 }
 
+.title-page a {
+  color: var(--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;
 
   .form-group {
     margin-bottom: 25px;
   input {
     @include peertube-input-text(100%);
     display: block;
+  }
 
-    &[type=checkbox] {
-      @include peertube-checkbox(1px);
-    }
+  .label-tags + span {
+    font-size: 15px;
   }
 
-  input, select {
-    font-size: 15px
+  .advanced-settings .form-group {
+    margin-bottom: 20px;
+  }
+}
+
+.captions {
+
+  .captions-header {
+    text-align: right;
+
+    .create-caption {
+      @include create-button;
+    }
   }
 
-  .form-group-checkbox {
+  .caption-entry {
     display: flex;
+    height: 40px;
     align-items: center;
 
-    label {
-      font-weight: $font-regular;
-      margin: 0;
+    a.caption-entry-label {
+      @include disable-default-a-behaviour;
+
+      color: #000;
+
+      &:hover {
+        opacity: 0.8;
+      }
     }
 
-    input {
-      width: 10px;
-      margin-right: 10px;
+    .caption-entry-label {
+      font-size: 15px;
+      font-weight: bold;
+
+      margin-right: 20px;
+      width: 150px;
     }
-  }
 
-  .label-tags + span {
-    font-size: 15px;
-  }
+    .caption-entry-state {
+      width: 200px;
 
-  .root-tabset /deep/ > .nav {
-    margin-left: 15px;
-    margin-bottom: 15px;
+      &.caption-entry-state-create {
+        color: #39CC0B;
+      }
 
-    .nav-link {
-      display: flex !important;
-      align-items: center;
-      height: 30px !important;
-      padding: 0 15px !important;
+      &.caption-entry-state-delete {
+        color: #FF0000;
+      }
+    }
+
+    .caption-entry-delete {
+      @include peertube-button;
+      @include grey-button;
     }
   }
 
-  .advanced-settings .form-group {
-    margin-bottom: 20px;
+  .no-caption {
+    text-align: center;
+    font-size: 15px;
   }
 }
 
     display: inline-block;
     margin-right: 25px;
 
-    color: #585858;
+    color: $grey-foreground-color;
     font-size: 15px;
   }
 
   .submit-button {
     @include peertube-button;
     @include orange-button;
+    @include button-with-icon(20px, 1px);
 
     display: inline-block;
 
       border: none;
       padding: 0;
       outline: 0;
-    }
-
-    .icon.icon-validate {
-      @include icon(20px);
-
-      cursor: inherit;
-      position: relative;
-      top: -1px;
-      margin-right: 4px;
-      background-image: url('../../../../assets/images/global/validate.svg');
+      color: inherit;
+      font-weight: $font-semibold;
     }
   }
 }
 
-/deep/ {
-  .ng2-tag-input {
-    border: none !important;
-  }
+p-calendar {
+  display: block;
 
-  .ng2-tags-container {
-    display: flex;
-    align-items: center;
-    border: 1px solid #C6C6C6;
-    border-radius: 3px;
-    padding: 5px !important;
-    height: 40px;
-  }
-
-  tag-input-form {
-    input {
-      height: 30px !important;
-      background-color: #fff !important;
+  ::ng-deep {
+    input,
+    .ui-calendar {
+      width: 100%;
     }
-  }
 
-  tag {
-    background-color: #E5E5E5 !important;
-    border-radius: 3px !important;
-    font-size: 15px !important;
-    color: #000 !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;
-    }
-  }
-
-  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;
-      fill: #585858 !important;
-    }
-
-    &:hover {
-      transform: none !important;
+    input {
+      @include peertube-input-text(100%);
+      color: #000;
     }
   }
 }
+
+@include ng2-tags