From 2f294fbe4da6fccdc3f11d312a81f1ad3e9576d5 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 29 Nov 2020 01:53:17 -0700 Subject: [PATCH] remove top margin from first child in AsciiDoc table cell --- preview-src/index.adoc | 7 ++++++- src/css/doc.css | 17 +++++------------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index f30e1e3e..7ebb679f 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -89,11 +89,16 @@ Eu mea munere vituperata constituam. [%autowidth] |=== -|Input | Output +|Input | Output | Example m|"foo\nbar" l|foo bar +a| +[source,ruby] +---- +puts "foo\nbar" +---- |=== Select menu:File[Open Project] to open the project in your IDE. diff --git a/src/css/doc.css b/src/css/doc.css index 94df27b7..f5c1e90e 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -197,6 +197,10 @@ */ } +.doc td.tableblock > .content > :first-child { + margin-top: 0; +} + .doc table.tableblock th, .doc table.tableblock td { padding: 0.5rem; @@ -300,7 +304,7 @@ } .doc .admonitionblock td.content > :first-child { - margin: 0; + margin-top: 0; } .doc .admonitionblock pre { @@ -432,17 +436,6 @@ font-size: inherit; } -.doc table.tableblock .paragraph { - margin: 0; - padding: 0; -} - -.doc table.tableblock .admonitionblock, -.doc .ulist .admonitionblock, -.doc .olist .admonitionblock { - padding: 0; -} - .doc ol, .doc ul { margin: 0;