Parcourir la source

Docs: Made the position of the headings static to avoid issue with selection floated elements in the content. Removed some unexpected spacing in the headings dropdown. Closes #896. Closes #899.

Aleksander Nowodzinski il y a 7 ans
Parent
commit
5b8a5db54e
1 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. 13 0
      docs/assets/snippet-styles.css

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

@@ -61,6 +61,19 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	margin-bottom: 1.5rem;
 }
 
+/* https://github.com/ckeditor/ckeditor5/issues/896 */
+.live-snippet .ck-content h2,
+.live-snippet .ck-content h3,
+.live-snippet .ck-content h4 {
+	position: static;
+}
+
+/* https://github.com/ckeditor/ckeditor5/issues/899 */
+.live-snippet .ck-dropdown .ck-list {
+	margin: 0;
+	padding: 0;
+}
+
 #snippet-inline-editor .ck-editor__editable {
 	margin-bottom: 1rem;
 	padding: 2rem;