-
10 Nov 2012 9:33 PM #21
nice tutorial!!
nice tutorial!!
hi.. tis is really nice i was suffering a lot for 3 days for an error but after reading tis thing i found out thx!!!
-
17 Jan 2013 2:46 PM #22
thanks a lot!
thanks a lot!
you've saved a few days for me!
-
24 Mar 2013 2:21 PM #23
Appreciated.
Appreciated.
I've inherited an interesting project. ST2.0 project built with Architect.
This project was upgraded to 2.1 using the inbuilt functionality of the new Architect.
What this left me with was the original /sdk/resources, /touch/resources, /resources and interestingly another folder ../resources (yes, in parent of app folder) that had another /touch/ folder just for good measure of confusion.
Architect had scattered the working config into a chaotic mess. Found out the old project aliased the styling build from the parent resource folder into the app resources to help with build speeds.
Likewise, I've 15 years in (mostly) front-end development working with majority of frameworks and backends. Untangling this project was becoming a nightmare. This post was a ray of enlightenment and the final piece to solving the gordian knot.
Many thanks.
-
24 Mar 2013 3:18 PM #24
One thing though...
One thing though...
How you've altered the import pathing for the sencha touch "compass extension" (http://compass-style.org/help/tutorials/extensions/)
Firstly, consider this path from the config.rb:Code:@import 'sencha-touch/default/all';
Within this directory one finds a file compass_init.rb.Code:// Points to the Sencha Touch theme load File.join(sass_path, '..', 'themes')
The important points:Code:# This file registers the sencha-touch framework with compass # It's a magic name that compass knows how to find. dir = File.dirname(__FILE__) require File.join(dir, 'lib', 'theme_images.rb') # Include compass-recipes require File.join(File.dirname(__FILE__), 'vendor', 'compass-recipes', 'config') Compass::BrowserSupport.add_support('repeating-linear-gradient', 'webkit', 'moz', 'o', 'ms') Compass::Frameworks.register 'sencha-touch', dir- "sencha-touch" becomes a registered framework extension for this project.
- images you've hard referenced via your config.rb file are originally included by this compass_init.rb and its referenced /themes/lib/theme_images.rb file.
- using as a framework extension makes "@import 'sencha-touch/default/all';" also work, and not require modification.
-
24 Mar 2013 11:14 PM #25
Hello,
when I use the command compass compile It get the error
Line 23 of _button.scss: Undefined variable: "$base-gradient".
I have defined the variable "$base-gradient" in scss file.
Similar Threads
-
How to use sencha touch css in SASS
By kevinv1990 in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 3 Mar 2011, 12:58 AM -
SASS & Sencha Touch: how do I apply a gradient to a pressed list item?
By bklaas in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 26 Feb 2011, 1:30 PM -
Compass / SASS questions?
By Bucs in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 17 Feb 2011, 8:37 PM -
more info about themes and sass in sencha touch?
By RobinQu in forum Sencha Touch 1.x: DiscussionReplies: 10Last Post: 21 Dec 2010, 10:21 AM -
Compass SASS - How to in 0.96 ?
By emroot in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 8 Oct 2010, 7:53 AM


Reply With Quote