summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/components/rich_content_editor.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/components/rich_content_editor.scss')
-rw-r--r--app/assets/stylesheets/components/rich_content_editor.scss8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/stylesheets/components/rich_content_editor.scss b/app/assets/stylesheets/components/rich_content_editor.scss
index b1189137d59..d97a9bc227d 100644
--- a/app/assets/stylesheets/components/rich_content_editor.scss
+++ b/app/assets/stylesheets/components/rich_content_editor.scss
@@ -44,3 +44,11 @@
@include gl-line-height-20;
}
}
+
+/**
+* Styling below ensures that YouTube videos are displayed in the editor the same as they would in about.gitlab.com
+* https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/source/stylesheets/_base.scss#L977
+*/
+.video_container {
+ padding-bottom: 56.25%;
+}