- This topic has 7 replies, 3 voices, and was last updated 11 years, 2 months ago by
Tom.
-
AuthorPosts
-
December 11, 2014 at 2:53 am #53748
Bob
Hi there
I’ve had a request to round the edges of the boxes around the navigation, but I can’t seem to get it to work. I think it’s the
border-radiuscommand (or its webkit etc variants), but I am not surei) if this is the right track
ii) if so, which classes in the child CSS to amend. I’ve played with the below, but to no effect.Can this be done?
Best,
/* attempting to round the edges of the nav bar*/ .main-navigation ul a li { border-radius: 25px; -moz-border-radius: 10px; -webkit-border-radius: 10px; } .inside-navigation { border-radius: 25px; }December 11, 2014 at 11:28 am #53826Tom
Lead DeveloperLead DeveloperYou’re on the right track.
The first piece of code is this:
.main-navigation { -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px; }That would be it, except that now we have to round only the left side of the first menu item.
.main-navigation .menu li:first-child a { -webkit-border-top-left-radius: 15px; -webkit-border-bottom-left-radius: 15px; -moz-border-radius-topleft: 15px; -moz-border-radius-bottomleft: 15px; border-top-left-radius: 15px; border-bottom-left-radius: 15px; }That should do it.
Let me know 🙂
December 13, 2014 at 2:49 am #54349Bob
Great, thanks. I played around a bit and got it to work how <i>the boss</i> wanted it, including on the hover lists and search. I didn’t seem to need the first straight “.main-navigation…” part and anyways, this made the left and right edges rounded, which wasn’t required. So all good!
There’s always one more question of course… I can’t find the CSS in style.css for the secondary nav (albeit I am editing a custom/child css), which I have added after upgrading. Could you tell me the class name(s) of the secondary nav?
Cheers,
December 13, 2014 at 2:50 am #54350Bob
oops, that should have been for <i>, showing my age perhaps.
December 13, 2014 at 8:46 am #54445Ziggs Stardust
I had a look at mine with Chrome Inspector. It is showing as a class called .secondary-navigation
Hope this helps.
Ziggs
December 13, 2014 at 10:04 am #54450Tom
Lead DeveloperLead Developer.secondary-navigation is correct – thanks Ziggs! 🙂
December 13, 2014 at 2:36 pm #54483Bob
Got it, thanks. I still can’t see it in the main css file, but did see it there in the inspector… have changed and all looks good. Thanks!
December 14, 2014 at 9:20 am #54620Tom
Lead DeveloperLead DeveloperHi Bob,
That’s because the Secondary Nav add-on has its own CSS file 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.