Content-Length: 259683 | pFad | http://github.com/postgrespro/postgres/commit/7dc78d8ef3e62f7e06d7767c63dcede048377b9a

A7 Add guidance on making documentation SVG images responsive · postgrespro/postgres@7dc78d8 · GitHub
Skip to content

Commit 7dc78d8

Browse files
committed
Add guidance on making documentation SVG images responsive
Recently added guidance on adding SVG images to the documentation sources lacks advice on making the images responsive when rendered in a variety of media types and viewports. Add some. Patch by Jonathan Katz with some editorialization by me. Author: Jonathan Katz Discussion: https://postgr.es/m/6358ae6f-7191-a02b-e7b5-68050636ae71@postgresql.org
1 parent cf3ff97 commit 7dc78d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/src/sgml/images/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ Notes:
5959
- The width should be set to something. This ensures that the image
6060
is scaled to fit the page in PDF output. (Other widths than 100%
6161
might be appropriate.)
62+
63+
- SVG images should be scalable as they will be rendered in a variety
64+
of places (web, PDF, etc.) as well as in different viewports
65+
(desktop, mobile, etc.). To help the images successfully scale,
66+
employ a "viewBox" attribute in the SVG tag. For example,
67+
to create an image with a default width and height of 400x300,
68+
you would use viewBox="0.00 0.00 400.00 300.00"

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/7dc78d8ef3e62f7e06d7767c63dcede048377b9a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy