Skip to content
Browse files

- Cosmetic fixes

- Fixed a bug in find_css_match()
  • Loading branch information...
1 parent 23421fe commit e1d96e09895988998dd8442ae2b386e922318f59 @Paratron committed Dec 22, 2011
Showing with 29 additions and 20 deletions.
  1. +12 −5 Resources/js/app.js
  2. +4 −2 Resources/style.css
  3. +12 −12 manifest
  4. +1 −1 timanifest
View
17 Resources/js/app.js
@@ -538,24 +538,31 @@ var app = {
//Remove the .less file extension to re-use the filename for the CSS file.
filename = filename.replace('.' + less_file_object.extension(), '');
+ /*
+ * This is the greatest bullshit of all times.
+ * parent() or resolve('../') actually goes two folders upwards -_-
+ */
+ var parent = less_file_object.parent();
+ var parentname = parent.nativePath().split(s).pop();
+
//Attempt 1:
// ../css/[NAME].css;
- test = less_file_object.parent().resolve('..' + s + 'css' + s);
+ test = parent.resolve(parentname+s+'..'+s+'css'+s);
if (test.exists() && test.isDirectory()) {
- return '..' + s + 'css' + s + filename + '.css';
+ return parentname+s+'..' + s + 'css' + s + filename + '.css';
}
//Attempt 2:
// ./css/[NAME].css;
- test = less_file_object.parent().resolve('..' + s + 'css' + s);
+ test = parent.resolve(parentname+s+'css' + s);
if (test.exists() && test.isDirectory()) {
- return '..' + s + 'css' + s + filename + '.css';
+ return parentname+s+'..' + s + 'css' + s + filename + '.css';
}
//Attempt 3:
// ./[NAME].css;
- return './' + filename + '.css';
+ return parentname+s+ filename + '.css';
},
/**
View
6 Resources/style.css
@@ -313,6 +313,8 @@ li b{
button{
background: transparent;
+ position: relative;
+ top: -2px;
border: none;
display: inline-block;
width: 18px;
@@ -327,10 +329,10 @@ button{
.recompile{
margin-left: 5px;
- background-position: -210px -99px;
+ background-position: -207px -97px;
}
.recompile:hover{
- background-position: -189px -99px;
+ background-position: -186px -97px;
}
.remove{
View
24 manifest
@@ -6,15 +6,15 @@
#guid:cd74c124-3f01-4726-9430-4cbc61e0340f
#desc:A simple LESS compiler for Windows, osX and Linux
#type:desktop
-runtime:1.2.0.RC3
-tiapp:1.2.0.RC3
-tifilesystem:1.2.0.RC3
-tiplatform:1.2.0.RC3
-tiui:1.2.0.RC3
-ticodec:1.2.0.RC3
-tidatabase:1.2.0.RC3
-timedia:1.2.0.RC3
-timonkey:1.2.0.RC3
-tinetwork:1.2.0.RC3
-tiprocess:1.2.0.RC3
-tiworker:1.2.0.RC3
+runtime:1.1.0
+tiapp:1.1.0
+tifilesystem:1.1.0
+tiplatform:1.1.0
+tiui:1.1.0
+ticodec:1.1.0
+tidatabase:1.1.0
+timedia:1.1.0
+timonkey:1.1.0
+tinetwork:1.1.0
+tiprocess:1.1.0
+tiworker:1.1.0
View
2 timanifest
@@ -1 +1 @@
-{"appname": "SimpLESS", "appid": "com.wearekiss.simpless.open", "appversion": "1.2", "mid": "v2:1e0de228-20de-4aee-abe1-1a67b4e8069e|c0d15058be903a1aa25eb58fdabbabc3", "publisher": "KISS", "url": "http://wearekiss.com", "desc": "A simple LESS compiler for Windows, osX and Linux", "release": false, "image": "icon.png", "platforms": ["win32"], "visibility": "private", "runtime": {"version": "1.1.0", "package": "include"}, "guid": "cd74c124-3f01-4726-9430-4cbc61e0340f", "modules": [{"name": "tiapp", "version": "1.1.0", "package": "include"}, {"name": "tifilesystem", "version": "1.1.0", "package": "include"}, {"name": "tiplatform", "version": "1.1.0", "package": "include"}, {"name": "tiui", "version": "1.1.0", "package": "include"}, {"name": "ticodec", "version": "1.1.0", "package": "include"}, {"name": "tidatabase", "version": "1.1.0", "package": "include"}, {"name": "timedia", "version": "1.1.0", "package": "include"}, {"name": "timonkey", "version": "1.1.0", "package": "include"}, {"name": "tinetwork", "version": "1.1.0", "package": "include"}, {"name": "tiprocess", "version": "1.1.0", "package": "include"}, {"name": "tiworker", "version": "1.1.0", "package": "include"}]}
+{"appname": "SimpLESS", "appid": "com.wearekiss.simpless.open", "appversion": "1.3", "mid": "v2:1e0de228-20de-4aee-abe1-1a67b4e8069e|c0d15058be903a1aa25eb58fdabbabc3", "publisher": "KISS", "url": "http://wearekiss.com", "desc": "A simple LESS compiler for Windows, osX and Linux", "release": false, "image": "icon.png", "platforms": ["osx", "win32"], "visibility": "private", "runtime": {"version": "1.1.0", "package": "include"}, "guid": "cd74c124-3f01-4726-9430-4cbc61e0340f", "modules": [{"name": "tiapp", "version": "1.1.0", "package": "include"}, {"name": "tifilesystem", "version": "1.1.0", "package": "include"}, {"name": "tiplatform", "version": "1.1.0", "package": "include"}, {"name": "tiui", "version": "1.1.0", "package": "include"}, {"name": "ticodec", "version": "1.1.0", "package": "include"}, {"name": "tidatabase", "version": "1.1.0", "package": "include"}, {"name": "timedia", "version": "1.1.0", "package": "include"}, {"name": "timonkey", "version": "1.1.0", "package": "include"}, {"name": "tinetwork", "version": "1.1.0", "package": "include"}, {"name": "tiprocess", "version": "1.1.0", "package": "include"}, {"name": "tiworker", "version": "1.1.0", "package": "include"}]}

0 comments on commit e1d96e0

Please sign in to comment.
Something went wrong with that request. Please try again.