]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss
add link to open video on origin instance
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / comment / video-comment-add.component.scss
index b3725ab94aa170eeab0b069f627df2d2bf0a45bf..d938e2e288943b23baeffeabc4e9dfa43c0ef7cc 100644 (file)
@@ -19,9 +19,49 @@ form {
   .form-group {
     flex-grow: 1;
     margin: 0;
+    position: relative;
+
+    $peertube-textarea-height: 60px;
+    $markdown-icon-height: 18px;
+    $markdown-icon-width: 30px;
+
+    .markdown-guide {
+      position: absolute;
+      top: 5px;
+      right: 9px;
+
+      ::ng-deep .help-tooltip-button {
+        my-global-icon {
+          height: $markdown-icon-height;
+          width: $markdown-icon-width;
+
+          svg {
+            color: #C6C6C6;
+            fill: #C6C6C6;
+            border-radius: 3px;
+          }
+        }
+
+        &:focus, &:active, &:hover {
+          my-global-icon svg {
+            background-color: #C6C6C6;
+            color: pvar(--mainBackgroundColor);
+            fill: pvar(--mainBackgroundColor);
+          }
+        }
+      }
+    }
 
     textarea {
-      @include peertube-textarea(100%, 60px);
+      @include peertube-textarea(100%, $peertube-textarea-height);
+      @include button-focus(pvar(--mainColorLightest));
+
+      min-height: calc(#{$peertube-textarea-height} - 15px * 2);
+      padding-right: $markdown-icon-width + 15px !important;
+
+      @media screen and (max-width: 600px) {
+        padding-right: $markdown-icon-width + 19px  !important;
+      }
 
       &:focus::placeholder {
         opacity: 0;
@@ -59,6 +99,25 @@ form {
   }
 }
 
+.emoji-flex {
+  display: flex;
+  flex-flow: row wrap;
+  align-items: center;
+
+  .emoji-flex-item {
+    text-align: left;
+    margin: auto;
+    min-width: 227px;
+    flex: 1;
+
+    code {
+      display: inline-block;
+      vertical-align: middle;
+      margin-left: 5px;
+    }
+  }
+}
+
 @media screen and (max-width: 600px) {
   textarea, .comment-buttons button {
     font-size: 14px !important;