Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite446cde

Browse files
committed
Better scaling of images in HTML output
Turn on the previously disabled automatic scaling of images in HTMLoutput. 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 viewBoxstill 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 parent5ed4b12 commite446cde

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:paramname="make.valid.html"select="1"></xsl:param>
1616
<xsl:paramname="generate.id.attributes"select="1"></xsl:param>
17-
<xsl:paramname="ignore.image.scaling"select="1"/>
17+
<xsl:paramname="make.graphic.viewport"select="0"/>
1818
<xsl:paramname="link.mailto.url">pgsql-docs@lists.postgresql.org</xsl:param>
1919
<xsl:paramname="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)

[8]ページ先頭

©2009-2025 Movatter.jp