Parcourir la source

Docs: Removed unnecessary margin and padding of the first/last-child paragraph in a table cell.

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

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

@@ -86,6 +86,16 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	display: table;
 }
 
+/* https://github.com/ckeditor/ckeditor5/issues/1282 */
+.live-snippet .ck.ck-content .table p:first-child {
+	padding-top: 0;
+}
+
+/* https://github.com/ckeditor/ckeditor5/issues/1282 */
+.live-snippet .ck.ck-content .table p:last-child {
+	margin-bottom: 0;
+}
+
 #snippet-inline-editor .ck-content {
 	margin-bottom: 1rem;
 	padding: 2rem;