Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
2748-center-images-make-image-caption-markup-se...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2748-center-images-make-image-caption-markup-semantic.patch of Package erlang
From cf92c3a9d202b9b9c1fc999910a5c977063389e0 Mon Sep 17 00:00:00 2001 From: Mariano Guerra <mariano@marianoguerra.org> Date: Mon, 31 Oct 2016 20:52:21 +0000 Subject: [PATCH 48/59] center images, make image caption markup semantic --- lib/erl_docgen/priv/css/otp_doc.css | 10 +++++++--- lib/erl_docgen/priv/xsl/db_html.xsl | 8 +++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css index 1f3b9bfb2..8edb067df 100644 --- a/lib/erl_docgen/priv/css/otp_doc.css +++ b/lib/erl_docgen/priv/css/otp_doc.css @@ -177,16 +177,20 @@ footer { } font-size: 1.5em; } -.doc-table-wrapper{ +.doc-table-wrapper, .doc-image-wrapper{ width: 100%; } -.doc-table{ +.doc-image-wrapper{ + text-align: center; +} + +.doc-table, .doc-image{ min-width: 50%; margin: 0 auto; } -.doc-table-caption{ +.doc-table-caption, .doc-image-caption{ margin-top: 1em; font-style: italic; text-align: center; diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index cf0c0de0a..22216c65b 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -1188,12 +1188,14 @@ <xsl:number level="any" from="chapter" count="image"/> </xsl:variable> - <img alt="IMAGE MISSING" src="{@file}"/><br/> + <div class="doc-image-wrapper"> + <img alt="IMAGE MISSING" src="{@file}" class="doc-image"/> <xsl:apply-templates> <xsl:with-param name="chapnum" select="$chapnum"/> <xsl:with-param name="fignum" select="$fignum"/> </xsl:apply-templates> + </div> </xsl:template> @@ -1203,11 +1205,11 @@ <xsl:param name="chapnum"/> <xsl:param name="fignum"/> - <p><em>Figure + <p class="doc-image-caption">Figure <xsl:value-of select="$chapnum"/>.<xsl:value-of select="$fignum"/>:   <xsl:apply-templates/> - </em></p> + </p> </xsl:template> -- 2.12.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor