-
24 Sep 2012 2:30 AM #1
Sencha Cmd v3.0 :: CSS is overriden and erased // bad relative reference to images
Sencha Cmd v3.0 :: CSS is overriden and erased // bad relative reference to images
Hi,
Two points :
1) i'am adding my own css classes in the default/app.css juste after the
which now looks like :Code:@import url('../../../../../../../../lib/ext/resources/css/ext-all.css');
When i'am build the application (using sencha app build) the app.css is overriden and only the sencha css is included (all of my own definitions are removed)Code:@import url('../../../../../../../../lib/ext/resources/css/ext-all.css'); .header-panel { height : 80px; vertical-align : middle; text-align : center; background : #1272a2; background-image : -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #60c0e8), color-stop(100%, #1272a2)); background-image : -webkit-linear-gradient(top, #60c0e8,#1272a2); background-image : -moz-linear-gradient(top, #60c0e8,#1272a2); background-image : -o-linear-gradient(top, #60c0e8,#1272a2); background-image : -ms-linear-gradient(top, #60c0e8,#1272a2); background-image : linear-gradient(top, #60c0e8,#1272a2); background-repeat : no-repeat; color : #fff; text-shadow : 0 -1px 0 rgba(0, 0, 0, .4); border-bottom : 1px solid #3a3a3a; } .../...
2) Some of the images are not well pointed and give me a 404 http error with the build :
http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/trigger.gif
-
24 Sep 2012 3:14 AM #2
It seems that the "theme process" point on the absolute path of my workspace/project folder !
(since the compiled css file has different url for the same images !!)
-
24 Sep 2012 4:30 AM #3
I've resolved the first point :
- adding a css reference in the index.html which point in "resources/css/default"
<link rel="stylesheet" href="resources/css/default/app.css">
<link rel="stylesheet" href="resources/css/default/charting.css">
The file is now copied in the build process, but, sadly, not compiled !!!!
But, my own folders in the resources personal folders ARE NOT COPIED WHEN BUILDING, so now, in build/resources/css folder there is no "images" folder which contains my own images used in my application...

But this do not resolve the "absolute url" for some of the images used in my application !
-
24 Sep 2012 6:58 AM #4
PARTIALY RESOLVED
PARTIALY RESOLVED
See my other thread ::
http://www.sencha.com/forum/showthre...lder-in-build-!
So now, how to add the "theme" for form !!!
Code:Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/exclamation.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/text-bg.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/trigger.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/date-trigger.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/form/spinner.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/button/s-arrow.gif Failed to load resource: the server responded with a status of 404 (Not Found) http://xx.xx.xx.xx:yy/Users/tag-all/Workspace/www/project/lib/ext/resources/themes/images/default/grid/grid3-hd-btn.gif
ps : so good to be my own personnal Sencha Team answerer ;-) maybe i'll burn out my tickets for this kind of "mysterious things" !!

-
24 Sep 2012 7:59 AM #5
FOR FORUM ADMIN
FOR FORUM ADMIN
So,
since i'm a "supported user" (sorry with an other name/email then this one i'am using there ;-) )
i'll open a ticket
-
25 Sep 2012 12:53 PM #6
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
SDKTOOLS-162
in
3.0.0.190.


Reply With Quote