]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix peertube container in markdown preview
authorChocobozzz <me@florianbigard.com>
Tue, 29 Jun 2021 13:17:01 +0000 (15:17 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 29 Jun 2021 13:17:01 +0000 (15:17 +0200)
client/src/app/shared/shared-custom-markup/custom-markup-container.component.scss [deleted file]
client/src/app/shared/shared-custom-markup/custom-markup-container.component.ts
client/src/sass/application.scss
client/src/sass/custom-markup.scss [new file with mode: 0644]

diff --git a/client/src/app/shared/shared-custom-markup/custom-markup-container.component.scss b/client/src/app/shared/shared-custom-markup/custom-markup-container.component.scss
deleted file mode 100644 (file)
index 704d908..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-.custom-markup-container {
-
-  ::ng-deep .peertube-container {
-
-    &.layout-row {
-      display: flex;
-      flex-direction: row;
-      flex-wrap: wrap;
-    }
-
-    &.layout-column {
-      display: flex;
-      flex-direction: column;
-    }
-
-    .header {
-      margin: 30px 0 15px;
-    }
-
-    h4 {
-      margin-bottom: 0;
-    }
-  }
-}
index 2ecdc0243dbe5833e11f3f55ab0f969722956a0a..3d49c676875cd2048990fc21ca1bea8624325528 100644 (file)
@@ -3,8 +3,7 @@ import { CustomMarkupService } from './custom-markup.service'
 
 @Component({
   selector: 'my-custom-markup-container',
-  templateUrl: './custom-markup-container.component.html',
-  styleUrls: [ './custom-markup-container.component.scss' ]
+  templateUrl: './custom-markup-container.component.html'
 })
 export class CustomMarkupContainerComponent implements OnChanges {
   @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
index 6b32d4cd624a763d46f4dc038a0702ff2918d2c4..15ca09ec4a1eaee4b6731b389f0584ee49f1d586 100644 (file)
@@ -11,6 +11,8 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
 
 @use './classes';
 
+@use './custom-markup';
+
 [hidden] {
   display: none !important;
 }
diff --git a/client/src/sass/custom-markup.scss b/client/src/sass/custom-markup.scss
new file mode 100644 (file)
index 0000000..d1729db
--- /dev/null
@@ -0,0 +1,20 @@
+peertube-container {
+  > .layout-row {
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+  }
+
+  > .layout-column {
+    display: flex;
+    flex-direction: column;
+  }
+
+  > .header {
+    margin: 30px 0 15px;
+
+    > h4 {
+      margin-bottom: 0;
+    }
+  }
+}