Fix #490 and justify text in comments div.
[oweals/peertube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.scss
index 7e1a32f480c5d034e28d4a2753c5c3e3bd243c1e..6658e35e8ff64a8377b862cfbb63da7a316f6a5e 100644 (file)
@@ -1,38 +1,78 @@
 @import '_variables';
 @import '_mixins';
 
-.comment {
+.root-comment {
   font-size: 15px;
-  margin-top: 30px;
+  display: flex;
 
-  .comment-account-date {
-    display: flex;
-    margin-bottom: 4px;
+  img {
+    @include avatar(36px);
 
-    .comment-account {
-      font-weight: $font-bold;
+    margin-top: 5px;
+    margin-right: 20px;
+  }
+
+  .comment {
+    flex-grow: 1;
+
+    .highlighted-comment {
+      display: inline-block;
+      background-color: #F5F5F5;
+      color: #3d3d3d;
+      padding: 0 5px;
+      font-size: 13px;
+      margin-bottom: 5px;
+      font-weight: $font-semibold;
+      border-radius: 3px;
     }
 
-    .comment-date {
-      color: #585858;
-      margin-left: 10px;
+    .comment-account-date {
+      display: flex;
+      margin-bottom: 4px;
+
+      .comment-account {
+        @include disable-default-a-behaviour;
+
+        color: #000;
+        font-weight: $font-bold;
+      }
+
+      .comment-date {
+        color: #585858;
+        margin-left: 10px;
+      }
     }
-  }
 
-  .comment-actions {
-    margin: 10px 0;
+    .comment-html {
+      word-wrap: initial;
+      word-break: normal;
+         text-align: justify;
 
-    .comment-action-reply {
-      color: #585858;
-      cursor: pointer;
+      /deep/ a {
+        @include disable-default-a-behaviour;
+
+        color: #000;
+
+        // Semi bold mentions
+        &:not(.linkified-url) {
+          font-weight: $font-semibold;
+        }
+      }
     }
-  }
-}
 
-.children {
-  margin-left: 20px;
+    .comment-actions {
+      margin: 10px 0;
+      display: flex;
 
-  .comment {
-    margin-top: 15px;
+      .comment-action-reply, .comment-action-delete {
+        color: #585858;
+        cursor: pointer;
+        margin-right: 10px;
+
+        &:hover {
+          color: #000;
+        }
+      }
+    }
   }
 }