8
0
Просмотр исходного кода

Docs (ckeditor5): Do not center math equations and chemical formulas. Closes #2080.

Do not center math equations and chemical formulas.
Marek Lewandowski 5 лет назад
Родитель
Сommit
81a9409875
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      docs/assets/snippet-styles.css

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

@@ -200,6 +200,15 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	margin: 0 auto;
 }
 
+/* Umberto stylesheet is centering `<img>` inside a `<p>`, let's overwrite it with higher CSS Specificity.
+ * See: https://github.com/ckeditor/ckeditor5/issues/2080.
+ */
+.live-snippet p img {
+	display: initial;
+	margin: initial;
+	box-sizing: initial;
+}
+
 .live-snippet blockquote p:first-of-type {
 	margin-bottom: 1.5rem;
 }