I don't get why Javascript would be needed for nested menus.
http://www.grc.com/menudemo.htm 

GRC's pure CSS menus work great without javascripts.

On Friday, May 25, 2012 1:06:38 PM UTC-7, Massimo Di Pierro wrote:
>
> I managed to fix it. Now the carets and class are added automatically via 
> JS and there is no need to tweak menus.
>
> Cons: nested menus break if JS disabled.
>
> Anyway, I feel this is a big step closer to web2py 2.0.
>
> massimo
>
> On Friday, 25 May 2012 14:53:24 UTC-5, Massimo Di Pierro wrote:
>>
>> I added this trunk but with one change. Instead of the attached menu.py 
>> (which is not backward compatible), I added some jQuery code layout.html 
>> that attempts to reproduce the same effect. It works something is wrong 
>> with alignment and I cannot figure out what. Can you take a look?
>>
>> Massimo
>>
>> On Thursday, 24 May 2012 18:16:37 UTC-5, Paolo Caruccio wrote:
>>>
>>> Andrew, I played a bit on this subject. Please replace the below files 
>>> (before backup them) with attached ones:
>>>
>>> 1. welcome > models > menu.py (check the changes in response.menu)
>>> 2. welcome > views > layout.html (heavily changed)
>>> 3. welcome > static > css > web2py.css (find the comment "bootswatch" to 
>>> see the changes)
>>>
>>> Now, if you download a css from bootswatch.com or built it from  
>>> http://stylebootstrap.info, replacing default one you shouldn't have 
>>> problems. For the menu I used one of solutions that Anthony proposed.
>>>
>>> In attachement also some images to show how several themes are rendered 
>>> in several modern browsers.
>>>
>>> Last notes:
>>> a) this is an experiment. You have to obtain official changes from 
>>> web2py developers
>>> b) my enviroment: windows 7, python 2.7.2, web2py version 2.0.00 
>>> (2012-05-23 09:27:57) dev
>>>
>>>
>>> Il giorno lunedì 21 maggio 2012 20:42:38 UTC+2, Andrew ha scritto:
>>>>
>>>> Hello,
>>>> I'm trying a few bootswatch themes over a new "welcome" app.    see 
>>>> http://bootswatch.com/
>>>> The first thing I noticed is that the menus don't display correctly.  
>>>>
>>>> Is anyone playing with this ?  Seeing that web2py uses bootstrap, it 
>>>> would be great to drop in a bootswatch theme.
>>>>
>>>>

Reply via email to