Kaynağa Gözat

Docs: do not center math equations and chemical formulas.

dkonopka 6 yıl önce
ebeveyn
işleme
faae2d4bcb
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9 0
      docs/_snippets/features/mathtype.html

+ 9 - 0
docs/_snippets/features/mathtype.html

@@ -1,3 +1,12 @@
+<style>
+	/* Umberto stylesheet is centering `<img>` inside a `<p>`, let's overwrite it with higher CSS Specificity.
+	 * See: https://github.com/ckeditor/ckeditor5-core/issues/198.
+	 */
+	.live-snippet .ck-editor p img {
+		margin: 0;
+	}
+</style>
+
 <div id="mathtype-editor">
 	<p>In elementary algebra, the <strong>quadratic formula</strong> is the solution of the quadratic equation.</p>