ox-html.el: Use classes for caption instead of align
* ox-html.el (org-html-style-default): New classes caption.t-above and caption.t-bottom. (org-html-table): Use new classes. Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>
This commit is contained in:
parent
8bb519d934
commit
1813200fc8
|
@ -279,6 +279,8 @@ for the JavaScript code in this tag.
|
|||
pre.src-sql:before { content: 'SQL'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.right { text-align: center; }
|
||||
th.left { text-align: center; }
|
||||
|
@ -3255,8 +3257,8 @@ contextual information."
|
|||
(if (equal attributes "") "" (concat " " attributes))
|
||||
(if (not caption) ""
|
||||
(format (if org-html-table-caption-above
|
||||
"<caption align=\"above\">%s</caption>"
|
||||
"<caption align=\"bottom\">%s</caption>")
|
||||
"<caption class=\"t-above\">%s</caption>"
|
||||
"<caption class=\"t-bottom\">%s</caption>")
|
||||
(concat
|
||||
"<span class=\"table-number\">"
|
||||
(format (org-html--translate "Table %d:" info) number)
|
||||
|
|
Loading…
Reference in New Issue