First and foremost, great to see someone has decided to maintain this fantastic module.
Having set up this module on a site I have some questions on how to theme it in CSS.
The following are some questions I have, which I hope someone with better knowledge of CSS and/or this module will be able to assist with:
- Different background color for headers - All headers appear do not have differentiating CSS classes (h3.ui-accordion-header). I want to alternate the background colors. Is there any way to have "odd"/"even" classes?
- Remove Header Link - Is there any way to not link the headers?
- Child Item CSS - I would like to apply a:hover text underline effect but am able to do so. Is this even possible here
Appreciate any and all help anyone cares to share.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | accordion-ftp.png | 55.59 KB | efc84 |
Comments
Comment #1
solotandem commentedRegarding your questions:
Anyone with a patch?
Comment #2
sarhansg commentedThanks for your reply.
I figured out what was wrong with point 3. The site uses Cufon (http://drupal.org/project/cufon) for the accordion links. The 6.x version of the module has some issues with the hover state. Trying to find a workaround for that. Guess I'll have to live with the header link.
How do I apply a zebra class to the accordion menu? Do I need to modify the tpl in this instance (http://drupal.org/node/213711)? Perhaps the maintainer could consider adding odd, even, first, last classes to simplify the process for users.
Comment #3
sarhansg commentedHave moved on the Dynamic Font Rendering module (). Didn't quite like how Cufon rendered fonts.
Still can't figure out how to apply zebra class to the accordion menu. It would really be helpful if different classes were included to make styling easier.
Comment #4
efc84 commentedHi, i'm new to drupal but would also like to be able to change background colours, have first sidebar menu & second side menu different colours etc. When i go into the FTP and try and find a css file there is not anything present? (See attachment) Are the style sheets for the accordion menu saved elsewhere?
Comment #5
solotandem commentedThis project does not declare any style sheets. Instead, the CSS files in your custom theme and/or other existing modules (e.g. core modules) are controlling the display.
Arguably the best way to find out is to use the FireBug extension in FireFox to inspect the CSS. If you are not familiar with this, then do a web search and you should find plenty of information. Or, get on a Drupal IRC channel and ask for help.
Comment #6
kim_charest commentedHi...
As efc84 mentionned, I'm trying to make some changes in the accordion menu display (i.e. I want to add a transparency effect). This is, when I change my custom theme style sheet, it changes the container but not the actual accordion. Can someone help? How is it possible to customize the menu if there aren't CSS sheets? Sorry, newbe here. Feel free to refer me to some external info.
Thanks a lot in advance!
Kim
Comment #7
kim_charest commentedSo just to post a follow up here, I was able indeed to add some css to my theme's style sheet to customize the links and appearence of the content. The only aspect I don't know where to start is the actual accordion background color. Even though I tried to specify a background color in various ways, I'm unable to make any changes directly on the accordion's color.
Any clue?
Thanks! :)
Comment #8
efc84 commentedHi, i have managed to change the colour/style of the menu by using this link
http://jqueryui.com/themeroller/
You then download the modified menu and its just a case of replacing the jquery.ui.theme.css file which can be found in /drupal-7.8/misc/ui and then the new images /drupal-7.8/misc/ui/images. That should work but would be best to back things up if anything goes wrong!
Comment #9
sarhansg commentedCSS can do most of what kim_charest, efc84 and solotandem are requesting. My issue still remains where there are no first/last, odd/even classes provided for easier and better theming. Hopefully the next iteration of this module provides this functionality.
Comment #10
solotandem commentedImplemented in this commit and this commit.
Please grab the latest dev release (created after this comment) or commit to 6.x branch, test, and report back.