Sfoglia il codice sorgente

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

Aleksander Nowodzinski 7 anni fa
parent
commit
67f58f2521
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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;