I am using the marvin theme. I would like to make the background dark and have all of the main text light. I see how to change the link colors..but not the main text. How do I do that?

Comments

Heine’s picture

Themes\Chameleon\Marvin has a style.css in it. There you can change the colors anyway you want:

body {
  background: #fff url(druplicon-watermark.png) no-repeat top right;
  font-family: arial, helvetica, sans-serif;
}

If you change #fff to #000, you'll have a very dark background. Foreground can be set with color: #fff;

See also:
CSS introduction
CSS & Colors

naeruj’s picture

I have figured out how to change the background color..it's the main font color I can't change. I tried putting 'foreground' in my code and it still doesnt work:
body {
background: #CCCC99 url(druplicon-watermark.png) no-repeat top right;
font-family: arial, helvetica, sans-serif;
foreground: #FFFFF;

}

Is foreground the main font color?

Heine’s picture

No - foreground: should be color:

There are more elements in the stylesheet with color attributes, so you may want to look at those too.

Good luck

You may like the CSS Cheatsheet.

naeruj’s picture

Thanks for your replies.
This is how I have it now:

body {
background: #CCCC99 url(druplicon-watermark.png) no-repeat top right;
font-family: arial, helvetica, sans-serif;
color: #FFFFF;

}

However, it's still not changing my font white.

Here is the link to the site I'm working on: www.inafunk.com

Heine’s picture

The marvin theme has multiple boxes; look at the divs in the html output. To style the box content in node you have to set properties of node content. For white this means adding color: #FFFFFF; (or color: white;)

.node .content {
  clear: both;
  padding-left: 1em;
  color: #FFFFFF;
}

BTW: I don't think font-color is a valid selector.

naeruj’s picture

Thank you so much! I have almost everything changed.
The only thing I cant find is how to change the color of the font of the date and time under each post. Do you know which selector that is?

Heine’s picture

You mean the sentence 'By CountFunkula at 2005-10-21 16:13' I presume? That would be .links

Greets,

Heine

naeruj’s picture

By CountFunkula at 2005-10-21 16:16

The Countfunkula part is a link but the date and time are not. Do I still need to change it in links?

Heine’s picture

Yes; it's part of the div with class = link (check in the source of the page)

naeruj’s picture

Thanks again, for all of your help.
One last question...(i hope).
The only font now that I've been unable to change the color on is the font in the settings page in themes. http://inafunk.com/main/index.php?q=admin/themes/settings/marvin
Any idea on where I can change this?

Actually, I cant see any of the regular text in the admin at all. It's all still black. I can see links, but no text.

naeruj’s picture

Can anyone help me with this last question?
I'm changing the background color in the Marvin theme to black..so I need to change the font color to white. I have it all changed in the .css file except for the admin section. Can someone tell me how to change the font color in the admin section?

Heine’s picture

Hi naeruj,

Do you mean the admin menu or the content in the pages? I don't use this theme. Can you send me the HTML pages from the admin section you want to style? Go to my profile and use the contact tab.

Greets,

Heine

naeruj’s picture

It's not letting me send or post the html b/c it says suspcious data. What do I do?