sass

Is there a reason why SASS, a CSS generator, needs to reject lines such as margin:10px ? (no space after colon)

I need to change all the CSS into SASS... and find that margin:10px working in CSS and failing in SASS somewhat disturbing... It is easy to miss one and you don't what you are missing (what is not working in the final CSS but you don't know) Pretty much I am grep for /:\S/ (colon by followed by a non-whitespace) to see if there are ...

Using colon syntax and variables in Sass

I am still using the old colon syntax (I prefer it more than the bracket syntax) and this particular code: a.button-link +box($main-color) +border-radius(5px) :background :color $main-color :color #fff :padding 5px generates a warning like so: DEPRECATION WARNING: On line 12, character 3 of '/Users/eumir/rail...

How to bundle a ruby package into an [Objective-C] cocoa application?

I'm trying to figure out how I could bundle a package, written in Ruby (Sass) into a Cocoa application (Objective-C, not Ruby Cocoa) for me to execute (via NSTask is fine, unless there is an easy way to bridge ObjC<->Cocoa that I'm not aware of). The Sass package is something you have to install, using "gem install" or "rake install" --...

I can't install Haml/Sass on Windows using RubyInstaller for Windows.

I never used ruby before, I just wanted to play around with HAML and SASS. I downloaded and installed Ruby's Windows installer (v1.9.1). Then, I clicked ruby.exe (the icon with a black window and a multicolored gem in the picture). Finally, I typed gem install haml and pressed Enter. But nothing happened. Am I doing something wrong? Ref...

Syntax highlight for Sass is not working in Vim.

I just downloaded a Vim plugin for Sass syntax highlight. The instructions say: install details put it into syntax directory and add sass filetype au! BufRead,BufNewFile *.sass setfiletype sass in your filetype.vim I already placed sass.vim in vimfiles/syntax/ (using windows). And created a filetype.vim file with ...

How do I downgrade to an old version of compass using gem install?

I've been using compass from http://compass-style.org/ to manage my sites css for a long time. I just installed the newest version and I get a rather unpleasant error, that has as a side effect corrupted all my css files. How do I downgrade to an older version of this? Thanks, Matt ...

How do I automatically update the html output of a haml file like I do with a sass and css file?

"Watching a file" helps me to automatically update the changes I make in the sass file to the css output. To watch a Sass file is very simple: sass --watch input.sass:output.css but for a Haml file I can't find a similar command Any suggestions? ...

Why SASS stopped being the primary syntax (now SCSS is the one)?

In the official webpage they say: Although no longer the primary syntax, the indented syntax will continue to be supported. Doe anybody know why SCSS "partially took over" SASS? ...

Installing haml/sass through rubygems

meder@dunross:~$ sudo gem install haml Successfully installed haml-3.0.12 1 gem installed Installing ri documentation for haml-3.0.12... Installing RDoc documentation for haml-3.0.12... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc meder...

Possible to "watch" both HAML and SASS at the same time?

I'd like to be able to update/save both my html and css on-the-fly, but I can't figure out how to watch both HAML and SASS at the same time. Thanks! ...

If SASS is part of HAML, why do I need Compass in Merb?

This is a theoretical question as much as a practical one. I just can't wrap my head around how all these technologies mesh... I have heard various things including: "HAML and SASS are included in Merb" "SASS is part of HAML" "HAML works in Merb, but to use SASS you need to add the 'merb-haml' dependency"(?) "You need Compass to run ...

LESS or SASS (SCSS) when doing non-ruby projects?

I'm working on a Python-based project. I want to use some CSS preprocessor language which is based on CSS like LESS or Sass (SCSS), but which one should I use when doing a non-Ruby project? Sass seem to have a more features, but it is also tightly integrated with Haml package (and rails?). Are those features worth it? Are both mature...

SASS error: Properties arent allowed at the root of a document?

I keep getting an error like this: Sass::SyntaxError: Properties aren't allowed at the root of a document. on line 2 of /Users/eumir/rails_apps/neo2/public/stylesheets/sass/ main.sass main.sass's line 2 starts with @import mixins I have a _mixins.sass which has a variable declaration on line 2: $alt_site_color: #060 $main_s...

Customizing the formatting output of .sass?

#foo { color:black; } Is there some sort of option to prefix a newline before the trailing } when a .css file is generated from .sass? I would appreciate it if someone included an example of combining sass --watch style.scss:style.css, which is what I'm using, along with this newline requirement. ...

CSS 2 Sass: How do I change the output format of the generated SCSS?

I want to convert CSS to SCSS that looks like this: .top { margin-top: 1em; margin-bottom: 1em; nav { background: #333; } ul { padding: 0; display: table-row; } li { display: table-cell; } } Instead, I am getting this: .top { margin-top: 1em; margin-bottom: 1em; nav { background: #333; } ul...

SASS Syntax Error: Properties aren't allowed at the root of a document

I am using SASS and it has been working, but now I get this... Syntax error on line 1: Properties aren't allowed at the root of a document. My file is using variables in the SASS format. $blue-muted: #222244 $red-muted: #442222 $green-muted: #224422 When I remove the variables (and replace the values with the actual colors), it com...

Rails: SASS not creating the CSS files

SASS is not creating the CSS files, but HAML is working just fine. I ran the following command: $: sass --watch scss:stylesheets [true, ["scss", "stylesheets"]] My main.scss file contains the following: /* main.scss */ body { background: #000000; } The main.css file never gets generated. So I ran the following: $: sass --upd...

Sass Mixin Error for IE specific filters like -ms-filter... need syntax help please

I'm trying to make a button mixin like this: =default_button(!lighter, !darker) :border= 1px !lighter solid :background-color #e3e3e3 :background= -webkit-gradient(linear, 0 0, 0 100%, from(!lighter), to(!darker)) repeat-x, #d0581e :background= -moz-linear-gradient(90deg, !darker, !lighter) repeat-x scroll 0 0 #d0581e :filter...

Netbeans 6.9 support for HAML and SASS?

It doesn't seem to be any HAML and SASS support in Netbeans 6.9. Is there a way to add this support? Thanks ...

Csscaffold, image url problem?

I am using csscaffold 2.0.7 ("http://github.com/sunny/csscaffold") trying to get this code to work: @constants { path: "/images/sprite.png"; } .my-div{ background: #000 url($path) no-repeat 0px -100px; } Trying to make that code work, its outputting: Missing image - \\css\/images/sprite.png Directory: -scaffold -css -images ...