Skip to content

Instantly share code, notes, and snippets.

@kamikaze-lab
Created February 5, 2015 22:24
Show Gist options
  • Save kamikaze-lab/381e5416aed2b25968a5 to your computer and use it in GitHub Desktop.
Save kamikaze-lab/381e5416aed2b25968a5 to your computer and use it in GitHub Desktop.

Agregar Sussy a un proyecto usando Compass

Como agregar Sussy a nuevo proyecto con compass

  1. Objetivo y descripción
  2. Dependencias
  3. Puesta en marcha
  4. Referencias
  5. Créditos y autor

Agregar Susy a un proyecto nuevo utilizando Compass

  • Compass - Compass is an open-source CSS Authoring Framework.
  • Susy - A plugin for the Compass CSS framework that lets you create your own custom grid framework, minimizing overhead, while making it more understandable to use.
    $ gem install susy

Una vez instalado Compass

  1. Instalar Susy
    $ gem install susy
  2. Crear carpeta del proyecto con compass y agregar Susy :
    $ compass create --using susy <project name>
  3. Una vez instalado Susy y creado el proyecto con Compass encontraras una carpeta llamada "sass" y dentro un archivo llamado "_grids.scss" con este codigo:
@import "susy";

$susy: (
  columns: 12,
  gutters: 1/4,
);

Aqui podras definir los parametros de Susy como columns, gutters, flow, etc.
Parámetros de Susy:

// Basic configuration
$susy: (
  flow: ltr,                          // ltr (left to right) | rtl (right to left)
  math: fluid,                        // fluid | static (requires column width)
  output: float,                      // float | isolate
  gutter-position: after,             // before | after | split | inside | inside-static
  container: auto,                    // length % | auto
  container-position: center,         // left | center | right | <lenght> [*2] (grid padding)
  columns: 12,                        // number of columns
  gutters: 1/8,                       // width of gutters
  column-width: false,                // false | value
  global-box-sizing: content-box,     // content-box | border-box
  last-flow: to,
  debug: (
    image: hide,
    color: rgba(#ff0000, .25),
    output: background,               // background | overlay
    toggle: top right,
  ),
  use-custom: (
    background-image: true,           // look for background-image mixin
    background-options: false,        // look for background-size mixin
    box-sizing: true,                 // look for custom box sizing mixin
    clearfix: false,                  // true = look for internal clearfix before using mixin
    rem: true,                        // look for rem mixin
  )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment