Mega Menu Additional class

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Tue Mar 16, 2010 9:00 pm
Hello,

can i style different links on megamenu with "Additional class"? How it works?

Holger
User avatar
Senior Boarder

GK User
Wed Mar 17, 2010 8:12 pm
Any Ideas??

I wont on mainmenu (megamenu) different colors (mouse over) vor different links. is there a way with "additional class"?
User avatar
Senior Boarder

GK User
Thu Mar 18, 2010 11:59 pm
Yes, you can do it with that option. You have to use similar selectors as for normal menu item, but you have to add your class to selector to get individual styling
User avatar
Administrator

GK User
Fri Mar 19, 2010 4:43 pm
Thank you for answer! Can you give me a example please? What i whant to do is: For every Link in Mainmenu from Megamenu a special border-color for explore column.


Like This:
User avatar
Senior Boarder

GK User
Mon Mar 22, 2010 12:34 am
please try:
Code: Select all
.gk-megamenu .YOUR_CLASS .childcontent-inner-wrap{
   border:3px solid #000;
}
User avatar
Administrator

GK User
Mon Mar 22, 2010 11:58 pm
Hello Dziudek,

Thank you very mutch!! It works fine!! Cool!!

Next Idea:

mouse over effekt on submenü is in style1.css:

Code: Select all
.gk-megamenu ul.level1 li.mega a.mega { background:#484848 url('../images/style1/submenu_bg.png') no-repeat 0 top }


For Mega Menu Additional class i try:

Code: Select all
.gk-megamenu .YOUR_CLASS .ul.level1 li.mega a.mega { background:#484848 url('../images/style1/submenu_bg_RED.png') no-repeat 0 top }


This dont works. Have you an idear?
User avatar
Senior Boarder

GK User
Tue Mar 23, 2010 2:15 am
Hi

It should work fine your code, but you need to add !important rule and naturally need hover pseudo-class:

Code: Select all
.gk-megamenu .YOUR_CLASS .ul.level1 li.mega a.mega:hover { background:#484848 url('../images/style1/submenu_bg_RED.png') no-repeat 0 top!important; }


Cheers ;)
User avatar
Platinum Boarder

GK User
Tue Mar 23, 2010 5:30 pm
Thank you for your answer. This code dont works! But i hav a look in gk_stuff.css:
here i try this code:

Code: Select all
.gk-megamenu .YOUR_CLASS ul.level1 li.mega a.mega{border:0; color:#3b3b3b; font-weight:bold; display:block; height:25px; line-height:25px; padding:0 7px; font-size:65%; text-transform:uppercase; margin:5px 0 0 0; background:#484848 url('../images/style1/submenu_bg_RED.png') no-repeat 0 top}
.gk-megamenu .YOUR_CLASS ul.level1 li.mega a.mega:hover{background-position:right bottom; color:#fff}


This is the answer. It works fine!!

Next question: Mouse hover in mainmenu (in demo the links Joomla Stuff, Menu, Menu Item...) in differend colors (background img). Any idea?
User avatar
Senior Boarder

GK User
Tue Mar 23, 2010 7:35 pm
OK. For maouse over in mainmenu this lines in style1.css are importent. this change top border color (by mouse over):

.gk-megamenu>ul.level0>li:hover,
.gk-megamenu>ul.level0>li.active,
.gk_menu>li:hover,
.gk_menu>li.active,
.gk_menu>ul>li:hover,
.gk_menu>ul>li.active { border-top:1px solid #3a5676; }


I try:

Code: Select all
.gk-megamenu .YOUR_CLASS >ul.level0>li:hover,
.gk-megamenu>ul.level0>li.active,
.gk_menu>li:hover,
.gk_menu>li.active,
.gk_menu>ul>li:hover,
.gk_menu>ul>li.active { border-top:1px solid #ffffff; }


No way! This works for all by active. Is this the right way? Ideas?

example:
User avatar
Senior Boarder

GK User
Wed Mar 24, 2010 5:12 pm
Any ideas? It is very important for me.

regards, holger
User avatar
Senior Boarder

GK User
Wed Mar 24, 2010 6:07 pm
Try this code:

Code: Select all
.gk-megamenu ul.megamenu.level0 li.mega.YOUR_CLASS.haschild-over.over{
border-top: 3px solid #4B8DA5;
padding-top: 5px;}


So, with this code and with mouse-over "Menu" link this would the result.



The padding is to compensate the border.

Cheers
User avatar
Platinum Boarder

GK User
Wed Mar 24, 2010 6:50 pm
COOOOOL!! Thank you very mutch!It works!

Next: For "active" i try:

Code: Select all
.gk-megamenu ul.megamenu.level0 li.mega.YOUR_CLASS.li.active{
border-top: 3px solid #4B8DA5;
padding-top: 5px;}


Dont works. Cany you help me again?
User avatar
Senior Boarder

GK User
Wed Mar 24, 2010 7:57 pm
OK. I have a way that works:

Code: Select all
.gk-megamenu ul.megamenu.level0 li.mega.YOUR_CLASS.haschild.active{
border-top: 3px solid #4B8DA5;
padding-top: 5px;}


This works fine. But the problem is: I have a navigation (Module mod_mainmenu) on left1 too like a subnavigation. When i click on mainmenu top, the "haschild.active" works "over" and is afte click "active". When i click next on a link on seccond navigation (Module mad_mainmenu) on the left side, the link on Top is never active. (I hope you understand me ;-) english is not me best... sorry for that.)Where is here the Problem?

My site is local. I cant give you a link to it. Sorry.

Regards, Holger
User avatar
Senior Boarder

GK User
Wed Mar 24, 2010 8:03 pm
Hi again

For active menu, try like this:

Code: Select all
.gk-megamenu ul.megamenu.level0 li.mega.active.last.YOUR_CLASS{
border-top: 3px solid #4B8DA5;
padding-top: 5px;}


Cheers ;)
User avatar
Platinum Boarder

GK User
Wed Mar 24, 2010 8:12 pm
Hi again,

thank you for answer. Dont works. color change to "normal class".

This works:

Code: Select all
.gk-megamenu ul.megamenu.level0 li.mega.YOUR_CLASS.haschild.active{
border-top: 3px solid #4B8DA5;
padding-top: 5px;}


But the problem is: I have a navigation (Module mod_mainmenu) on left1 too like a subnavigation. When i click on mainmenu top, the "haschild.active" works "over" and is afte click "active". When i click next on a link on seccond navigation (Module mad_mainmenu) on the left side, the link on Top is never active. (I hope you understand me english is not me best... sorry for that.)Where is here the Problem?

Servus! (it is bavarian and means byby ;-)
User avatar
Senior Boarder


cron