Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with Less files (not just CSS) #65

Open
erikflowers opened this issue Apr 29, 2014 · 6 comments
Open

Working with Less files (not just CSS) #65

erikflowers opened this issue Apr 29, 2014 · 6 comments

Comments

@erikflowers
Copy link

It would be great to have this work with Less. I don't write CSS any longer, and I assume there are a lot of people that use Less, Sass, etc.

I don't know how to change the addon myself or I'd try, but I thought I'd add an issue regarding CSS preprocessors.

@lombardi-gux
Copy link

+1

@wbond
Copy link
Owner

wbond commented May 19, 2014

What issues are you running into aligning things with LESS?

@lombardi-gux
Copy link

This block, for example, in CSS:

  font-size: 20px;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  text-align: center;
  width: 100%;
  height: 100%;
  padding-top: 35%;

aligns as expected to

  font-size  : 20px;
  position   : absolute;
  top        : 0;
  left       : 0;
  display    : block;
  text-align : center;
  width      : 100%;
  height     : 100%;
  padding-top: 35%;

In a less file with the same code, I hit the key command but nothing happens.

@ariona
Copy link

ariona commented May 20, 2014

Maybe this will help.
Open Preferences > Browse Package menu, open the alignment package folder. You can see there is a file called CSS.sublime-settings.

In my case i just copy the file and name it after the file type you need. So i rename it to Sass.sublime-settings , and now i can use alignment in my sass file.

The file name is based on Syntax type (you can see all available syntax from the view > syntax ). and note that the filename is case sensitive i think.

@lombardi-gux
Copy link

Thanks, but he packages are no longer in folders, they are zipped (sublime-package) files. I suppose I could edit the zip file, but I'd prefer either a "fix" or a solution I can confine to my user folder.

On May 20, 2014, at 5:14 AM, Rian Ariona <notifications@github.commailto:notifications@github.com> wrote:

Maybe this will help.
Open Preferences > Browse Package menu, open the alignment package folder. You can see there is a file called CSS.sublime-settings.

In my case i just copy the file and name it after the file type you need. So i rename it to Sass.sublime-settings , and now i can use alignment in my sass file.

The file name is based on Syntax type (you can see all available syntax from the view > syntax ). and note that the filename is case sensitive i think.


Reply to this email directly or view it on GitHubhttps://github.com//issues/65#issuecomment-43602972.


@wbond
Copy link
Owner

wbond commented May 20, 2014

Well, that file can be in any folder. Ideally it is in your Packages/User/ folder so if you sync your packages to another machine, you get it also.

Of note, in ST3, you can create a folder named Packages/{package name}/ and override files from the package. It can be handy for little customizations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants