No I believe this is a major issue in web2py css structure.
I believe web2py css should not be globally changing attributes of standard
html tags.
It causes these kinds of rendering problems when one tries to use some
standard web components such as a calendar.
For example, standard web2py.css interferes with tags used in the
rainforest popup calendar.
Perhaps all of the login widgets and so on in web2py should be changed to
use specific classes to get their css attributes.
To get the rainforest calendar to render properly, I made this experiment:
In layout.html I had to do this
response.files.append(URL('static','css/web2py_lean.css')) # standard
web2py.css interferes with tags used in rainforest popup calendar
#response.files.append(URL('static','css/bootstrap.min.css')) <---
commented out
where in web2py_lean.css I deleted all the global tag changes at the top of
the file such as
a {text-decoration:none; white-space:nowrap}
a:hover {text-decoration:underline}
a.button {text-decoration:none}
h1,h2,h3,h4,h5,h6 {margin:0.5em 0 0.25em 0; display:block;
font-family:Helvetica}
h1 {font-size:4.00em}
h2 {font-size:3.00em}
h3 {font-size:2.00em}
h4 {font-size:1.50em}
h5 {font-size:1.25em}
h6 {font-size:1.12em}
th,label {font-weight:bold; white-space:nowrap;}
td,th {text-align:left; padding:2px 5px 2px 5px}
th {vertical-align:middle; border-right:1px solid white}
td {vertical-align:top}
form table tr td label {text-align:left}
p,table,ol,ul {padding:0; margin: 0.75em 0}
p {text-align:justify}
ol, ul {list-style-position:outside; margin-left:2em}
li {margin-bottom:0.5em}
span,input,select,textarea,button,label,a {display:inline}
img {border:0}
blockquote,blockquote p,p blockquote {
font-style:italic; margin:0.5em 30px 0.5em 30px; font-size:0.9em}
i,em {font-style:italic}
strong {font-weight:bold}
small {font-size:0.8em}
code {font-family:Courier}
textarea {width:100%}
video {width:400px}
audio {width:200px}
input[type=text],input[type=password],
On Wednesday, March 20, 2013 8:23:56 AM UTC-5, Anthony wrote:
>
> You can just use your simple layout and then include whatever you need
> from web2py (e.g., web2py.css, etc.). You may need to edit the web2py CSS
> files (or copy the parts you need into your own CSS files) if you only need
> some of the styling (e.g., for the grid).
>
> Anthony
>
> On Wednesday, March 20, 2013 8:53:50 AM UTC-4, 黄祥 wrote:
>>
>> already included in head (copy from layout.html) :
>> <script src="{{=URL('static','js/modernizr.custom.js')}}"></script>
>>
>> <!-- include stylesheets -->
>> {{
>> response.files.append(URL('static','css/web2py.css'))
>> response.files.append(URL('static','css/bootstrap.min.css'))
>> response.files.append(URL('static','css/bootstrap-responsive.min.css'))
>> response.files.append(URL('static','css/web2py_bootstrap.css'))
>> }}
>>
>> {{include 'web2py_ajax.html'}}
>>
>> it's seems it was my css that cause an error. i create my simple css
>> layout through http://www.cssportal.com
>> is there any way to easily create simple layout for web2py?
>>
>> thank you so much for your detail explaination, anthony
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.