瀏覽代碼

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

Aleksander Nowodzinski 7 年之前
父節點
當前提交
a34bab30f2
共有 1 個文件被更改,包括 6 次插入0 次删除
  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;