Re: Responsive images in pgweb docs

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Responsive images in pgweb docs
Date: 2019-04-01 14:35:10
Message-ID: 8b7a73f8-920f-49bf-42f6-4761cddb4107@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On 4/1/19 8:22 AM, Peter Eisentraut wrote:
> On 2019-04-01 13:23, Jonathan S. Katz wrote:
>>> Image scaling is currently intentionally disabled for the HTML output
>>> (see ignore.image.scaling in stylesheet-html-common.xsl). But if we
>>> turn it on, then the images will automatically be huge if you have large
>>> screen. Is that better?
>>
>> Yes - we can control how much of the screen the image will take up with
>> the Bootstrap grid CSS classes, which is what the patch on the pgweb
>> side does.
>
> How do you do it outside of Bootstrap?

Effectively you're adjusting the width of the container, in this case,
as a percentage.

So borrowing from upthread, Bootstrap divides your viewport into 12
columns. In the "large screen" format, I specified for the image to load
within 8 of those columns (col-xl-8) which is equiv to a width of 75% of
the viewport.

Jonathan

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2019-04-02 01:52:48 Re: bgwriter_lru_multiplier maximum value
Previous Message Chris Wilson 2019-04-01 14:09:39 Re: bgwriter_lru_multiplier maximum value