Seperating css for home page and list elements

Events happening in the community are now at Drupal community events on www.drupal.org.
pixate's picture

I'm trying to change the color of the following -

.views-field-field-teaser-value p {
color: #fff;

margin-bottom: 0;
font-size: .9em;
line-height: 1.4em;
}

But this element controls the values of both elements on the homepage and on index pages with teaser content included.

I am trying to override the color value so that it displays #fff on the homepage and #000 on the index pages.

Any ideas.

I'm guessing this is very simple and I will feel silly very soon. But I'm still trying to get my head round the sub themeing config of version 2.0...

Comments

I assume that you have some

resveld's picture

I assume that you have some blocks/pages with your views.

In that case, install firebug for Firefox for example and see what the exact value is.
Put that in the css file and you should be ok

Thanks for replying

pixate's picture

I ended up applying the following which worked a treat -

body.front-page .views-field-field-teaser-value p {}

body.not-front .views-field-field-teaser-value p {}

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week