I'm not sure if this is a bug o a feature :P.

During some time I have been trying to override a CSS style assigned to a menu item...
Drupal themes seems to be fully CSS . And with out this line, i can't customize some of my styles.

With out this line (in MYTHEME.info):
stylesheets[all][] = system-menus.css
Styles in menus are overridden by drupal core system-menus.css
If i add this line (in MYTHEME.info):
stylesheets[all][] = system-menus.css
I'm able to override this properties.

Comments

prajaktam’s picture

Hello,
It is not a bug. It is a default drupal behaviour. If you want to override the system-menus.css then you can add your styling in the custom css file also. For eg: your-style.css.
Then include this file in the theme's info file.
stylesheets[all][] = your-style.css Or you can do it in a way you mentioned above.

Thanks
Prajakta

Tor Arne Thune’s picture

Status: Active » Closed (works as designed)
frizi_’s picture

The advice from prajaktam helped me to. I had to add stylesheets[all][] = system-menus.css in the .info file of my theme to change certain visual setting of the primary links menu.