19. Text-shadow
// Note: This one requires some work to get the Direction working properly for IE.
// Usage example: +text_shadow(#333, 1px, 1px, 1)
=text_shadow(!color, !x, !y, !blur)
:text-shadow = !color !x !y "#{!blur}px"
:-ms-filter = "progid:DXImageTransform.Microsoft.Shadow(Color=#{!color},Direction=135,Strength=#{!blur})"
Saturday, October 31, 2009
20. Getting started with
SASS in Rails
run: gem install haml
in environment.rb: add config.gem ‘haml’
create public/stylesheets/sass/style.sass
require ‘style.css’ in your layout
script/server
Saturday, October 31, 2009
21. Less CSS, a SASS alternative
A CSS superset.
All of the cool SASS features, but with
semicolons and curly braces.
http://lesscss.org/
Saturday, October 31, 2009
22. Compass, a SASS
framework
SASS mixins to help with CSS frameworks like
Blueprint, YUI and 960.gs
SASS mixins that solve common problems, like
resetting the stylesheet and horizontal lists.
http://wiki.github.com/chriseppstein/compass
Saturday, October 31, 2009
23. Where to get SASS
Install: gem install haml
Website: http://sass-lang.com
Develop: http://github.com/nex3/haml
Also check out: http://haml-lang.com
Community plug: http://dev-groups.org
Saturday, October 31, 2009