Parcourir la source

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

Do not center math equations and chemical formulas.
Marek Lewandowski il y a 5 ans
Parent
commit
81a9409875
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  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;
 }