[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)
Figured it out using Firebug and wanted to share my answer: To change the font colors inside the grid feature you have to create a CSS sheet (I called my tablebackground.css) and import it whenever I have a table. Then add this line: .odd.with_id {color: black;} There is also an even.with_id that web2py uses when converting sql databases into a form. Hope this helps someone else. Best, Austin On Friday, February 21, 2014 4:15:41 PM UTC-5, Austin Taylor wrote: I apologize for the vagueness. Part of that is my lack of knowledge and not knowing what to provide in the question. Thanks for responding, LightDot. I am using firebug and when I load the page it gives me 5 css scripts: background.css bootstrap-responsive.min.css bootstrap.min.css calendar.css (that one has a checkmark) web2py.css web2py_bootstrap.css You mentioned overriding the CSS Setting. How would I do so? On Friday, February 21, 2014 2:47:11 PM UTC-5, LightDot wrote: Question is a bit vague, yes ;) Like going to a mechanic and saying you want your car fixed, without any additional information and without showing your car. Grid is basically a html table, you have borders, rows, columns, fields, font colors, etc. etc. If your CSS template is overriding the Bootstrap's and web2py's CSS, then there is no magic one liner that will change all that back into something else. You need to redefine all CSS values that you want changed. This can be done for the grid alone. I suggest looking at your grid's CSS with a developer tool within your browser (all modern browsers have those built in, or you can use a plugin like Firebug for Firefox). This will show you which CSS definitions cause the color changes and which CSS file are they coming from. Then you can override them. Regards On Friday, February 21, 2014 5:31:35 PM UTC+1, Austin Taylor wrote: Really need help with this so if my question isn't clear please let me know and i'll try to rephrase. On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote: I'm currently using a CSS template in my layout, but it changed my grid spreadsheet to an unreadable color. I've tried playing with the different css settings with no luck. Is there a way to just change the spreadsheet color? -- 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/groups/opt_out.
[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)
Really need help with this so if my question isn't clear please let me know and i'll try to rephrase. On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote: I'm currently using a CSS template in my layout, but it changed my grid spreadsheet to an unreadable color. I've tried playing with the different css settings with no luck. Is there a way to just change the spreadsheet color? -- 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/groups/opt_out.
[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)
Question is a bit vague, yes ;) Like going to a mechanic and saying you want your car fixed, without any additional information and without showing your car. Grid is basically a html table, you have borders, rows, columns, fields, font colors, etc. etc. If your CSS template is overriding the Bootstrap's and web2py's CSS, then there is no magic one liner that will change all that back into something else. You need to redefine all CSS values that you want changed. This can be done for the grid alone. I suggest looking at your grid's CSS with a developer tool within your browser (all modern browsers have those built in, or you can use a plugin like Firebug for Firefox). This will show you which CSS definitions cause the color changes and which CSS file are they coming from. Then you can override them. Regards On Friday, February 21, 2014 5:31:35 PM UTC+1, Austin Taylor wrote: Really need help with this so if my question isn't clear please let me know and i'll try to rephrase. On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote: I'm currently using a CSS template in my layout, but it changed my grid spreadsheet to an unreadable color. I've tried playing with the different css settings with no luck. Is there a way to just change the spreadsheet color? -- 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/groups/opt_out.
[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)
I apologize for the vagueness. Part of that is my lack of knowledge and not knowing what to provide in the question. Thanks for responding, LightDot. I am using firebug and when I load the page it gives me 5 css scripts: background.css bootstrap-responsive.min.css bootstrap.min.css calendar.css (that one has a checkmark) web2py.css web2py_bootstrap.css You mentioned overriding the CSS Setting. How would I do so? On Friday, February 21, 2014 2:47:11 PM UTC-5, LightDot wrote: Question is a bit vague, yes ;) Like going to a mechanic and saying you want your car fixed, without any additional information and without showing your car. Grid is basically a html table, you have borders, rows, columns, fields, font colors, etc. etc. If your CSS template is overriding the Bootstrap's and web2py's CSS, then there is no magic one liner that will change all that back into something else. You need to redefine all CSS values that you want changed. This can be done for the grid alone. I suggest looking at your grid's CSS with a developer tool within your browser (all modern browsers have those built in, or you can use a plugin like Firebug for Firefox). This will show you which CSS definitions cause the color changes and which CSS file are they coming from. Then you can override them. Regards On Friday, February 21, 2014 5:31:35 PM UTC+1, Austin Taylor wrote: Really need help with this so if my question isn't clear please let me know and i'll try to rephrase. On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote: I'm currently using a CSS template in my layout, but it changed my grid spreadsheet to an unreadable color. I've tried playing with the different css settings with no luck. Is there a way to just change the spreadsheet color? -- 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/groups/opt_out.