How to disable body: font-size: 100% style being added to the HTML Head tag?

duvien - March 13, 2008 - 23:34
Project:Text Size
Version:5.x-1.3.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Thanks for releasing this module. I've just tried it out and it seems that it adds:

<style type="text/css" media="screen, projection, tty, tv, print">
<!--
/* <![CDATA[ */
body {
  font-size: 100% !important;
}
/* ]]>*/
-->
</style>

to the HEAD tag. This makes my default site font very large. I've tried setting it to 10% but no change. Is there a way to disable adding the style to the HTML HEAD tag?

thanks,

#1

Christian Zwahlen - March 14, 2008 - 13:51

Set in: "admin/settings/textsize" under "Advanced settings" the "Text Size Normal" to a lower value.

#2

duvien - March 14, 2008 - 14:29

Thanks, i did that it's back to normal now. :)

I see on your demo you also have the ability to change the page colour? is this another one of your modules? Sorry for being off-topic but i just thought it was pretty neat to be able to apply this as well.

#3

Christian Zwahlen - March 15, 2008 - 10:35
Status:active» fixed

Yes, the Page Style module http://drupal.org/project/pagestyle

#4

Anonymous (not verified) - March 29, 2008 - 10:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

jmlane - April 22, 2008 - 17:24
Status:closed» active

I assume that this is due to how percentages applied to font size units varies from one case to another, so there may not be a perfect way to solve this issue in the module:

I think that, by default, the module's "normal size" value should be the exact font size of the original theme. At the moment, it seems to slightly increase the font size by default, for both Garland and Drupify themes (I did not test many).

Any thoughts?

#6

silurius - July 19, 2008 - 00:55

Here I was thinking I had somehow screwed up font sizes on my site, since I was still developing my theme. I agree with jmlane and think that "normal" should conform with the active theme's current status quo. Or alternatively, at least make it a little clearer that the module redefines "normal". (For the record, I'm using a Zen subtheme).

#7

Christian Zwahlen - December 1, 2008 - 14:34

I do not agree with jmlane. The "Textsize Normal" have to be "100%" or we made the user confuse (with a Textsize Normal of example "98%" ???). The theme must have set the textisize in "em"! Body textsize of example 98% and the content of 95% is not a clear way to handle the textsize. Because the content textize is not 95% of real normal (body) textsize (100%). So the best way is a body textize in "%" and the content in "em".

We can disucuss about the increase and decrease steps.

 
 

Drupal is a registered trademark of Dries Buytaert.