]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Use mixin for word wrap
authorChocobozzz <me@florianbigard.com>
Fri, 20 Apr 2018 06:19:46 +0000 (08:19 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 20 Apr 2018 06:19:46 +0000 (08:19 +0200)
client/src/app/videos/+video-watch/comment/video-comment.component.scss
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/sass/include/_mixins.scss

index 4c481d486bd4ef27f5feadd64ee5f720174fc7a3..c90f9849bdcc6ba28cf86d1bce0f0126f81615f1 100644 (file)
     }
 
     .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;
 
       /deep/ a {
         @include disable-default-a-behaviour;
index b9596cbee121a49b00c8a98891fd9e2c89ecbf0c..1b44f0d6aaeab469f2c9b18c40dbe49db3d57c3e 100644 (file)
       font-size: 15px;
 
       .video-info-description-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;
       }
 
       .description-loading {
index f905f9ae5f7e4d4f7d9207b6c0f78e13642a207a..7e7a38bbdae86d19900c7f373c71d1a177a4d4b6 100644 (file)
   }
 }
 
+@mixin peertube-word-wrap {
+  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;
+}
+
 @mixin peertube-input-text($width) {
   display: inline-block;
   height: $button-height;