diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2012-09-05 09:12:04 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2012-09-05 09:12:04 +1200 |
commit | 0c23c000bdd9eee5a510c8c9474dd9a0727e860f (patch) | |
tree | 912844ba96f44ef129b0786544f4e4542e22e6d6 | |
parent | 73776e0f917d5cc82f2cdddda3c935821eea951b (diff) | |
download | asciidoc-0c23c000bdd9eee5a510c8c9474dd9a0727e860f.tar.gz |
HTML backends: Align inline images to text-bottom.
-rw-r--r-- | html4.conf | 4 | ||||
-rw-r--r-- | stylesheets/asciidoc.css | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -40,8 +40,8 @@ template::[pi-blockmacro] [image-inlinemacro] <a href="{link}"{role? class="{role}"}> # src attribute must be first attribute for blogpost compatibility. -{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" style="border-width: 0;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}> -{data-uri#}<img style="border-width: 0;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} +{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" style="border-width: 0; vertical-align: text-bottom;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}> +{data-uri#}<img style="border-width: 0; vertical-align: text-bottom;" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print 'src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}"> {link#}</a> diff --git a/stylesheets/asciidoc.css b/stylesheets/asciidoc.css index 163de67..2f94f1e 100644 --- a/stylesheets/asciidoc.css +++ b/stylesheets/asciidoc.css @@ -215,7 +215,7 @@ div.exampleblock > div.content { } div.imageblock div.content { padding-left: 0; } -span.image img { border-style: none; } +span.image img { border-style: none; vertical-align: text-bottom; } a.image:visited { color: white; } dl { |