jQuery('.auth_navbar').each(function(){
jQuery(this)
.addClass('btn-group')
.children('a').addClass('btn')
});<div id="navbar">{{='auth' in globals() and auth.navbar(separators=(' ',' | ',''))}}</div>#navbar{
padding-top:9px;
}
#navbar .auth_navbar, #navbar .auth_navbar a{
color:inherit;
//color:expression(this.parentNode.currentStyle['color']); /* ie7 doesn't support inherit */
}I don't get why Javascript would be needed for nested menus.GRC's pure CSS menus work great without javascripts.
Also, I tried updating an existing app with the latest CSS and layout updates (so that I could apply bootstrap / bootswatch). I can't get the drop down menus little "down triangle" to appear. I've updated evrything in the static folder, layout.html, and web2py_ajax.html, and they still don't appear. I'm sure it has something to do with the CSS files, but I have updated them all. What have I missed? I could easily just start from a new app (from welcome).but I would like to understand how this is happening.
I have issue with dropdown menu when the main menu is a link too.
If I click on the main menu than that menu is activated and I can't access the items below it with any means :(
Adding dropdowns and dropups to the nav is super simple, but does require the use of our javascript plugin.
- <ul class="nav">
- <li class="dropdown">
- <a href="#"
- class="dropdown-toggle"
- data-toggle="dropdown">
- Account
- <b class="caret"></b>
- </a>
- <ul class="dropdown-menu">
- ...
- </ul>
- </li>
- </ul>
.dropdown-menu ul{display:block;}LightDot,try to append in static/css/bootswatch.css this rule:.dropdown-menu ul{display:block;}
I spotted the issue some days ago, but I didn't propose a patch because web2py still has bs 2.0.2
Let me know if the fix works for you also.
Il giorno domenica 17 giugno 2012 00:27:18 UTC+2, LightDot ha scritto:
Massimo,
"bootswatch.css" overwrites some css rules of "bootstrap.min.css" and "web2py.css" to allow layout to comply with bootstrap twitter theme (and consequently with bootswatch themes derived from it)."bootswatch.css" is a web2py file like "web2py.css", therefore we can edit it. Maybe we should change its name in "bootswatch4w2p.css" to remove any doubt.Having two file "bootswatch.css" and "web2py.css" is useful: if someone doesn't like bootstrap and he want apply its own theme, he has only to remove "bootstrap.min.css" and "bootswatch.css" to obtain basic web2py css themeInstead "bootstrap.min.css" (twitter and bootswatch have the same name) contains the original bootstrap css theme (from twitter site) or modified one (from bootswatch site).