-
AuthorPosts
-
April 2, 2013 at 12:01 pm #186385
Hello,
in our use of the awesome Argo theme we needed to change the color of the main navigation, too. Obviously this is not intended.
Anyways, it would be rather simple to make this very easy by adding some respective variables to the variables.less and use them in the navigation.less and navigtaion-repsonsive.less. Especially in the latter less-file there is #000 and @black hard coded, which makes it almost impossible to recolor the mobile dropdown.To make it somehow work in our argo adaption http://www.polymorphart.net/ we added the following code to the template.less:
@media (max-width: @navbarCollapseWidth) {.t3-megamenu li.dropdown .dropdown, .t3-megamenu li.dropdown .mega-inner{
background: @Black;
}
}#t3-mainnav {
background:url("../polymorphart/images/background.png") no-repeat 0px center #c62d58
}It would be cool, if it would be possible to change colors of backgrounds/fonts/border of the dropdown in the mobile main navigation, too. – Would this be possible?
Thanks for any feedback and keep going with the excellent T3v3 framework.
Kind regards,
Bernhard
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 2, 2013 at 3:56 pm #488602If I’m understanding your question correctly, you want to be able to change the background color of the mega-menu dropdowns?
If so, look to file —> /t3-assets/dev/polymorphart/templates.ja_argo.less.navigation-core.less.css
at line 51:
.dropdown-menu {
background-clip: padding-box;
background-color: #FFFFFF
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0 0 0 0;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
display: none;
float: left;
left: 0;
list-style: none outside none;
margin: 0;
min-width: 160px;
padding: 0;
position: absolute;
top: 100%;
z-index: 1000;
}Modify the background-color property to whatever color you like.
Mind you, you may also need to play around with the menu item text color as well – depending on the background color you choose.
Hope That Helps
🙂
April 2, 2013 at 4:49 pm #488615Hi Tom,
thanks for your response.
I tried your solution. I do get black dropdowns in the main navigation – and mobile looks like this screenshot.
Is there a way to change jsut the color of mobile dropdown – it shouldn’t be black – if possible.
Thanks for any hint,
Bernhard
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
April 2, 2013 at 4:53 pm #488617Try file path –> /t3-assets/dev/polymorphart/templates.ja_argo.less.megamenu.less.css
at line 196:
.t3-megamenu .mega-nav > li a, .t3-megamenu .dropdown-menu .mega-nav > li a {
padding: 12.5px 0;
}add your background-color property and check the results
April 2, 2013 at 5:10 pm #488624AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 2 voices, and was last updated by cappu 11 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum