Procházet zdrojové kódy

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 před 7 roky
rodič
revize
8a7fd978ef
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  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;