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. >> >>