Skip to content

Commit

Permalink
remove top margin from first child in AsciiDoc table cell
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 29, 2020
1 parent c0fdddf commit 2f294fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
7 changes: 6 additions & 1 deletion preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 5 additions & 12 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
*/
}

.doc td.tableblock > .content > :first-child {
margin-top: 0;
}

.doc table.tableblock th,
.doc table.tableblock td {
padding: 0.5rem;
Expand Down Expand Up @@ -300,7 +304,7 @@
}

.doc .admonitionblock td.content > :first-child {
margin: 0;
margin-top: 0;
}

.doc .admonitionblock pre {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2f294fb

Please sign in to comment.