10 Nov 2012 9:33 PM #21
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!
you've saved a few days for me!
24 Mar 2013 2:21 PM #23
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.
24 Mar 2013 3:18 PM #24
One thing though...
How you've altered the import pathing for the sencha touch "compass extension" (http://compass-style.org/help/tutorials/extensions/)
// Points to the Sencha Touch theme load File.join(sass_path, '..', 'themes')
# 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
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.
By kevinv1990 in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 3 Mar 2011, 12:58 AM
By bklaas in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 26 Feb 2011, 1:30 PM
By Bucs in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 17 Feb 2011, 8:37 PM
By RobinQu in forum Sencha Touch 1.x: DiscussionReplies: 10Last Post: 21 Dec 2010, 10:21 AM
By emroot in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 8 Oct 2010, 7:53 AM
Thread Participants: 20
- tof (1 Post)
- jep (1 Post)
- DavidGillespie (1 Post)
- dgotty (1 Post)
- xpous (1 Post)
- suzuki1100nz (1 Post)
- Greg Arnott (2 Posts)
- anthony.conklin (1 Post)
- ronan quillevere (1 Post)
- jillies (1 Post)
- kalor (1 Post)
- orenr (1 Post)
- DonSanto (1 Post)
- mfogarty (1 Post)
- chandaboy (1 Post)
- JumpSlash (1 Post)
- minaxiarya (1 Post)
- rvoth (1 Post)
- rajesh_5445 (1 Post)
- nefis (1 Post)