Skip to content

Commit e446cde

Browse files
committed
Better scaling of images in HTML output
Turn on the previously disabled automatic scaling of images in HTML output. To avoid images looking too large on nowadays-normal screens, restrict the width to 75% on such screens. Some work is still necessary because SVG images without a viewBox still won't scale, but that will a separate patch. Discussion: https://www.postgresql.org/message-id/flat/6d2442d1-84a2-36ef-e014-b6d1ece8a139%40postgresql.org
1 parent 5ed4b12 commit e446cde

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/src/sgml/stylesheet-html-common.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- Parameters -->
1515
<xsl:param name="make.valid.html" select="1"></xsl:param>
1616
<xsl:param name="generate.id.attributes" select="1"></xsl:param>
17-
<xsl:param name="ignore.image.scaling" select="1"/>
17+
<xsl:param name="make.graphic.viewport" select="0"/>
1818
<xsl:param name="link.mailto.url">pgsql-docs@lists.postgresql.org</xsl:param>
1919
<xsl:param name="toc.max.depth">2</xsl:param>
2020

doc/src/sgml/stylesheet.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,10 @@ var { font-family: monospace; font-style: italic; }
102102
acronym { font-style: inherit; }
103103

104104
.option { white-space: nowrap; }
105+
106+
/* make images not too wide on larger screens */
107+
@media (min-width: 800px) {
108+
.mediaobject {
109+
width: 75%;
110+
}
111+
}

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