Selaa lähdekoodia

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

Aleksander Nowodzinski 7 vuotta sitten
vanhempi
sitoutus
a34bab30f2
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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;