Active Submenu items changes header color

Active Submenu items changes header color was created by mmoltzan

Posted 11 years 2 months ago #9045
Hi Ced!

Great tools B)

Two Items -

1.
I'm using J 3.0.3 and AMCK 1.8.1

my site

Found this code posted in the forums.
Code:
/* style for all anchors active */ <?php echo $id; ?> li a:hover, <?php echo $id; ?> li.active > a { color:#ff3333; }

I updated the mod_accordion_css.php to change the color of hover and active links in the sub menu.(see attached)

Now the accordion headers background and text change unexpectedly when I click on a sub-menu link and it becomes active.

I need the header to not change when a sub-menu link clicked and is active.

Also,

2.
Same site.

I'm using MMCK 7.0.9 for the Main Nav.

I've created a separate "red" menu in Joomla for the AMCK mod and the "main" hooks to MMCK.

When I open the menu manager, open "red" menu, open a menu to edit - under advanced options I see all the Maximenuck config stuff - parameters, Normal, Hover, Active, Submenu styles. But they do not effect the Accordion menu? Is this a bug?

Thanks!
Last Edit:11 years 2 months ago by mmoltzan
Last edit: 11 years 2 months ago by mmoltzan. Reason: add php.txt file

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Active Submenu items changes header color

Posted 11 years 2 months ago #9056
Hi
1/ I don't understand what you want to do.if you set a color in css of course it will affect the menu ...
2/ the maximenu params are not designed to have any effect on the accordion menu, I really don't understand your request :(

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by mmoltzan on topic Active Submenu items changes header color

Posted 11 years 2 months ago #9070
for #1

go to the site and click on the red accordion to open sub-menu.

click a sub- menu items.

What does the background on the parent change from the gradient to sold red?

Thanks

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Active Submenu items changes header color

Posted 11 years 2 months ago #9076
the gradient is still there, but applied to the <li> parent tag. Then when deployed the <li> block is bigger and the gradient fills the whle surface so at the top beginning you only see the starting color.
You don't really see it because you have put the submenu background as white
to avoid this you should replace the gardient from the <li> tag with a gradient on the <a> tag
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by mmoltzan on topic Active Submenu items changes header color

Posted 11 years 2 months ago #9144
Thank you Ced, I understand.

Last question - How can I make the red bar…text to stay white with drop shadow all the time and not change to red when an sub-menu item is active?

Thanks for your help!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Active Submenu items changes header color

Posted 11 years 2 months ago #9153
because in
aenpi.com/modules/mod_accordeonck/themes..._accordeonck_css.php
line 58 on ul#accordeonck105 li.hover, ul#accordeonck105 li.active > a
you have a color: #FF3333;

you should change the line into :
Code:
ul#accordeonck105 li li.hover, ul#accordeonck105 li li.active > a

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.654 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1154 guests and one member online