Re: [web2py] Re: class being inserted behind my back..!
I submitted an issue here: https://github.com/web2py/web2py/issues/1083 I think maybe in the past, other styles used to completely override the btn-default styles, so this wasn't a problem -- but it's a problem now. Anthony On Sunday, October 11, 2015 at 10:55:56 AM UTC-4, Edward Shave wrote: > > Thanks for that DenesL, > > I already worked out why the font was messy and suspected web2py was > adding the class but it's good that someone has confirmed the details. > > I came across this problem when cutting and pasting a demo from bootstrap > website so I assume their code is good. > > Adding a class like that seems an odd thing to do, especially as there is > no mention I can find in the documentation. > > If we are stuck with this behaviour for some good reason, then maybe the > text-shadow attribute could be amended at the same time as the class is > added? > > > > On Sun, Oct 11, 2015 at 2:23 PM, 'DenesL' via web2py-users < > web2py@googlegroups.com> wrote: > >> The btn-default class is added by web2py-bootstrap3.js via >> $('button', target).addClass('btn btn-default'); >> >> The "horrible" part comes from this bit in bootstrap-theme.min.css >> text-shadow: 0px 1px 0px white; >> >> Denes >> >> >> On Sunday, October 11, 2015 at 4:58:01 AM UTC-4, Edward Shave wrote: >>> >>> Nope, that's the whole thing running in a new simple application. >>> I did this so as to eliminate anything else in my code. >>> >>> The controller is simply... >>> >>> def index(): >>> return dict() >>> >>> >>> On Sunday, October 11, 2015 at 9:51:16 AM UTC+1, Leonel Câmara wrote: Are you getting this result via ajax? >>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/KPkEDV9RgUY/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: class being inserted behind my back..!
Thanks for that DenesL, I already worked out why the font was messy and suspected web2py was adding the class but it's good that someone has confirmed the details. I came across this problem when cutting and pasting a demo from bootstrap website so I assume their code is good. Adding a class like that seems an odd thing to do, especially as there is no mention I can find in the documentation. If we are stuck with this behaviour for some good reason, then maybe the text-shadow attribute could be amended at the same time as the class is added? On Sun, Oct 11, 2015 at 2:23 PM, 'DenesL' via web2py-users < web2py@googlegroups.com> wrote: > The btn-default class is added by web2py-bootstrap3.js via > $('button', target).addClass('btn btn-default'); > > The "horrible" part comes from this bit in bootstrap-theme.min.css > text-shadow: 0px 1px 0px white; > > Denes > > > On Sunday, October 11, 2015 at 4:58:01 AM UTC-4, Edward Shave wrote: >> >> Nope, that's the whole thing running in a new simple application. >> I did this so as to eliminate anything else in my code. >> >> The controller is simply... >> >> def index(): >> return dict() >> >> >> On Sunday, October 11, 2015 at 9:51:16 AM UTC+1, Leonel Câmara wrote: >>> >>> Are you getting this result via ajax? >>> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/KPkEDV9RgUY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: class being inserted behind my back..!
The btn-default class is added by web2py-bootstrap3.js via $('button', target).addClass('btn btn-default'); The "horrible" part comes from this bit in bootstrap-theme.min.css text-shadow: 0px 1px 0px white; Denes On Sunday, October 11, 2015 at 4:58:01 AM UTC-4, Edward Shave wrote: > > Nope, that's the whole thing running in a new simple application. > I did this so as to eliminate anything else in my code. > > The controller is simply... > > def index(): > return dict() > > > On Sunday, October 11, 2015 at 9:51:16 AM UTC+1, Leonel Câmara wrote: >> >> Are you getting this result via ajax? >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: class being inserted behind my back..!
Nope, that's the whole thing running in a new simple application. I did this so as to eliminate anything else in my code. The controller is simply... def index(): return dict() On Sunday, October 11, 2015 at 9:51:16 AM UTC+1, Leonel Câmara wrote: > > Are you getting this result via ajax? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: class being inserted behind my back..!
Are you getting this result via ajax? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.