By nicholascarrigg on
Changing the font color seems to work in my style.css for this View:
.sidepane {
background-color:#333;
padding: 5px 5px 0 5px;
}
.sidepane p {
color:#ffffff
}But I can't get the links to change within the View. When I add this to the style.css, nothing really happens:
.sidepane a:link {
text-decoration: none;
color:#ddd
}
.sidepane a:visited {
text-decoration: none;
color:999
}
.sidepane a:hover {
text-decoration: none;
color:fff
}Any advice is much appreciated. Fairly new to css.
Comments
=-=
views tends to ouput id's and classes which can you can use to build a compound css definition. That said, without seeing the page in question in order to take a look at the HTML and the CSS already in use it's difficult to be specific.
My Theme CSS
Here's the style sheet I'm working with. I've decided to customize the panel pane instead of the view within it, but I'm still running into the same problem. I don't know how to override the theme so that I can customize the headings, links, etc. for a particular pane. Right now, all I can customize is the background for the class, which I've specified as "sidepane." Thanks for any input.
=-=
in future when you want to share the entirety of the contents of a file, please use pastebin.com and link to the paste.
That said your stylesheet won't aid in this situation since the declarations for panels/views and other contrib modules aren't typically included by default in a theme style.css file. I highly suggest utilzing firebug for firefox or chromes developer tools to inspect the elements in question and provide for you the ability to edit css in real time. The HTML being rendered is equally as important as the CSS. As without the HTML, the CSS has nothing to work with.
http://london2011.drupal.org/conference/sessions/forensic-theming-key-te... will aid in better understanding how to work with HTML and CSS in drupal from a forensic perspective. Else, you will need to provide a link to the site.
Thanks & Update: Panels built-in feature
I appreciate the links. Sorry about the long post.
I realized that pane styles can be customized right in the panels module without even touching code. This solves a lot of my problems, but the options are limited, so I can't change the look of my links.
I'm going to edit what I can and then will post again with the info you requested if I can't figure it out. Thanks again.