Skip to content

Commit 2f294fb

Browse files
committed
remove top margin from first child in AsciiDoc table cell
1 parent c0fdddf commit 2f294fb

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

preview-src/index.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,16 @@ Eu mea munere vituperata constituam.
8989

9090
[%autowidth]
9191
|===
92-
|Input | Output
92+
|Input | Output | Example
9393

9494
m|"foo\nbar"
9595
l|foo
9696
bar
97+
a|
98+
[source,ruby]
99+
----
100+
puts "foo\nbar"
101+
----
97102
|===
98103

99104
Select menu:File[Open Project] to open the project in your IDE.

src/css/doc.css

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
*/
198198
}
199199

200+
.doc td.tableblock > .content > :first-child {
201+
margin-top: 0;
202+
}
203+
200204
.doc table.tableblock th,
201205
.doc table.tableblock td {
202206
padding: 0.5rem;
@@ -300,7 +304,7 @@
300304
}
301305

302306
.doc .admonitionblock td.content > :first-child {
303-
margin: 0;
307+
margin-top: 0;
304308
}
305309

306310
.doc .admonitionblock pre {
@@ -432,17 +436,6 @@
432436
font-size: inherit;
433437
}
434438

435-
.doc table.tableblock .paragraph {
436-
margin: 0;
437-
padding: 0;
438-
}
439-
440-
.doc table.tableblock .admonitionblock,
441-
.doc .ulist .admonitionblock,
442-
.doc .olist .admonitionblock {
443-
padding: 0;
444-
}
445-
446439
.doc ol,
447440
.doc ul {
448441
margin: 0;

0 commit comments

Comments
 (0)