gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
10 stars 6 forks source link

Increase font size on occurrence and literature pages #192

Closed jenningsdt closed 2 years ago

jenningsdt commented 2 years ago

The font size of the search results on the Occurrences, Literature from, and Literature about pages appears small. What is the best way to increase the font size? I am attaching a screenshot of the Literature from for reference -- note the size difference between the various menu items and the search results. Thank you! image

MortenHofft commented 2 years ago

There is a theme definition in config.js. It allows you to change the font size fontSize: '16px' https://github.com/gbif/hp-north-america/commit/ef660b875199572a5f7b7a4e312c726aab59c9a4

It isn't documented anywhere and I also see that the value isn't used everywhere, so some labels will still appear small. I haven't made all css inherit from the theme variables yet.

I've changed the font-size for north american portal to 16px as an example. 16 is the size of your menu,.

MortenHofft commented 2 years ago

The size is small as a default for the data tables as I have often recieved the feedback that users want dense tables so that they can see as much as possible at a glance. Pretty UIs is almost always very spacious. Either way, changing the theme font size helps I think. If you find it insufficient then let me know, then I can see what else I can come up with. Thanks