Skip to content

Commit 6e31c3e

Browse files
committed
doc: Improve rendering of notes/cautions using XSL-FO
Center title and put a border around it, like the output that the DSSSL version gave.
1 parent c4c5154 commit 6e31c3e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/src/sgml/stylesheet-fo.xsl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
1919
</xsl:attribute-set>
2020

21+
<xsl:attribute-set name="nongraphical.admonition.properties">
22+
<xsl:attribute name="border-style">solid</xsl:attribute>
23+
<xsl:attribute name="border-width">1pt</xsl:attribute>
24+
<xsl:attribute name="border-color">black</xsl:attribute>
25+
<xsl:attribute name="padding-start">12pt</xsl:attribute>
26+
<xsl:attribute name="padding-end">12pt</xsl:attribute>
27+
<xsl:attribute name="padding-top">6pt</xsl:attribute>
28+
<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
29+
</xsl:attribute-set>
30+
31+
<xsl:attribute-set name="admonition.title.properties">
32+
<xsl:attribute name="text-align">center</xsl:attribute>
33+
</xsl:attribute-set>
34+
2135
<!-- Change display of some elements -->
2236

2337
<xsl:template match="command">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy