]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/comment/video-comment.component.scss
Improve responsive on small screens
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.scss
index 4c481d486bd4ef27f5feadd64ee5f720174fc7a3..84da5727e6d534c8949efca2b1b9b4dcd2505774 100644 (file)
@@ -35,7 +35,8 @@
       .comment-account {
         @include disable-default-a-behaviour;
 
-        color: #000;
+        word-break: break-all;
+        color: var(--mainForegroundColor);
         font-weight: $font-bold;
       }
 
     }
 
     .comment-html {
-      word-break: normal;
-      word-wrap: break-word;
-      overflow-wrap: break-word;
-      -webkit-hyphens: auto;
-      -ms-hyphens: auto;
-      -moz-hyphens: auto;
-      hyphens: auto;
-      text-align: justify;
+      @include peertube-word-wrap;
 
+      // Mentions
       /deep/ a {
-        @include disable-default-a-behaviour;
-
-        color: #000;
 
-        // Semi bold mentions
         &:not(.linkified-url) {
+          @include disable-default-a-behaviour;
+
+          color: var(--mainForegroundColor);
+
           font-weight: $font-semibold;
         }
+
       }
     }
 
       margin: 10px 0;
       display: flex;
 
-      .comment-action-reply, .comment-action-delete {
+      .comment-action-reply,
+      .comment-action-delete {
         color: #585858;
         cursor: pointer;
         margin-right: 10px;
 
         &:hover {
-          color: #000;
+          color: var(--mainForegroundColor);
         }
       }
     }
 
 @media screen and (max-width: 600px) {
   .children {
-    margin-left: -40px;
+    margin-left: -35px;
   }
 
   .root-comment {
     img { margin-right: 10px; }
   }
 }
+
+@media screen and (max-width: 450px) {
+  .root-comment {
+    font-size: 14px;
+  }
+}
\ No newline at end of file