What is the best way to over-ride the CSS for the Superfish modules?

I added code into my main CSS sheet instead of modifying the superfish.css file directly. However, I think it would be a good addition if there was a way to upload a CSS file or tell the module to use a particular CSS file for the more advanced user.

I took a guess on over-riding and I was right, but the tinkering Drupal hobbyist. I'll look at the code in the next while if this isn't that simple and see if I can lend a hand.

Comments

mehrpadin’s picture

Hey Ron,

I think the best way would be using any of those CSS' under /css/extra as reference, much like I did for mpFREE theme; You're right I need to prepare a documentation or something like that.

Thanks!

v8powerage’s picture

Hi Mehrpadin
I'd like to have sub menu in navbox mode (last example in Your demo page) centered but I can't get it right, since there's float:left and when I delete it everything messes up. Please advice how can I center the sub-menu?

mehrpadin’s picture

Hey Peter,

In fact, Joel Birch is supposed to provide support for the jQuery Superfish plugin, I'm just responsible for the Drupal module that integrates it with the Drupal menu system, however searching "center align superfish" in Google I've found these:

http://old.nabble.com/superfish-navbar---how-do-I-center-the-whole-bar--...
http://drupal.org/node/308523

hmm, thinking more, perhaps I should add an option "Center align menus" to the Superfish block settings.. yeah, added to my list.

mehrpadin’s picture

Status: Active » Closed (fixed)

Ron,

Just for the record: The requested feature added in v1.4 .

wickwood’s picture

Version: 6.x-1.3 » 7.x-1.9-beta4
Category: feature » support
Status: Closed (fixed) » Active

Is the "center align superfish" feature in the 7.x-1.9 version of this module? If so, where? I can't find an configuration to create left, right or centered menus when I configure the superfish block.

Thanks for your help in advance!
Steve

mehrpadin’s picture

Hey Steve,

You shouldn't post comments in a closed issue, http://drupal.org/node/156119 , you were lucky I found this!

Anyway, in the #4 I was referring to this actually

... it would be a good addition if there was a way to upload a CSS file or tell the module to use a particular CSS file for the more advanced user.

and not the centre-aligned menus thing, however reading this again after over a year I remembered that I had this in my to-dos to design a centre-aligned style :) so, I'll design a centre-aligned style right away, based on the Simple style, and I'll send it to you, how does it sound? it'll be also included in the Superfish library v1.2-beta2.

mehrpadin’s picture

Status: Active » Closed (works as designed)