Default Gallery Theme should include this

Feldon

Joined: 2007-01-15
Posts: 16
Posted: Sat, 2007-08-04 21:17

Just to make life easier in the case where Gallery2 is embedded in some other web-app, I would recommend including the following css code in the default gallery theme:

div#gallery { font-size: 1em; }

This should ensure that relatively-sized fonts don't go screwy when gallery is embedded.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2007-08-08 22:54

thanks for the tip. what's an example of CSS outside the gallery div that could result in undesirable font sizes for the gallery content?

 
Feldon

Joined: 2007-01-15
Posts: 16
Posted: Fri, 2007-08-10 03:48

I use the SMF to Gallery2 bridge in embedded mode. The SMF theme happens to use the code:

/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
 color: #000000;
 font-size: small;
 font-family: verdana, sans-serif;
}

This font-size directive then overrides several gallery2 font-size directives. Most notably in the Gallery2 themes that contain pop-up text boxes.