Browse Source

Docs: Fixed a bug where media embed widgets with an iframe preview get unnecessary margin due to default Umberto styles.

Aleksander Nowodzinski 7 năm trước cách đây
mục cha
commit
a34bab30f2
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      docs/assets/snippet-styles.css

+ 6 - 0
docs/assets/snippet-styles.css

@@ -18,6 +18,12 @@
 	margin-bottom: 0;
 }
 
+/* Override default Umberto's styles because they apply margins to media embed widgets with iframe
+previews breaking their structure. */
+.ck.ck-content iframe {
+	margin: initial;
+}
+
 /* Reset h1's styling – https://github.com/ckeditor/ckeditor5-heading/issues/86 */
 .ck.ck-content h1 {
 	display: block;