Site logo

Archived topic

Menu

26 replies · Started by Anderson Ojope on March 7, 2018

Viewing posts 1–15 of 27

Hello!

I need to put the GP menu of this blog (https://goo.gl/Lhm21k) just like the main site (https://goo.gl/1yy649).

I already selected several elements via CSS and I can not do it.

Can you tell me what element to select?

The text should be normal, only the "button" should be tilted.

Try something like this:

.main-navigation li {
    transform: skewx(-20deg);
}
.main-navigation .main-nav ul li a {
    transform: skewx(35deg);
}

Add this as well:

.nav-float-right .inside-header .main-navigation {
    transform: skewx(-20deg);
}

Leo,

Many thanks for the help here.

One more detail. When HOVER, the background (button) is getting square, as in the image below:

http://prntscr.com/ipeca1

Can I keep the normal text and the background with the effect?

This would be the complete CSS, so you'll want to remove what you have so far:

@media (min-width: 768px) {
    .main-navigation .main-nav > ul > li:hover > a, 
    .main-navigation .main-nav > ul > li:focus > a, 
    .main-navigation .main-nav > ul > li.sfHover > a,
    .main-navigation .main-nav > ul > li[class*="current-menu-"] > a {
        background-color: transparent;
    }

    .main-navigation .main-nav > ul > li:hover, 
    .main-navigation .main-nav > ul > li:focus, 
    .main-navigation .main-nav > ul > li.sfHover {
        background-color: #fff;
    }

    .main-navigation {
        background-color: transparent;
    }

    .main-navigation .main-nav > ul > li,
    .main-navigation .main-nav > ul > li:hover, 
    .main-navigation .main-nav > ul > li:focus, 
    .main-navigation .main-nav > ul > li.sfHover {
        background-color: #1b3467;
    }

    .main-navigation .main-nav > ul > li {
        transform: skewx(-20deg);
    }

    .main-navigation .main-nav > ul > li > a {
        transform: skewx(20deg);
    }
}

We are almost there. :)

Finally, how do I leave the sub menu without this effect?

http://prntscr.com/iq3pyc

At MOBILE I would also like to leave without the effect.

Edited the CSS above :)

OK! Thank you very much.

But the sub menu still continues with the effect. How to leave it normal?

http://prntscr.com/iq8gjw

...

Ah, try adding this:

.main-navigation .main-nav .sub-menu {
    transform: skewx(20deg);
}
This archived topic is closed to new replies.