Selaa lähdekoodia

Merge pull request #1286 from ckeditor/t/1282

Docs: Removed unnecessary margin and padding of the first/last-child paragraph in a table cell. Closes #1282.
Piotrek Koszuliński 7 vuotta sitten
vanhempi
commit
8a7fd978ef
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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;