bklaas
1 Feb 2011, 11:56 AM
I've been spending some time going through David Kaneda's* excellent blog posts on SASS theming in Sencha Touch http://www.sencha.com/blog/2010/06/29/getting-sassy-with-css/
http://www.sencha.com/blog/2010/12/17/an-introduction-to-theming-sencha-touch/
After doing some experimenting with it in my own application, I've had enough success that I've now migrated to using the SASS-generated CSS file.
Now I'd like to push what I can do with SASS to theme my application. SASS is brand new to me, so I imagine I'm a bit ham-handed with my skills. Also, I don't seem to be able to find very comprehensive documentation anywhere (perhaps because it's way out here on the bleeding edge?).
First question:
I styled a button UI like this--
$black: #000;
$button-color: $black;
@include sencha-button-ui('mybutton', $black, 'bevel');
this worked well for a button ui that produces a black button with the pre-canned bevel design. But what if I want the button to incorporate my own visual assets? Is there a method for delivering a more customized graphical treatment via SASS's @include sencha-button-ui?
Similarly, I'd like to have some ability to put gradients on a list item highlight treatment when tapped/pressed. So far I've only been able to manage changing the color. Is it possible to do more with this via SASS configuration?
cheers,
#!/ben
* as a fan of the Anime classic Akira, it is impossible for me to write David Kaneda's name without shouting "Kanedaaaaaaaaa!"
http://www.sencha.com/blog/2010/12/17/an-introduction-to-theming-sencha-touch/
After doing some experimenting with it in my own application, I've had enough success that I've now migrated to using the SASS-generated CSS file.
Now I'd like to push what I can do with SASS to theme my application. SASS is brand new to me, so I imagine I'm a bit ham-handed with my skills. Also, I don't seem to be able to find very comprehensive documentation anywhere (perhaps because it's way out here on the bleeding edge?).
First question:
I styled a button UI like this--
$black: #000;
$button-color: $black;
@include sencha-button-ui('mybutton', $black, 'bevel');
this worked well for a button ui that produces a black button with the pre-canned bevel design. But what if I want the button to incorporate my own visual assets? Is there a method for delivering a more customized graphical treatment via SASS's @include sencha-button-ui?
Similarly, I'd like to have some ability to put gradients on a list item highlight treatment when tapped/pressed. So far I've only been able to manage changing the color. Is it possible to do more with this via SASS configuration?
cheers,
#!/ben
* as a fan of the Anime classic Akira, it is impossible for me to write David Kaneda's name without shouting "Kanedaaaaaaaaa!"