1. sass-align(1)
  2. sass-align(1)

NAME

sass-align - nicely align property values in .sass files

Synopsis

sass-align in-file out-file
sass-align -s|--stdin [out-file]
sass-align -e|--edit-in-place in-file [in-file...]
sass-align -R|--recursive directory

Installation

gem install sass-align

Description

sass-align is a command-line tool to format .sass files in the mildly idiosyncratic style used at Unspace. That means:

  1. All property values and arguments to @extend calls are placed at an (at least) 30-character left offset.
  2. Unless they start with a - (e.g. left: -30px) or a . (e.g. @extend .button), in which case they're shifted left 1 character.

Format example

#wrapper
  .sidebar
    :border-top               8px solid black
    :margin-right            -100px
  .content
    :width                    500px
    @extend                  .helvetica

Options

-s, --stdin

Read input from standard input instead of an input file.

-e, --edit-in-place

Edit files in place. Make sure you've backed them up (preferably using version control).

-R, --recursive

Format all the files in a directory. Implies the `-e' flag.

-o N, --offset N

Specify left character offset for property values (default 30).

Bugs

Report bugs and get righteously indignant about style decisions at the Github page.

Copyright 2011 by Aanand Prasad under the MIT license (see the LICENSE file).

  1. September 2011
  2. sass-align(1)