kizza / css-less-ish Goto Github PK
View Code? Open in Web Editor NEWUse variables and nesting in your css files with Sublime Text 2 & 3
License: MIT License
Use variables and nesting in your css files with Sublime Text 2 & 3
License: MIT License
I'm using package control (install) and I simply cant find the plugin in the list. Am I missing something? (ST3, MAC OS 10.8)
HI, boy, I think there is a exception you was not notice. the detail is here
File "./csslessish.py", line 100, in on_load
File "./csslessish.py", line 107, in process
AttributeError: 'NoneType' object has no attribute 'endswith'
you should check view.file_name() is None
I looked at your css smarts comment at the end of a document and it looks like you're droping the start and end character count for replacements in the bottom of the file, but this doesn't work if you have someone else who might edit the file.
To test this I just added some text to the top of the file and when the replacements were made text that wasn't the variable value was replaced with the @variable causing the css to break.
Would it be possible to add further levels of nesting like LESS has?
The single-level is useful for simple selectors, but once you start increasing complexity the handiness diminishes.
I'm loving the plugin so far - I think it'll save many of us lots of time. Keep up the awesome work!
installed by Package Control,but it doesn't work ,can you give the guide of install,thanks
version :sublime text2 builde 2165
os:win xp
I use sublimeREPL run Python, it works good.
But today, I installed this package, and all the REPL result window have been modified, at the first window create even no print anything.
Then if I want to close the window, sublime will ask for save because the "file" was modified. Sublime will ask every window every time. TAT
Hi!
Take the example
/*@link = #6699CC*/
a { color: @link}
produces
/*@link = #6699CC*/
a { color: #6699CC*/}
/* Variables:link{33:42} */
a { color: #6699CC*/} -> */ after color
When multi-line comments it works fine.
Thanks for the cool plugin!
Since files are compiled when saved, and de-compiled right after save, sublime thinks that the file is modified. Same problem effects undo stack and it changes the expected behavior of the editor.
I believe, this is an amazing tool and can replace LESS compilers all together, but you should keep on developing it and find another way to compile files on save.
Let me know if I can help in any way.
Keep up the good work.
example: @silver9 = filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 );
Does not work. It breaks right after startColorstr where there is the '=' equals sign.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.