If you are using HAML and SASS in your Rails application, then any templates you define in public/stylesheet/*.sass will be compiled into *.css stylesheets. From your code, you use stylesheet_link_tag to pull in the asset by name without having to worry about the extension.
Many people dislike storing generated code or compiled code in...
I'm trying to put together a selector in SASS that will operate on the visted, hovered state of a link, but I can't quite seem to get the markup right, can someone enlighten me?
I was writing it like this:
&:visited:hover
attribute: foo
...
Does anyone know where I can find some cool syntax highlighting for Haml and/or Sass for the Programmer's Notepad?
Thanks!
...
I just setup Webby/Compass integration.
(http://wiki.github.com/chriseppstein/compass/webby-integration)
Where do I put my Compass/Sass source files, and in what directory do they get
output as stylesheets?
...
I'm following an article here:
http://gom-jabbar.org/articles/2009/02/04/don-t-use-css-or-table-layout-use-sass-ad-compass
more specifically the section entitled "Concrete Example of using
Compass and Sass for creating a layout that people generally use
tables for"
The example references @import blueprint.sass
Where is this file loc...
I'm looking into ways to use SASS (Syntactically Awesome StyleSheets) from the Ruby HAML package in an ASP.NET environment. Ideally, I would like compilation of SASS files into CSS to be a seamless part of the build process.
What are the best ways to this integration? Alternatively, are there other CSS-generation tools that are better s...
I'm looking for a templating engine. What are the important factors to consider when choosing among Haml, Sass/Compass and erb?
...
I'm trying to decide on technologies for a presentation layer. I have heard Sass talked about enthusiastically but am resistant to learn something new without knowing why it's better than the alternative - in this case plain CSS. Any feedback on Sass would be welcome.
Edit: This is also a good discussion on this:
SASS: The Better, Mor...
Can anyone explain a best practice approach to implementing a cache buster in SASS? Meaning, on 'compilation' of my CSS, it appends a timestamp to images files. E.g.,
The following SASS code:
!sprite="gubs.gif"
ul
li.selected
:background
:image= image_url(!sprite)
:repeat no-repeat
:position= "right" -222px
S...
Is this sass code valid?
tr:nth-child(odd)
:background-color #cccccc
Somehow, it does not color my table's alternating rows.
...
I would like to apply Blueprintcss and Compass/Sass to a Rails project.
Should I learn Blueprint first or Compass/Sass first or are there any guides on how to use the two of these together?
Also, does it make any difference that it's a Rails project? Could this combination of technologies be just as easily applied to, say, a Java proje...
How interdependent are Haml, Sass and Compass?
Are all three required in a Compass project?
...
So emacs's auto-indentation for CSS is driving me batty. Here is what I like CSS to look like:
#foo ul.bar {
....
}
#foo ul.bar li {
....
}
#foo ul.bar li a {
....
}
This is what emacs gives me with its auto-indentation:
#foo ul.bar {
....
}
#foo ul.bar li {
....
}
#foo ul....
Has anybody made this yet?
...
Starting a new rails project and we have a well-thought-out color palette, and want to capture that in one place. I have usually kept colors in the CSS, but I find I end up with all the same color in lots of different selectors, as it shows up as a background color, color, border color, etc. I also will occassionally need access to color...
Anyone know where I can get a syntax highlight for Haml/Sass for Coda?
...
I have a div called #output, styled with overflow: scroll;. Using jQuery.ajax, it's being updated every x second. I'd like to have it so that when the scrollbar appears (after the divs filled up), it should continously stay at the bottom of the div instead of the top, like most chat clients do.
I'm sure there's a way to do this, I just ...
I'm using SASS to generate a @font-face mixin, however this:
=remotefont(!name, !url)
@font-face
font-family = !name
src = url(!url + ".eot")
src = local(!name), url(!url + ".ttf") format("truetype")
+remotefont("My font", "/myfont.ttf")
becomes this:
@font-face {
font-family: My font;
src: url(/myfont.ttf.eot);
...
This plugin is pretty good, definitely better than plain-text.. but I'm longing for a little more. Code completion, the Netbeans code generator shortcuts, 'ri' integration for looking up documentation like the .erb files have..
Does anyone have some tricks, is there a different plugin for this type of functionality in Netbeans?
Definit...
Are there any plugins for eclipse that add syntax highlighting and other niceties for editing Haml and Sass? Google searches only seem to point to a dead project on lucky-dip.net.
Note: it's Sass I'm most interested in. A solution for using just Sass (or something similar to it like less) in Eclipse would suit my needs.
Also, I'm devel...