tdwg / website

TDWG website
https://www.tdwg.org
Creative Commons Attribution 4.0 International
16 stars 55 forks source link

Add Print Stylesheet #524

Open ben-norton opened 11 months ago

ben-norton commented 11 months ago

If it's not too much trouble, please add the following printer-friendly stylesheet to the header of the template. Snippet: The path can be relative by making a copy of the stylesheet or absolute to the external sheet. Stylesheet: https://tdwg.github.io/ltc/static/custom/css/print.css

Thanks

stanblum commented 11 months ago

Hi Ben, I think that's something that it would be best for @peterdesmet to do. I think testing the integration locally would wise, and I'm not set up to do that.

ben-norton commented 11 months ago

Normally, I would suggest the wiser route, but in this case, I don't think it's necessary. Print stylesheets are supposed to be very simple and globally applicable. They do things like set margins, remove images, and add URLs after link tags. I've been using the same starter print CSS for more than a decade. Its totally your call, but I thought this was something worth mentioning.

stanblum commented 11 months ago

You might well be right, but I'm chicken, and just a lowly content editor. So, unless you're needing something urgently, I'd rather wait for @peterdesmet to do it. If he doesn't do it in 1-2 days, I'll see if I can raise him directly.

ben-norton commented 11 months ago

Deal.

On Wed, Nov 1, 2023, 2:09 PM Stan Blum @.***> wrote:

You might well be right, but I'm chicken, and just a lowly content editor. So, unless you're needing something urgently, I'd rather wait for @peterdesmet https://github.com/peterdesmet to do it. If he doesn't do it in 1-2 days, I'll see if I can raise him directly.

— Reply to this email directly, view it on GitHub https://github.com/tdwg/website/issues/524#issuecomment-1789422341, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABX55QBJIJILX7T6VANVULLYCKF6NAVCNFSM6AAAAAA6ZNQON6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGQZDEMZUGE . You are receiving this because you authored the thread.Message ID: @.***>

peterdesmet commented 11 months ago

The most stable approach would be to integrate a print.css in the Petridish theme that underpins all TDWG websites (and some other sites). Some steps were already taken (navbar and footer won't display on print for example). I'll have a look at this.

peterdesmet commented 11 months ago

See https://github.com/peterdesmet/petridish/issues/95 for related issue

ben-norton commented 11 months ago

Awesome. The stylesheet linked above is currently being used for the LtC TDWG pages (see below). Migration to the wider TDWG site should be straightforward without the need to make any major changes to the css. https://tdwg.github.io/ltc/

Also, Peter, I've been meaning to show you a python project that automatically generates standards doc webpages from the same set of csv files that Steve uses. https://github.com/ben-norton/stadocgen I'm using it to generate the LtC pages with plans to generalize its use. More to come.