Font size when embeded in Drupal

Yazon

Joined: 2004-08-10
Posts: 80
Posted: Tue, 2006-01-24 22:46

Hi all
I've got G2 2.0.2 running on Drupal 4.7-beta-3. Everything is running good. However, default G2 fonts look normal in standalone mode (if you navigate to g2 install directly), but look very small when embeded in drupal.
I've tried adjusting the font size in theme.ccs, but when it looks good in drupal - it becomes too big for standalone mode (i want direct access to g2 and through drupal).

Is there any way to make the font look the same in both cases?

thanks

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sat, 2006-01-28 21:50

define the new font sizes in drupal's css file like so {

.gbSomething {
font-size: 1.6em !important;
}

the important will tell the browser to use that one, and since its in the drupal CSS it will only show up for gallery inside of drupal.

 
Yazon

Joined: 2004-08-10
Posts: 80
Posted: Sun, 2006-01-29 01:10

Thanks for the tip, but for code-challenged can you clear it up a bit?

.dbSomething (<-- is it supposed to say "something", or do i need so put something else instaed of it?)

1.6em <-- is that a font size? - sorry, but i have never seen it written like that.

thanks a lot for the tip ckdake!

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sun, 2006-01-29 16:39

the something is what you need to replace. Just use the word from the gallery css file and paste it into the drupal one. 1.6em is a font size, but its just an example, use whatever font size you like. The main point is copy/paste the css that you already figured out into the drupal css file and add the !important.